context
stringlengths
27
489
question
stringlengths
12
244
answer
stringlengths
18
557
CREATE TABLE table_name_72 (score VARCHAR, result VARCHAR, date VARCHAR)
On 9/3/97, what was the score that resulted in a w?
SELECT score FROM table_name_72 WHERE result = "w" AND date = "9/3/97"
CREATE TABLE table_name_35 (name VARCHAR, roll VARCHAR)
Who has a roll value of 422?
SELECT name FROM table_name_35 WHERE roll = 422
CREATE TABLE table_name_44 (area VARCHAR, decile VARCHAR)
In what area is the decile value 10?
SELECT area FROM table_name_44 WHERE decile = 10
CREATE TABLE table_name_46 (decile INTEGER, roll VARCHAR, area VARCHAR)
What is the highest decile value with a roll greater than 301 in Hauraki?
SELECT MAX(decile) FROM table_name_46 WHERE roll > 301 AND area = "hauraki"
CREATE TABLE table_name_85 (points_classification VARCHAR, trofeo_fast_team VARCHAR, stage VARCHAR)
Which Points classification has a Trofeo Fast Team of metauro mobili-pinarello, and a Stage of 6?
SELECT points_classification FROM table_name_85 WHERE trofeo_fast_team = "metauro mobili-pinarello" AND stage = "6"
CREATE TABLE table_name_19 (stage VARCHAR, winner VARCHAR)
Which stage has a Winner of lucien van impe?
SELECT stage FROM table_name_19 WHERE winner = "lucien van impe"
CREATE TABLE table_name_10 (trofeo_fast_team VARCHAR, winner VARCHAR)
Which Trofeo Fast Team has a Winner of alessandro paganessi?
SELECT trofeo_fast_team FROM table_name_10 WHERE winner = "alessandro paganessi"
CREATE TABLE table_name_95 (general_classification VARCHAR, stage VARCHAR)
Which General classification has a Stage of 7?
SELECT general_classification FROM table_name_95 WHERE stage = "7"
CREATE TABLE table_name_78 (winner VARCHAR, trofeo_fast_team VARCHAR, general_classification VARCHAR)
Which Winner has a Trofeo Fast Team of metauro mobili-pinarello, and a General classification of giuseppe saronni?
SELECT winner FROM table_name_78 WHERE trofeo_fast_team = "metauro mobili-pinarello" AND general_classification = "giuseppe saronni"
CREATE TABLE table_name_67 (report VARCHAR, circuit VARCHAR)
What's the report for the mosport park circuit?
SELECT report FROM table_name_67 WHERE circuit = "mosport park"
CREATE TABLE table_name_13 (pole_position VARCHAR, circuit VARCHAR)
Who has the pole position for the nürburgring circuit?
SELECT pole_position FROM table_name_13 WHERE circuit = "nürburgring"
CREATE TABLE table_name_77 (date VARCHAR, winning_driver VARCHAR)
When was pedro rodríguez the winning driver?
SELECT date FROM table_name_77 WHERE winning_driver = "pedro rodríguez"
CREATE TABLE table_name_92 (report VARCHAR, race VARCHAR)
What's the report for the mexican grand prix?
SELECT report FROM table_name_92 WHERE race = "mexican grand prix"
CREATE TABLE table_name_6 (time_retired VARCHAR, driver VARCHAR)
What is nigel mansell's time/retired?
SELECT time_retired FROM table_name_6 WHERE driver = "nigel mansell"
CREATE TABLE table_name_20 (away_team VARCHAR, venue VARCHAR)
What team was the away team at Junction Oval?
SELECT away_team FROM table_name_20 WHERE venue = "junction oval"
CREATE TABLE table_name_26 (home VARCHAR, visitor VARCHAR)
What is the home team when the visiting team is the Mavericks?
SELECT home FROM table_name_26 WHERE visitor = "mavericks"
CREATE TABLE table_name_13 (year INTEGER, mintage INTEGER)
What was the average year for a coin that had a mintage smaller than 10,000?
SELECT AVG(year) FROM table_name_13 WHERE mintage < 10 OFFSET 000
CREATE TABLE table_name_96 (atsushi_aoki VARCHAR, black_tiger_v VARCHAR)
What is he Atsushi Aoki when the Black Tiger V is ibushi (16:35)?
SELECT atsushi_aoki FROM table_name_96 WHERE black_tiger_v = "ibushi (16:35)"
CREATE TABLE table_name_94 (akira VARCHAR, tiger_mask_iv VARCHAR)
What is the Akira when Tiger Mask IV is Akira (10:05)?
SELECT akira FROM table_name_94 WHERE tiger_mask_iv = "akira (10:05)"
CREATE TABLE table_name_58 (akira VARCHAR, milano_collection_at VARCHAR)
What is the corresponding Akira when Milano Collection A.T is Milano (10:29)?
SELECT akira FROM table_name_58 WHERE milano_collection_at = "milano (10:29)"
CREATE TABLE table_name_49 (block_a VARCHAR, prince_devitt VARCHAR)
What is Block A when Prince Devitt is Devitt (9:53)?
SELECT block_a FROM table_name_49 WHERE prince_devitt = "devitt (9:53)"
CREATE TABLE table_name_99 (akira VARCHAR, prince_devitt VARCHAR)
What is the Akira when Prince Devitt is Devitt (7:20)?
SELECT akira FROM table_name_99 WHERE prince_devitt = "devitt (7:20)"
CREATE TABLE table_name_49 (prince_devitt VARCHAR, block_a VARCHAR)
What is the Prince Devitt when Block A is Yamato?
SELECT prince_devitt FROM table_name_49 WHERE block_a = "yamato"
CREATE TABLE table_name_80 (league_one_second_division VARCHAR, club VARCHAR)
I want the league one/second division for club of millwall
SELECT league_one_second_division FROM table_name_80 WHERE club = "millwall"
CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR)
What was the score of the home team when they played carlton?
SELECT home_team AS score FROM table_name_77 WHERE away_team = "carlton"
CREATE TABLE table_name_94 (away_team VARCHAR, home_team VARCHAR)
How many points did the visiting team score at south melbourne?
SELECT away_team AS score FROM table_name_94 WHERE home_team = "south melbourne"
CREATE TABLE table_name_15 (crowd VARCHAR, away_team VARCHAR)
What is the total Crowd number for the Away team of Hawthorn?
SELECT COUNT(crowd) FROM table_name_15 WHERE away_team = "hawthorn"
CREATE TABLE table_name_72 (home_team VARCHAR, away_team VARCHAR)
What did the team score when playing against home in geelong?
SELECT home_team AS score FROM table_name_72 WHERE away_team = "geelong"
CREATE TABLE table_name_79 (crowd VARCHAR, home_team VARCHAR)
How many people watched when st kilda played at home?
SELECT crowd FROM table_name_79 WHERE home_team = "st kilda"
CREATE TABLE table_name_69 (away_team VARCHAR, crowd INTEGER)
Who was the away team when the crowd was larger than 41,451?
SELECT away_team FROM table_name_69 WHERE crowd > 41 OFFSET 451
CREATE TABLE table_name_82 (home_team VARCHAR, venue VARCHAR)
Who was the home team when the venue was Junction Oval?
SELECT home_team FROM table_name_82 WHERE venue = "junction oval"
CREATE TABLE table_name_82 (time VARCHAR, attendance VARCHAR)
I want to know the time which has attendance of 66,772
SELECT time FROM table_name_82 WHERE attendance = "66,772"
CREATE TABLE table_name_86 (opponent VARCHAR, attendance VARCHAR)
Name the opponent that has attendance of 76,965
SELECT opponent FROM table_name_86 WHERE attendance = "76,965"
CREATE TABLE table_name_89 (week VARCHAR, attendance VARCHAR)
Tell me the week that has an attendance of 78,301
SELECT week FROM table_name_89 WHERE attendance = "78,301"
CREATE TABLE table_name_61 (opponent VARCHAR, week VARCHAR)
I want to know the opponent that ha a week of 3
SELECT opponent FROM table_name_61 WHERE week = "3"
CREATE TABLE table_name_50 (attendance INTEGER, date VARCHAR)
How many were in attendance on 14 April 2007?
SELECT MIN(attendance) FROM table_name_50 WHERE date = "14 april 2007"
CREATE TABLE table_name_11 (pick VARCHAR, position VARCHAR, player VARCHAR)
What is catcher Josh Donaldson's pick number?
SELECT pick FROM table_name_11 WHERE position = "catcher" AND player = "josh donaldson"
CREATE TABLE table_name_25 (player VARCHAR, college VARCHAR)
Which players plays at Akron College?
SELECT player FROM table_name_25 WHERE college = "akron"
CREATE TABLE table_name_93 (college VARCHAR, player VARCHAR)
Which college does the player jon hameister-ries play for?
SELECT college FROM table_name_93 WHERE player = "jon hameister-ries"
CREATE TABLE table_name_14 (nationality VARCHAR, pick VARCHAR, college_high_school_club VARCHAR)
What is the nationality of the player with a pick larger than 21 from the College of the Sequoias?
SELECT nationality FROM table_name_14 WHERE pick > 21 AND college_high_school_club = "college of the sequoias"
CREATE TABLE table_name_52 (result VARCHAR, goals VARCHAR)
I want the result for goals which has goals of deacon 6/6
SELECT result FROM table_name_52 WHERE goals = "deacon 6/6"
CREATE TABLE table_name_28 (competition VARCHAR, venue VARCHAR)
Which competition was at wilderspool?
SELECT competition FROM table_name_28 WHERE venue = "wilderspool"
CREATE TABLE table_name_58 (venue VARCHAR, score VARCHAR)
Tell me the venue for score of 82-0
SELECT venue FROM table_name_58 WHERE score = "82-0"
CREATE TABLE table_name_68 (date VARCHAR, venue VARCHAR)
I want the date with the venue of mcalpine stadium
SELECT date FROM table_name_68 WHERE venue = "mcalpine stadium"
CREATE TABLE table_name_54 (goals VARCHAR, score VARCHAR)
Tell me the goals for score of 38-28
SELECT goals FROM table_name_54 WHERE score = "38-28"
CREATE TABLE table_name_96 (grid INTEGER, laps VARCHAR, points VARCHAR, driver VARCHAR)
Tell me the least Grid with points more than 11 and drivers being sébastien bourdais with laps less than 67
SELECT MIN(grid) FROM table_name_96 WHERE points > 11 AND driver = "sébastien bourdais" AND laps < 67
CREATE TABLE table_name_9 (laps INTEGER, grid VARCHAR, driver VARCHAR)
Name the most laps for grid more than 9 and the driver being jan heylen
SELECT MAX(laps) FROM table_name_9 WHERE grid > 9 AND driver = "jan heylen"
CREATE TABLE table_name_69 (grid VARCHAR, laps VARCHAR)
What is the grid when the laps were 24?
SELECT COUNT(grid) FROM table_name_69 WHERE laps = 24
CREATE TABLE table_name_77 (constructor VARCHAR, driver VARCHAR)
Who constructed Chris Amon's car?
SELECT constructor FROM table_name_77 WHERE driver = "chris amon"
CREATE TABLE table_name_76 (grid INTEGER, driver VARCHAR, laps VARCHAR)
What was Jack Brabham's highest grid when his laps were more than 90?
SELECT MAX(grid) FROM table_name_76 WHERE driver = "jack brabham" AND laps > 90
CREATE TABLE table_name_31 (laps INTEGER, driver VARCHAR, grid VARCHAR)
What was CHris Amon's highest lap when his grid was 4?
SELECT MAX(laps) FROM table_name_31 WHERE driver = "chris amon" AND grid < 4
CREATE TABLE table_name_50 (venue VARCHAR, away_team VARCHAR)
Where did Hawthorn have their away match against North Melbourne?
SELECT venue FROM table_name_50 WHERE away_team = "hawthorn"
CREATE TABLE table_name_17 (home_team VARCHAR, away_team VARCHAR)
What was the home team score at Richmond's away game against Footscray?
SELECT home_team AS score FROM table_name_17 WHERE away_team = "richmond"
CREATE TABLE table_name_28 (crowd VARCHAR, home_team VARCHAR)
What is the size of the crowd for the home team of Footscray?
SELECT crowd FROM table_name_28 WHERE home_team = "footscray"
CREATE TABLE table_name_2 (time_retired VARCHAR, laps VARCHAR)
What is the Time/Retired for the car going 42 Laps?
SELECT time_retired FROM table_name_2 WHERE laps = 42
CREATE TABLE table_name_22 (laps VARCHAR, grid VARCHAR, driver VARCHAR)
How many laps for alexander wurz with a grid under 12?
SELECT COUNT(laps) FROM table_name_22 WHERE grid < 12 AND driver = "alexander wurz"
CREATE TABLE table_name_17 (evening_gown INTEGER, swimsuit VARCHAR, average VARCHAR, interview VARCHAR)
What is the lowest evening gown score a contestant with an average less than 8.23, an interview score of 8.11, and a swimsuit larger than 7.84 has?
SELECT MIN(evening_gown) FROM table_name_17 WHERE average < 8.23 AND interview = 8.11 AND swimsuit > 7.84
CREATE TABLE table_name_36 (interview VARCHAR, state VARCHAR, average VARCHAR)
What is the total interview score a contestant from Indiana with an average smaller than 8.3 has?
SELECT COUNT(interview) FROM table_name_36 WHERE state = "indiana" AND average < 8.3
CREATE TABLE table_name_69 (swimsuit INTEGER, state VARCHAR, evening_gown VARCHAR, average VARCHAR, interview VARCHAR)
What is the highest swimsuit a contestant from Kansas with an average larger than 8.48, an interview higher than 8.58, and an evening gown higher than 8.82 has?
SELECT MAX(swimsuit) FROM table_name_69 WHERE average > 8.48 AND interview > 8.58 AND evening_gown > 8.82 AND state = "kansas"
CREATE TABLE table_name_29 (interview INTEGER, evening_gown VARCHAR, state VARCHAR)
What is the average interview score of a contestant from Louisiana with an evening gown smaller than 8.82?
SELECT AVG(interview) FROM table_name_29 WHERE evening_gown < 8.82 AND state = "louisiana"
CREATE TABLE table_name_4 (prefix VARCHAR, chemical_class VARCHAR)
What prefix has Haloalkane as the chemical class?
SELECT prefix FROM table_name_4 WHERE chemical_class = "haloalkane"
CREATE TABLE table_name_36 (example VARCHAR, formula VARCHAR)
Which example has rx as the formula?
SELECT example FROM table_name_36 WHERE formula = "rx"
CREATE TABLE table_name_90 (chemical_class VARCHAR, example VARCHAR)
Which chemical class uses the example Chloroethane (ethyl chloride)?
SELECT chemical_class FROM table_name_90 WHERE example = "chloroethane (ethyl chloride)"
CREATE TABLE table_name_78 (prefix VARCHAR, group VARCHAR)
What prefix has Bromo as the group?
SELECT prefix FROM table_name_78 WHERE group = "bromo"
CREATE TABLE table_name_33 (chemical_class VARCHAR, formula VARCHAR)
What is the chemical class for ri?
SELECT chemical_class FROM table_name_33 WHERE formula = "ri"
CREATE TABLE table_name_73 (prefix VARCHAR, chemical_class VARCHAR)
What prefix has chemical class Iodoalkane?
SELECT prefix FROM table_name_73 WHERE chemical_class = "iodoalkane"
CREATE TABLE table_name_89 (rank INTEGER, player VARCHAR, wins VARCHAR)
What is the rank of Lee Trevino, who had less than 27 wins?
SELECT SUM(rank) FROM table_name_89 WHERE player = "lee trevino" AND wins < 27
CREATE TABLE table_name_14 (original_air_date VARCHAR, season_no VARCHAR, series_no VARCHAR, production_code VARCHAR)
What date did the show with a series larger than 40, production code smaller than 213, and a season number larger than 11 air?
SELECT original_air_date FROM table_name_14 WHERE series_no > 40 AND production_code < 213 AND season_no > 11
CREATE TABLE table_name_27 (written_by VARCHAR, season_no VARCHAR, series_no VARCHAR)
Who wrote the series number 49 with a season larger than 4?
SELECT written_by FROM table_name_27 WHERE season_no > 4 AND series_no = 49
CREATE TABLE table_name_90 (nett_gross VARCHAR, year VARCHAR)
What is the total count of net gross in 1957?
SELECT COUNT(nett_gross) FROM table_name_90 WHERE year = 1957
CREATE TABLE table_name_88 (end_term INTEGER, title VARCHAR)
What is the total End term with a Title of prince regent of bavaria?
SELECT SUM(end_term) FROM table_name_88 WHERE title = "prince regent of bavaria"
CREATE TABLE table_name_39 (end_term INTEGER, start_term VARCHAR, name VARCHAR)
What is the smallest End term with a Start term of 1913, and a Name of ludwig iii?
SELECT MIN(end_term) FROM table_name_39 WHERE start_term = 1913 AND name = "ludwig iii"
CREATE TABLE table_name_78 (title VARCHAR, end_term VARCHAR)
Which Title has an 1825 end term?
SELECT title FROM table_name_78 WHERE end_term = 1825
CREATE TABLE table_name_58 (start_term INTEGER, end_term VARCHAR)
What is the average Start term with a 1912 end term?
SELECT AVG(start_term) FROM table_name_58 WHERE end_term = 1912
CREATE TABLE table_name_74 (date VARCHAR, high_rebounds VARCHAR)
What date were the high rebounds Evans (14)?
SELECT date FROM table_name_74 WHERE high_rebounds = "evans (14)"
CREATE TABLE table_name_11 (game INTEGER, high_rebounds VARCHAR, high_assists VARCHAR)
Which game has a high rebound of Evans (7) and a high assist of Evans, Ollie (3)?
SELECT MAX(game) FROM table_name_11 WHERE high_rebounds = "evans (7)" AND high_assists = "evans, ollie (3)"
CREATE TABLE table_name_85 (fa_cup_goals INTEGER, total_apps__sub_ VARCHAR, total_goals VARCHAR)
What division has the highest FA Cup Goals, but a Total Goal score less than 5, and a Total Apps of 52?
SELECT MAX(fa_cup_goals) FROM table_name_85 WHERE total_apps__sub_ = "52" AND total_goals < 5
CREATE TABLE table_name_93 (fl_cup_apps__sub_ INTEGER, fl_cup_goals VARCHAR, other_apps VARCHAR)
What is the average FL Cup Apps, with a FL Cup Goals greater than 0, but a Other Apps less than 0?
SELECT AVG(fl_cup_apps__sub_) FROM table_name_93 WHERE fl_cup_goals > 0 AND other_apps < 0
CREATE TABLE table_name_28 (fl_cup_goals VARCHAR, fa_cup_goals VARCHAR, division VARCHAR, other_apps VARCHAR)
What is Division One's total number of FL Cup Goals, with an Other Apps greater than 3, and a FA Cup Goals greater than 0?
SELECT COUNT(fl_cup_goals) FROM table_name_28 WHERE division = "one" AND other_apps > 3 AND fa_cup_goals > 0
CREATE TABLE table_name_76 (other_apps INTEGER, division VARCHAR, league_goals VARCHAR)
What is Division One's average Other Apps, with a League Goal less than 1?
SELECT AVG(other_apps) FROM table_name_76 WHERE division = "one" AND league_goals < 1
CREATE TABLE table_name_14 (away_team VARCHAR, venue VARCHAR)
Who plays at Victoria Park?
SELECT away_team FROM table_name_14 WHERE venue = "victoria park"
CREATE TABLE table_name_76 (score VARCHAR, game VARCHAR, opponent VARCHAR)
What is the score against the indians after game 2?
SELECT score FROM table_name_76 WHERE game > 2 AND opponent = "indians"
CREATE TABLE table_name_96 (grid INTEGER, driver VARCHAR)
What is the average grid for piers courage?
SELECT AVG(grid) FROM table_name_96 WHERE driver = "piers courage"
CREATE TABLE table_name_66 (driver VARCHAR, laps VARCHAR)
Who drove 53 laps?
SELECT driver FROM table_name_66 WHERE laps = 53
CREATE TABLE table_name_72 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, driver VARCHAR)
What is the lap total for george eaton, with a grid under 17 retiring due to gearbox?
SELECT SUM(laps) FROM table_name_72 WHERE time_retired = "gearbox" AND driver = "george eaton" AND grid < 17
CREATE TABLE table_name_13 (laps INTEGER, driver VARCHAR, grid VARCHAR)
How many laps for denny hulme with under 4 on the grid?
SELECT SUM(laps) FROM table_name_13 WHERE driver = "denny hulme" AND grid < 4
CREATE TABLE table_name_39 (home_team VARCHAR, crowd INTEGER)
What was the score of the home team when there were more than 5,500 people in the crowd?
SELECT home_team AS score FROM table_name_39 WHERE crowd > 5 OFFSET 500
CREATE TABLE table_name_33 (crowd INTEGER, home_team VARCHAR)
What is the sum of Crowd when Essendon was the home team?
SELECT SUM(crowd) FROM table_name_33 WHERE home_team = "essendon"
CREATE TABLE table_name_8 (home_team VARCHAR, away_team VARCHAR)
What was the home team score when North Melbourne was the away team?
SELECT home_team AS score FROM table_name_8 WHERE away_team = "north melbourne"
CREATE TABLE table_name_29 (us_hot_100 VARCHAR, year VARCHAR, album VARCHAR)
What is the U.S. Hot 100 chart number of the single off of the 2002 album west coast bad boyz, vol. 3: poppin' collars?
SELECT us_hot_100 FROM table_name_29 WHERE year = 2002 AND album = "west coast bad boyz, vol. 3: poppin' collars"
CREATE TABLE table_name_98 (us_rap VARCHAR, album VARCHAR)
What is the U.S. Rap chart number of the album west coast bad boyz, vol. 3: poppin' collars?
SELECT us_rap FROM table_name_98 WHERE album = "west coast bad boyz, vol. 3: poppin' collars"
CREATE TABLE table_name_46 (round INTEGER, team VARCHAR, pick VARCHAR)
What is the top round for the baltimore bullets with a Pick larger than 6?
SELECT MAX(round) FROM table_name_46 WHERE team = "baltimore bullets" AND pick > 6
CREATE TABLE table_name_84 (away_team VARCHAR, venue VARCHAR)
What team was the away team when they played at lake oval?
SELECT away_team AS score FROM table_name_84 WHERE venue = "lake oval"
CREATE TABLE table_name_3 (crowd VARCHAR, home_team VARCHAR)
How many people were in the crowd when North Melbourne was the home team?
SELECT crowd FROM table_name_3 WHERE home_team = "north melbourne"
CREATE TABLE table_name_76 (avg INTEGER, player VARCHAR, yards VARCHAR)
What is Craig Whelihan's average when his yards are smaller than 0?
SELECT SUM(avg) FROM table_name_76 WHERE player = "craig whelihan" AND yards < 0
CREATE TABLE table_name_83 (avg INTEGER, yards VARCHAR)
Which largest average had 1229 yards?
SELECT MAX(avg) FROM table_name_83 WHERE yards = 1229
CREATE TABLE table_name_8 (constructor VARCHAR, circuit VARCHAR)
What is the constructor where the circuit is Silverstone?
SELECT constructor FROM table_name_8 WHERE circuit = "silverstone"
CREATE TABLE table_name_42 (winning_driver VARCHAR, race_name VARCHAR)
Who is the Winning Driver in the race viii gran premio di siracusa?
SELECT winning_driver FROM table_name_42 WHERE race_name = "viii gran premio di siracusa"
CREATE TABLE table_name_91 (date VARCHAR, winning_driver VARCHAR, race_name VARCHAR)
What is the date that the winner driver is Stirling Moss in the race named vi grand prix de caen?
SELECT date FROM table_name_91 WHERE winning_driver = "stirling moss" AND race_name = "vi grand prix de caen"
CREATE TABLE table_name_55 (state VARCHAR, location VARCHAR)
Which state is the location of 39.1178°n 106.4454°w in?
SELECT state FROM table_name_55 WHERE location = "39.1178°n 106.4454°w"