context
stringlengths
27
489
question
stringlengths
12
244
answer
stringlengths
18
557
CREATE TABLE table_name_77 (airport VARCHAR, iata VARCHAR)
What is the airport when the iata is tbj?
SELECT airport FROM table_name_77 WHERE iata = "tbj"
CREATE TABLE table_name_89 (iata VARCHAR, airport VARCHAR)
what is the iata for malta international airport?
SELECT iata FROM table_name_89 WHERE airport = "malta international airport"
CREATE TABLE table_name_68 (airport VARCHAR, country VARCHAR, icao VARCHAR)
what is the airport for the country tunisia with the icao dtaa?
SELECT airport FROM table_name_68 WHERE country = "tunisia" AND icao = "dtaa"
CREATE TABLE table_name_57 (city VARCHAR, country VARCHAR, iata VARCHAR)
what is the city when the country is libya and the iata is ben?
SELECT city FROM table_name_57 WHERE country = "libya" AND iata = "ben"
CREATE TABLE table_name_1 (country VARCHAR, city VARCHAR)
what is the country when the city is gafsa?
SELECT country FROM table_name_1 WHERE city = "gafsa"
CREATE TABLE table_name_71 (iata VARCHAR, city VARCHAR)
what is the iata when the city is tripoli?
SELECT iata FROM table_name_71 WHERE city = "tripoli"
CREATE TABLE table_name_91 (team_2 VARCHAR)
Who is the 2nd round opponent when Team 2 is Red Star (D1)?
SELECT 2 AS nd_round FROM table_name_91 WHERE team_2 = "red star (d1)"
CREATE TABLE table_name_75 (score VARCHAR, team_2 VARCHAR)
When Team 2 was USL Dunkerque (D2), what was the score
SELECT score FROM table_name_75 WHERE team_2 = "usl dunkerque (d2)"
CREATE TABLE table_name_60 (team_1 VARCHAR, team_2 VARCHAR)
What was the team 1 when Red Star (D1) was team 2?
SELECT team_1 FROM table_name_60 WHERE team_2 = "red star (d1)"
CREATE TABLE table_name_88 (home_team VARCHAR, tie_no VARCHAR)
Which team has home game with tie of 4?
SELECT home_team FROM table_name_88 WHERE tie_no = "4"
CREATE TABLE table_name_38 (score VARCHAR, tie_no VARCHAR)
what is score of a team with tie of 4?
SELECT score FROM table_name_38 WHERE tie_no = "4"
CREATE TABLE table_name_19 (score VARCHAR, attendance VARCHAR)
What is the score of the game with 39,592 attendance?
SELECT score FROM table_name_19 WHERE attendance = "39,592"
CREATE TABLE table_name_65 (attendance VARCHAR, tie_no VARCHAR)
How many attended the game when the score was tie at 4?
SELECT attendance FROM table_name_65 WHERE tie_no = "4"
CREATE TABLE table_name_87 (player VARCHAR, position VARCHAR, round VARCHAR)
Which player was defensive back after round 3?
SELECT player FROM table_name_87 WHERE position = "defensive back" AND round > 3
CREATE TABLE table_name_53 (pick VARCHAR, round VARCHAR, player VARCHAR)
What was the pick for Bill Gramatica after round 2?
SELECT pick FROM table_name_53 WHERE round > 2 AND player = "bill gramatica"
CREATE TABLE table_name_25 (record VARCHAR, date VARCHAR)
What was the record on june 29?
SELECT record FROM table_name_25 WHERE date = "june 29"
CREATE TABLE table_name_36 (high_points VARCHAR, date VARCHAR)
What were the high points on june 20?
SELECT high_points FROM table_name_36 WHERE date = "june 20"
CREATE TABLE table_name_22 (record VARCHAR, location_attendance VARCHAR)
Which Record has a Location/Attendance of palace of auburn hills 8,108?
SELECT record FROM table_name_22 WHERE location_attendance = "palace of auburn hills 8,108"
CREATE TABLE table_name_30 (game INTEGER, record VARCHAR)
Which Game is the lowest one that has a Record of 11-4?
SELECT MIN(game) FROM table_name_30 WHERE record = "11-4"
CREATE TABLE table_name_66 (date VARCHAR, location_attendance VARCHAR)
Which Date has a Location/Attendance of verizon center 7,587?
SELECT date FROM table_name_66 WHERE location_attendance = "verizon center 7,587"
CREATE TABLE table_name_23 (high_rebounds VARCHAR, high_points VARCHAR)
Which High rebounds has a High points of douglas (23)?
SELECT high_rebounds FROM table_name_23 WHERE high_points = "douglas (23)"
CREATE TABLE table_name_62 (score VARCHAR, opponent VARCHAR)
Which Score has an Opponent of seattle?
SELECT score FROM table_name_62 WHERE opponent = "seattle"
CREATE TABLE table_name_58 (record VARCHAR, high_points VARCHAR)
Which Record has a High points of hoffman (16)?
SELECT record FROM table_name_58 WHERE high_points = "hoffman (16)"
CREATE TABLE table_name_51 (round INTEGER, record VARCHAR)
Which round has a record of 5-3 (1)?
SELECT MIN(round) FROM table_name_51 WHERE record = "5-3 (1)"
CREATE TABLE table_name_21 (djurgården_scorers VARCHAR, venue VARCHAR)
Who were the Djurgarden scorers when the venue was Idrottsparken?
SELECT djurgården_scorers FROM table_name_21 WHERE venue = "idrottsparken"
CREATE TABLE table_name_95 (series VARCHAR, team VARCHAR)
what is the series when the team is gunbroker racing?
SELECT series FROM table_name_95 WHERE team = "gunbroker racing"
CREATE TABLE table_name_18 (team VARCHAR, make VARCHAR, year VARCHAR)
what is the team when the make is dodge and the year is after 2008?
SELECT team FROM table_name_18 WHERE make = "dodge" AND year > 2008
CREATE TABLE table_name_88 (make VARCHAR, year VARCHAR)
what is the make for the year 2008?
SELECT make FROM table_name_88 WHERE year = 2008
CREATE TABLE table_name_87 (year INTEGER, driver VARCHAR)
what is the year when the driver was kevin lepage?
SELECT SUM(year) FROM table_name_87 WHERE driver = "kevin lepage"
CREATE TABLE table_name_54 (team VARCHAR, driver VARCHAR, schedule VARCHAR, year VARCHAR)
what is the team when the schedule is limited, year is earlier than 2007 and the driver is jason white?
SELECT team FROM table_name_54 WHERE schedule = "limited" AND year < 2007 AND driver = "jason white"
CREATE TABLE table_name_44 (rank INTEGER, games VARCHAR, points VARCHAR)
Which rank is the lowest with 37 games and more than 613 points?
SELECT MIN(rank) FROM table_name_44 WHERE games = 37 AND points > 613
CREATE TABLE table_name_99 (rank INTEGER, team VARCHAR, games VARCHAR)
What is Grupo Capitol Valladolid's highest rank with more than 34 games?
SELECT MAX(rank) FROM table_name_99 WHERE team = "grupo capitol valladolid" AND games > 34
CREATE TABLE table_name_80 (points VARCHAR, rank VARCHAR, games VARCHAR)
How many points are there for rank 5 with more than 34 games?
SELECT COUNT(points) FROM table_name_80 WHERE rank = 5 AND games > 34
CREATE TABLE table_name_35 (location VARCHAR, name VARCHAR)
Where is the kap shui mun bridge?
SELECT location FROM table_name_35 WHERE name = "kap shui mun bridge"
CREATE TABLE table_name_32 (tournament VARCHAR)
What tournament shows 2013 as 2r, and a 2010 as 1r?
SELECT tournament FROM table_name_32 WHERE 2013 = "2r" AND 2010 = "1r"
CREATE TABLE table_name_77 (Id VARCHAR)
What shows for 2013 when the 2008 is 1r?
SELECT 2013 FROM table_name_77 WHERE 2008 = "1r"
CREATE TABLE table_name_49 (Id VARCHAR)
What shows for 2011 when 2012 is q1, and a 2010 is 4r?
SELECT 2011 FROM table_name_49 WHERE 2012 = "q1" AND 2010 = "4r"
CREATE TABLE table_name_4 (tournament VARCHAR)
What tournament has a 2010 of 1r, and a 2008 of 1r?
SELECT tournament FROM table_name_4 WHERE 2010 = "1r" AND 2008 = "1r"
CREATE TABLE table_name_82 (tournament VARCHAR)
What shows for 2011 at the French open?
SELECT 2011 FROM table_name_82 WHERE tournament = "french open"
CREATE TABLE table_name_16 (Id VARCHAR)
What shows for 2013 when 2012 is 2r?
SELECT 2013 FROM table_name_16 WHERE 2012 = "2r"
CREATE TABLE table_name_19 (south_asians_2011 VARCHAR, province VARCHAR, south_asians_2001 VARCHAR)
How many South Asians were there in 2011 in Quebec when there were fewer than 59,510 in 2001?
SELECT COUNT(south_asians_2011) FROM table_name_19 WHERE province = "quebec" AND south_asians_2001 < 59 OFFSET 510
CREATE TABLE table_name_56 (province VARCHAR, south_asians_2001 VARCHAR, south_asians_2011 VARCHAR)
Which province had fewer than 190 South Asians in 2001 and 115 South Asians in 2011?
SELECT province FROM table_name_56 WHERE south_asians_2001 < 190 AND south_asians_2011 = 115
CREATE TABLE table_name_86 (south_asians_2001 INTEGER, province VARCHAR, south_asians_2011 VARCHAR)
How many South Asians on average were in Alberta in 2001 and in 2011 had 159,055?
SELECT AVG(south_asians_2001) FROM table_name_86 WHERE province = "alberta" AND south_asians_2011 > 159 OFFSET 055
CREATE TABLE table_name_62 (result VARCHAR, extra VARCHAR, venue VARCHAR)
What is Result, when Extra is "Heptathlon", and when Venue is "Götzis , Austria"?
SELECT result FROM table_name_62 WHERE extra = "heptathlon" AND venue = "götzis , austria"
CREATE TABLE table_name_50 (year VARCHAR, tournament VARCHAR)
What is the total number of Year(s), when Tournament is "World Championships"?
SELECT COUNT(year) FROM table_name_50 WHERE tournament = "world championships"
CREATE TABLE table_name_63 (venue VARCHAR, year VARCHAR, result VARCHAR)
What is Venue, when Year is 2005, and when Result is 8th?
SELECT venue FROM table_name_63 WHERE year = 2005 AND result = "8th"
CREATE TABLE table_name_50 (tournament VARCHAR, result VARCHAR)
What is Tournament, when Result is 18th?
SELECT tournament FROM table_name_50 WHERE result = "18th"
CREATE TABLE table_name_89 (venue VARCHAR, year VARCHAR, tournament VARCHAR)
What is Venue, when Year is after 2003, and when Tournament is "Hypo-Meeting"?
SELECT venue FROM table_name_89 WHERE year > 2003 AND tournament = "hypo-meeting"
CREATE TABLE table_name_94 (to_par VARCHAR, score VARCHAR)
When the score was 71-71-70-70=282 what was the To par recorded?
SELECT to_par FROM table_name_94 WHERE score = 71 - 71 - 70 - 70 = 282
CREATE TABLE table_name_68 (score VARCHAR, player VARCHAR)
What was the score for Tom Lehman?
SELECT score FROM table_name_68 WHERE player = "tom lehman"
CREATE TABLE table_name_40 (november INTEGER, game INTEGER)
What is the sum of November, when Game is greater than 23?
SELECT SUM(november) FROM table_name_40 WHERE game > 23
CREATE TABLE table_name_55 (november INTEGER, game VARCHAR)
What is the sum of November, when Game is "17"?
SELECT SUM(november) FROM table_name_55 WHERE game = 17
CREATE TABLE table_name_44 (game INTEGER, opponent VARCHAR, november VARCHAR)
What is the highest Game, when Opponent is "Chicago Black Hawks", and when November is less than 16?
SELECT MAX(game) FROM table_name_44 WHERE opponent = "chicago black hawks" AND november < 16
CREATE TABLE table_name_87 (player VARCHAR, total VARCHAR)
What player has a total of 297?
SELECT player FROM table_name_87 WHERE total = 297
CREATE TABLE table_name_22 (country VARCHAR, total VARCHAR, finish VARCHAR)
Which country has a total less than 289 and finished t2?
SELECT country FROM table_name_22 WHERE total < 289 AND finish = "t2"
CREATE TABLE table_name_89 (player VARCHAR, finish VARCHAR)
Which player finished t35?
SELECT player FROM table_name_89 WHERE finish = "t35"
CREATE TABLE table_name_54 (finish VARCHAR, total VARCHAR, year_s__won VARCHAR)
What finish has a total of more than 289 and won in 1979?
SELECT finish FROM table_name_54 WHERE total > 289 AND year_s__won = "1979"
CREATE TABLE table_name_30 (name VARCHAR, moving_to VARCHAR)
What is Name, when Moving To is "NEC Nijmegen"?
SELECT name FROM table_name_30 WHERE moving_to = "nec nijmegen"
CREATE TABLE table_name_46 (date_from VARCHAR, moving_to VARCHAR)
What is Date From, when Moving To is "Birmingham City"?
SELECT date_from FROM table_name_46 WHERE moving_to = "birmingham city"
CREATE TABLE table_name_18 (pos VARCHAR, date_to VARCHAR, name VARCHAR)
What is Pos., when Date To is "30 June 2009", and when Name is "Eddie Johnson"?
SELECT pos FROM table_name_18 WHERE date_to = "30 june 2009" AND name = "eddie johnson"
CREATE TABLE table_name_8 (pos VARCHAR, date_from VARCHAR)
What is Pos., when Date From is "28 August 2008"?
SELECT pos FROM table_name_8 WHERE date_from = "28 august 2008"
CREATE TABLE table_name_18 (moving_to VARCHAR, name VARCHAR)
What is Moving To, when Name is "Leon Andreasen"?
SELECT moving_to FROM table_name_18 WHERE name = "leon andreasen"
CREATE TABLE table_name_47 (date_to VARCHAR, name VARCHAR)
What is Date To, when Name is "Lee Cook"?
SELECT date_to FROM table_name_47 WHERE name = "lee cook"
CREATE TABLE table_name_34 (listed VARCHAR, name VARCHAR)
When was the oakachoy covered bridge listed?
SELECT listed FROM table_name_34 WHERE name = "oakachoy covered bridge"
CREATE TABLE table_name_4 (county VARCHAR, name VARCHAR)
In which county is the swann covered bridge located?
SELECT county FROM table_name_4 WHERE name = "swann covered bridge"
CREATE TABLE table_name_17 (name VARCHAR, county VARCHAR, location VARCHAR)
Which bridge is located in Nectar, in Blount County?
SELECT name FROM table_name_17 WHERE county = "blount" AND location = "nectar"
CREATE TABLE table_name_59 (county VARCHAR, built VARCHAR)
Which county built a bridge in 1934?
SELECT county FROM table_name_59 WHERE built = "1934"
CREATE TABLE table_name_78 (built VARCHAR, location VARCHAR, county VARCHAR, listed VARCHAR)
In which year did Blount County build a bridge in Cleveland that was listed on 1981-08-20?
SELECT built FROM table_name_78 WHERE county = "blount" AND listed = "1981-08-20" AND location = "cleveland"
CREATE TABLE table_name_12 (score VARCHAR, time VARCHAR, set_3 VARCHAR)
What is the score with a time at 18:00 and a score for set 3 of 13–25?
SELECT score FROM table_name_12 WHERE time = "18:00" AND set_3 = "13–25"
CREATE TABLE table_name_70 (set_2 VARCHAR, set_1 VARCHAR)
What is the score for set 2 when the score of set 1 is 19–25?
SELECT set_2 FROM table_name_70 WHERE set_1 = "19–25"
CREATE TABLE table_name_41 (total VARCHAR, time VARCHAR, set_3 VARCHAR)
How much is the total with a time at 16:00 and score for set 3 of 18–25?
SELECT total FROM table_name_41 WHERE time = "16:00" AND set_3 = "18–25"
CREATE TABLE table_name_48 (set_2 VARCHAR, time VARCHAR, set_1 VARCHAR)
What is the score for set 2 when the time is 18:00 and the score of set 1 is 18–25?
SELECT set_2 FROM table_name_48 WHERE time = "18:00" AND set_1 = "18–25"
CREATE TABLE table_name_55 (total VARCHAR, set_3 VARCHAR)
What was the total with a score in set 3 of 13–25?
SELECT total FROM table_name_55 WHERE set_3 = "13–25"
CREATE TABLE table_name_1 (champion__seed_ VARCHAR, score VARCHAR)
What was the Champion of the Tournament with a Score of 79–75 OT?
SELECT champion__seed_ FROM table_name_1 WHERE score = "79–75 ot"
CREATE TABLE table_name_78 (champion__seed_ VARCHAR, score VARCHAR)
What was the Champion of the Game with a Score of 65–56?
SELECT champion__seed_ FROM table_name_78 WHERE score = "65–56"
CREATE TABLE table_name_89 (manufacturer VARCHAR, rider VARCHAR, laps VARCHAR, grid VARCHAR)
Which Manufacturer has a Laps of 21, a Grid larger than 16, and a Rider of akira ryō?
SELECT manufacturer FROM table_name_89 WHERE laps = 21 AND grid > 16 AND rider = "akira ryō"
CREATE TABLE table_name_43 (time_retired VARCHAR, rider VARCHAR)
Which Time/Retired has a Rider of daijiro kato?
SELECT time_retired FROM table_name_43 WHERE rider = "daijiro kato"
CREATE TABLE table_name_49 (manufacturer VARCHAR, rider VARCHAR)
Which Manufacturer has a Rider of daijiro kato?
SELECT manufacturer FROM table_name_49 WHERE rider = "daijiro kato"
CREATE TABLE table_name_88 (time_retired VARCHAR, manufacturer VARCHAR, rider VARCHAR)
Which Time/Retired has a Manufacturer of yamaha, and a Rider of garry mccoy?
SELECT time_retired FROM table_name_88 WHERE manufacturer = "yamaha" AND rider = "garry mccoy"
CREATE TABLE table_name_25 (college_junior_club_team__league_ VARCHAR, round VARCHAR, nationality VARCHAR)
What is the name of the team with round less than 2, and the nationality is the United States?
SELECT college_junior_club_team__league_ FROM table_name_25 WHERE round < 2 AND nationality = "united states"
CREATE TABLE table_name_15 (position VARCHAR, player VARCHAR)
What position does John Carlson play?
SELECT position FROM table_name_15 WHERE player = "john carlson"
CREATE TABLE table_name_33 (high_rebounds VARCHAR, game VARCHAR)
Who had the highest rebounds on game 5?
SELECT high_rebounds FROM table_name_33 WHERE game = 5
CREATE TABLE table_name_39 (overall VARCHAR, round VARCHAR, pick VARCHAR)
How many Overall went in a round larger than 7 with a pick less than 7?
SELECT COUNT(overall) FROM table_name_39 WHERE round > 7 AND pick < 7
CREATE TABLE table_name_33 (rank VARCHAR, events VARCHAR, prize_money__$__ VARCHAR)
What is the rank for the player with events greater than 23 and prize money in excess of $823,783?
SELECT COUNT(rank) FROM table_name_33 WHERE events > 23 AND prize_money__$__ > 823 OFFSET 783
CREATE TABLE table_name_16 (prize_money__ INTEGER, rank VARCHAR)
What is the prize money for the player ranked 1?
SELECT MAX(prize_money__) AS $__ FROM table_name_16 WHERE rank = 1
CREATE TABLE table_name_82 (round INTEGER, event VARCHAR)
What was the lowest round for the KOTC 25: Flaming Fury event?
SELECT MIN(round) FROM table_name_82 WHERE event = "kotc 25: flaming fury"
CREATE TABLE table_name_82 (opponent VARCHAR, event VARCHAR)
Who was the opponent for the KOTC 25: Flaming Fury event?
SELECT opponent FROM table_name_82 WHERE event = "kotc 25: flaming fury"
CREATE TABLE table_name_12 (opponent VARCHAR, round VARCHAR, event VARCHAR)
Who was the opponent in the WMMA 1: McCorkle vs. Heden event that went more than 1 round?
SELECT opponent FROM table_name_12 WHERE round > 1 AND event = "wmma 1: mccorkle vs. heden"
CREATE TABLE table_name_83 (res VARCHAR, record VARCHAR)
What was the result when his record was 25-15?
SELECT res FROM table_name_83 WHERE record = "25-15"
CREATE TABLE table_name_22 (position VARCHAR, round VARCHAR, nationality VARCHAR)
What is Position, when Round is less than 6, and when Nationality is "Denmark"?
SELECT position FROM table_name_22 WHERE round < 6 AND nationality = "denmark"
CREATE TABLE table_name_31 (position VARCHAR, nationality VARCHAR, round VARCHAR)
What is Position, when Nationality is "Canada", and when Round is greater than 3?
SELECT position FROM table_name_31 WHERE nationality = "canada" AND round > 3
CREATE TABLE table_name_83 (round VARCHAR, college_junior_club_team__league_ VARCHAR)
What is the total number of Round, when College/Junior/Club Team (League) is "Kelowna Rockets ( WHL )"?
SELECT COUNT(round) FROM table_name_83 WHERE college_junior_club_team__league_ = "kelowna rockets ( whl )"
CREATE TABLE table_name_21 (round VARCHAR, record VARCHAR)
What round did the fight last when Mikhail Ilyukhin's record was 15-5?
SELECT round FROM table_name_21 WHERE record = "15-5"
CREATE TABLE table_name_10 (method VARCHAR, record VARCHAR, round VARCHAR, res VARCHAR)
What method did Mikhail Ilyukhin win the fight in round 1 when his record was 13-5?
SELECT method FROM table_name_10 WHERE round = "1" AND res = "win" AND record = "13-5"
CREATE TABLE table_name_92 (method VARCHAR, record VARCHAR)
What was the method of resolution when Mikhail Ilyukhin's record was 4-0?
SELECT method FROM table_name_92 WHERE record = "4-0"
CREATE TABLE table_name_97 (date VARCHAR, score VARCHAR)
When was the score 123-112?
SELECT date FROM table_name_97 WHERE score = "123-112"
CREATE TABLE table_name_63 (opponent VARCHAR, score VARCHAR)
Who did they play when the score was 95-118?
SELECT opponent FROM table_name_63 WHERE score = "95-118"
CREATE TABLE table_name_11 (opponent VARCHAR, score VARCHAR)
Who did they play when the score was 95-114?
SELECT opponent FROM table_name_11 WHERE score = "95-114"
CREATE TABLE table_name_38 (date VARCHAR, score VARCHAR)
When was the score 92-134?
SELECT date FROM table_name_38 WHERE score = "92-134"
CREATE TABLE table_name_71 (score VARCHAR, record VARCHAR)
When they were 2-32 what did they score?
SELECT score FROM table_name_71 WHERE record = "2-32"