answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT winner FROM table_name_52 WHERE trofeo_fast_team = "asics-c.g.a." AND mountains_classification = "mariano piccoli"
Who was the winner from team Asics-c.g.a. and has a mountains classification of Mariano Piccoli?
CREATE TABLE table_name_52 (winner VARCHAR, trofeo_fast_team VARCHAR, mountains_classification VARCHAR)
SELECT SUM(crowd) FROM table_name_90 WHERE home_team = "fitzroy"
What is Fitzroy's Home team Crowd?
CREATE TABLE table_name_90 (crowd INTEGER, home_team VARCHAR)
SELECT MAX(overall) FROM table_name_65 WHERE pick__number = 4 AND round > 7
Which highest Overall has a Pick # of 4, and a Round larger than 7?
CREATE TABLE table_name_65 (overall INTEGER, pick__number VARCHAR, round VARCHAR)
SELECT date FROM table_name_46 WHERE score = "71-64"
WHAT DATE HAD A SCORE OF 71-64?
CREATE TABLE table_name_46 (date VARCHAR, score VARCHAR)
SELECT launched FROM table_name_70 WHERE kanji = "栗"
What is the launch date of 栗?
CREATE TABLE table_name_70 (launched VARCHAR, kanji VARCHAR)
SELECT score FROM table_name_5 WHERE tournament = "wellington"
What was the score of the tournament in Wellington?
CREATE TABLE table_name_5 (score VARCHAR, tournament VARCHAR)
SELECT airport FROM table_name_80 WHERE iata = "vie"
VIE is the IATA for which city?
CREATE TABLE table_name_80 (airport VARCHAR, iata VARCHAR)
SELECT SUM(crowd) FROM table_name_41 WHERE away_team = "richmond"
What is the Crowd number for the Away team of Richmond?
CREATE TABLE table_name_41 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(founded) FROM table_262476_3 WHERE institution = "Alfred University"
When was alfred university founded?
CREATE TABLE table_262476_3 (founded INTEGER, institution VARCHAR)
SELECT outcome FROM table_name_73 WHERE tournament = "jounieh"
What is the Outcome of the jounieh tournament?
CREATE TABLE table_name_73 (outcome VARCHAR, tournament VARCHAR)
SELECT result FROM table_name_45 WHERE category = "best book of a musical"
Which Result has a Category of best book of a musical?
CREATE TABLE table_name_45 (result VARCHAR, category VARCHAR)
SELECT format FROM table_2709_4 WHERE frequency = "105.5 FM"
What is the format of 105.5 fm?
CREATE TABLE table_2709_4 (format VARCHAR, frequency VARCHAR)
SELECT title FROM table_23289934_1 WHERE no_in_season = 16
Name the title for number 16
CREATE TABLE table_23289934_1 (title VARCHAR, no_in_season VARCHAR)
SELECT leader_battle FROM table_25920798_2 WHERE vote = "4-3"
Name the leader battle for 4-3 vote
CREATE TABLE table_25920798_2 (leader_battle VARCHAR, vote VARCHAR)
SELECT opponent FROM table_name_34 WHERE score = "95-101"
Which opponent scored 95-101?
CREATE TABLE table_name_34 (opponent VARCHAR, score VARCHAR)
SELECT COUNT(date_of_successors_formal_installation) FROM table_225099_3 WHERE successor = "John W. Walker (DR)"
How many entries are shown for date of successors formal installation where successor is john w. walker (dr)?
CREATE TABLE table_225099_3 (date_of_successors_formal_installation VARCHAR, successor VARCHAR)
SELECT result FROM table_2668243_18 WHERE incumbent = "Willis Alston"
Name the result for willis alston
CREATE TABLE table_2668243_18 (result VARCHAR, incumbent VARCHAR)
SELECT score FROM table_name_25 WHERE attendance > 9 OFFSET 430
What was the score when the Blue Jays had an attendance larger than 9,430?
CREATE TABLE table_name_25 (score VARCHAR, attendance INTEGER)
SELECT player FROM table_name_85 WHERE place = "t6" AND country = "united states"
What is the name of the player with t6 as his place and a country of United states?
CREATE TABLE table_name_85 (player VARCHAR, place VARCHAR, country VARCHAR)
SELECT issn FROM table_name_36 WHERE publication_range = "1984-"
What is the ISSN number of a publication range of 1984-?
CREATE TABLE table_name_36 (issn VARCHAR, publication_range VARCHAR)
SELECT term_in_office FROM table_name_68 WHERE state = "vic" AND member = "stewart mcarthur"
What term did Stewart Mcarthur from Vic serve in office?
CREATE TABLE table_name_68 (term_in_office VARCHAR, state VARCHAR, member VARCHAR)
SELECT first_district FROM table_name_9 WHERE fifth_district = "prudy adam"
Who's the First District with a Fifth District of prudy adam?
CREATE TABLE table_name_9 (first_district VARCHAR, fifth_district VARCHAR)
SELECT ship FROM table_name_30 WHERE location = "devonport, devon"
Which ship was launched from Devonport, Devon?
CREATE TABLE table_name_30 (ship VARCHAR, location VARCHAR)
SELECT SUM(year) FROM table_name_4 WHERE silver = "japan"
How many years has Japan won silver?
CREATE TABLE table_name_4 (year INTEGER, silver VARCHAR)
SELECT attendance FROM table_name_79 WHERE result = "bye"
What was the attendance when the result was a bye?
CREATE TABLE table_name_79 (attendance VARCHAR, result VARCHAR)
SELECT series_ep FROM table_name_60 WHERE episode > 262 AND segment_a = "aluminium s canoe"
What is the series episode number that is larger than 262 and has a Segment A entry of Aluminium s canoe?
CREATE TABLE table_name_60 (series_ep VARCHAR, episode VARCHAR, segment_a VARCHAR)
SELECT home_team FROM table_name_86 WHERE away_team = "manchester united"
Who was the home team that played against Manchester United?
CREATE TABLE table_name_86 (home_team VARCHAR, away_team VARCHAR)
SELECT total_team_penalties FROM table_18666752_3 WHERE cross_country_penalties = "30.40"
How many total team penalties are there when cross country penalties is 30.40?
CREATE TABLE table_18666752_3 (total_team_penalties VARCHAR, cross_country_penalties VARCHAR)
SELECT engine FROM table_name_94 WHERE driver = "james hunt"
What engine does driver james hunt have?
CREATE TABLE table_name_94 (engine VARCHAR, driver VARCHAR)
SELECT commissioned FROM table_name_29 WHERE operator = "vietnam"
What is the commissioned for Vietnam?
CREATE TABLE table_name_29 (commissioned VARCHAR, operator VARCHAR)
SELECT location_attendance FROM table_name_55 WHERE high_points = "d. mckey (24)" AND score = "l 96-105"
What is the Location Attendance, when High Points is "D. McKey (24)", and when Score is "L 96-105"?
CREATE TABLE table_name_55 (location_attendance VARCHAR, high_points VARCHAR, score VARCHAR)
SELECT iata FROM table_name_3 WHERE city = "budapest"
Name the IATA with a City of budapest?
CREATE TABLE table_name_3 (iata VARCHAR, city VARCHAR)
SELECT COUNT(losses) FROM table_name_59 WHERE ties < 0
What is the number of losses when the ties are lesser than 0?
CREATE TABLE table_name_59 (losses VARCHAR, ties INTEGER)
SELECT mainly_for FROM table_name_61 WHERE year < 1962 AND displacement = "997 cc"
What is the Mainly For with a displacement of 997 cc in a year before 1962?
CREATE TABLE table_name_61 (mainly_for VARCHAR, year VARCHAR, displacement VARCHAR)
SELECT score FROM table_name_10 WHERE date = "may 11, 1997"
what is the score on may 11, 1997?
CREATE TABLE table_name_10 (score VARCHAR, date VARCHAR)
SELECT home_team FROM table_name_90 WHERE away_team = "collingwood"
Who was the home team that played against Collingwood?
CREATE TABLE table_name_90 (home_team VARCHAR, away_team VARCHAR)
SELECT event_2 FROM table_17257687_1 WHERE event_1 = "Atlasphere"
What was event 2 when event 1 was Atlasphere?
CREATE TABLE table_17257687_1 (event_2 VARCHAR, event_1 VARCHAR)
SELECT COUNT(DISTINCT product_type_code) FROM products
Find the number of different product types.
CREATE TABLE products (product_type_code VARCHAR)
SELECT round FROM table_name_2 WHERE result = "2-1" AND venue = "a"
What round has 2-1 as the result, and A as the venue?
CREATE TABLE table_name_2 (round VARCHAR, result VARCHAR, venue VARCHAR)
SELECT result FROM table_name_4 WHERE date = "4 september 2013"
What is the Result with a Date with 4 september 2013?
CREATE TABLE table_name_4 (result VARCHAR, date VARCHAR)
SELECT score FROM table_name_39 WHERE week > 13 AND visitor = "montreal alouettes"
WHAT IS THE SCORE WITH A WEEK LARGER THAN 13, AND VISITOR TEAM MONTREAL ALOUETTES?
CREATE TABLE table_name_39 (score VARCHAR, week VARCHAR, visitor VARCHAR)
SELECT opponent FROM table_name_30 WHERE result = "w 23-7"
What was the Opponent in the game with a Result of W 23-7?
CREATE TABLE table_name_30 (opponent VARCHAR, result VARCHAR)
SELECT MIN(total_points) FROM table_name_8 WHERE draw < 4 AND artist = "karine trécy"
What is the lowest total points Karine Trécy has with less than 4 draws?
CREATE TABLE table_name_8 (total_points INTEGER, draw VARCHAR, artist VARCHAR)
SELECT date FROM table_name_82 WHERE attendance = "16,212"
On what Date was the Attendance 16,212?
CREATE TABLE table_name_82 (date VARCHAR, attendance VARCHAR)
SELECT sn_sb___percentage_ FROM table_name_4 WHERE liquid_at__°c_ = "258"
What is the Sn/Sb percentage that is liquid at 258 degrees C?
CREATE TABLE table_name_4 (sn_sb___percentage_ VARCHAR, liquid_at__°c_ VARCHAR)
SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY SUM(degrees) DESC LIMIT 1
Which year has the most degrees conferred?
CREATE TABLE degrees (YEAR VARCHAR, degrees INTEGER)
SELECT MAX(top_25) FROM table_name_15 WHERE wins < 0
What is the highest number of top-25s for events with 0 wins?
CREATE TABLE table_name_15 (top_25 INTEGER, wins INTEGER)
SELECT written_by FROM table_22570439_1 WHERE directed_by = "Mark Worthington"
Who is the written by when mark worthington is the director?
CREATE TABLE table_22570439_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT player FROM table_1965650_2 WHERE pick__number = 30
Name the player for pick number for 30
CREATE TABLE table_1965650_2 (player VARCHAR, pick__number VARCHAR)
SELECT years_at_club FROM table_name_63 WHERE goals = 2 AND date_of_birth = "23 july 1910"
What is the years at the club of the player with 2 goals and was born on 23 July 1910?
CREATE TABLE table_name_63 (years_at_club VARCHAR, goals VARCHAR, date_of_birth VARCHAR)
SELECT category FROM table_name_86 WHERE nominated_for = "tween academy: class of 2012"
What's the category for the tween academy: class of 2012 nomination?
CREATE TABLE table_name_86 (category VARCHAR, nominated_for VARCHAR)
SELECT area_km_2 FROM table_name_73 WHERE official_name = "saint-jacques"
Saint-Jacques has what as the area km 2?
CREATE TABLE table_name_73 (area_km_2 VARCHAR, official_name VARCHAR)
SELECT country FROM table_name_46 WHERE place = "t4" AND score = 66 - 71 - 72 = 209
What country is in T4 place having a score of 66-71-72=209?
CREATE TABLE table_name_46 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT p_max___bar__ FROM table_26967904_1 WHERE p1_diameter__mm_ = "9.70"
What is the p max (bar) of the pistol with a P1 diameter of 9.70 mm?
CREATE TABLE table_26967904_1 (p_max___bar__ VARCHAR, p1_diameter__mm_ VARCHAR)
SELECT COUNT(points) FROM table_name_21 WHERE record = "25–10–11" AND january > 28
How many Points have a Record of 25–10–11, and a January larger than 28?
CREATE TABLE table_name_21 (points VARCHAR, record VARCHAR, january VARCHAR)
SELECT occupation FROM table_2933761_1 WHERE name = "Joan Leaven"
What is Joan Leaven's occupation?
CREATE TABLE table_2933761_1 (occupation VARCHAR, name VARCHAR)
SELECT StuID FROM Student WHERE Sex = 'M'
Show student ids for all male students.
CREATE TABLE Student (StuID VARCHAR, Sex VARCHAR)
SELECT AVG(rank) FROM table_name_78 WHERE country = "costa rica" AND losing_semi__finalist > 1
Which Rank has a Country of costa rica, and a Losing Semi- finalist larger than 1?
CREATE TABLE table_name_78 (rank INTEGER, country VARCHAR, losing_semi__finalist VARCHAR)
SELECT AVG(round) FROM table_name_2 WHERE school = "east carolina"
What's the average round number for East Carolina?
CREATE TABLE table_name_2 (round INTEGER, school VARCHAR)
SELECT opponent FROM table_11406866_2 WHERE tv = "ABC" AND game_site = "Tampa Stadium"
who is the opponent where tv is abc and game site is tampa stadium
CREATE TABLE table_11406866_2 (opponent VARCHAR, tv VARCHAR, game_site VARCHAR)
SELECT COUNT(channel) FROM table_11323532_2 WHERE country_region = "New Zealand"
What was the number of channels in New Zealand?
CREATE TABLE table_11323532_2 (channel VARCHAR, country_region VARCHAR)
SELECT party FROM table_name_91 WHERE district = "south carolina 2"
What party has the South Carolina 2 district?
CREATE TABLE table_name_91 (party VARCHAR, district VARCHAR)
SELECT COUNT(incumbent) FROM table_1342359_23 WHERE first_elected = 1922
How many winners were there in the race of 1922
CREATE TABLE table_1342359_23 (incumbent VARCHAR, first_elected VARCHAR)
SELECT prior_position FROM table_name_1 WHERE name = "wyman webb"
What was the prior position held by Wyman Webb?
CREATE TABLE table_name_1 (prior_position VARCHAR, name VARCHAR)
SELECT industrial_use__m_3__p_yr__in__percentage_ FROM table_name_32 WHERE total_freshwater_withdrawal__km_3__yr_ < 82.75 AND agricultural_use__m_3__p_yr__in__percentage_ = "1363(92%)"
What is Industrial Use (m 3 /p/yr)(in %), when Total Freshwater Withdrawal (km 3/yr) is less than 82.75, and when Agricultural Use (m 3 /p/yr)(in %) is 1363(92%)?
CREATE TABLE table_name_32 (industrial_use__m_3__p_yr__in__percentage_ VARCHAR, total_freshwater_withdrawal__km_3__yr_ VARCHAR, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR)
SELECT to_par_[a_] FROM table_name_35 WHERE course = "st andrews" AND year < 1888
What's the To par of St Andrews before the year 1888?
CREATE TABLE table_name_35 (to_par_ VARCHAR, a_ VARCHAR, course VARCHAR, year VARCHAR)
SELECT SUM(attendance) FROM table_name_64 WHERE result = "w 12-3" AND week > 12
Tell me the sum of attendane for a result of w 12-3 and week more than 12
CREATE TABLE table_name_64 (attendance INTEGER, result VARCHAR, week VARCHAR)
SELECT loser FROM table_name_55 WHERE sport = "football" AND winner = "england b" AND date > 1992
Who was the loser playing football with england b as a winner after 1992?
CREATE TABLE table_name_55 (loser VARCHAR, date VARCHAR, sport VARCHAR, winner VARCHAR)
SELECT score FROM table_name_23 WHERE player = "jim furyk"
What was Jim Furyk's score?
CREATE TABLE table_name_23 (score VARCHAR, player VARCHAR)
SELECT MAX(round) FROM table_name_80 WHERE location = "las vegas, nevada, united states" AND event = "wec 25"
What is the highest round in the Wec 25 match in Las Vegas, Nevada, United States?
CREATE TABLE table_name_80 (round INTEGER, location VARCHAR, event VARCHAR)
SELECT height FROM table_14038363_1 WHERE player = "Maksim Botin"
How tall is Maksim Botin?
CREATE TABLE table_14038363_1 (height VARCHAR, player VARCHAR)
SELECT date FROM table_name_80 WHERE attendance = "29,000"
Attendance of 29,000 occurred on what date?
CREATE TABLE table_name_80 (date VARCHAR, attendance VARCHAR)
SELECT round FROM table_name_37 WHERE against < 1
What round has less than 1 against?
CREATE TABLE table_name_37 (round VARCHAR, against INTEGER)
SELECT COUNT(attendance) FROM table_name_99 WHERE points > 40 AND home = "detroit"
What is the total number of attendence has points greater than 40, and detroit as the home?
CREATE TABLE table_name_99 (attendance VARCHAR, points VARCHAR, home VARCHAR)
SELECT class FROM table_name_84 WHERE quantity < 10 AND number_s_ = "names"
Which class has fewer than 10 and number(s) names?
CREATE TABLE table_name_84 (class VARCHAR, quantity VARCHAR, number_s_ VARCHAR)
SELECT home_team FROM table_name_14 WHERE away_team = "collingwood"
Which home team played the away team of collingwood?
CREATE TABLE table_name_14 (home_team VARCHAR, away_team VARCHAR)
SELECT AVG(played) FROM table_name_40 WHERE against < 15
What average played has an against less than 15?
CREATE TABLE table_name_40 (played INTEGER, against INTEGER)
SELECT date FROM table_name_66 WHERE race_name = "i dessau autobahnspinne"
On what date was the I Dessau Autobahnspinne race?
CREATE TABLE table_name_66 (date VARCHAR, race_name VARCHAR)
SELECT weight FROM table_name_43 WHERE name = "tatyana gubina"
What is Tatyana Gubina's Weight?
CREATE TABLE table_name_43 (weight VARCHAR, name VARCHAR)
SELECT MIN(prize__) AS £k_ FROM table_name_87 WHERE race = "irish derby"
What is the lowest Prize amount for the Irish Derby Race?
CREATE TABLE table_name_87 (prize__ INTEGER, race VARCHAR)
SELECT date_of_issue FROM table_name_56 WHERE theme = "bobsleigh"
When did the Theme of bobsleigh release?
CREATE TABLE table_name_56 (date_of_issue VARCHAR, theme VARCHAR)
SELECT points FROM table_17675675_2 WHERE won = "9"
What is the total amount of points when the given won is 9?
CREATE TABLE table_17675675_2 (points VARCHAR, won VARCHAR)
SELECT attendance FROM table_name_64 WHERE date = "december 20, 1964"
How many people attended the game on December 20, 1964?
CREATE TABLE table_name_64 (attendance VARCHAR, date VARCHAR)
SELECT COUNT(year) FROM table_name_36 WHERE first = "antonio pompa-baldi italy"
How many years is Antonio Pompa-Baldi Italy first?
CREATE TABLE table_name_36 (year VARCHAR, first VARCHAR)
SELECT opponents_in_final FROM table_name_15 WHERE outcome = "winner" AND surface = "hard" AND date = "april 17, 1994"
Which Opponents in Final has an Outcome of winner, and a Surface of hard, and a Date of april 17, 1994?
CREATE TABLE table_name_15 (opponents_in_final VARCHAR, date VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT player FROM table_10015132_7 WHERE school_club_team = "Georgia"
which player is from georgia
CREATE TABLE table_10015132_7 (player VARCHAR, school_club_team VARCHAR)
SELECT quantity_preserved FROM table_name_68 WHERE manufacturer = "alco -schenectady" AND class = "b-3"
How many did alco -schenectady preserve of class b-3?
CREATE TABLE table_name_68 (quantity_preserved VARCHAR, manufacturer VARCHAR, class VARCHAR)
SELECT MIN(touchdowns) FROM table_name_79 WHERE receptions = 51 AND games_started < 16
With games started smaller than 16 plus receptions of 51, what is the smallest amount of touchdowns listed?
CREATE TABLE table_name_79 (touchdowns INTEGER, receptions VARCHAR, games_started VARCHAR)
SELECT venue FROM table_21350934_2 WHERE score = "34-18"
What is the venue that has 34-18 as the score?
CREATE TABLE table_21350934_2 (venue VARCHAR, score VARCHAR)
SELECT first_elected FROM table_1342233_6 WHERE incumbent = "Clair Engle"
what's the first elected with incumbent being clair engle
CREATE TABLE table_1342233_6 (first_elected VARCHAR, incumbent VARCHAR)
SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY COUNT(*) LIMIT 1
what is id of students who registered some courses but the least number of courses in these students?
CREATE TABLE student_course_registrations (student_id VARCHAR)
SELECT date FROM table_name_27 WHERE winning_driver = "antonio ascari"
What date was the winning driver Antonio Ascari?
CREATE TABLE table_name_27 (date VARCHAR, winning_driver VARCHAR)
SELECT SUM(year) FROM table_name_16 WHERE wins < 0
Wins smaller than 0 had what sum of year?
CREATE TABLE table_name_16 (year INTEGER, wins INTEGER)
SELECT episodes FROM table_11240028_1 WHERE portrayed_by = "Vanessa Ferlito"
How many episodes did actress Vanessa Ferlito appear in?
CREATE TABLE table_11240028_1 (episodes VARCHAR, portrayed_by VARCHAR)
SELECT date FROM table_1140103_6 WHERE _number = 13
What date is listed at place 13
CREATE TABLE table_1140103_6 (date VARCHAR, _number VARCHAR)
SELECT set_2 FROM table_name_81 WHERE total = "52:44"
What is Set 2, when Total is "52:44"?
CREATE TABLE table_name_81 (set_2 VARCHAR, total VARCHAR)
SELECT name FROM table_name_60 WHERE round = 8
Who is the person from round 8?
CREATE TABLE table_name_60 (name VARCHAR, round VARCHAR)
SELECT place FROM table_name_46 WHERE country = "australia"
What is the place of Australia?
CREATE TABLE table_name_46 (place VARCHAR, country VARCHAR)
SELECT COUNT(founded) FROM table_name_77 WHERE venue = "champion window field"
How many different dates are there for founded teams for the venue of champion window field?
CREATE TABLE table_name_77 (founded VARCHAR, venue VARCHAR)
SELECT written_by FROM table_18734298_1 WHERE no_in_series = 14
Who wrote the series number 14?
CREATE TABLE table_18734298_1 (written_by VARCHAR, no_in_series VARCHAR)