answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT sponsor FROM table_name_46 WHERE winning_driver = "greg biffle" AND date = "april 14" | CREATE TABLE table_name_46 (sponsor VARCHAR, winning_driver VARCHAR, date VARCHAR) | Who sponsored Greg Biffle's win on April 14? |
SELECT MAX(car__number) FROM table_name_40 WHERE sponsor = "post-it / national guard" | CREATE TABLE table_name_40 (car__number INTEGER, sponsor VARCHAR) | What is the highest car number sponsored by Post-It / National Guard? |
SELECT COUNT(season) FROM table_name_9 WHERE car__number > 17 AND sponsor = "ups" | CREATE TABLE table_name_9 (season VARCHAR, car__number VARCHAR, sponsor VARCHAR) | How many seasons has UPS sponsored a car with a number larger than 17? |
SELECT set_2 FROM table_name_61 WHERE set_1 = "29–27" | CREATE TABLE table_name_61 (set_2 VARCHAR, set_1 VARCHAR) | What shows for set 2 when Set 1 is 29–27? |
SELECT time FROM table_name_48 WHERE set_1 = "21–25" | CREATE TABLE table_name_48 (time VARCHAR, set_1 VARCHAR) | What is the time when the set 1 is 21–25? |
SELECT score FROM table_name_5 WHERE set_3 = "26–28" | CREATE TABLE table_name_5 (score VARCHAR, set_3 VARCHAR) | What is the score when the set 3 is 26–28? |
SELECT score FROM table_name_68 WHERE set_3 = "26–28" | CREATE TABLE table_name_68 (score VARCHAR, set_3 VARCHAR) | What is the Score when the set 3 is 26–28? |
SELECT set_3 FROM table_name_95 WHERE total = "78–92" | CREATE TABLE table_name_95 (set_3 VARCHAR, total VARCHAR) | What is the set 3 when the total is 78–92? |
SELECT total FROM table_name_95 WHERE set_1 = "21–25" | CREATE TABLE table_name_95 (total VARCHAR, set_1 VARCHAR) | What is the total when the set 1 is 21–25? |
SELECT COUNT(losses) FROM table_name_75 WHERE draw < 51 AND wins > 6 | CREATE TABLE table_name_75 (losses VARCHAR, draw VARCHAR, wins VARCHAR) | How many total losses were with less than 51 draws but more than 6 wins? |
SELECT SUM(matches) FROM table_name_86 WHERE against > 6 AND draw = 51 | CREATE TABLE table_name_86 (matches INTEGER, against VARCHAR, draw VARCHAR) | How many matches has 51 draws and more than 6 against? |
SELECT MAX(wins) FROM table_name_80 WHERE against > 165 | CREATE TABLE table_name_80 (wins INTEGER, against INTEGER) | How many wins has more than 165 against? |
SELECT AVG(draw) FROM table_name_47 WHERE losses < 35 AND matches = 136 AND against < 146 | CREATE TABLE table_name_47 (draw INTEGER, against VARCHAR, losses VARCHAR, matches VARCHAR) | How many draws have less than 35 losses with 136 matches and less than 146 against? |
SELECT COUNT(against) FROM table_name_84 WHERE wins > 15 | CREATE TABLE table_name_84 (against VARCHAR, wins INTEGER) | How many Againsts have more than 15 wins? |
SELECT AVG(byes) FROM table_name_7 WHERE losses > 0 AND against > 3049 | CREATE TABLE table_name_7 (byes INTEGER, losses VARCHAR, against VARCHAR) | Which Byes have Losses larger than 0, and an Against larger than 3049? |
SELECT COUNT(points_1) FROM table_name_62 WHERE position = 7 AND drawn > 6 | CREATE TABLE table_name_62 (points_1 VARCHAR, position VARCHAR, drawn VARCHAR) | What is the total number of Points 1, when Position is "7", and when Drawn is greater than 6? |
SELECT MAX(goals_for) FROM table_name_2 WHERE team = "cheadle town" AND drawn > 7 | CREATE TABLE table_name_2 (goals_for INTEGER, team VARCHAR, drawn VARCHAR) | What is the highest Goals For, when Team is "Cheadle Town", and when Drawn is greater than 7? |
SELECT SUM(position) FROM table_name_44 WHERE points_1 > 23 AND goals_for = 77 | CREATE TABLE table_name_44 (position INTEGER, points_1 VARCHAR, goals_for VARCHAR) | What is the sum of Position, when Points 1 is greater than 23, and when Goals For is "77"? |
SELECT played FROM table_name_91 WHERE goal_difference = "+51" | CREATE TABLE table_name_91 (played VARCHAR, goal_difference VARCHAR) | What is Played, when Goal Difference is "+51"? |
SELECT date FROM table_name_24 WHERE surface = "carpet" | CREATE TABLE table_name_24 (date VARCHAR, surface VARCHAR) | What is Date, when Surface is "Carpet"? |
SELECT tournament FROM table_name_82 WHERE date = "6 october 2008" | CREATE TABLE table_name_82 (tournament VARCHAR, date VARCHAR) | What is Tournament, when Date is "6 October 2008"? |
SELECT surface FROM table_name_4 WHERE tournament = "sunderland , united kingdom" | CREATE TABLE table_name_4 (surface VARCHAR, tournament VARCHAR) | What is Surface, when Tournament is "Sunderland , United Kingdom"? |
SELECT replaced_by FROM table_name_58 WHERE outgoing_manager = "istván sándor" | CREATE TABLE table_name_58 (replaced_by VARCHAR, outgoing_manager VARCHAR) | Who replaced István Sándor? |
SELECT position_in_table FROM table_name_60 WHERE outgoing_manager = "lászló dajka" | CREATE TABLE table_name_60 (position_in_table VARCHAR, outgoing_manager VARCHAR) | What is the position that has the outgoing manager lászló Dajka? |
SELECT date_of_appointment FROM table_name_77 WHERE outgoing_manager = "zoltán varga" | CREATE TABLE table_name_77 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) | When was outgoing manager Zoltán Varga appointed? |
SELECT score FROM table_name_28 WHERE date = "05 dec" | CREATE TABLE table_name_28 (score VARCHAR, date VARCHAR) | Can you tell me the Score that has the Date of 05 dec? |
SELECT AVG(points__pts_) FROM table_name_26 WHERE won__pg_ > 17 | CREATE TABLE table_name_26 (points__pts_ INTEGER, won__pg_ INTEGER) | What is the average number of points of the team with more than 17 pg won? |
SELECT COUNT(won__pg_) FROM table_name_67 WHERE goals_conceded__gc_ = 64 AND goals_scored__gf_ > 33 | CREATE TABLE table_name_67 (won__pg_ VARCHAR, goals_conceded__gc_ VARCHAR, goals_scored__gf_ VARCHAR) | What is the total number of pg won of the team with 64 goals conceded and more than 33 goals scored? |
SELECT SUM(draw__pe_) FROM table_name_28 WHERE team__equipo_ = "plaza amador" AND won__pg_ < 6 | CREATE TABLE table_name_28 (draw__pe_ INTEGER, team__equipo_ VARCHAR, won__pg_ VARCHAR) | What is the sum of the pe draw of team plaza amador, who has less than 6 pg won? |
SELECT SUM(place__posición_) FROM table_name_70 WHERE points__pts_ > 49 AND goals_scored__gf_ < 54 | CREATE TABLE table_name_70 (place__posición_ INTEGER, points__pts_ VARCHAR, goals_scored__gf_ VARCHAR) | What is the sum of the places of the team with more than 49 points and less than 54 goals scored? |
SELECT away FROM table_name_15 WHERE home = "2-2" | CREATE TABLE table_name_15 (away VARCHAR, home VARCHAR) | WHAT IS THE AWAY WITH HOME AT 2-2? |
SELECT league FROM table_name_63 WHERE home = "1-1" | CREATE TABLE table_name_63 (league VARCHAR, home VARCHAR) | WHAT IS THE LEAGUE WITH HOME 1-1? |
SELECT weight FROM table_name_31 WHERE club = "uralochka zlatoust" AND date_of_birth = "1981-02-24" | CREATE TABLE table_name_31 (weight VARCHAR, club VARCHAR, date_of_birth VARCHAR) | What is the Weight of the person born 1981-02-24 from the Uralochka Zlatoust club ? |
SELECT SUM(number_of_households) FROM table_name_43 WHERE median_household_income = "$44,718" | CREATE TABLE table_name_43 (number_of_households INTEGER, median_household_income VARCHAR) | What is the sum of households that makes a median household income of $44,718? |
SELECT MAX(population) FROM table_name_96 WHERE county = "baraga" AND number_of_households < 3 OFFSET 444 | CREATE TABLE table_name_96 (population INTEGER, county VARCHAR, number_of_households VARCHAR) | What is the highest population for Baraga County with less than 3,444 households? |
SELECT player FROM table_name_3 WHERE score = 68 - 70 - 68 - 66 = 272 | CREATE TABLE table_name_3 (player VARCHAR, score VARCHAR) | Which golfer had a score of 68-70-68-66=272? |
SELECT place FROM table_name_62 WHERE score = 67 - 67 - 66 - 68 = 268 | CREATE TABLE table_name_62 (place VARCHAR, score VARCHAR) | What place was the golfer with a score of 67-67-66-68=268 ranked in? |
SELECT category FROM table_name_37 WHERE nominated = "maite perroni" AND year < 2009 | CREATE TABLE table_name_37 (category VARCHAR, nominated VARCHAR, year VARCHAR) | Which category was Maite Perroni nominated for earlier than 2009? |
SELECT year FROM table_name_78 WHERE award = "tv adicto golden awards" AND category = "female revelation" | CREATE TABLE table_name_78 (year VARCHAR, award VARCHAR, category VARCHAR) | In what year was there an award for TV Adicto Golden Awards and the category Female Revelation? |
SELECT winner FROM table_name_49 WHERE team_classification = "silence-lotto" | CREATE TABLE table_name_49 (winner VARCHAR, team_classification VARCHAR) | What winner has silence-lotto as the team classification? |
SELECT general_classification FROM table_name_45 WHERE mountains_classification = "david de la fuente" AND points_classification = "thor hushovd" | CREATE TABLE table_name_45 (general_classification VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR) | What general classification has david de la fuente as mountains classification, and thor hushovd as points classification? |
SELECT general_classification FROM table_name_26 WHERE points_classification = "levi leipheimer" | CREATE TABLE table_name_26 (general_classification VARCHAR, points_classification VARCHAR) | What general classification has levi leipheimer as points classification? |
SELECT team_classification FROM table_name_26 WHERE points_classification = "alejandro valverde" AND winner = "alejandro valverde" AND stage = "3" | CREATE TABLE table_name_26 (team_classification VARCHAR, stage VARCHAR, points_classification VARCHAR, winner VARCHAR) | What team classification has alejandro valverde as points classification, with alejandro valverde as the winner, with 3 as the stage? |
SELECT winner FROM table_name_14 WHERE mountains_classification = "pierre rolland" AND stage = "7" | CREATE TABLE table_name_14 (winner VARCHAR, mountains_classification VARCHAR, stage VARCHAR) | What winner has pierre rolland as mountains classification, with 7 as the stage? |
SELECT general_classification FROM table_name_96 WHERE stage = "4" | CREATE TABLE table_name_96 (general_classification VARCHAR, stage VARCHAR) | What general classification has 4 as the stage? |
SELECT MIN(lost) FROM table_name_9 WHERE goals_against = 111 | CREATE TABLE table_name_9 (lost INTEGER, goals_against VARCHAR) | What are the lowest lost has 111 as the goals against? |
SELECT MAX(goals_against) FROM table_name_4 WHERE position = 15 | CREATE TABLE table_name_4 (goals_against INTEGER, position VARCHAR) | What is the highest goals against that has 15 as position? |
SELECT COUNT(losses) FROM table_name_71 WHERE goals_for = 30 AND points > 24 | CREATE TABLE table_name_71 (losses VARCHAR, goals_for VARCHAR, points VARCHAR) | Hiw many losses have 30 for the goals with points greater than 24? |
SELECT COUNT(draws) FROM table_name_26 WHERE goals_for < 56 AND position = 10 AND goals_against < 45 | CREATE TABLE table_name_26 (draws VARCHAR, goals_against VARCHAR, goals_for VARCHAR, position VARCHAR) | How many draws have goals for less than 56, 10 as the postion, with goals against less than 45? |
SELECT MAX(draws) FROM table_name_8 WHERE points = 31 AND wins > 12 AND goal_difference < 11 | CREATE TABLE table_name_8 (draws INTEGER, goal_difference VARCHAR, points VARCHAR, wins VARCHAR) | What is the highest draws that have 31 for points, wins greater than 12, with a goal difference less than 11? |
SELECT road_team FROM table_name_66 WHERE game = "game 4" | CREATE TABLE table_name_66 (road_team VARCHAR, game VARCHAR) | Name Road Team of Game of game 4? |
SELECT date FROM table_name_33 WHERE road_team = "chicago" AND result = "88-85 (ot)" | CREATE TABLE table_name_33 (date VARCHAR, road_team VARCHAR, result VARCHAR) | Which Date has a Road Team of chicago, and a Result of 88-85 (ot)? |
SELECT home_team FROM table_name_3 WHERE date = "june 12" | CREATE TABLE table_name_3 (home_team VARCHAR, date VARCHAR) | Which Home Team is on june 12? |
SELECT result FROM table_name_79 WHERE date = "june 5" | CREATE TABLE table_name_79 (result VARCHAR, date VARCHAR) | Which Result that is on june 5? |
SELECT date FROM table_name_58 WHERE result = "86-87" | CREATE TABLE table_name_58 (date VARCHAR, result VARCHAR) | Which Date has Result of 86-87? |
SELECT result FROM table_name_86 WHERE game = "game 1" | CREATE TABLE table_name_86 (result VARCHAR, game VARCHAR) | Which Result has a Game of game 1? |
SELECT miss_maja_pilipinas FROM table_name_30 WHERE binibining_pilipinas_tourism = "not awarded" AND binibining_pilipinas_universe = "anjanette abayari" | CREATE TABLE table_name_30 (miss_maja_pilipinas VARCHAR, binibining_pilipinas_tourism VARCHAR, binibining_pilipinas_universe VARCHAR) | What Miss Maja Pilipinas has a Binibining Pilipinas-Tourism of not awarded, and a Binibining Pilipinas-Universe of anjanette abayari? |
SELECT binibining_pilipinas_international FROM table_name_7 WHERE year > 1990 AND binibining_pilipinas_universe = "maria lourdes gonzalez" | CREATE TABLE table_name_7 (binibining_pilipinas_international VARCHAR, year VARCHAR, binibining_pilipinas_universe VARCHAR) | What Binibining Pilipinas-International has a Year larger than 1990, and a Binibining Pilipinas-Universe of maria lourdes gonzalez? |
SELECT first_runner_up FROM table_name_40 WHERE miss_maja_pilipinas = "nanette prodigalidad" | CREATE TABLE table_name_40 (first_runner_up VARCHAR, miss_maja_pilipinas VARCHAR) | What First runner-up has a Miss Maja Pilipinas of nanette prodigalidad? |
SELECT MIN(year) FROM table_name_90 WHERE binibining_pilipinas_international = "jessie alice salones dixson" | CREATE TABLE table_name_90 (year INTEGER, binibining_pilipinas_international VARCHAR) | What is the smallest Year with a Binibining Pilipinas-International of jessie alice salones dixson? |
SELECT binibining_pilipinas_international FROM table_name_2 WHERE year = 1975 | CREATE TABLE table_name_2 (binibining_pilipinas_international VARCHAR, year VARCHAR) | What Binibining Pilipinas-International has a Year of 1975? |
SELECT to_par FROM table_name_47 WHERE player = "jesper parnevik" | CREATE TABLE table_name_47 (to_par VARCHAR, player VARCHAR) | What is To par, when Player is "Jesper Parnevik"? |
SELECT player FROM table_name_43 WHERE place = "1" | CREATE TABLE table_name_43 (player VARCHAR, place VARCHAR) | What is Player, when Place is "1"? |
SELECT to_par FROM table_name_74 WHERE country = "united states" AND player = "mark brooks" | CREATE TABLE table_name_74 (to_par VARCHAR, country VARCHAR, player VARCHAR) | What is To par, when Country is "United States", and when Player is "Mark Brooks"? |
SELECT place FROM table_name_17 WHERE player = "phil mickelson" | CREATE TABLE table_name_17 (place VARCHAR, player VARCHAR) | What is Place, when Player is "Phil Mickelson"? |
SELECT score FROM table_name_68 WHERE player = "brad faxon" | CREATE TABLE table_name_68 (score VARCHAR, player VARCHAR) | What is Score, when Player is "Brad Faxon"? |
SELECT MIN(edition) FROM table_name_64 WHERE year > 2003 AND third = "tikveš" AND runner_up = "sileks" | CREATE TABLE table_name_64 (edition INTEGER, runner_up VARCHAR, year VARCHAR, third VARCHAR) | What was the edition after 2003 when the Third was Tikveš and Sileks was the runner-up? |
SELECT MAX(year) FROM table_name_7 WHERE edition = 14 | CREATE TABLE table_name_7 (year INTEGER, edition VARCHAR) | What was the latest year with an edition of 14? |
SELECT venue FROM table_name_28 WHERE date = "18/03/2006" | CREATE TABLE table_name_28 (venue VARCHAR, date VARCHAR) | What was the venue for the game on 18/03/2006? |
SELECT score FROM table_name_96 WHERE place = "t8" | CREATE TABLE table_name_96 (score VARCHAR, place VARCHAR) | What was the score when the place was t8? |
SELECT country FROM table_name_32 WHERE score = 71 - 66 - 66 - 71 = 274 | CREATE TABLE table_name_32 (country VARCHAR, score VARCHAR) | What country scored 71-66-66-71=274? |
SELECT country FROM table_name_2 WHERE score = 66 - 65 - 66 - 72 = 269 | CREATE TABLE table_name_2 (country VARCHAR, score VARCHAR) | What country scored 66-65-66-72=269? |
SELECT money___$__ FROM table_name_94 WHERE place = "t3" AND country = "united states" | CREATE TABLE table_name_94 (money___$__ VARCHAR, place VARCHAR, country VARCHAR) | What was the money for place t3 and United States? |
SELECT country FROM table_name_52 WHERE player = "jeff sluman" | CREATE TABLE table_name_52 (country VARCHAR, player VARCHAR) | What country does Jeff Sluman play for? |
SELECT to_par FROM table_name_70 WHERE place = "t8" AND score = 71 - 66 - 66 - 71 = 274 | CREATE TABLE table_name_70 (to_par VARCHAR, place VARCHAR, score VARCHAR) | What was the to par for place t8 and a score of 71-66-66-71=274? |
SELECT home_team FROM table_name_47 WHERE away_team = "fleetwood town" | CREATE TABLE table_name_47 (home_team VARCHAR, away_team VARCHAR) | What home team played against Fleetwood Town? |
SELECT callsign FROM table_name_66 WHERE frequency = 1300 | CREATE TABLE table_name_66 (callsign VARCHAR, frequency VARCHAR) | What callsign has 1300 as the frequency? |
SELECT stadium FROM table_name_66 WHERE club = "f.c. igea virtus barcellona" | CREATE TABLE table_name_66 (stadium VARCHAR, club VARCHAR) | What's the name of the stadium when the club was F.C. Igea Virtus Barcellona? |
SELECT MAX(capacity) FROM table_name_30 WHERE club = "f.c. igea virtus barcellona" | CREATE TABLE table_name_30 (capacity INTEGER, club VARCHAR) | What was the largest capacity when the club was F.C. Igea Virtus Barcellona? |
SELECT name FROM table_name_90 WHERE total = 34 | CREATE TABLE table_name_90 (name VARCHAR, total VARCHAR) | Who had a total of 34? |
SELECT highest_rank FROM table_name_60 WHERE total < 30 AND name = "takatōriki" | CREATE TABLE table_name_60 (highest_rank VARCHAR, total VARCHAR, name VARCHAR) | What rank is Takatōriki having less than 30 total? |
SELECT SUM(total) FROM table_name_42 WHERE first = "november 1966" | CREATE TABLE table_name_42 (total INTEGER, first VARCHAR) | What was the total when the first was November 1966? |
SELECT last FROM table_name_72 WHERE total > 26 AND first = "january 2001" | CREATE TABLE table_name_72 (last VARCHAR, total VARCHAR, first VARCHAR) | What is the last when the first was January 2001 and more than 26 total? |
SELECT MAX(total) FROM table_name_87 WHERE last = "september 1970" | CREATE TABLE table_name_87 (total INTEGER, last VARCHAR) | What is the greatest total when the last was September 1970? |
SELECT highest_rank FROM table_name_53 WHERE name = "takatōriki" | CREATE TABLE table_name_53 (highest_rank VARCHAR, name VARCHAR) | What rank is Takatōriki? |
SELECT SUM(year) FROM table_name_55 WHERE pts = "54 (73)" | CREATE TABLE table_name_55 (year INTEGER, pts VARCHAR) | What year has 54 (73) points? |
SELECT chassis FROM table_name_90 WHERE year > 1967 | CREATE TABLE table_name_90 (chassis VARCHAR, year INTEGER) | What is the chassis more recent than 1967? |
SELECT AVG(year) FROM table_name_19 WHERE chassis = "lotus 25" | CREATE TABLE table_name_19 (year INTEGER, chassis VARCHAR) | What is the year of the Lotus 25 chassis? |
SELECT COUNT(year) FROM table_name_97 WHERE chassis = "lotus 18" | CREATE TABLE table_name_97 (year VARCHAR, chassis VARCHAR) | What is the year of the Lotus 18 chassis? |
SELECT first_elected FROM table_name_16 WHERE district = "minnesota 2" | CREATE TABLE table_name_16 (first_elected VARCHAR, district VARCHAR) | What is First Elected, when District is "Minnesota 2"? |
SELECT MIN(first_elected) FROM table_name_19 WHERE party = "republican" AND district = "minnesota 1" | CREATE TABLE table_name_19 (first_elected INTEGER, party VARCHAR, district VARCHAR) | What is the lowest First Elected, when Party is "Republican", and when District is "Minnesota 1"? |
SELECT party FROM table_name_10 WHERE results = "re-elected" AND first_elected > 1990 AND district = "minnesota 4" | CREATE TABLE table_name_10 (party VARCHAR, district VARCHAR, results VARCHAR, first_elected VARCHAR) | What is Party, when Results is "Re-Elected", when First Elected is greater than 1990, and when District is "Minnesota 4"? |
SELECT incumbent FROM table_name_75 WHERE results = "re-elected" AND party = "democratic" AND district = "minnesota 7" | CREATE TABLE table_name_75 (incumbent VARCHAR, district VARCHAR, results VARCHAR, party VARCHAR) | What is Incumbent, when Results is "Re-Elected", when Party is "Democratic", and when District is "Minnesota 7"? |
SELECT score FROM table_name_30 WHERE place = "t5" AND country = "united states" | CREATE TABLE table_name_30 (score VARCHAR, place VARCHAR, country VARCHAR) | Which Score has a Place of t5, and a Country of united states? |
SELECT score FROM table_name_86 WHERE player = "seve ballesteros" | CREATE TABLE table_name_86 (score VARCHAR, player VARCHAR) | Name The Score of Player of seve ballesteros? |
SELECT country FROM table_name_60 WHERE place = "2" | CREATE TABLE table_name_60 (country VARCHAR, place VARCHAR) | Which Country has a Place of 2? |
SELECT wins FROM table_name_80 WHERE losses = 5 | CREATE TABLE table_name_80 (wins VARCHAR, losses VARCHAR) | How many wins did they have when they had 5 losses? |
SELECT COUNT(byes) FROM table_name_48 WHERE against < 1544 AND wins = 13 AND draws > 0 | CREATE TABLE table_name_48 (byes VARCHAR, draws VARCHAR, against VARCHAR, wins VARCHAR) | How many byes did they have against smaller than 1544, 13 wins, and draws larger than 0? |
SELECT COUNT(byes) FROM table_name_55 WHERE draws > 0 | CREATE TABLE table_name_55 (byes VARCHAR, draws INTEGER) | How many byes has a draw larger than 0? |
SELECT MIN(against) FROM table_name_84 WHERE wins < 9 AND draws < 0 | CREATE TABLE table_name_84 (against INTEGER, wins VARCHAR, draws VARCHAR) | What is the lowest against that has less than 9 wins, and draws smaller than 0? |
Subsets and Splits