answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT akira FROM table_name_99 WHERE prince_devitt = "devitt (7:20)"
CREATE TABLE table_name_99 (akira VARCHAR, prince_devitt VARCHAR)
What is the Akira when Prince Devitt is Devitt (7:20)?
SELECT prince_devitt FROM table_name_49 WHERE block_a = "yamato"
CREATE TABLE table_name_49 (prince_devitt VARCHAR, block_a VARCHAR)
What is the Prince Devitt when Block A is Yamato?
SELECT league_one_second_division FROM table_name_80 WHERE club = "millwall"
CREATE TABLE table_name_80 (league_one_second_division VARCHAR, club VARCHAR)
I want the league one/second division for club of millwall
SELECT home_team AS score FROM table_name_77 WHERE away_team = "carlton"
CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR)
What was the score of the home team when they played carlton?
SELECT away_team AS score FROM table_name_94 WHERE home_team = "south melbourne"
CREATE TABLE table_name_94 (away_team VARCHAR, home_team VARCHAR)
How many points did the visiting team score at south melbourne?
SELECT COUNT(crowd) FROM table_name_15 WHERE away_team = "hawthorn"
CREATE TABLE table_name_15 (crowd VARCHAR, away_team VARCHAR)
What is the total Crowd number for the Away team of Hawthorn?
SELECT home_team AS score FROM table_name_72 WHERE away_team = "geelong"
CREATE TABLE table_name_72 (home_team VARCHAR, away_team VARCHAR)
What did the team score when playing against home in geelong?
SELECT crowd FROM table_name_79 WHERE home_team = "st kilda"
CREATE TABLE table_name_79 (crowd VARCHAR, home_team VARCHAR)
How many people watched when st kilda played at home?
SELECT away_team FROM table_name_69 WHERE crowd > 41 OFFSET 451
CREATE TABLE table_name_69 (away_team VARCHAR, crowd INTEGER)
Who was the away team when the crowd was larger than 41,451?
SELECT home_team FROM table_name_82 WHERE venue = "junction oval"
CREATE TABLE table_name_82 (home_team VARCHAR, venue VARCHAR)
Who was the home team when the venue was Junction Oval?
SELECT time FROM table_name_82 WHERE attendance = "66,772"
CREATE TABLE table_name_82 (time VARCHAR, attendance VARCHAR)
I want to know the time which has attendance of 66,772
SELECT opponent FROM table_name_86 WHERE attendance = "76,965"
CREATE TABLE table_name_86 (opponent VARCHAR, attendance VARCHAR)
Name the opponent that has attendance of 76,965
SELECT week FROM table_name_89 WHERE attendance = "78,301"
CREATE TABLE table_name_89 (week VARCHAR, attendance VARCHAR)
Tell me the week that has an attendance of 78,301
SELECT opponent FROM table_name_61 WHERE week = "3"
CREATE TABLE table_name_61 (opponent VARCHAR, week VARCHAR)
I want to know the opponent that ha a week of 3
SELECT MIN(attendance) FROM table_name_50 WHERE date = "14 april 2007"
CREATE TABLE table_name_50 (attendance INTEGER, date VARCHAR)
How many were in attendance on 14 April 2007?
SELECT pick FROM table_name_11 WHERE position = "catcher" AND player = "josh donaldson"
CREATE TABLE table_name_11 (pick VARCHAR, position VARCHAR, player VARCHAR)
What is catcher Josh Donaldson's pick number?
SELECT player FROM table_name_25 WHERE college = "akron"
CREATE TABLE table_name_25 (player VARCHAR, college VARCHAR)
Which players plays at Akron College?
SELECT college FROM table_name_93 WHERE player = "jon hameister-ries"
CREATE TABLE table_name_93 (college VARCHAR, player VARCHAR)
Which college does the player jon hameister-ries play for?
SELECT nationality FROM table_name_14 WHERE pick > 21 AND college_high_school_club = "college of the sequoias"
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 result FROM table_name_52 WHERE goals = "deacon 6/6"
CREATE TABLE table_name_52 (result VARCHAR, goals VARCHAR)
I want the result for goals which has goals of deacon 6/6
SELECT competition FROM table_name_28 WHERE venue = "wilderspool"
CREATE TABLE table_name_28 (competition VARCHAR, venue VARCHAR)
Which competition was at wilderspool?
SELECT venue FROM table_name_58 WHERE score = "82-0"
CREATE TABLE table_name_58 (venue VARCHAR, score VARCHAR)
Tell me the venue for score of 82-0
SELECT date FROM table_name_68 WHERE venue = "mcalpine stadium"
CREATE TABLE table_name_68 (date VARCHAR, venue VARCHAR)
I want the date with the venue of mcalpine stadium
SELECT goals FROM table_name_54 WHERE score = "38-28"
CREATE TABLE table_name_54 (goals VARCHAR, score VARCHAR)
Tell me the goals for score of 38-28
SELECT MIN(grid) FROM table_name_96 WHERE points > 11 AND driver = "sébastien bourdais" AND laps < 67
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 MAX(laps) FROM table_name_9 WHERE grid > 9 AND driver = "jan heylen"
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 COUNT(grid) FROM table_name_69 WHERE laps = 24
CREATE TABLE table_name_69 (grid VARCHAR, laps VARCHAR)
What is the grid when the laps were 24?
SELECT constructor FROM table_name_77 WHERE driver = "chris amon"
CREATE TABLE table_name_77 (constructor VARCHAR, driver VARCHAR)
Who constructed Chris Amon's car?
SELECT MAX(grid) FROM table_name_76 WHERE driver = "jack brabham" AND laps > 90
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(laps) FROM table_name_31 WHERE driver = "chris amon" AND grid < 4
CREATE TABLE table_name_31 (laps INTEGER, driver VARCHAR, grid VARCHAR)
What was CHris Amon's highest lap when his grid was 4?
SELECT venue FROM table_name_50 WHERE away_team = "hawthorn"
CREATE TABLE table_name_50 (venue VARCHAR, away_team VARCHAR)
Where did Hawthorn have their away match against North Melbourne?
SELECT home_team AS score FROM table_name_17 WHERE away_team = "richmond"
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 crowd FROM table_name_28 WHERE home_team = "footscray"
CREATE TABLE table_name_28 (crowd VARCHAR, home_team VARCHAR)
What is the size of the crowd for the home team of Footscray?
SELECT time_retired FROM table_name_2 WHERE laps = 42
CREATE TABLE table_name_2 (time_retired VARCHAR, laps VARCHAR)
What is the Time/Retired for the car going 42 Laps?
SELECT COUNT(laps) FROM table_name_22 WHERE grid < 12 AND driver = "alexander wurz"
CREATE TABLE table_name_22 (laps VARCHAR, grid VARCHAR, driver VARCHAR)
How many laps for alexander wurz with a grid under 12?
SELECT MIN(evening_gown) FROM table_name_17 WHERE average < 8.23 AND interview = 8.11 AND swimsuit > 7.84
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 COUNT(interview) FROM table_name_36 WHERE state = "indiana" AND average < 8.3
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 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_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 AVG(interview) FROM table_name_29 WHERE evening_gown < 8.82 AND state = "louisiana"
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 prefix FROM table_name_4 WHERE chemical_class = "haloalkane"
CREATE TABLE table_name_4 (prefix VARCHAR, chemical_class VARCHAR)
What prefix has Haloalkane as the chemical class?
SELECT example FROM table_name_36 WHERE formula = "rx"
CREATE TABLE table_name_36 (example VARCHAR, formula VARCHAR)
Which example has rx as the formula?
SELECT chemical_class FROM table_name_90 WHERE example = "chloroethane (ethyl chloride)"
CREATE TABLE table_name_90 (chemical_class VARCHAR, example VARCHAR)
Which chemical class uses the example Chloroethane (ethyl chloride)?
SELECT prefix FROM table_name_78 WHERE group = "bromo"
CREATE TABLE table_name_78 (prefix VARCHAR, group VARCHAR)
What prefix has Bromo as the group?
SELECT chemical_class FROM table_name_33 WHERE formula = "ri"
CREATE TABLE table_name_33 (chemical_class VARCHAR, formula VARCHAR)
What is the chemical class for ri?
SELECT prefix FROM table_name_73 WHERE chemical_class = "iodoalkane"
CREATE TABLE table_name_73 (prefix VARCHAR, chemical_class VARCHAR)
What prefix has chemical class Iodoalkane?
SELECT SUM(rank) FROM table_name_89 WHERE player = "lee trevino" AND wins < 27
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 original_air_date FROM table_name_14 WHERE series_no > 40 AND production_code < 213 AND season_no > 11
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 written_by FROM table_name_27 WHERE season_no > 4 AND series_no = 49
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 COUNT(nett_gross) FROM table_name_90 WHERE year = 1957
CREATE TABLE table_name_90 (nett_gross VARCHAR, year VARCHAR)
What is the total count of net gross in 1957?
SELECT SUM(end_term) FROM table_name_88 WHERE title = "prince regent of bavaria"
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 MIN(end_term) FROM table_name_39 WHERE start_term = 1913 AND name = "ludwig iii"
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 title FROM table_name_78 WHERE end_term = 1825
CREATE TABLE table_name_78 (title VARCHAR, end_term VARCHAR)
Which Title has an 1825 end term?
SELECT AVG(start_term) FROM table_name_58 WHERE end_term = 1912
CREATE TABLE table_name_58 (start_term INTEGER, end_term VARCHAR)
What is the average Start term with a 1912 end term?
SELECT date FROM table_name_74 WHERE high_rebounds = "evans (14)"
CREATE TABLE table_name_74 (date VARCHAR, high_rebounds VARCHAR)
What date were the high rebounds Evans (14)?
SELECT MAX(game) FROM table_name_11 WHERE high_rebounds = "evans (7)" AND high_assists = "evans, ollie (3)"
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(fa_cup_goals) FROM table_name_85 WHERE total_apps__sub_ = "52" AND total_goals < 5
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 AVG(fl_cup_apps__sub_) FROM table_name_93 WHERE fl_cup_goals > 0 AND other_apps < 0
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 COUNT(fl_cup_goals) FROM table_name_28 WHERE division = "one" AND other_apps > 3 AND fa_cup_goals > 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 AVG(other_apps) FROM table_name_76 WHERE division = "one" AND league_goals < 1
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 away_team FROM table_name_14 WHERE venue = "victoria park"
CREATE TABLE table_name_14 (away_team VARCHAR, venue VARCHAR)
Who plays at Victoria Park?
SELECT score FROM table_name_76 WHERE game > 2 AND opponent = "indians"
CREATE TABLE table_name_76 (score VARCHAR, game VARCHAR, opponent VARCHAR)
What is the score against the indians after game 2?
SELECT AVG(grid) FROM table_name_96 WHERE driver = "piers courage"
CREATE TABLE table_name_96 (grid INTEGER, driver VARCHAR)
What is the average grid for piers courage?
SELECT driver FROM table_name_66 WHERE laps = 53
CREATE TABLE table_name_66 (driver VARCHAR, laps VARCHAR)
Who drove 53 laps?
SELECT SUM(laps) FROM table_name_72 WHERE time_retired = "gearbox" AND driver = "george eaton" AND grid < 17
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_13 WHERE driver = "denny hulme" AND grid < 4
CREATE TABLE table_name_13 (laps INTEGER, driver VARCHAR, grid VARCHAR)
How many laps for denny hulme with under 4 on the grid?
SELECT home_team AS score FROM table_name_39 WHERE crowd > 5 OFFSET 500
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 SUM(crowd) FROM table_name_33 WHERE home_team = "essendon"
CREATE TABLE table_name_33 (crowd INTEGER, home_team VARCHAR)
What is the sum of Crowd when Essendon was the home team?
SELECT home_team AS score FROM table_name_8 WHERE away_team = "north melbourne"
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 us_hot_100 FROM table_name_29 WHERE year = 2002 AND album = "west coast bad boyz, vol. 3: poppin' collars"
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_rap FROM table_name_98 WHERE 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 MAX(round) FROM table_name_46 WHERE team = "baltimore bullets" AND pick > 6
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 away_team AS score FROM table_name_84 WHERE venue = "lake oval"
CREATE TABLE table_name_84 (away_team VARCHAR, venue VARCHAR)
What team was the away team when they played at lake oval?
SELECT crowd FROM table_name_3 WHERE home_team = "north melbourne"
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 SUM(avg) FROM table_name_76 WHERE player = "craig whelihan" AND yards < 0
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 MAX(avg) FROM table_name_83 WHERE yards = 1229
CREATE TABLE table_name_83 (avg INTEGER, yards VARCHAR)
Which largest average had 1229 yards?
SELECT constructor FROM table_name_8 WHERE circuit = "silverstone"
CREATE TABLE table_name_8 (constructor VARCHAR, circuit VARCHAR)
What is the constructor where the circuit is Silverstone?
SELECT winning_driver FROM table_name_42 WHERE race_name = "viii gran premio di siracusa"
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 date FROM table_name_91 WHERE winning_driver = "stirling moss" AND race_name = "vi grand prix de caen"
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 state FROM table_name_55 WHERE location = "39.1178°n 106.4454°w"
CREATE TABLE table_name_55 (state VARCHAR, location VARCHAR)
Which state is the location of 39.1178°n 106.4454°w in?
SELECT MAX(rank) FROM table_name_12 WHERE mountain_peak = "mount elbert"
CREATE TABLE table_name_12 (rank INTEGER, mountain_peak VARCHAR)
What is the highest rank Mount Elbert has?
SELECT mountain_range FROM table_name_3 WHERE location = "37.3934°n 104.9201°w"
CREATE TABLE table_name_3 (mountain_range VARCHAR, location VARCHAR)
What is the mountain range at 37.3934°n 104.9201°w?
SELECT location FROM table_name_77 WHERE mountain_peak = "blanca peak"
CREATE TABLE table_name_77 (location VARCHAR, mountain_peak VARCHAR)
What is the location of Blanca Peak?
SELECT state FROM table_name_4 WHERE mountain_peak = "west spanish peak"
CREATE TABLE table_name_4 (state VARCHAR, mountain_peak VARCHAR)
Which state is West Spanish Peak in?
SELECT mountain_range FROM table_name_59 WHERE rank = 5
CREATE TABLE table_name_59 (mountain_range VARCHAR, rank VARCHAR)
What is the ranked 5 mountain range?
SELECT district_residence FROM table_name_4 WHERE name = "choice b. randell"
CREATE TABLE table_name_4 (district_residence VARCHAR, name VARCHAR)
Name of choice b. Randell is the name of which District Residence?
SELECT name FROM table_name_32 WHERE took_office = "march 4, 1903"
CREATE TABLE table_name_32 (name VARCHAR, took_office VARCHAR)
Who has a Took Office of march 4, 1903?
SELECT took_office FROM table_name_30 WHERE party = "democrat" AND name = "john hancock"
CREATE TABLE table_name_30 (took_office VARCHAR, party VARCHAR, name VARCHAR)
Which Took Office that has a Party of democrat, under the name of John Hancock
SELECT name FROM table_name_67 WHERE took_office = "march 4, 1875"
CREATE TABLE table_name_67 (name VARCHAR, took_office VARCHAR)
Who has Took Office of march 4, 1875?
SELECT record FROM table_name_89 WHERE date = "june 22"
CREATE TABLE table_name_89 (record VARCHAR, date VARCHAR)
Name the record on june 22
SELECT COUNT(attendance) FROM table_name_50 WHERE visitor = "bulls"
CREATE TABLE table_name_50 (attendance VARCHAR, visitor VARCHAR)
Name the total number in attendance for when the bulls visited
SELECT MAX(swimsuit) FROM table_name_1 WHERE interview < 8.46
CREATE TABLE table_name_1 (swimsuit INTEGER, interview INTEGER)
Name the most swimsuit for interview less than 8.46
SELECT MAX(evening_gown) FROM table_name_38 WHERE average < 8.793 AND swimsuit < 8.12 AND interview = 8.51
CREATE TABLE table_name_38 (evening_gown INTEGER, interview VARCHAR, average VARCHAR, swimsuit VARCHAR)
Name the most evening gown for average less than 8.793 with interview of 8.51 and swimsuit less than 8.12
SELECT AVG(starts) FROM table_name_86 WHERE wins < 0
CREATE TABLE table_name_86 (starts INTEGER, wins INTEGER)
On average, how many Starts have Wins that are smaller than 0?
SELECT MAX(top_10s) FROM table_name_53 WHERE starts = 14
CREATE TABLE table_name_53 (top_10s INTEGER, starts VARCHAR)
Which of the top-10s has a starts value of 14?
SELECT SUM(starts) FROM table_name_52 WHERE tournament = "hsbc champions" AND wins < 0
CREATE TABLE table_name_52 (starts INTEGER, tournament VARCHAR, wins VARCHAR)
In the tournament of HSBC Champions, what was the sum of the Starts with Wins lower than 0?
SELECT trainer FROM table_name_93 WHERE odds > 36 AND post = 11
CREATE TABLE table_name_93 (trainer VARCHAR, odds VARCHAR, post VARCHAR)
Who trained the horse on post 11 with over 36 odds?
SELECT MIN(post) FROM table_name_31 WHERE jockey = "calvin borel"
CREATE TABLE table_name_31 (post INTEGER, jockey VARCHAR)
What is the lowest post number for calvin borel?
SELECT horse FROM table_name_43 WHERE jockey = "jara"
CREATE TABLE table_name_43 (horse VARCHAR, jockey VARCHAR)
What horse for jara?
SELECT date FROM table_name_90 WHERE leading_scorer = "lebron james (25)"
CREATE TABLE table_name_90 (date VARCHAR, leading_scorer VARCHAR)
What is the date when Lebron James (25) was the lead scorer?
SELECT SUM(total) FROM table_name_29 WHERE gold < 0
CREATE TABLE table_name_29 (total INTEGER, gold INTEGER)
Which Total has a Gold smaller than 0?