answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT winner FROM table_name_41 WHERE year > 1989 AND owner = "stronach stable"
Who was the winner after 1989 when Stronach Stable was the owner?
CREATE TABLE table_name_41 (winner VARCHAR, year VARCHAR, owner VARCHAR)
SELECT us_national_average_electric_mix FROM table_16105186_2 WHERE midwest__des_moines_ = "280 g/mi (174 g/km)"
What was the US national average electric mix rating for the vehicle that was rated 280 g/mi (174 g/km) in the Midwest?
CREATE TABLE table_16105186_2 (us_national_average_electric_mix VARCHAR, midwest__des_moines_ VARCHAR)
SELECT supporting FROM table_28490105_1 WHERE gt_winning_car = "Dino Crescentini"
Who was supporting in the round when the gt winning car was dino crescentini?
CREATE TABLE table_28490105_1 (supporting VARCHAR, gt_winning_car VARCHAR)
SELECT MIN(draw) FROM table_name_40 WHERE champs < 0
Which Draw is the lowest one that has Champs smaller than 0?
CREATE TABLE table_name_40 (draw INTEGER, champs INTEGER)
SELECT AVG(finish) FROM table_name_89 WHERE start = 24 AND year > 1987
What is the average finish that has 24 as the start, with a year after 1987?
CREATE TABLE table_name_89 (finish INTEGER, start VARCHAR, year VARCHAR)
SELECT COUNT(game) FROM table_27756314_11 WHERE high_assists = "Luke Ridnour (5)"
In how many different games did Luke Ridnour (5) did the most high assists?
CREATE TABLE table_27756314_11 (game VARCHAR, high_assists VARCHAR)
SELECT fate FROM table_name_4 WHERE nationality = "united kingdom" AND tonnage = "1,809"
Which Fate has a Nationality of united kingdom, and a Tonnage of 1,809?
CREATE TABLE table_name_4 (fate VARCHAR, nationality VARCHAR, tonnage VARCHAR)
SELECT record FROM table_name_46 WHERE game > 7 AND location = "boston garden" AND opponent = "providence steam rollers"
What is the record of the game with a game number greater than 7 at boston garden with the providence steam rollers as the opponent?
CREATE TABLE table_name_46 (record VARCHAR, opponent VARCHAR, game VARCHAR, location VARCHAR)
SELECT fate FROM table_name_15 WHERE tonnage = "7,217"
Which Fate has a Tonnage of 7,217?
CREATE TABLE table_name_15 (fate VARCHAR, tonnage VARCHAR)
SELECT player FROM table_name_41 WHERE school_club_team = "dartmouth"
Which player is from Dartmouth?
CREATE TABLE table_name_41 (player VARCHAR, school_club_team VARCHAR)
SELECT operating_systems FROM table_15038373_1 WHERE software = "SBaGen"
What are all the operating systems for sbagen?
CREATE TABLE table_15038373_1 (operating_systems VARCHAR, software VARCHAR)
SELECT MAX(score) FROM table_name_69 WHERE player = "arnold palmer"
How high did Arnold Palmer score in 1962?
CREATE TABLE table_name_69 (score INTEGER, player VARCHAR)
SELECT japanese_title FROM table_name_78 WHERE average_ratings = "9.2%" AND tv_station = "nhk"
What Japanese title had average ratings of 9.2% on the NHK station?
CREATE TABLE table_name_78 (japanese_title VARCHAR, average_ratings VARCHAR, tv_station VARCHAR)
SELECT country FROM table_name_36 WHERE time = "3:19.167"
What country has a time of 3:19.167?
CREATE TABLE table_name_36 (country VARCHAR, time VARCHAR)
SELECT third_place FROM table_17632217_2 WHERE runners_up = "Guangzhou Apollo"
Who was placed third when the ruuner up was Guangzhou Apollo?
CREATE TABLE table_17632217_2 (third_place VARCHAR, runners_up VARCHAR)
SELECT template_id FROM Documents GROUP BY template_id HAVING COUNT(*) > 1
Show ids for all templates that are used by more than one document.
CREATE TABLE Documents (template_id VARCHAR)
SELECT swedish_name FROM table_198175_2 WHERE residence_city = "Loviisa"
What is every Swedish name for residence city is Loviisa?
CREATE TABLE table_198175_2 (swedish_name VARCHAR, residence_city VARCHAR)
SELECT COUNT(heat) FROM table_name_5 WHERE country = "british virgin islands"
What's the total number of Heat recorded for the british virgin islands?
CREATE TABLE table_name_5 (heat VARCHAR, country VARCHAR)
SELECT MIN(pick__number) FROM table_2508633_2 WHERE nfl_team = "Denver Broncos"
Name the least pick number for the denver broncos
CREATE TABLE table_2508633_2 (pick__number INTEGER, nfl_team VARCHAR)
SELECT can_yayınları FROM table_name_39 WHERE güzelçamlı’nin_kayıp_panteri = "çevreci peri"
Which Can Yayınları has a Güzelçamlı’nin Kayıp Panteri of çevreci peri?
CREATE TABLE table_name_39 (can_yayınları VARCHAR, güzelçamlı’nin_kayıp_panteri VARCHAR)
SELECT winter_olympics FROM table_name_45 WHERE fis_nordic_world_ski_championships = "1976"
what is the winter olympics year when the fis nordic world ski championships is 1976?
CREATE TABLE table_name_45 (winter_olympics VARCHAR, fis_nordic_world_ski_championships VARCHAR)
SELECT incumbent FROM table_name_18 WHERE party = "democratic" AND first_elected = 1998
Which Democratic incumbent was first elected in 1998?
CREATE TABLE table_name_18 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR)
SELECT AVG(erp_w) FROM table_name_97 WHERE call_sign = "k207bk"
What is the average ERP W for callsign K207BK?
CREATE TABLE table_name_97 (erp_w INTEGER, call_sign VARCHAR)
SELECT authors FROM table_name_62 WHERE name = "mongolbittacus"
Which writer is named mongolbittacus?
CREATE TABLE table_name_62 (authors VARCHAR, name VARCHAR)
SELECT SUM(apps) FROM table_name_51 WHERE rank < 6 AND goals < 61
What are the apps for less than 61 goals and before rank 6?
CREATE TABLE table_name_51 (apps INTEGER, rank VARCHAR, goals VARCHAR)
SELECT line_name FROM table_name_7 WHERE nimt_junction = "huntly"
What line has Junction of Huntly NIMT
CREATE TABLE table_name_7 (line_name VARCHAR, nimt_junction VARCHAR)
SELECT date FROM table_name_65 WHERE format = "vinyl" AND label = "mercury"
What is Date, when Format is Vinyl, and when Label is Mercury?
CREATE TABLE table_name_65 (date VARCHAR, format VARCHAR, label VARCHAR)
SELECT title FROM table_19401346_1 WHERE original_air_date = "September 23, 2008"
What's the title of the episode originally aired on September 23, 2008?
CREATE TABLE table_19401346_1 (title VARCHAR, original_air_date VARCHAR)
SELECT final_score FROM table_name_41 WHERE sport = "baseball" AND year < 2005
What was the final score of a baseball game that happened before 2005?
CREATE TABLE table_name_41 (final_score VARCHAR, sport VARCHAR, year VARCHAR)
SELECT MAX(innings) FROM table_28846752_4 WHERE highest_score = "72"
What is the innings when the highest score is 72?
CREATE TABLE table_28846752_4 (innings INTEGER, highest_score VARCHAR)
SELECT rnd FROM table_13643320_2 WHERE gtp_winning_team = "#56 Blue Thunder Racing" AND gto_winning_team = "#38 Mandeville Auto Tech"
What us the number of the round during which #56 Blue Thunder Racing become the GTP winning team and #38 Mandeville Auto Tech became the GTO winning team?
CREATE TABLE table_13643320_2 (rnd VARCHAR, gtp_winning_team VARCHAR, gto_winning_team VARCHAR)
SELECT MIN(fa_cup_goals) FROM table_name_46 WHERE league_goals = "12" AND total = 14
What is the lowest number of FA Cup goals for players with 12 League goals and 14 total goals?
CREATE TABLE table_name_46 (fa_cup_goals INTEGER, league_goals VARCHAR, total VARCHAR)
SELECT new_zealand_kennel_club_toy_group FROM table_name_26 WHERE australian_national_kennel_council_toy_dogs_group = "papillon"
What is the New Zealand Kennel Club Toy Group with papillon as the Australian National Kennel Council Toy Dogs Group breed?
CREATE TABLE table_name_26 (new_zealand_kennel_club_toy_group VARCHAR, australian_national_kennel_council_toy_dogs_group VARCHAR)
SELECT team FROM table_name_96 WHERE game = 32
What is Team, when Game is "32"?
CREATE TABLE table_name_96 (team VARCHAR, game VARCHAR)
SELECT MAX(middle_schools) FROM table_2367847_2 WHERE year = "2005-2006"
Name the most middle schools for 2005-2006
CREATE TABLE table_2367847_2 (middle_schools INTEGER, year VARCHAR)
SELECT title FROM table_22078691_2 WHERE us_viewers__millions_ = "13.59"
What is the title that had 13.59 u.s. viewers (millions)?
CREATE TABLE table_22078691_2 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT construction_completed FROM table_name_9 WHERE listed = "09/21/1984" AND deleted = "11/04/1999"
When was construction completed that was listed on 09/21/1984 and a Deleted of 11/04/1999?
CREATE TABLE table_name_9 (construction_completed VARCHAR, listed VARCHAR, deleted VARCHAR)
SELECT rider FROM table_name_64 WHERE laps < 20 AND bike = "ducati 1098 rs 08" AND time = "accident" AND grid < 14
What rider has laps less than 20, a ducati 1098 rs 08 as the bike, with accident as the time, and a grid less than 14?
CREATE TABLE table_name_64 (rider VARCHAR, grid VARCHAR, time VARCHAR, laps VARCHAR, bike VARCHAR)
SELECT number_of_pnc_votes FROM table_name_39 WHERE election < 1996
How many PNC votes did the election before 1996 have?
CREATE TABLE table_name_39 (number_of_pnc_votes VARCHAR, election INTEGER)
SELECT high_assists FROM table_name_22 WHERE high_points = "hamilton (24)"
What is the high assists of Hamilton (24)?
CREATE TABLE table_name_22 (high_assists VARCHAR, high_points VARCHAR)
SELECT opened FROM table_name_84 WHERE major_series = "nascar"
What shows for opened for the Nascar Major Series?
CREATE TABLE table_name_84 (opened VARCHAR, major_series VARCHAR)
SELECT team FROM table_27755784_10 WHERE high_assists = "Stephen Curry (7)" AND high_points = "Monta Ellis (27)"
What is the team when the high assists was stephen curry (7) and the high points was monta ellis (27)?
CREATE TABLE table_27755784_10 (team VARCHAR, high_assists VARCHAR, high_points VARCHAR)
SELECT format FROM table_name_98 WHERE label = "candlelight records"
What is Candlelight Records format?
CREATE TABLE table_name_98 (format VARCHAR, label VARCHAR)
SELECT country FROM table_name_67 WHERE player = "larry mize"
What Country does Larry Mize play for?
CREATE TABLE table_name_67 (country VARCHAR, player VARCHAR)
SELECT drafted FROM table_1198175_1 WHERE pro_team = "Arizona Cardinals"
What is under drafted when pro team is arizona cardinals?
CREATE TABLE table_1198175_1 (drafted VARCHAR, pro_team VARCHAR)
SELECT word_form FROM table_name_30 WHERE other = "sam sep"
What can you say is the word from of sam sep?
CREATE TABLE table_name_30 (word_form VARCHAR, other VARCHAR)
SELECT AVG(total) FROM table_name_38 WHERE gold < 1 AND rank < 5
Name the average total for gold less than 1 and rank less than 5
CREATE TABLE table_name_38 (total INTEGER, gold VARCHAR, rank VARCHAR)
SELECT college FROM table_name_57 WHERE position = "halfback"
What is the College of the Halfback Player?
CREATE TABLE table_name_57 (college VARCHAR, position VARCHAR)
SELECT first_air_date FROM table_20971444_3 WHERE episode = 9
Name the first air date for 9 episode
CREATE TABLE table_20971444_3 (first_air_date VARCHAR, episode VARCHAR)
SELECT thursday FROM table_name_59 WHERE series = "big brother 13"
Which Thursday does big brother 13 air?
CREATE TABLE table_name_59 (thursday VARCHAR, series VARCHAR)
SELECT visitor FROM table_name_77 WHERE home = "chicago black hawks" AND date = "march 20"
What is the name of the visitor team who played home team Chicago Black Hawks on March 20?
CREATE TABLE table_name_77 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT MAX(pick) FROM table_name_76 WHERE position = "ss"
What's the highest pick for SS position?
CREATE TABLE table_name_76 (pick INTEGER, position VARCHAR)
SELECT party FROM table_19753079_12 WHERE district = "Florida 9"
What party got elected in Florida 9 district?
CREATE TABLE table_19753079_12 (party VARCHAR, district VARCHAR)
SELECT COUNT(goals_conceded) FROM table_name_75 WHERE points = 32 AND lost > 2 AND goals_scored > 22
How many goals were conceded by teams with 32 points, more than 2 losses and more than 22 goals scored?
CREATE TABLE table_name_75 (goals_conceded VARCHAR, goals_scored VARCHAR, points VARCHAR, lost VARCHAR)
SELECT rank FROM table_19149550_7 WHERE london_borough = "Southwark"
What is the rank of london borough in southwark?
CREATE TABLE table_19149550_7 (rank VARCHAR, london_borough VARCHAR)
SELECT hometown FROM table_name_98 WHERE player = "terry mills"
Where is Terry Mills from?
CREATE TABLE table_name_98 (hometown VARCHAR, player VARCHAR)
SELECT nominee FROM table_name_17 WHERE category = "outstanding director of a musical"
Which nominee was nominated in the Outstanding Director of a Musical category?
CREATE TABLE table_name_17 (nominee VARCHAR, category VARCHAR)
SELECT AVG(attendance) FROM table_name_45 WHERE opponent = "new orleans saints" AND week > 12
Can you tell me the average Attendance that has the Opponent of new orleans saints, and the Week larger than 12?
CREATE TABLE table_name_45 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
SELECT 1 AS st_leg FROM table_name_10 WHERE team_1 = "gambia"
What is the 1st leg result when team 1 is Gambia?
CREATE TABLE table_name_10 (team_1 VARCHAR)
SELECT born FROM table_name_3 WHERE ordained_bishop = "november 30, 1925"
When was the archbishop that was ordained as a bishop on November 30, 1925 born?
CREATE TABLE table_name_3 (born VARCHAR, ordained_bishop VARCHAR)
SELECT callsign FROM table_name_99 WHERE frequency = "0 864"
Frequency of 0 864 has what callsign?
CREATE TABLE table_name_99 (callsign VARCHAR, frequency VARCHAR)
SELECT SUM(frequency) FROM table_name_13 WHERE type = "christian pop"
What is the sum of Frequency, when Type is "Christian Pop"?
CREATE TABLE table_name_13 (frequency INTEGER, type VARCHAR)
SELECT COUNT(grid) FROM table_17244483_1 WHERE driver = "Scott Dixon"
Scott Dixon had how many Grid positions?
CREATE TABLE table_17244483_1 (grid VARCHAR, driver VARCHAR)
SELECT opponent FROM table_name_34 WHERE week = 3
Who was the opponent in week 3?
CREATE TABLE table_name_34 (opponent VARCHAR, week VARCHAR)
SELECT MAX(enrollment) FROM table_1974782_1 WHERE institution = "Babson College"
What's Babson College's enrollment?
CREATE TABLE table_1974782_1 (enrollment INTEGER, institution VARCHAR)
SELECT original_air_date FROM table_2221484_2 WHERE series__number = 258
What date did episode 258 in the series originally air?
CREATE TABLE table_2221484_2 (original_air_date VARCHAR, series__number VARCHAR)
SELECT ends FROM table_17634290_7 WHERE moving_from = "Cary Clarets"
What is the end when moving from is listed as cary clarets?
CREATE TABLE table_17634290_7 (ends VARCHAR, moving_from VARCHAR)
SELECT gross_capacity FROM table_name_54 WHERE reactor_type = "abwr"
What is the gross capacity where the reactor is ABWR type?
CREATE TABLE table_name_54 (gross_capacity VARCHAR, reactor_type VARCHAR)
SELECT SUM(number) FROM table_name_65 WHERE type = "driving van trailer"
What is the sum of numbers that had a type of Driving Van Trailer?
CREATE TABLE table_name_65 (number INTEGER, type VARCHAR)
SELECT ncbi_accession_number__mrna_protein_ FROM table_name_36 WHERE species = "mus musculus"
What is the NCBI Accession Number (mRNA/Protein) for the mus musculus Species?
CREATE TABLE table_name_36 (ncbi_accession_number__mrna_protein_ VARCHAR, species VARCHAR)
SELECT school_club_team FROM table_name_58 WHERE position = "guard" AND player = "juan dixon"
What School/Club Team has a Player named Juan Dixon and a Position of guard?
CREATE TABLE table_name_58 (school_club_team VARCHAR, position VARCHAR, player VARCHAR)
SELECT country FROM table_name_6 WHERE score = 73 - 73 - 65 = 211
What country did the player who scored 73-73-65=211 come from?
CREATE TABLE table_name_6 (country VARCHAR, score VARCHAR)
SELECT date FROM table_name_29 WHERE score_in_final = "6–7(9), 6–2, (10–7)"
What date was the score 6–7(9), 6–2, (10–7)?
CREATE TABLE table_name_29 (date VARCHAR, score_in_final VARCHAR)
SELECT original_air_date FROM table_28967275_3 WHERE episode__number = 69
when 69 is the episode number what is the air date?
CREATE TABLE table_28967275_3 (original_air_date VARCHAR, episode__number VARCHAR)
SELECT 1991 FROM table_name_77 WHERE 1993 = "a"
Which 1991 has an A 1993 ?
CREATE TABLE table_name_77 (Id VARCHAR)
SELECT stadium FROM table_21377473_7 WHERE score = "3 - 1 Hughes 64'"
When 3 - 1 hughes 64' is the score what is the stadium?
CREATE TABLE table_21377473_7 (stadium VARCHAR, score VARCHAR)
SELECT original_japanese FROM table_2160215_1 WHERE english___manga_uk__ = "Sean Barrett"
Who was the original Japanese cast if Sean Barrett acted on the English (Manga UK) version?
CREATE TABLE table_2160215_1 (original_japanese VARCHAR, english___manga_uk__ VARCHAR)
SELECT COUNT(incumbent) FROM table_1342393_17 WHERE first_elected = 1924
how many incumbent with first elected being 1924
CREATE TABLE table_1342393_17 (incumbent VARCHAR, first_elected VARCHAR)
SELECT AVG(election) FROM table_name_35 WHERE municipality = "laives" AND inhabitants < 17 OFFSET 197
Which Election has a Municipality of laives, and Inhabitants smaller than 17,197?
CREATE TABLE table_name_35 (election INTEGER, municipality VARCHAR, inhabitants VARCHAR)
SELECT LOCATION, COUNT(*) FROM performance GROUP BY LOCATION
Show different locations and the number of performances at each location.
CREATE TABLE performance (LOCATION VARCHAR)
SELECT COUNT(party) FROM table_1341865_44 WHERE district = "Tennessee 1"
how many party with district being tennessee 1
CREATE TABLE table_1341865_44 (party VARCHAR, district VARCHAR)
SELECT outcome FROM table_name_7 WHERE partner = "andoni vivanco"
What is the Outcome of the match with Partner Andoni Vivanco?
CREATE TABLE table_name_7 (outcome VARCHAR, partner VARCHAR)
SELECT chart_positions FROM table_name_1 WHERE format = "ep"
What chart positions did the album reach when ep was the format?
CREATE TABLE table_name_1 (chart_positions VARCHAR, format VARCHAR)
SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Hopkins Student Enterprises" AND t3.sex = "M"
Find all the male members of club "Hopkins Student Enterprises". Show the first name and last name.
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR, sex VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)
SELECT MIN(pick__number) FROM table_21321804_5 WHERE college = "McGill"
What is the smallest pick number for McGill?
CREATE TABLE table_21321804_5 (pick__number INTEGER, college VARCHAR)
SELECT points FROM table_24735155_1 WHERE seasons = "2006 – 2007 , 2009"
How many points for the driver who raced in seasons 2006 – 2007 , 2009?
CREATE TABLE table_24735155_1 (points VARCHAR, seasons VARCHAR)
SELECT notes FROM table_name_62 WHERE venue = "turin, italy"
What were the notes when the Venue was Turin, Italy?
CREATE TABLE table_name_62 (notes VARCHAR, venue VARCHAR)
SELECT us_peak_position FROM table_name_83 WHERE uk_peak_position = "21"
What was the US Peak position of the film that peaked at #21 in the UK?
CREATE TABLE table_name_83 (us_peak_position VARCHAR, uk_peak_position VARCHAR)
SELECT district FROM table_1341598_14 WHERE incumbent = "Dan Crane"
What district has Dan Crane as incumbent?
CREATE TABLE table_1341598_14 (district VARCHAR, incumbent VARCHAR)
SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1
Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.
CREATE TABLE matches (winner_name VARCHAR, tourney_name VARCHAR, winner_rank_points VARCHAR)
SELECT AVG(rank) FROM table_name_19 WHERE bronze = 2 AND total = 2 AND gold < 0
What is the average Rank when there are 2 bronze, the total is 2 and gold is less than 0?
CREATE TABLE table_name_19 (rank INTEGER, gold VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT score FROM table_21378160_2 WHERE round = "3"
What was the score of round 3?
CREATE TABLE table_21378160_2 (score VARCHAR, round VARCHAR)
SELECT MIN(rank) FROM table_11926114_1 WHERE peak = 42
What numbr on the list had a peak rating of 42?
CREATE TABLE table_11926114_1 (rank INTEGER, peak VARCHAR)
SELECT MAX(against) FROM table_15400878_1 WHERE team = "Minas Gerais"
Name the most against for minas gerais
CREATE TABLE table_15400878_1 (against INTEGER, team VARCHAR)
SELECT finals FROM table_name_40 WHERE name = "grant brebner"
What finals have grant brebner as the name?
CREATE TABLE table_name_40 (finals VARCHAR, name VARCHAR)
SELECT MAX(crowd) FROM table_name_75 WHERE away_team = "essendon"
What was the top crowd when essendon played away?
CREATE TABLE table_name_75 (crowd INTEGER, away_team VARCHAR)
SELECT home FROM table_name_99 WHERE attendance = 507
Which home has an attendance of 507?
CREATE TABLE table_name_99 (home VARCHAR, attendance VARCHAR)
SELECT round FROM table_name_37 WHERE position = "pf" AND year = 1996 AND college_high_school_club = "mississippi state"
What is the round of the pf position player from 1996 and the college/high school/club mississippi state?
CREATE TABLE table_name_37 (round VARCHAR, college_high_school_club VARCHAR, position VARCHAR, year VARCHAR)
SELECT margin_of_victory FROM table_name_24 WHERE runner_s__up = "jonas blixt"
Name the margin of victory for jonas blixt
CREATE TABLE table_name_24 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT COUNT(year) FROM table_name_64 WHERE chassis = "march 762" AND points > 0
What year had the Chassis of march 762 and more than 0 points?
CREATE TABLE table_name_64 (year VARCHAR, chassis VARCHAR, points VARCHAR)