answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT home_team FROM table_name_90 WHERE away_team = "farnborough town"
CREATE TABLE table_name_90 (home_team VARCHAR, away_team VARCHAR)
What was the Home team when Farnborough Town was the Away team?
SELECT away_team FROM table_name_9 WHERE home_team = "blackpool"
CREATE TABLE table_name_9 (away_team VARCHAR, home_team VARCHAR)
What was the Away Team of Blackpool's Home game?
SELECT COUNT(bronze) FROM table_name_76 WHERE rank = "9"
CREATE TABLE table_name_76 (bronze VARCHAR, rank VARCHAR)
Which Bronze has a Rank of 9?
SELECT MAX(bronze) FROM table_name_78 WHERE gold < 1 AND rank = "17" AND nation = "china"
CREATE TABLE table_name_78 (bronze INTEGER, nation VARCHAR, gold VARCHAR, rank VARCHAR)
Which Bronze has a Gold smaller than 1, and a Rank of 17, and a Nation of china?
SELECT nation FROM table_name_82 WHERE bronze < 1 AND total > 1 AND silver = 1
CREATE TABLE table_name_82 (nation VARCHAR, silver VARCHAR, bronze VARCHAR, total VARCHAR)
Which Nation has a Bronze smaller than 1, and a Total larger than 1, and a Silver of 1?
SELECT AVG(total) FROM table_name_59 WHERE rank = "17" AND gold > 0
CREATE TABLE table_name_59 (total INTEGER, rank VARCHAR, gold VARCHAR)
Which Total has a Rank of 17, and a Gold larger than 0?
SELECT AVG(gold) FROM table_name_99 WHERE rank = "15" AND total < 2
CREATE TABLE table_name_99 (gold INTEGER, rank VARCHAR, total VARCHAR)
Which Gold has a Rank of 15, and a Total smaller than 2?
SELECT games FROM table_name_86 WHERE tied = 10
CREATE TABLE table_name_86 (games VARCHAR, tied VARCHAR)
What is the number of games for the season with 10 ties?
SELECT surface FROM table_name_63 WHERE opponent_in_the_final = "nathalie dechy meilen tu"
CREATE TABLE table_name_63 (surface VARCHAR, opponent_in_the_final VARCHAR)
What was the surface where the opponent was Nathalie Dechy Meilen Tu?
SELECT series_leader FROM table_name_64 WHERE date = "may 31"
CREATE TABLE table_name_64 (series_leader VARCHAR, date VARCHAR)
What is the Series leader with a Date that is may 31?
SELECT series_leader FROM table_name_93 WHERE date = "october 9"
CREATE TABLE table_name_93 (series_leader VARCHAR, date VARCHAR)
What is the Series leader with a Date that is october 9?
SELECT tournament FROM table_name_10 WHERE date = "january 10, 1994"
CREATE TABLE table_name_10 (tournament VARCHAR, date VARCHAR)
Which Tournament has a Date of january 10, 1994?
SELECT opponents_in_the_final FROM table_name_51 WHERE date = "june 10, 1996"
CREATE TABLE table_name_51 (opponents_in_the_final VARCHAR, date VARCHAR)
Which Opponents in the final have a Date of june 10, 1996?
SELECT opponents_in_the_final FROM table_name_40 WHERE date = "june 10, 1996"
CREATE TABLE table_name_40 (opponents_in_the_final VARCHAR, date VARCHAR)
Who's the Opponents in the final with a Date of june 10, 1996?
SELECT tournament FROM table_name_17 WHERE opponents_in_the_final = "maria lindström maria strandlund"
CREATE TABLE table_name_17 (tournament VARCHAR, opponents_in_the_final VARCHAR)
Which Tournament has Opponents in the final of maria lindström maria strandlund?
SELECT third FROM table_name_25 WHERE teams = 13 AND season = 1996
CREATE TABLE table_name_25 (third VARCHAR, teams VARCHAR, season VARCHAR)
What country came in third when there were 13 teams in 1996?
SELECT SUM(season) FROM table_name_21 WHERE venue = "donington park" AND second = "brazil"
CREATE TABLE table_name_21 (season INTEGER, venue VARCHAR, second VARCHAR)
What is the sum of season when the venue was donington park, and Brazil came in second?
SELECT AVG(season) FROM table_name_64 WHERE venue = "circuit de nevers magny-cours" AND drivers > 30
CREATE TABLE table_name_64 (season INTEGER, venue VARCHAR, drivers VARCHAR)
What is the average Season when the venue was circuit de nevers magny-cours, and Drivers was more than 30?
SELECT COUNT(losses) FROM table_name_91 WHERE percentage = 54.83 AND points > 8
CREATE TABLE table_name_91 (losses VARCHAR, percentage VARCHAR, points VARCHAR)
What is the total number of Losses when the percentage is 54.83, with more than 8 points?
SELECT AVG(points_for) FROM table_name_72 WHERE points_against > 780 AND points < 0
CREATE TABLE table_name_72 (points_for INTEGER, points_against VARCHAR, points VARCHAR)
What is the average Points For when there are Points Against more than 780, and Points smaller than 0?
SELECT AVG(points) FROM table_name_85 WHERE points_against = 594 AND losses > 3
CREATE TABLE table_name_85 (points INTEGER, points_against VARCHAR, losses VARCHAR)
What is the average Points when the Points Against is 594, and Losses is more than 3?
SELECT AVG(percentage) FROM table_name_80 WHERE wins > 0 AND points_against > 481 AND losses = 8 AND points_for > 826
CREATE TABLE table_name_80 (percentage INTEGER, points_for VARCHAR, losses VARCHAR, wins VARCHAR, points_against VARCHAR)
What is the average Percentage when there are more than 0 wins, Points Against is more than 481, Losses of 8, and a Points For larger than 826?
SELECT MIN(wins) FROM table_name_46 WHERE club = "broadview hawks" AND points_against > 594
CREATE TABLE table_name_46 (wins INTEGER, club VARCHAR, points_against VARCHAR)
What is the lowest Wins when the Club is broadview hawks, and Points Against is more than 594?
SELECT goalkeeper FROM table_name_32 WHERE mins < 2160
CREATE TABLE table_name_32 (goalkeeper VARCHAR, mins INTEGER)
What Goalkeeper has MINS less than 2160
SELECT MAX(shts) FROM table_name_56 WHERE goalkeeper = "kasey keller"
CREATE TABLE table_name_56 (shts INTEGER, goalkeeper VARCHAR)
What is the highest SHTS of Kasey Keller
SELECT MAX(bronze) FROM table_name_49 WHERE total > 1 AND rank > 1 AND gold > 1
CREATE TABLE table_name_49 (bronze INTEGER, gold VARCHAR, total VARCHAR, rank VARCHAR)
What is the most number of Bronze medals won among the countries that have won more than 1 medal, more than 1 gold medal, and have a rank bigger than 1?
SELECT SUM(losses) FROM table_name_35 WHERE ballarat_fl = "melton" AND draws < 0
CREATE TABLE table_name_35 (losses INTEGER, ballarat_fl VARCHAR, draws VARCHAR)
What is the total number of Losses that Melton had when they had fewer Draws than 0?
SELECT MIN(against) FROM table_name_74 WHERE ballarat_fl = "lake wendouree" AND losses > 7
CREATE TABLE table_name_74 (against INTEGER, ballarat_fl VARCHAR, losses VARCHAR)
What is the lowest number of Against that Lake Wendouree had when they had more than 7 Losses?
SELECT COUNT(byes) FROM table_name_84 WHERE against = 1136 AND draws < 0
CREATE TABLE table_name_84 (byes VARCHAR, against VARCHAR, draws VARCHAR)
What was the total number of Byes for the team that had 1136 Against and fewer than 0 Draws?
SELECT MAX(losses) FROM table_name_52 WHERE against > 1427 AND wins > 5
CREATE TABLE table_name_52 (losses INTEGER, against VARCHAR, wins VARCHAR)
What was the greatest number of Losses for the team that had 1427 Against and more than 5 Wins?
SELECT AVG(byes) FROM table_name_13 WHERE losses = 15 AND wins < 1
CREATE TABLE table_name_13 (byes INTEGER, losses VARCHAR, wins VARCHAR)
What is the average number of Byes for the team that had 15 Losses, and less than 1 Win?
SELECT nation FROM table_name_54 WHERE total < 19 AND bronze < 1
CREATE TABLE table_name_54 (nation VARCHAR, total VARCHAR, bronze VARCHAR)
Which nation's total is less than 19 when there's less than 1 bronze?
SELECT COUNT(total) FROM table_name_73 WHERE nation = "chile" AND silver > 0
CREATE TABLE table_name_73 (total VARCHAR, nation VARCHAR, silver VARCHAR)
How many totals does Chile have when the number of silvers is more than 0?
SELECT record FROM table_name_22 WHERE method = "tko (punches and elbows)"
CREATE TABLE table_name_22 (record VARCHAR, method VARCHAR)
What was the record when TKO (punches and elbows) was the method?
SELECT venue FROM table_name_7 WHERE player = "don bradman (nsw)"
CREATE TABLE table_name_7 (venue VARCHAR, player VARCHAR)
What venue has don bradman (nsw) as the player?
SELECT rank FROM table_name_82 WHERE player = "bill ponsford (vic)"
CREATE TABLE table_name_82 (rank VARCHAR, player VARCHAR)
What rank has Bill Ponsford (vic) as the player?
SELECT match FROM table_name_9 WHERE player = "clem hill (sa)"
CREATE TABLE table_name_9 (match VARCHAR, player VARCHAR)
What match has Clem Hill (sa) as the player?
SELECT competition FROM table_name_56 WHERE date = "december 25, 1925"
CREATE TABLE table_name_56 (competition VARCHAR, date VARCHAR)
Who played on December 25, 1925?
SELECT result FROM table_name_40 WHERE competition = "south american championship" AND date = "december 13, 1925"
CREATE TABLE table_name_40 (result VARCHAR, competition VARCHAR, date VARCHAR)
What was the score for the South American Championship dated December 13, 1925?
SELECT AVG(house_of_rep_seats) FROM table_name_52 WHERE abbr = "d66"
CREATE TABLE table_name_52 (house_of_rep_seats INTEGER, abbr VARCHAR)
What is the average number of House of Representatives seats had an abbreviation of d66?
SELECT winning_score FROM table_name_69 WHERE date = "oct 17, 1982"
CREATE TABLE table_name_69 (winning_score VARCHAR, date VARCHAR)
For the tournament played on Oct 17, 1982, what was the winning score?
SELECT runner_s__up FROM table_name_67 WHERE margin_of_victory = "5 strokes" AND date = "nov 13, 1988"
CREATE TABLE table_name_67 (runner_s__up VARCHAR, margin_of_victory VARCHAR, date VARCHAR)
For the tournament played Nov 13, 1988, ending with a margin of victory of 5 strokes, who was the runner-up?
SELECT 2008 FROM table_name_18 WHERE 2006 = "grand slam tournaments"
CREATE TABLE table_name_18 (Id VARCHAR)
What is 2008, when 2006 is "Grand Slam Tournaments"?
SELECT 2007 FROM table_name_54 WHERE 2003 = "1r"
CREATE TABLE table_name_54 (Id VARCHAR)
What is 2007, when 2003 is 1R?
SELECT tournament FROM table_name_66 WHERE 2012 = "3r"
CREATE TABLE table_name_66 (tournament VARCHAR)
What is the Tournament, when 2012 is 3R?
SELECT tournament FROM table_name_41 WHERE 2009 = "grand slam tournaments"
CREATE TABLE table_name_41 (tournament VARCHAR)
What is Tournament, when 2009 is "Grand Slam Tournaments"?
SELECT free AS polite FROM table_name_70 WHERE genitive_3 = "*ni-da"
CREATE TABLE table_name_70 (free VARCHAR, genitive_3 VARCHAR)
Which Free polite has a Genitive 3 of *ni-da?
SELECT free AS polite FROM table_name_13 WHERE genitive_1 = * = ku
CREATE TABLE table_name_13 (free VARCHAR, ku VARCHAR, genitive_1 VARCHAR)
Which Free polite has a Genitive 1 of *=ku?
SELECT free AS polite FROM table_name_40 WHERE genitive_3 = "*n(i)-ami"
CREATE TABLE table_name_40 (free VARCHAR, genitive_3 VARCHAR)
Which Free polite has a Genitive 3 of *n(i)-ami?
SELECT genitive_1 FROM table_name_57 WHERE genitive_3 = "*n(i)-ia"
CREATE TABLE table_name_57 (genitive_1 VARCHAR, genitive_3 VARCHAR)
Which Genitive 1 has a Genitive 3 of *n(i)-ia?
SELECT proto_oceanic FROM table_name_43 WHERE verb = "to sew"
CREATE TABLE table_name_43 (proto_oceanic VARCHAR, verb VARCHAR)
What is the Proto-Oceanic verb for the verb to sew?
SELECT verb FROM table_name_86 WHERE proto_austronesian = "*diri"
CREATE TABLE table_name_86 (verb VARCHAR, proto_austronesian VARCHAR)
What is the verb for the Proto-Austronesian word *diri?
SELECT proto_oceanic FROM table_name_44 WHERE verb = "to die, be dead"
CREATE TABLE table_name_44 (proto_oceanic VARCHAR, verb VARCHAR)
What is the Proto-Oceanic verb for to die, be dead?
SELECT verb FROM table_name_43 WHERE proto_polynesian = "*mohe"
CREATE TABLE table_name_43 (verb VARCHAR, proto_polynesian VARCHAR)
What is the verb for the Proto-Polynesian word *mohe?
SELECT proto_austronesian FROM table_name_53 WHERE proto_polynesian = "*tui"
CREATE TABLE table_name_53 (proto_austronesian VARCHAR, proto_polynesian VARCHAR)
What is the Proto-Austronesian word for the Proto-Polynesian word *tui?
SELECT proto_malayo_polynesian FROM table_name_71 WHERE proto_oceanic = "*saqit, *turi"
CREATE TABLE table_name_71 (proto_malayo_polynesian VARCHAR, proto_oceanic VARCHAR)
What is the Proto-Malayo-Polynesian word for the Proto-Oceanic word of *saqit, *turi?
SELECT station FROM table_name_81 WHERE genre = "talk music" AND language = "malay english"
CREATE TABLE table_name_81 (station VARCHAR, genre VARCHAR, language VARCHAR)
What station has a genre of talk music and is in Malay English language?
SELECT genre FROM table_name_93 WHERE station = "fly fm"
CREATE TABLE table_name_93 (genre VARCHAR, station VARCHAR)
Which genre is the fly fm station?
SELECT frequency FROM table_name_71 WHERE genre = "talk music" AND station = "xfm"
CREATE TABLE table_name_71 (frequency VARCHAR, genre VARCHAR, station VARCHAR)
What frequency is the xfm station, which is part of the talk music genre?
SELECT coverage_area FROM table_name_65 WHERE genre = "music" AND station = "muzik fm"
CREATE TABLE table_name_65 (coverage_area VARCHAR, genre VARCHAR, station VARCHAR)
What is the coverage area of muzik fm station, which has a music genre?
SELECT co_drivers FROM table_name_78 WHERE laps > 196 AND year < 2010
CREATE TABLE table_name_78 (co_drivers VARCHAR, laps VARCHAR, year VARCHAR)
What is Co-Drivers, when Laps is greater than 196, and when Year is before 2010?
SELECT date FROM table_name_39 WHERE week > 3 AND attendance = "bye"
CREATE TABLE table_name_39 (date VARCHAR, week VARCHAR, attendance VARCHAR)
What is the Date when the week is more than 3 and the attendance shows bye?
SELECT result FROM table_name_33 WHERE week > 9 AND attendance = "65,858"
CREATE TABLE table_name_33 (result VARCHAR, week VARCHAR, attendance VARCHAR)
What is the Result when the week is later than 9, and there are 65,858 people in attendance?
SELECT 1938 FROM table_name_49 WHERE 1948 = "n/a"
CREATE TABLE table_name_49 (Id VARCHAR)
What is the 1938 that has N/A for 1948?
SELECT 1953 FROM table_name_52 WHERE 1947 = "2" AND 1938 = "dne"
CREATE TABLE table_name_52 (Id VARCHAR)
What 1953 has 2 for 1947, and dne as 1938?
SELECT 1935 FROM table_name_6 WHERE 1953 = "4"
CREATE TABLE table_name_6 (Id VARCHAR)
What 1935 has 4 as a 1953?
SELECT 1953 FROM table_name_48 WHERE 1949 = "2" AND 1952 = "3"
CREATE TABLE table_name_48 (Id VARCHAR)
What 1953 has 2 as a 1949, and 3 as 1952?
SELECT 1941 FROM table_name_7 WHERE 1945 = "n/a" AND 1948 = "n/a" AND 1953 = "9"
CREATE TABLE table_name_7 (Id VARCHAR)
What 1941 has N/A as 1945, N/A for 1948, and 9 for 1953?
SELECT 1951 FROM table_name_26 WHERE 1948 = "dne"
CREATE TABLE table_name_26 (Id VARCHAR)
What 1951 has dne for 1948?
SELECT cup_apps__sub_ FROM table_name_59 WHERE cup_goals = "2"
CREATE TABLE table_name_59 (cup_apps__sub_ VARCHAR, cup_goals VARCHAR)
Which Cup Apps (sub) had 2 goals?
SELECT total_apps__sub_ FROM table_name_39 WHERE total_goals = "6"
CREATE TABLE table_name_39 (total_apps__sub_ VARCHAR, total_goals VARCHAR)
Which Total Apps (sub) has 6 goals total?
SELECT airline FROM table_name_87 WHERE iata = "bx"
CREATE TABLE table_name_87 (airline VARCHAR, iata VARCHAR)
What airline has a IATA of BX?
SELECT icao FROM table_name_8 WHERE airline = "asiana airlines"
CREATE TABLE table_name_8 (icao VARCHAR, airline VARCHAR)
What is the ICAO for Asiana Airlines?
SELECT commenced_operations FROM table_name_61 WHERE icao = "kal"
CREATE TABLE table_name_61 (commenced_operations VARCHAR, icao VARCHAR)
What is the commenced operation where the ICAO is KAL?
SELECT icao FROM table_name_63 WHERE callsign = "air busan"
CREATE TABLE table_name_63 (icao VARCHAR, callsign VARCHAR)
What is the ICAO for Air Busan?
SELECT callsign FROM table_name_80 WHERE icao = "aar"
CREATE TABLE table_name_80 (callsign VARCHAR, icao VARCHAR)
What is the callsign where the ICAO is AAR?
SELECT AVG(tries) FROM table_name_7 WHERE goals < 0
CREATE TABLE table_name_7 (tries INTEGER, goals INTEGER)
What is the average Tries with less than 0 goals?
SELECT COUNT(points) FROM table_name_60 WHERE tries < 1 AND goals > 0
CREATE TABLE table_name_60 (points VARCHAR, tries VARCHAR, goals VARCHAR)
What is the total number of Points with less than 1 tries, and more than 0 goals?
SELECT club_province FROM table_name_44 WHERE caps > 9 AND player = "ben franks"
CREATE TABLE table_name_44 (club_province VARCHAR, caps VARCHAR, player VARCHAR)
Which club/province has more than 9 caps and Ben Franks as a player?
SELECT tournament FROM table_name_27 WHERE runner_s__up = "ian baker-finch"
CREATE TABLE table_name_27 (tournament VARCHAR, runner_s__up VARCHAR)
In which tournament was Ian Baker-Finch the runner-up?
SELECT tournament FROM table_name_5 WHERE date = "feb 3, 1991"
CREATE TABLE table_name_5 (tournament VARCHAR, date VARCHAR)
What tournament was played on Feb 3, 1991?
SELECT winning_score FROM table_name_28 WHERE tournament = "phoenix open"
CREATE TABLE table_name_28 (winning_score VARCHAR, tournament VARCHAR)
In the Phoenix Open, what was the winning score?
SELECT margin_of_victory FROM table_name_41 WHERE runner_s__up = "stuart appleby"
CREATE TABLE table_name_41 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
In the tournament where Stuart Appleby was the runner-up, what was the margin of victory?
SELECT MIN(played) FROM table_name_21 WHERE points > 30
CREATE TABLE table_name_21 (played INTEGER, points INTEGER)
What is the lowest number played with more than 30 points?
SELECT MAX(lost) FROM table_name_58 WHERE points > 29 AND against < 19
CREATE TABLE table_name_58 (lost INTEGER, points VARCHAR, against VARCHAR)
What is the highest number lost with more than 29 points and an against less than 19?
SELECT COUNT(played) FROM table_name_76 WHERE difference = "22" AND against < 34
CREATE TABLE table_name_76 (played VARCHAR, difference VARCHAR, against VARCHAR)
What is the total number played with a difference of 22 and less than 34 against?
SELECT western_title FROM table_name_92 WHERE pinyin = "new chāojí mǎlìōu xiōngdì"
CREATE TABLE table_name_92 (western_title VARCHAR, pinyin VARCHAR)
What is the western title of the pinyin new chāojí mǎlìōu xiōngdì?
SELECT genre FROM table_name_17 WHERE game_modes = "single-player" AND chinese_title = "摸摸瓦力欧制造"
CREATE TABLE table_name_17 (genre VARCHAR, game_modes VARCHAR, chinese_title VARCHAR)
What is the genre of the Chinese title 摸摸瓦力欧制造, which has a single-player game mode?
SELECT pinyin FROM table_name_78 WHERE chinese_title = "直感一笔"
CREATE TABLE table_name_78 (pinyin VARCHAR, chinese_title VARCHAR)
What is the pinyin for the Chinese title 直感一笔?
SELECT released_date FROM table_name_46 WHERE chinese_title = "摸摸瓦力欧制造"
CREATE TABLE table_name_46 (released_date VARCHAR, chinese_title VARCHAR)
What is the release date for the Chinese title 摸摸瓦力欧制造?
SELECT western_title FROM table_name_56 WHERE genre = "puzzle"
CREATE TABLE table_name_56 (western_title VARCHAR, genre VARCHAR)
What is the western title for the puzzle genre?
SELECT SUM(laps) FROM table_name_56 WHERE time = "+7.277" AND grid > 6
CREATE TABLE table_name_56 (laps INTEGER, time VARCHAR, grid VARCHAR)
What is the total number of laps for the time of +7.277 and the grid number of more than 6?
SELECT MIN(grid) FROM table_name_43 WHERE time = "+8.051" AND laps < 23
CREATE TABLE table_name_43 (grid INTEGER, time VARCHAR, laps VARCHAR)
What is the smallest grid when the time is +8.051 and there were less than 23 laps?
SELECT AVG(goals) FROM table_name_91 WHERE matches = 205 AND rank > 9
CREATE TABLE table_name_91 (goals INTEGER, matches VARCHAR, rank VARCHAR)
What is the average number of goals for players ranked above 9 and playing more than 205 matches?
SELECT AVG(rank) FROM table_name_92 WHERE matches < 205 AND goals < 100
CREATE TABLE table_name_92 (rank INTEGER, matches VARCHAR, goals VARCHAR)
What is the average rank for players with under 205 matches and under 100 goals?
SELECT years FROM table_name_82 WHERE rank < 10 AND matches > 271 AND goals = 152
CREATE TABLE table_name_82 (years VARCHAR, goals VARCHAR, rank VARCHAR, matches VARCHAR)
What years played did the player with a rank under 10, more than 271 matches, and 152 goals have?
SELECT republican_ticket FROM table_name_32 WHERE communist_ticket = "elizabeth gurley flynn"
CREATE TABLE table_name_32 (republican_ticket VARCHAR, communist_ticket VARCHAR)
Who's the Republican ticket with a Communist ticket of elizabeth gurley flynn?
SELECT communist_ticket FROM table_name_49 WHERE american_labor_ticket = "joseph v. o'leary"
CREATE TABLE table_name_49 (communist_ticket VARCHAR, american_labor_ticket VARCHAR)
Who's the Communist ticket with an American Labor ticket of joseph v. o'leary?
SELECT republican_ticket FROM table_name_62 WHERE democratic_ticket = "flora d. johnson"
CREATE TABLE table_name_62 (republican_ticket VARCHAR, democratic_ticket VARCHAR)
Who's the Republican ticket with a Democratic ticket of flora d. johnson?
SELECT republican_ticket FROM table_name_8 WHERE communist_ticket = "(none)" AND socialist_ticket = "joseph g. glass"
CREATE TABLE table_name_8 (republican_ticket VARCHAR, communist_ticket VARCHAR, socialist_ticket VARCHAR)
Who's the Republican ticket with a Communist ticket of (none), and a Socialist ticket of joseph g. glass?