answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT home_team AS score FROM table_name_64 WHERE venue = "windy hill"
CREATE TABLE table_name_64 (home_team VARCHAR, venue VARCHAR)
What is the Home Team Score at Windy Hill?
SELECT date FROM table_name_98 WHERE away_team = "carlton"
CREATE TABLE table_name_98 (date VARCHAR, away_team VARCHAR)
On what Date is Carlton the Away Team?
SELECT competition FROM table_name_68 WHERE result = "3-1"
CREATE TABLE table_name_68 (competition VARCHAR, result VARCHAR)
Which competition with a result of 3-1?
SELECT MIN(ligue_1_titles) FROM table_name_80 WHERE position_in_2012_13 = "010 12th" AND number_of_seasons_in_ligue_1 > 56
CREATE TABLE table_name_80 (ligue_1_titles INTEGER, position_in_2012_13 VARCHAR, number_of_seasons_in_ligue_1 VARCHAR)
I want to know the lowest ligue 1 titles for position in 2012-13 of 010 12th and number of seasons in ligue 1 more than 56
SELECT position_in_2012_13 FROM table_name_69 WHERE number_of_seasons_in_ligue_1 = 30 AND ligue_1_titles = 1
CREATE TABLE table_name_69 (position_in_2012_13 VARCHAR, number_of_seasons_in_ligue_1 VARCHAR, ligue_1_titles VARCHAR)
Tell me the position in 2012-13 and number of seasons in leigue 1 of 30 with ligue 1 titles of 1
SELECT nba_draft FROM table_name_4 WHERE hometown = "kingston, pa"
CREATE TABLE table_name_4 (nba_draft VARCHAR, hometown VARCHAR)
What is the NBA draft result of the player from Kingston, PA?
SELECT nba_draft FROM table_name_67 WHERE height = "6-7"
CREATE TABLE table_name_67 (nba_draft VARCHAR, height VARCHAR)
What is the NBA draft result of the player with a height of 6-7?
SELECT nba_draft FROM table_name_56 WHERE player = "dwayne washington"
CREATE TABLE table_name_56 (nba_draft VARCHAR, player VARCHAR)
What is the NBA draft result of Dwayne Washington?
SELECT nba_draft FROM table_name_61 WHERE school = "dunbar high school"
CREATE TABLE table_name_61 (nba_draft VARCHAR, school VARCHAR)
What is the NBA draft result of the player from Dunbar High School?
SELECT school FROM table_name_35 WHERE college = "michigan"
CREATE TABLE table_name_35 (school VARCHAR, college VARCHAR)
What is the school of the player from the College of Michigan?
SELECT away_team AS score FROM table_name_89 WHERE venue = "mcg"
CREATE TABLE table_name_89 (away_team VARCHAR, venue VARCHAR)
What was the away team score for the game played at MCG?
SELECT home_team AS score FROM table_name_27 WHERE venue = "victoria park"
CREATE TABLE table_name_27 (home_team VARCHAR, venue VARCHAR)
What was the home team's score at Victoria Park?
SELECT score FROM table_name_96 WHERE venue = "shay stadium"
CREATE TABLE table_name_96 (score VARCHAR, venue VARCHAR)
What is the score at shay stadium?
SELECT result FROM table_name_50 WHERE venue = "valley parade" AND date = "4/7/02"
CREATE TABLE table_name_50 (result VARCHAR, venue VARCHAR, date VARCHAR)
What is the result at valley parade on 4/7/02?
SELECT competition FROM table_name_3 WHERE goals = "deacon 8/8" AND score = "32-14"
CREATE TABLE table_name_3 (competition VARCHAR, goals VARCHAR, score VARCHAR)
Which competition has a Goal of deacon 8/8 and a Score of 32-14?
SELECT MAX(grid) FROM table_name_78 WHERE driver = "martin brundle"
CREATE TABLE table_name_78 (grid INTEGER, driver VARCHAR)
What is the top grid that is driven by martin brundle?
SELECT time_retired FROM table_name_88 WHERE grid = 13
CREATE TABLE table_name_88 (time_retired VARCHAR, grid VARCHAR)
What is the grid 13 time score?
SELECT MIN(grid) FROM table_name_90 WHERE driver = "thierry boutsen" AND laps < 44
CREATE TABLE table_name_90 (grid INTEGER, driver VARCHAR, laps VARCHAR)
Which grid is lower for thierry boutsen which laps less than 44?
SELECT player FROM table_name_9 WHERE height = "6-2"
CREATE TABLE table_name_9 (player VARCHAR, height VARCHAR)
Which player is 6-2?
SELECT laid_down FROM table_name_55 WHERE ship = "hyperion"
CREATE TABLE table_name_55 (laid_down VARCHAR, ship VARCHAR)
What is the Laid down for the Hyperion ship?
SELECT ship FROM table_name_48 WHERE pennant_number = "h55"
CREATE TABLE table_name_48 (ship VARCHAR, pennant_number VARCHAR)
What is the name of the ship that had a Pennant number of h55?
SELECT worldwide_gross FROM table_name_60 WHERE movie = "jab tak hai jaan"
CREATE TABLE table_name_60 (worldwide_gross VARCHAR, movie VARCHAR)
How did the jab tak hai jaan movie gross worldwide?
SELECT AVG(year) FROM table_name_29 WHERE director = "ayan mukerji"
CREATE TABLE table_name_29 (year INTEGER, director VARCHAR)
What is average year for ayan mukerji?
SELECT home_team AS score FROM table_name_46 WHERE home_team = "melbourne"
CREATE TABLE table_name_46 (home_team VARCHAR)
When melbourne was the home team what was their score?
SELECT date FROM table_name_25 WHERE time = "20:10"
CREATE TABLE table_name_25 (date VARCHAR, time VARCHAR)
What date had a time of 20:10?
SELECT episode_title FROM table_name_1 WHERE original_airdate = "march 31, 2008"
CREATE TABLE table_name_1 (episode_title VARCHAR, original_airdate VARCHAR)
What is the title of the episode that originally aired on March 31, 2008?
SELECT episode_no FROM table_name_23 WHERE original_airdate = "february 4, 2008"
CREATE TABLE table_name_23 (episode_no VARCHAR, original_airdate VARCHAR)
What is the episode number of the episode that originally aired on February 4, 2008?
SELECT away_team AS score FROM table_name_22 WHERE venue = "kardinia park"
CREATE TABLE table_name_22 (away_team VARCHAR, venue VARCHAR)
at kardinia park, what was the away team's score?
SELECT MAX(crowd) FROM table_name_74 WHERE venue = "kardinia park"
CREATE TABLE table_name_74 (crowd INTEGER, venue VARCHAR)
what was the largest attendance at kardinia park?
SELECT home_team FROM table_name_62 WHERE venue = "western oval"
CREATE TABLE table_name_62 (home_team VARCHAR, venue VARCHAR)
Who was the Home team at the Western Oval location?
SELECT AVG(laps) FROM table_name_64 WHERE driver = "patrick tambay"
CREATE TABLE table_name_64 (laps INTEGER, driver VARCHAR)
What's the average of the amount of laps for the driver patrick tambay?
SELECT MAX(laps) FROM table_name_63 WHERE grid > 6 AND constructor = "renault" AND time_retired = "ignition"
CREATE TABLE table_name_63 (laps INTEGER, time_retired VARCHAR, grid VARCHAR, constructor VARCHAR)
When renault is the constructor, the grid is over 6, and the time was labeled ignition, what's the largest amount of laps on record?
SELECT world_ranking__1_ FROM table_name_54 WHERE ranking_la__2_ = "5th" AND year_of_publication = "2008"
CREATE TABLE table_name_54 (world_ranking__1_ VARCHAR, ranking_la__2_ VARCHAR, year_of_publication VARCHAR)
In 2008, what was the world ranking that ranked 5th in L.A.?
SELECT COUNT(played) FROM table_name_24 WHERE goals_for > 34 AND goals_against > 63
CREATE TABLE table_name_24 (played VARCHAR, goals_for VARCHAR, goals_against VARCHAR)
what is the total number of played when the goals for is more than 34 and goals against is more than 63?
SELECT COUNT(goal_difference) FROM table_name_51 WHERE club = "cf extremadura" AND played < 38
CREATE TABLE table_name_51 (goal_difference VARCHAR, club VARCHAR, played VARCHAR)
what is the total number of goal different when the club is cf extremadura and the played is less than 38?
SELECT AVG(points) FROM table_name_86 WHERE goal_difference < 17 AND club = "getafe cf" AND goals_for > 30
CREATE TABLE table_name_86 (points INTEGER, goals_for VARCHAR, goal_difference VARCHAR, club VARCHAR)
what is the average points when the goal difference is less than 17, the club is getafe cf and the goals for is more than 30?
SELECT SUM(goals_for) FROM table_name_50 WHERE position < 8 AND losses < 10 AND goals_against < 35 AND played < 38
CREATE TABLE table_name_50 (goals_for INTEGER, played VARCHAR, goals_against VARCHAR, position VARCHAR, losses VARCHAR)
what is the sum of goals for when the position is less than 8, the losses is less than 10 the goals against is less than 35 and played is less than 38?
SELECT MAX(gold) FROM table_name_18 WHERE rank = "12" AND nation = "vietnam"
CREATE TABLE table_name_18 (gold INTEGER, rank VARCHAR, nation VARCHAR)
what is the highest gold when the rank is 12 for the nation vietnam?
SELECT total FROM table_name_88 WHERE rank = "4"
CREATE TABLE table_name_88 (total VARCHAR, rank VARCHAR)
what is the total when the rank is 4?
SELECT nation FROM table_name_77 WHERE gold = 1 AND bronze > 0
CREATE TABLE table_name_77 (nation VARCHAR, gold VARCHAR, bronze VARCHAR)
what is the nation when the gold is 1 and bronze is larger than 0?
SELECT entrant FROM table_name_72 WHERE engine = "ferrari 038 3.5 v12"
CREATE TABLE table_name_72 (entrant VARCHAR, engine VARCHAR)
Which entrant has Ferrari 038 3.5 v12 engine?
SELECT founded FROM table_name_69 WHERE institution = "lynn university"
CREATE TABLE table_name_69 (founded VARCHAR, institution VARCHAR)
What is the date that the Institution of Lynn University was founded on?
SELECT loss FROM table_name_60 WHERE score = "5-1"
CREATE TABLE table_name_60 (loss VARCHAR, score VARCHAR)
What's the Loss listed with a Score of 5-1?
SELECT date FROM table_name_76 WHERE record = "3-5"
CREATE TABLE table_name_76 (date VARCHAR, record VARCHAR)
Which Date has a record of 3-5?
SELECT date FROM table_name_86 WHERE record = "6-9"
CREATE TABLE table_name_86 (date VARCHAR, record VARCHAR)
Which Date has a Record of 6-9?
SELECT loss FROM table_name_31 WHERE opponent = "california angels" AND attendance = "57,762"
CREATE TABLE table_name_31 (loss VARCHAR, opponent VARCHAR, attendance VARCHAR)
What's the Loss listed for the Opponent of California Angels and has an Attendance of 57,762?
SELECT date FROM table_name_73 WHERE attendance = "9,535"
CREATE TABLE table_name_73 (date VARCHAR, attendance VARCHAR)
Which Date has an Attendance of 9,535?
SELECT score FROM table_name_69 WHERE date = "april 23"
CREATE TABLE table_name_69 (score VARCHAR, date VARCHAR)
What is the Score for the Date of April 23?
SELECT AVG(crowd) FROM table_name_22 WHERE venue = "victoria park"
CREATE TABLE table_name_22 (crowd INTEGER, venue VARCHAR)
What was the average crowd size at Victoria Park?
SELECT MIN(crowd) FROM table_name_40 WHERE away_team = "north melbourne"
CREATE TABLE table_name_40 (crowd INTEGER, away_team VARCHAR)
What is the crowd size of the match featuring North Melbourne as the away team?
SELECT team FROM table_name_96 WHERE high_rebounds = "smith (10)"
CREATE TABLE table_name_96 (team VARCHAR, high_rebounds VARCHAR)
Name the team which has high rebounds of smith (10)
SELECT home_team FROM table_name_36 WHERE away_team = "melbourne"
CREATE TABLE table_name_36 (home_team VARCHAR, away_team VARCHAR)
What team was the home team against Melbourne?
SELECT home_team AS score FROM table_name_30 WHERE away_team = "carlton"
CREATE TABLE table_name_30 (home_team VARCHAR, away_team VARCHAR)
What did the home team score when Carlton played as the Away team?
SELECT SUM(crowd) FROM table_name_58 WHERE home_team = "south melbourne"
CREATE TABLE table_name_58 (crowd INTEGER, home_team VARCHAR)
How many people attended the home game for South Melbourne?
SELECT home_team AS score FROM table_name_99 WHERE venue = "vfl park"
CREATE TABLE table_name_99 (home_team VARCHAR, venue VARCHAR)
What was the home team score at VFL Park?
SELECT COUNT(grid) FROM table_name_98 WHERE time_retired = "gearbox" AND laps < 3
CREATE TABLE table_name_98 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR)
How many grids have a Time/Retired of gearbox, and Laps smaller than 3?
SELECT AVG(laps) FROM table_name_70 WHERE driver = "masten gregory"
CREATE TABLE table_name_70 (laps INTEGER, driver VARCHAR)
What is masten gregory's average lap?
SELECT time_retired FROM table_name_21 WHERE grid = 2
CREATE TABLE table_name_21 (time_retired VARCHAR, grid VARCHAR)
Which Time/Retired has a Grid of 2?
SELECT tyre FROM table_name_51 WHERE rounds = "14-15" AND engine = "ford cosworth dfv 3.0 v8" AND chassis = "m23"
CREATE TABLE table_name_51 (tyre VARCHAR, chassis VARCHAR, rounds VARCHAR, engine VARCHAR)
When the engine Ford Cosworth DFV 3.0 v8 has a chassis of m23 and in rounds 14-15, what is its Tyre?
SELECT driver FROM table_name_7 WHERE chassis = "ts16"
CREATE TABLE table_name_7 (driver VARCHAR, chassis VARCHAR)
Which driver uses the ts16 chassis?
SELECT home FROM table_name_95 WHERE date = "april 20"
CREATE TABLE table_name_95 (home VARCHAR, date VARCHAR)
What is the home team of the game on April 20?
SELECT series FROM table_name_73 WHERE visitor = "vancouver" AND date = "april 16"
CREATE TABLE table_name_73 (series VARCHAR, visitor VARCHAR, date VARCHAR)
What is the series score of the game with Vancouver as the visiting team on April 16?
SELECT series FROM table_name_55 WHERE date = "april 16"
CREATE TABLE table_name_55 (series VARCHAR, date VARCHAR)
What is the series score of the game on April 16?
SELECT away_team AS score FROM table_name_51 WHERE date = "27 april 1974" AND venue = "mcg"
CREATE TABLE table_name_51 (away_team VARCHAR, date VARCHAR, venue VARCHAR)
Tell me the away team score for 27 april 1974 and veue of mcg
SELECT away_team FROM table_name_74 WHERE home_team = "richmond"
CREATE TABLE table_name_74 (away_team VARCHAR, home_team VARCHAR)
I want to see the away team the has a home team of richmond
SELECT venue FROM table_name_42 WHERE stage = "group g" AND date = "mar 8, 1998"
CREATE TABLE table_name_42 (venue VARCHAR, stage VARCHAR, date VARCHAR)
What venue did group g play at on Mar 8, 1998?
SELECT stage FROM table_name_34 WHERE venue = "romania"
CREATE TABLE table_name_34 (stage VARCHAR, venue VARCHAR)
Which stage was being played in Romania?
SELECT result FROM table_name_85 WHERE competition = "1999 fifa world cup qualification (uefa)" AND date = "nov 23, 1997"
CREATE TABLE table_name_85 (result VARCHAR, competition VARCHAR, date VARCHAR)
What was the score of the 1999 fifa world cup qualification (uefa) on Nov 23, 1997?
SELECT competition FROM table_name_79 WHERE date = "nov 23, 2006"
CREATE TABLE table_name_79 (competition VARCHAR, date VARCHAR)
What was being played on Nov 23, 2006?
SELECT MIN(crowd) FROM table_name_28 WHERE venue = "windy hill"
CREATE TABLE table_name_28 (crowd INTEGER, venue VARCHAR)
What is the lowest crowd at windy hill?
SELECT MIN(crowd) FROM table_name_79 WHERE home_team = "richmond"
CREATE TABLE table_name_79 (crowd INTEGER, home_team VARCHAR)
What is the lowest crowd with home team richmond?
SELECT COUNT(bronze) FROM table_name_55 WHERE total > 12 AND gold < 5
CREATE TABLE table_name_55 (bronze VARCHAR, total VARCHAR, gold VARCHAR)
When there are more than 12 total medals and less than 5 gold medals, how many bronze medals are there?
SELECT MIN(bronze) FROM table_name_61 WHERE nation = "united states" AND total > 25
CREATE TABLE table_name_61 (bronze INTEGER, nation VARCHAR, total VARCHAR)
When the united states won a total number of medals larger than 25, what was the lowest amount of Bronze medals won?
SELECT MAX(bronze) FROM table_name_28 WHERE total < 17 AND nation = "poland" AND gold > 1
CREATE TABLE table_name_28 (bronze INTEGER, gold VARCHAR, total VARCHAR, nation VARCHAR)
When the nation of poland had less than 17 medals but more than 1 gold medal, what's the Highest number of bronze medals?
SELECT COUNT(total) FROM table_name_43 WHERE silver > 0 AND gold < 5 AND bronze < 0
CREATE TABLE table_name_43 (total VARCHAR, bronze VARCHAR, silver VARCHAR, gold VARCHAR)
If there are more than 0 Silver medals, less than 5 gold medals, and no bronze medals, what was the total number of medals?
SELECT SUM(ngc_number) FROM table_name_28 WHERE declination___j2000__ = "°15′55″" AND apparent_magnitude > 10
CREATE TABLE table_name_28 (ngc_number INTEGER, declination___j2000__ VARCHAR, apparent_magnitude VARCHAR)
What's the total number of NGC that has a Declination ( J2000 ) of °15′55″, and an Apparent magnitude greater than 10?
SELECT object_type FROM table_name_56 WHERE apparent_magnitude > 9.6 AND right_ascension___j2000__ = "17h59m02.0s"
CREATE TABLE table_name_56 (object_type VARCHAR, apparent_magnitude VARCHAR, right_ascension___j2000__ VARCHAR)
Which object has an Apparent magnitude larger than 9.6, and a Right ascension ( J2000 ) of 17h59m02.0s?
SELECT strain FROM table_name_35 WHERE genes = "5,566"
CREATE TABLE table_name_35 (strain VARCHAR, genes VARCHAR)
Which species of bacteria has 5,566 genes?
SELECT strain FROM table_name_24 WHERE species = "thiomicrospira crunogena"
CREATE TABLE table_name_24 (strain VARCHAR, species VARCHAR)
What is the Strain name of Species Thiomicrospira crunogena?
SELECT location FROM table_name_21 WHERE record = "5-3"
CREATE TABLE table_name_21 (location VARCHAR, record VARCHAR)
Name the location of record 5-3
SELECT AVG(rank) FROM table_name_45 WHERE NOT percentage = "56%" AND loss < 4
CREATE TABLE table_name_45 (rank INTEGER, loss VARCHAR, percentage VARCHAR)
What's the rank for a team that has a percentage of 56% and a loss smaller than 4?
SELECT MIN(yards) FROM table_name_3 WHERE long = 34 AND avg < 12.6
CREATE TABLE table_name_3 (yards INTEGER, long VARCHAR, avg VARCHAR)
Name the lowest yards for 34 long and avg less than 12.6
SELECT team FROM table_name_63 WHERE sponsor = "chameleon sunglasses"
CREATE TABLE table_name_63 (team VARCHAR, sponsor VARCHAR)
What team is sponsored by chameleon sunglasses?
SELECT team FROM table_name_8 WHERE make = "buick regal" AND driver = "bobby hillin jr. (r)"
CREATE TABLE table_name_8 (team VARCHAR, make VARCHAR, driver VARCHAR)
What team does bobby hillin jr. (r) drive a buick regal for?
SELECT team FROM table_name_14 WHERE sponsor = "w.h. bolin"
CREATE TABLE table_name_14 (team VARCHAR, sponsor VARCHAR)
What team is sponsored by w.h. bolin?
SELECT driver FROM table_name_82 WHERE sponsor = "w.h. bolin"
CREATE TABLE table_name_82 (driver VARCHAR, sponsor VARCHAR)
Who drives for the sponsor w.h. bolin?
SELECT sponsor FROM table_name_18 WHERE driver = "neil bonnett"
CREATE TABLE table_name_18 (sponsor VARCHAR, driver VARCHAR)
Who sponsors driver neil bonnett?
SELECT channel FROM table_name_82 WHERE description = "public broadcaster"
CREATE TABLE table_name_82 (channel VARCHAR, description VARCHAR)
What channel has a description of the public broadcaster?
SELECT channel FROM table_name_39 WHERE financed_by = "commercials"
CREATE TABLE table_name_39 (channel VARCHAR, financed_by VARCHAR)
What was the channel that was financed by commercials?
SELECT MAX(laps) FROM table_name_10 WHERE constructor = "minardi - fondmetal" AND driver = "marc gené" AND grid > 20
CREATE TABLE table_name_10 (laps INTEGER, grid VARCHAR, constructor VARCHAR, driver VARCHAR)
Which entry has the highest laps of those with constructor Minardi - Fondmetal, driver Marc Gené, and a grid larger than 20?
SELECT SUM(grid) FROM table_name_7 WHERE laps > 66 AND driver = "michael schumacher"
CREATE TABLE table_name_7 (grid INTEGER, laps VARCHAR, driver VARCHAR)
What is the sum of grid values of driver Michael Schumacher with lap counts larger than 66?
SELECT driver FROM table_name_17 WHERE laps = 62
CREATE TABLE table_name_17 (driver VARCHAR, laps VARCHAR)
Which driver has 62 laps?
SELECT MAX(grid) FROM table_name_99 WHERE constructor = "mclaren - mercedes" AND driver = "david coulthard" AND laps < 66
CREATE TABLE table_name_99 (grid INTEGER, laps VARCHAR, constructor VARCHAR, driver VARCHAR)
What is the highest grid value with constructor Mclaren - Mercedes, driver David Coulthard, and has fewer than 66 laps?
SELECT MAX(laps) FROM table_name_99 WHERE grid = 17
CREATE TABLE table_name_99 (laps INTEGER, grid VARCHAR)
What is the highest number of laps for grid 17?
SELECT rounds FROM table_name_8 WHERE driver = "roger williamson"
CREATE TABLE table_name_8 (rounds VARCHAR, driver VARCHAR)
None of the rounds has Roger Williamson as a driver.
SELECT time_retired FROM table_name_60 WHERE driver = "alain prost"
CREATE TABLE table_name_60 (time_retired VARCHAR, driver VARCHAR)
What is the time/retired for alain prost?
SELECT time_retired FROM table_name_30 WHERE grid = 9
CREATE TABLE table_name_30 (time_retired VARCHAR, grid VARCHAR)
What is the time/retired for grid 9?
SELECT driver FROM table_name_65 WHERE time_retired = "suspension"
CREATE TABLE table_name_65 (driver VARCHAR, time_retired VARCHAR)
Who had to retire due to suspension?
SELECT class FROM table_name_40 WHERE sport = "volleyball" AND year = 2000
CREATE TABLE table_name_40 (class VARCHAR, sport VARCHAR, year VARCHAR)
What class is volleyball in 2000?
SELECT record FROM table_name_89 WHERE class = "3a" AND sport = "volleyball"
CREATE TABLE table_name_89 (record VARCHAR, class VARCHAR, sport VARCHAR)
What is the team's record in 3a volleyball?