answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT republican_ticket FROM table_name_49 WHERE democratic_ticket = "matthew j. merritt" | CREATE TABLE table_name_49 (republican_ticket VARCHAR, democratic_ticket VARCHAR) | Who's the Republican ticket with a Democratic ticket of matthew j. merritt? |
SELECT Giant AS slalom FROM table_name_94 WHERE super_g = "37" | CREATE TABLE table_name_94 (Giant VARCHAR, super_g VARCHAR) | What is the giant slalom with a 37 super g? |
SELECT season FROM table_name_87 WHERE round = "first round" AND result = "4–1, 0–1" | CREATE TABLE table_name_87 (season VARCHAR, round VARCHAR, result VARCHAR) | What season had a game in the first round with a result of 4–1, 0–1? |
SELECT country FROM table_name_44 WHERE opponent = "sampdoria" | CREATE TABLE table_name_44 (country VARCHAR, opponent VARCHAR) | What country had an opponent of Sampdoria? |
SELECT opponent FROM table_name_64 WHERE round = "second round" | CREATE TABLE table_name_64 (opponent VARCHAR, round VARCHAR) | Who was the opponent during the second round? |
SELECT result FROM table_name_5 WHERE round = "second round" | CREATE TABLE table_name_5 (result VARCHAR, round VARCHAR) | What was the result of the second round? |
SELECT opponent FROM table_name_86 WHERE attendance = "26,880" | CREATE TABLE table_name_86 (opponent VARCHAR, attendance VARCHAR) | What Opponent has an Attendance that is 26,880? |
SELECT nation FROM table_name_95 WHERE record = "5.06m(16ft7in)" | CREATE TABLE table_name_95 (nation VARCHAR, record VARCHAR) | What nation has a Record of 5.06m(16ft7in)? |
SELECT date FROM table_name_47 WHERE nation = "russia" AND venue = "madrid , spain" | CREATE TABLE table_name_47 (date VARCHAR, nation VARCHAR, venue VARCHAR) | What is the Date when Russia was the nation and the venue was madrid , spain? |
SELECT date FROM table_name_45 WHERE athlete = "yelena isinbayeva" AND record = "4.90m(16ft0¾in)" | CREATE TABLE table_name_45 (date VARCHAR, athlete VARCHAR, record VARCHAR) | What is the Date when yelena isinbayeva was the Athlete, with a Record of 4.90m(16ft0¾in)? |
SELECT nation FROM table_name_62 WHERE athlete = "emma george" AND record = "4.58m(15ft0¼in)" | CREATE TABLE table_name_62 (nation VARCHAR, athlete VARCHAR, record VARCHAR) | What is the Nation when the Athlete was emma george, and a Record of 4.58m(15ft0¼in)? |
SELECT tied FROM table_name_19 WHERE losses = "8" AND win__percentage = "50%" | CREATE TABLE table_name_19 (tied VARCHAR, losses VARCHAR, win__percentage VARCHAR) | Who tied with 8 losses and 50% wins? |
SELECT wins FROM table_name_34 WHERE losses = "ipl" | CREATE TABLE table_name_34 (wins VARCHAR, losses VARCHAR) | Which win has a loss of IPL? |
SELECT wins FROM table_name_71 WHERE win__percentage = "38.67%" | CREATE TABLE table_name_71 (wins VARCHAR, win__percentage VARCHAR) | Which win has 38.67% wins? |
SELECT win__percentage FROM table_name_4 WHERE losses = "48" | CREATE TABLE table_name_4 (win__percentage VARCHAR, losses VARCHAR) | What percentage of wins has 48 losses? |
SELECT tied FROM table_name_50 WHERE played = "15" | CREATE TABLE table_name_50 (tied VARCHAR, played VARCHAR) | What was tied at 15 played? |
SELECT AVG(round) FROM table_name_36 WHERE player = "john markham" | CREATE TABLE table_name_36 (round INTEGER, player VARCHAR) | What was the average round for john markham draft pick? |
SELECT school FROM table_name_91 WHERE pick < 125 AND player = "will allen" | CREATE TABLE table_name_91 (school VARCHAR, pick VARCHAR, player VARCHAR) | What school did draft pick before 125, will allen go to? |
SELECT school FROM table_name_6 WHERE round = 3 | CREATE TABLE table_name_6 (school VARCHAR, round VARCHAR) | What school did draft pick from round 3 go to? |
SELECT MIN(lost) FROM table_name_85 WHERE team = "paulistano" AND points > 39 | CREATE TABLE table_name_85 (lost INTEGER, team VARCHAR, points VARCHAR) | What is the fewest games lost by Paulistano with more than 39 points? |
SELECT SUM(against) FROM table_name_97 WHERE played > 22 | CREATE TABLE table_name_97 (against INTEGER, played INTEGER) | How many games were played against when the team played more than 22 total? |
SELECT MAX(against) FROM table_name_62 WHERE difference = "58" AND played > 22 | CREATE TABLE table_name_62 (against INTEGER, difference VARCHAR, played VARCHAR) | What was the highest number of against when the difference was 58 and the total played was more than 22? |
SELECT score FROM table_name_48 WHERE winning_team = "san antonio spurs" | CREATE TABLE table_name_48 (score VARCHAR, winning_team VARCHAR) | What is the Score with a Winning team that is san antonio spurs? |
SELECT result FROM table_name_72 WHERE attendance = "60,705" | CREATE TABLE table_name_72 (result VARCHAR, attendance VARCHAR) | Which Result has an Attendance of 60,705? |
SELECT AVG(week) FROM table_name_82 WHERE result = "w 17–13" | CREATE TABLE table_name_82 (week INTEGER, result VARCHAR) | How many Weeks have a Result of w 17–13? |
SELECT opponent FROM table_name_78 WHERE week > 3 AND date = "october 6, 1991" | CREATE TABLE table_name_78 (opponent VARCHAR, week VARCHAR, date VARCHAR) | Which Opponent that has a Week larger than 3 on october 6, 1991? |
SELECT date FROM table_name_7 WHERE attendance = "45,795" | CREATE TABLE table_name_7 (date VARCHAR, attendance VARCHAR) | When has Attendances of 45,795? |
SELECT MAX(week) FROM table_name_32 WHERE result = "l 24–20" AND opponent = "at new england patriots" | CREATE TABLE table_name_32 (week INTEGER, result VARCHAR, opponent VARCHAR) | In what Week has a Result of l 24–20, and a Opponent of at new england patriots? |
SELECT years FROM table_name_41 WHERE goals < 160 | CREATE TABLE table_name_41 (years VARCHAR, goals INTEGER) | What years were the goals less then 160? |
SELECT iata FROM table_name_19 WHERE icao = "hlls" | CREATE TABLE table_name_19 (iata VARCHAR, icao VARCHAR) | What is the IATA code for the airport with an ICAO code of HLLS? |
SELECT airport FROM table_name_43 WHERE city = "sabha" | CREATE TABLE table_name_43 (airport VARCHAR, city VARCHAR) | What airport is in Sabha? |
SELECT icao FROM table_name_1 WHERE iata = "rba" | CREATE TABLE table_name_1 (icao VARCHAR, iata VARCHAR) | What is the ICAO code for the airport with RBA as its IATA code? |
SELECT country FROM table_name_11 WHERE city = "istanbul" | CREATE TABLE table_name_11 (country VARCHAR, city VARCHAR) | What country is Istanbul in? |
SELECT airport FROM table_name_86 WHERE iata = "seb" | CREATE TABLE table_name_86 (airport VARCHAR, iata VARCHAR) | Which airport has SEB as its IATA code? |
SELECT position FROM table_name_89 WHERE school_club_team = "winston-salem state" | CREATE TABLE table_name_89 (position VARCHAR, school_club_team VARCHAR) | What position does the player from Winston-Salem State play? |
SELECT COUNT(points) FROM table_name_23 WHERE rank = "6th" AND draw < 5 | CREATE TABLE table_name_23 (points VARCHAR, rank VARCHAR, draw VARCHAR) | What is the total number of points for the song that was ranked 6th and had a draw number smaller than 5? |
SELECT AVG(year) FROM table_name_78 WHERE floors > 75 | CREATE TABLE table_name_78 (year INTEGER, floors INTEGER) | When was the average year that the number of floors was greater than 75? |
SELECT AVG(floors) FROM table_name_59 WHERE name = "venetian tower" | CREATE TABLE table_name_59 (floors INTEGER, name VARCHAR) | What is the average number of floors of the Venetian tower? |
SELECT arena FROM table_name_5 WHERE founded = 2000 | CREATE TABLE table_name_5 (arena VARCHAR, founded VARCHAR) | Which arena was founded in 2000? |
SELECT COUNT(rank) FROM table_name_58 WHERE matches = "427" AND goals < 320 | CREATE TABLE table_name_58 (rank VARCHAR, matches VARCHAR, goals VARCHAR) | Can you tell me the total number of Rank that has the Matches of 427, and the Goals smaller than 320? |
SELECT matches FROM table_name_89 WHERE rank = 1 | CREATE TABLE table_name_89 (matches VARCHAR, rank VARCHAR) | Can you tell me the Matches that has the Rank of 1? |
SELECT matches FROM table_name_55 WHERE rank < 6 AND years = "1943-62" | CREATE TABLE table_name_55 (matches VARCHAR, rank VARCHAR, years VARCHAR) | Can you tell me the Matches that has the Rank smaller than 6, and the Years of 1943-62? |
SELECT class FROM table_name_52 WHERE number < 4 AND built = "1988" | CREATE TABLE table_name_52 (class VARCHAR, number VARCHAR, built VARCHAR) | Which class had a number under 4 and was built in 1988? |
SELECT COUNT(withdrawn) FROM table_name_93 WHERE number > 5 | CREATE TABLE table_name_93 (withdrawn VARCHAR, number INTEGER) | How many items withdrawn had numbers over 5? |
SELECT SUM(number) FROM table_name_65 WHERE type = "driving van trailer" | CREATE TABLE table_name_65 (number INTEGER, type VARCHAR) | What is the sum of numbers that had a type of Driving Van Trailer? |
SELECT COUNT(rank) FROM table_name_61 WHERE silver = 1 AND total > 3 AND gold > 2 | CREATE TABLE table_name_61 (rank VARCHAR, gold VARCHAR, silver VARCHAR, total VARCHAR) | What rank has 1 silver, more than 2 gold, and a total larger than 3? |
SELECT MAX(gold) FROM table_name_42 WHERE silver < 0 | CREATE TABLE table_name_42 (gold INTEGER, silver INTEGER) | What is the most gold where silver is 0? |
SELECT COUNT(silver) FROM table_name_16 WHERE rank > 4 AND bronze < 1 | CREATE TABLE table_name_16 (silver VARCHAR, rank VARCHAR, bronze VARCHAR) | What is the number of silver where the rank is higher than 4 and bronze is smaller than 1? |
SELECT AVG(rank) FROM table_name_70 WHERE gold < 0 | CREATE TABLE table_name_70 (rank INTEGER, gold INTEGER) | What is the rank where the gold is 0? |
SELECT COUNT(rank) FROM table_name_63 WHERE bronze = 1 AND silver > 1 | CREATE TABLE table_name_63 (rank VARCHAR, bronze VARCHAR, silver VARCHAR) | What is the rank that has 1 bronze and 1 silver? |
SELECT SUM(launch_failures) FROM table_name_73 WHERE launched = 4 AND not_usable > 0 | CREATE TABLE table_name_73 (launch_failures INTEGER, launched VARCHAR, not_usable VARCHAR) | What is the total launch failures when there are 4 launches, and the not usable is greater than 0? |
SELECT MAX(not_usable) FROM table_name_30 WHERE launch_failures > 0 AND retired < 30 AND block = "block i" | CREATE TABLE table_name_30 (not_usable INTEGER, block VARCHAR, launch_failures VARCHAR, retired VARCHAR) | What is the highest number of not usable satellites when there are more than 0 launch failures, less than 30 retired, and the block is I? |
SELECT AVG(not_usable) FROM table_name_46 WHERE retired = 0 AND launch_failures < 1 | CREATE TABLE table_name_46 (not_usable INTEGER, retired VARCHAR, launch_failures VARCHAR) | What is the average number of not usable satellited when there are 0 retired, and the launch failures are less than 1? |
SELECT MIN(cultural_and_educational_panel) FROM table_name_28 WHERE university_of_dublin < 3 AND industrial_and_commercial_panel > 0 AND agricultural_panel > 4 | CREATE TABLE table_name_28 (cultural_and_educational_panel INTEGER, agricultural_panel VARCHAR, university_of_dublin VARCHAR, industrial_and_commercial_panel VARCHAR) | What is the lowest number of members on the Cultural and Educational Panel, when the University of Dublin had 3 members, when the Industrial and Commercial Panel had more than 0 members, and when the Agricultural Panel had more than 4 members? |
SELECT AVG(nominated_by_the_taoiseach) FROM table_name_10 WHERE agricultural_panel < 1 AND administrative_panel < 0 | CREATE TABLE table_name_10 (nominated_by_the_taoiseach INTEGER, agricultural_panel VARCHAR, administrative_panel VARCHAR) | What was the average number of members Nominated by the Taoiseach, when the Agricultural Panel had less than 1 member, and when the Administrative Panel had fewer than 0 members? |
SELECT MIN(agricultural_panel) FROM table_name_29 WHERE industrial_and_commercial_panel = 9 AND national_university_of_ireland > 3 | CREATE TABLE table_name_29 (agricultural_panel INTEGER, industrial_and_commercial_panel VARCHAR, national_university_of_ireland VARCHAR) | What was the lowest number of members on the Agricultural Panel, when the Industrial and Commercial Panel had 9 members, and when the National University of Ireland had more than 3 members? |
SELECT MAX(national_university_of_ireland) FROM table_name_57 WHERE total = 60 AND administrative_panel > 7 | CREATE TABLE table_name_57 (national_university_of_ireland INTEGER, total VARCHAR, administrative_panel VARCHAR) | What was the greatest number of members for the National University of Ireland, when the Total number of members in the Seanad was 60, and when the Administrative Panel had more than 7 members? |
SELECT final_round FROM table_name_50 WHERE player = "danilo gallinari" | CREATE TABLE table_name_50 (final_round VARCHAR, player VARCHAR) | What is Final round, when Player is Danilo Gallinari? |
SELECT singapore_gross FROM table_name_64 WHERE director = "1998" | CREATE TABLE table_name_64 (singapore_gross VARCHAR, director VARCHAR) | For the film with director listed as 1998, what was the gross in Singapore? |
SELECT director FROM table_name_96 WHERE producer = "river films" | CREATE TABLE table_name_96 (director VARCHAR, producer VARCHAR) | Who was the director for the film produced by River Films? |
SELECT producer FROM table_name_45 WHERE director = "1998" | CREATE TABLE table_name_45 (producer VARCHAR, director VARCHAR) | Who was the producer for the film directed by 1998? |
SELECT singapore_gross FROM table_name_3 WHERE title = "1997" | CREATE TABLE table_name_3 (singapore_gross VARCHAR, title VARCHAR) | For the film titled 1997, what was the gross in Singapore? |
SELECT producer FROM table_name_42 WHERE director = "1997" | CREATE TABLE table_name_42 (producer VARCHAR, director VARCHAR) | Who was the producer for the film directed by 1997? |
SELECT singapore_gross FROM table_name_66 WHERE director = "1991" | CREATE TABLE table_name_66 (singapore_gross VARCHAR, director VARCHAR) | For the directed by 1991, what was the gross in Singapore? |
SELECT MAX(points) FROM table_name_36 WHERE goals_scored < 25 AND draws = 3 AND games_played > 21 | CREATE TABLE table_name_36 (points INTEGER, games_played VARCHAR, goals_scored VARCHAR, draws VARCHAR) | What is the most points scored for teams with under 25 goals scored, 3 draws, and more than 21 games played? |
SELECT date FROM table_name_23 WHERE set_1 = "25-18" | CREATE TABLE table_name_23 (date VARCHAR, set_1 VARCHAR) | What day was there a set 1 of 25-18? |
SELECT week FROM table_name_92 WHERE kickoff___et__ = "4:05 pm" AND result = "w 31–14" | CREATE TABLE table_name_92 (week VARCHAR, kickoff___et__ VARCHAR, result VARCHAR) | What is the Week when the kick off was at 4:05 pm, and the result was w 31–14? |
SELECT kickoff___et__ FROM table_name_31 WHERE opponent = "miami dolphins" | CREATE TABLE table_name_31 (kickoff___et__ VARCHAR, opponent VARCHAR) | What time was the kickoff when the miami dolphins were the opponent? |
SELECT round_2 FROM table_name_56 WHERE round_4 = "double" AND round_3 = "single" | CREATE TABLE table_name_56 (round_2 VARCHAR, round_4 VARCHAR, round_3 VARCHAR) | What is Round 2 when Round 4 is Double and Round 3 is Single? |
SELECT points FROM table_name_29 WHERE country = "united kingdom" AND place = 10 | CREATE TABLE table_name_29 (points VARCHAR, country VARCHAR, place VARCHAR) | What points has united kingdom as the country, and 10 as the place? |
SELECT machine FROM table_name_68 WHERE rider = "tony rutter" | CREATE TABLE table_name_68 (machine VARCHAR, rider VARCHAR) | What machine has tony rutter as the rider? |
SELECT machine FROM table_name_95 WHERE place = 5 | CREATE TABLE table_name_95 (machine VARCHAR, place VARCHAR) | What machine has 5 as the place? |
SELECT SUM(place) FROM table_name_30 WHERE machine = "yamaha" AND speed = "89.85mph" | CREATE TABLE table_name_30 (place INTEGER, machine VARCHAR, speed VARCHAR) | How many places have yamaha as the machine, and 89.85mph as the speed? |
SELECT COUNT(place) FROM table_name_21 WHERE artist = "big hit" AND votes < 2934 | CREATE TABLE table_name_21 (place VARCHAR, artist VARCHAR, votes VARCHAR) | How many places did the artist Big Hit have with less than 2934 votes? |
SELECT AVG(votes) FROM table_name_58 WHERE place < 6 AND producer = "carlos coelho" AND draw > 5 | CREATE TABLE table_name_58 (votes INTEGER, draw VARCHAR, place VARCHAR, producer VARCHAR) | How many average votes did producer carlos coelho have in a higher place than 6 and with a draw larger than 5? |
SELECT myspace_band FROM table_name_38 WHERE original_airdate = "19 february 2008" | CREATE TABLE table_name_38 (myspace_band VARCHAR, original_airdate VARCHAR) | What is the name of the MySpace Band with an Original Airdate of 19 february 2008? |
SELECT musical_guest_song_performed FROM table_name_99 WHERE pilot = "3" | CREATE TABLE table_name_99 (musical_guest_song_performed VARCHAR, pilot VARCHAR) | What is the Musical Guest/Song with a pilot of 3? |
SELECT original_airdate FROM table_name_26 WHERE youtube_hero = "greg pattillo" | CREATE TABLE table_name_26 (original_airdate VARCHAR, youtube_hero VARCHAR) | What is the Original Airdate for the YouTube Hero greg pattillo? |
SELECT musical_guest_song_performed FROM table_name_85 WHERE original_airdate = "january 2008" | CREATE TABLE table_name_85 (musical_guest_song_performed VARCHAR, original_airdate VARCHAR) | What is the Musical Guest/Song with an original airdate of january 2008? |
SELECT pilot FROM table_name_76 WHERE youtube_hero = "greg pattillo" | CREATE TABLE table_name_76 (pilot VARCHAR, youtube_hero VARCHAR) | What is the Pilot number for the YouTube Hero greg pattillo? |
SELECT myspace_band FROM table_name_77 WHERE original_airdate = "25 march 2008" | CREATE TABLE table_name_77 (myspace_band VARCHAR, original_airdate VARCHAR) | What is the name of the MySpace Band with an Original Airdate of 25 march 2008? |
SELECT COUNT(top_25) FROM table_name_23 WHERE wins = 0 AND cuts_made = 1 AND events > 5 | CREATE TABLE table_name_23 (top_25 VARCHAR, events VARCHAR, wins VARCHAR, cuts_made VARCHAR) | What is the total number of top-25s for tournaments that had 0 wins, 1 cut made, and more than 5 events? |
SELECT MIN(top_5) FROM table_name_90 WHERE wins > 1 | CREATE TABLE table_name_90 (top_5 INTEGER, wins INTEGER) | What is the fewest number of top-5s for events with more than 1 win? |
SELECT MAX(top_25) FROM table_name_15 WHERE wins < 0 | CREATE TABLE table_name_15 (top_25 INTEGER, wins INTEGER) | What is the highest number of top-25s for events with 0 wins? |
SELECT home_leg FROM table_name_88 WHERE opponents = "rotor volgograd" | CREATE TABLE table_name_88 (home_leg VARCHAR, opponents VARCHAR) | What is the home leg who are opponents of rotor volgograd |
SELECT round FROM table_name_33 WHERE opponents = "ajax" | CREATE TABLE table_name_33 (round VARCHAR, opponents VARCHAR) | What is the round with ajax opponents |
SELECT acquisition_via FROM table_name_79 WHERE position = "forward" AND school_club_team = "state" | CREATE TABLE table_name_79 (acquisition_via VARCHAR, position VARCHAR, school_club_team VARCHAR) | Which acquisition via has a position of forward and is on the state school or club? |
SELECT acquisition_via FROM table_name_82 WHERE school_club_team = "state" | CREATE TABLE table_name_82 (acquisition_via VARCHAR, school_club_team VARCHAR) | Which is the acquisition via that has a school or club team of state? |
SELECT position FROM table_name_50 WHERE name = "allen gamboa" | CREATE TABLE table_name_50 (position VARCHAR, name VARCHAR) | What is the position of Allen Gamboa? |
SELECT position FROM table_name_7 WHERE number = 16 | CREATE TABLE table_name_7 (position VARCHAR, number VARCHAR) | Which position is number 16? |
SELECT AVG(year) FROM table_name_80 WHERE date = "tba" AND designated_home = "oakland raiders" | CREATE TABLE table_name_80 (year INTEGER, date VARCHAR, designated_home VARCHAR) | What year had a date of TBA where the Oakland raiders were the home team? |
SELECT designated_home FROM table_name_34 WHERE date = "october 28" AND designated_visitors = "new england patriots" | CREATE TABLE table_name_34 (designated_home VARCHAR, date VARCHAR, designated_visitors VARCHAR) | Who was the home team on October 28 when the new england patriots were the visitors? |
SELECT designated_visitors FROM table_name_42 WHERE designated_home = "atlanta falcons" | CREATE TABLE table_name_42 (designated_visitors VARCHAR, designated_home VARCHAR) | Who were the visitors when the Atlanta Falcons were the home team? |
SELECT designated_home FROM table_name_53 WHERE television = "fox" AND year > 2007 AND date = "october 23" | CREATE TABLE table_name_53 (designated_home VARCHAR, date VARCHAR, television VARCHAR, year VARCHAR) | Who were the home team during the game that aired on Fox after 2007 on October 23? |
SELECT birthplace FROM table_name_86 WHERE weight__kg_ = 98 AND birthdate = "may 1, 1984" | CREATE TABLE table_name_86 (birthplace VARCHAR, weight__kg_ VARCHAR, birthdate VARCHAR) | What was the birthplace of the player who weighs 98 KG and was born on May 1, 1984? |
SELECT name_v_t_e FROM table_name_32 WHERE weight__kg_ = 84 AND position = "d" AND jersey_number = 2 | CREATE TABLE table_name_32 (name_v_t_e VARCHAR, jersey_number VARCHAR, weight__kg_ VARCHAR, position VARCHAR) | What was the Name v t e, of the player whose Weight (kg) was 84, whose Position was D, and whose Jersey number was 2? |
SELECT MIN(win__percentage) FROM table_name_20 WHERE opposition = "perth scorchers" | CREATE TABLE table_name_20 (win__percentage INTEGER, opposition VARCHAR) | What is the lowest win percentage for when Perth Scorchers is the opposition? |
SELECT date FROM table_name_22 WHERE week = 13 | CREATE TABLE table_name_22 (date VARCHAR, week VARCHAR) | On which date was the game played on Week 13? |
SELECT COUNT(std_saps) FROM table_name_55 WHERE opt_saps = "0-11" | CREATE TABLE table_name_55 (std_saps VARCHAR, opt_saps VARCHAR) | What is the total number of Std SAPs with 0-11 Opt SAPS? |
SELECT zaaps___ziips FROM table_name_36 WHERE model = "e64" | CREATE TABLE table_name_36 (zaaps___ziips VARCHAR, model VARCHAR) | For Model e64 what is the zAAPs/zIIPs? |
Subsets and Splits