answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT length FROM table_name_31 WHERE character_type = "milkman turned prizefighter"
What is the length of the film with the character type being a milkman turned prizefighter?
CREATE TABLE table_name_31 (length VARCHAR, character_type VARCHAR)
SELECT time_retired FROM table_name_31 WHERE grid > 17 AND laps = 74
What is the time/retired for a grid over 17 with 74 laps?
CREATE TABLE table_name_31 (time_retired VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT MAX(round) FROM table_name_42 WHERE pick = 3
What is the highest round of pick 3?
CREATE TABLE table_name_42 (round INTEGER, pick VARCHAR)
SELECT m809_series FROM table_name_88 WHERE m939_series = "m931/932"
Name the M809 seris with M939 series of M931/932
CREATE TABLE table_name_88 (m809_series VARCHAR, m939_series VARCHAR)
SELECT T1.duration, T1.file_size, T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.genre_is = "pop" ORDER BY T2.song_name
List the duration, file size and format of songs whose genre is pop, ordered by title?
CREATE TABLE song (f_id VARCHAR, genre_is VARCHAR, song_name VARCHAR); CREATE TABLE files (duration VARCHAR, file_size VARCHAR, formats VARCHAR, f_id VARCHAR)
SELECT score FROM table_name_19 WHERE attendance = "33,531"
What is the score of the game that 33,531 people went too?
CREATE TABLE table_name_19 (score VARCHAR, attendance VARCHAR)
SELECT class FROM table_name_26 WHERE year = 2009
What is the class of 2009?
CREATE TABLE table_name_26 (class VARCHAR, year VARCHAR)
SELECT pick__number FROM table_14650162_1 WHERE college = "Florida State"
What is the pick number of the player whose college is Florida State?
CREATE TABLE table_14650162_1 (pick__number VARCHAR, college VARCHAR)
SELECT Nationality FROM pilot GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
Show the most common nationality of pilots.
CREATE TABLE pilot (Nationality VARCHAR)
SELECT COUNT(original_artist) FROM table_27075510_1 WHERE week__number = "Audition"
how many times is the week # is audition?
CREATE TABLE table_27075510_1 (original_artist VARCHAR, week__number VARCHAR)
SELECT venue FROM table_name_19 WHERE event = "marathon" AND competition = "london marathon"
Where was the London Marathon held?
CREATE TABLE table_name_19 (venue VARCHAR, event VARCHAR, competition VARCHAR)
SELECT COUNT(lane) FROM table_name_50 WHERE name = "jiao liuyang"
Swimmer Jiao Liuyang has what for the sum of lane?
CREATE TABLE table_name_50 (lane VARCHAR, name VARCHAR)
SELECT livery FROM table_name_74 WHERE status = "in service as coaching stock"
what livery has a status of in service as coaching stock?
CREATE TABLE table_name_74 (livery VARCHAR, status VARCHAR)
SELECT score FROM table_name_11 WHERE date = "1/22"
What score has 1/22 as the date?
CREATE TABLE table_name_11 (score VARCHAR, date VARCHAR)
SELECT appointed_by FROM table_name_61 WHERE party = "conservative" AND province__division_ = "ontario" AND date_appointed = "june 18, 1993"
Who appointed the conservative from Ontario on June 18, 1993?
CREATE TABLE table_name_61 (appointed_by VARCHAR, date_appointed VARCHAR, party VARCHAR, province__division_ VARCHAR)
SELECT main_contestant FROM table_name_62 WHERE scores_by_each_individual_judge = 8 + 7 + 7 = 21
Who is the main contestant with scores by each individual judge of 8 + 7 + 7 = 21?
CREATE TABLE table_name_62 (main_contestant VARCHAR, scores_by_each_individual_judge VARCHAR)
SELECT MAX(played) FROM table_14489821_1
what is the maximum number of matches played by a team?
CREATE TABLE table_14489821_1 (played INTEGER)
SELECT COUNT(try_bonus) FROM table_13564637_3 WHERE won = "11"
what amount of try bonus where the game was won by 11?
CREATE TABLE table_13564637_3 (try_bonus VARCHAR, won VARCHAR)
SELECT location FROM table_name_47 WHERE date = "february 29, 2012"
What is the location of the match on February 29, 2012?
CREATE TABLE table_name_47 (location VARCHAR, date VARCHAR)
SELECT player FROM table_name_87 WHERE money___£__ = "playoff" AND country = "united states"
Who is the player with playoff money from the United States?
CREATE TABLE table_name_87 (player VARCHAR, money___£__ VARCHAR, country VARCHAR)
SELECT COUNT(*), country_code FROM players GROUP BY country_code
find the number of players for each country.
CREATE TABLE players (country_code VARCHAR)
SELECT date FROM table_name_44 WHERE time = "14:30" AND result = "0:1" AND home = "fc chiasso (chl)"
What day was the time 14:30, the result 0:1, and the home team fc chiasso (chl)?
CREATE TABLE table_name_44 (date VARCHAR, home VARCHAR, time VARCHAR, result VARCHAR)
SELECT time_retired FROM table_name_81 WHERE driver = "toulo de graffenried"
what is the time/retired when the driver is toulo de graffenried?
CREATE TABLE table_name_81 (time_retired VARCHAR, driver VARCHAR)
SELECT points FROM table_12886178_4 WHERE club = "Croesyceiliog RFC"
How many points does Croesyceiliog RFC have?
CREATE TABLE table_12886178_4 (points VARCHAR, club VARCHAR)
SELECT COUNT(erp_w) FROM table_name_81 WHERE call_sign = "w242ak"
What is the total number of the ERP W with a call sign of w242ak?
CREATE TABLE table_name_81 (erp_w VARCHAR, call_sign VARCHAR)
SELECT mls_cup_winner FROM table_11148572_1 WHERE mls_cup_runner_up = "Colorado Rapids"
What is the name of the shield winner in which the mls cup winner and mls cup runner up is colorado rapids?
CREATE TABLE table_11148572_1 (mls_cup_winner VARCHAR, mls_cup_runner_up VARCHAR)
SELECT venue FROM table_29033869_3 WHERE opponent = "Essendon" AND position_on_ladder = "3rd"
Which venue did collingsworth play essendon in when they had the 3rd position on the ladder?
CREATE TABLE table_29033869_3 (venue VARCHAR, opponent VARCHAR, position_on_ladder VARCHAR)
SELECT MIN(rank) FROM table_name_87 WHERE notes = "sa/b" AND time = "6:17.62"
What is the lowest rank for the team that raced a time of 6:17.62 and a notes of sa/b?
CREATE TABLE table_name_87 (rank INTEGER, notes VARCHAR, time VARCHAR)
SELECT home_team FROM table_name_68 WHERE tie_no = "replay" AND date = "4 february 1987" AND away_team = "luton town"
Who was the home team on 4 February 1987 when Luton Town was away team and there was no replay?
CREATE TABLE table_name_68 (home_team VARCHAR, away_team VARCHAR, tie_no VARCHAR, date VARCHAR)
SELECT poles FROM table_21795650_1 WHERE series = "Italian Formula Renault 2.0 Winter series"
How many poles were there in the Italian Formula Renault 2.0 Winter Series?
CREATE TABLE table_21795650_1 (poles VARCHAR, series VARCHAR)
SELECT stadium FROM table_name_56 WHERE opponent = "cal state fullerton titans"
What stadium had an opponent of Cal State Fullerton Titans?
CREATE TABLE table_name_56 (stadium VARCHAR, opponent VARCHAR)
SELECT T1.staff_id, T1.staff_name FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY date_assigned_to - date_assigned_from LIMIT 1
Find the id and name of the staff who has been assigned for the shortest period.
CREATE TABLE Staff_Department_Assignments (staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_name VARCHAR)
SELECT SUM(quantity) FROM table_name_60 WHERE year < 2011 AND model = "slf-230"
Name the sum of quantity for before 2011 model slf-230
CREATE TABLE table_name_60 (quantity INTEGER, year VARCHAR, model VARCHAR)
SELECT COUNT(district) FROM table_13618358_1 WHERE income_poverty_f = "27.7"
How many districts had an depravity level of 27.7
CREATE TABLE table_13618358_1 (district VARCHAR, income_poverty_f VARCHAR)
SELECT record FROM table_name_57 WHERE date = "june 13"
What is the record on June 13?
CREATE TABLE table_name_57 (record VARCHAR, date VARCHAR)
SELECT power FROM table_name_28 WHERE model = "2.0 tdi (cr) dpf" AND years = "2010–2011"
What is the power for model 2.0 tdi (cr) dpf, and a Years of 2010–2011?
CREATE TABLE table_name_28 (power VARCHAR, model VARCHAR, years VARCHAR)
SELECT retitled_as_same FROM table_name_99 WHERE last_aired > 1982 AND show = "we got it made"
Which Retitled as/Same has a Last Aired larger than 1982, and a Show of we got it made?
CREATE TABLE table_name_99 (retitled_as_same VARCHAR, last_aired VARCHAR, show VARCHAR)
SELECT winning_driver FROM table_name_25 WHERE second_driver = "jimmy bryan"
Which Winning Driver has a Second Driver of jimmy bryan?
CREATE TABLE table_name_25 (winning_driver VARCHAR, second_driver VARCHAR)
SELECT current_streak FROM table_name_27 WHERE last_5_meetings = "osu, 4-1"
what is the current streak when the last 5 meetings is osu, 4-1?
CREATE TABLE table_name_27 (current_streak VARCHAR, last_5_meetings VARCHAR)
SELECT SUM(sno) FROM table_name_53 WHERE completion_schedule = "2013"
For the 2013 completion schedule, what is the total S.no.?
CREATE TABLE table_name_53 (sno INTEGER, completion_schedule VARCHAR)
SELECT MIN(conceded) FROM table_14871601_1 WHERE team = "12 de Octubre"
What is the smallest conceded value for the team 12 De Octubre?
CREATE TABLE table_14871601_1 (conceded INTEGER, team VARCHAR)
SELECT discipline FROM table_name_59 WHERE championship = "euroboss"
What was the discipline for the euroboss championship?
CREATE TABLE table_name_59 (discipline VARCHAR, championship VARCHAR)
SELECT date FROM table_22905641_2 WHERE circuit = "Symmons Plains Raceway"
What date was the race at the Symmons Plains Raceway?
CREATE TABLE table_22905641_2 (date VARCHAR, circuit VARCHAR)
SELECT date FROM table_name_67 WHERE away_team = "chester"
What date was Chester the away team?
CREATE TABLE table_name_67 (date VARCHAR, away_team VARCHAR)
SELECT dates FROM table_name_27 WHERE lifetime_achievement = "jim jarmusch"
On what dates did Jim Jarmusch win the Lifetime Achievement?
CREATE TABLE table_name_27 (dates VARCHAR, lifetime_achievement VARCHAR)
SELECT tournament FROM table_name_48 WHERE score = "7-6(0), 6-3"
what is the tournament when the score is 7-6(0), 6-3?
CREATE TABLE table_name_48 (tournament VARCHAR, score VARCHAR)
SELECT AVG(total) FROM table_name_96 WHERE finish = "t10" AND country = "fiji"
What is the average of Fiji with t10 Finish?
CREATE TABLE table_name_96 (total INTEGER, finish VARCHAR, country VARCHAR)
SELECT AVG(year) FROM table_name_98 WHERE poles < 2 AND fast_laps = 0 AND drivers = "adrian quaife-hobbs"
What is the average Year during which the Driver Adrian Quaife-Hobbs has fewer than 2 Poles, and 0 Fast laps?
CREATE TABLE table_name_98 (year INTEGER, drivers VARCHAR, poles VARCHAR, fast_laps VARCHAR)
SELECT institution FROM table_name_78 WHERE location = "akron, oh"
what is the institution at akron, oh?
CREATE TABLE table_name_78 (institution VARCHAR, location VARCHAR)
SELECT language FROM table_name_83 WHERE television_service = "sky tg 24 active"
What is the Language that has sky tg 24 active as the Television service?
CREATE TABLE table_name_83 (language VARCHAR, television_service VARCHAR)
SELECT home_team AS score FROM table_name_11 WHERE home_team = "richmond"
What is the home teamscore for Richmond?
CREATE TABLE table_name_11 (home_team VARCHAR)
SELECT ordered FROM table_name_87 WHERE name = "helena"
What ordered has helena as the name?
CREATE TABLE table_name_87 (ordered VARCHAR, name VARCHAR)
SELECT unit FROM table_name_27 WHERE pennant_number = 82
Which unit has a Pennant Number of 82?
CREATE TABLE table_name_27 (unit VARCHAR, pennant_number VARCHAR)
SELECT week FROM table_name_82 WHERE result = "l 24-10"
Which week has a result showing L 24-10?
CREATE TABLE table_name_82 (week VARCHAR, result VARCHAR)
SELECT COUNT(date) FROM table_23293785_2 WHERE race_total_pts_ = 180
How many dates have a total points for race of 180?
CREATE TABLE table_23293785_2 (date VARCHAR, race_total_pts_ VARCHAR)
SELECT country FROM table_name_54 WHERE player = "dow finsterwald"
What is Country, when Player is "Dow Finsterwald"?
CREATE TABLE table_name_54 (country VARCHAR, player VARCHAR)
SELECT date FROM table_name_92 WHERE type_of_game = "friendly" AND opponent = "france" AND city = "paris, france"
What date has friendly as the type of game, france as an opponent, and paris, france as the city?
CREATE TABLE table_name_92 (date VARCHAR, city VARCHAR, type_of_game VARCHAR, opponent VARCHAR)
SELECT directed_by FROM table_15584067_7 WHERE no_in_series = "114"
Name who directed the 114 episode in the series
CREATE TABLE table_15584067_7 (directed_by VARCHAR, no_in_series VARCHAR)
SELECT candidates FROM table_1341586_43 WHERE first_elected = 1964
Name the candidates in 1964
CREATE TABLE table_1341586_43 (candidates VARCHAR, first_elected VARCHAR)
SELECT MAX(flap) FROM table_name_97 WHERE bike = "honda nsr500" AND race > 16
What is the highest FLap by a Honda NSR500 bike after Race 16?
CREATE TABLE table_name_97 (flap INTEGER, bike VARCHAR, race VARCHAR)
SELECT MIN(choice) FROM table_10360656_1
Who was the top picki n the draft?
CREATE TABLE table_10360656_1 (choice INTEGER)
SELECT guest_1 FROM table_20466963_4 WHERE guest_4 = "Jill Douglas"
Who is the guest 1 in the episode where guest 4 is Jill Douglas?
CREATE TABLE table_20466963_4 (guest_1 VARCHAR, guest_4 VARCHAR)
SELECT Name FROM WINE WHERE YEAR < (SELECT MIN(YEAR) FROM WINE WHERE Winery = "Brander")
What are the names of wines whose production year are before the year of all wines by Brander winery?
CREATE TABLE WINE (Name VARCHAR, YEAR INTEGER, Winery VARCHAR)
SELECT MIN(top_25) FROM table_name_31 WHERE events = 10 AND wins > 0
What is the lowest Top-25, when Events is 10, and when Wins is greater than 0?
CREATE TABLE table_name_31 (top_25 INTEGER, events VARCHAR, wins VARCHAR)
SELECT ncbi_accession_number__mrna_protein_ FROM table_16849531_2 WHERE length__bp_aa_ = "5304bp/377aa"
What is the NCBI Accession Number for the length of 5304bp/377aa?
CREATE TABLE table_16849531_2 (ncbi_accession_number__mrna_protein_ VARCHAR, length__bp_aa_ VARCHAR)
SELECT COUNT(pick__number) FROM table_name_61 WHERE league_from = "ontario hockey league" AND nationality = "united states" AND team_from = "brampton battalion"
Which Pick # has a League from of ontario hockey league, a Nationality of united states, and a Team from of brampton battalion?
CREATE TABLE table_name_61 (pick__number VARCHAR, team_from VARCHAR, league_from VARCHAR, nationality VARCHAR)
SELECT MIN(losses) FROM table_14997324_5 WHERE team = "12 de Octubre"
How many losses did 12 de Octubre have ?
CREATE TABLE table_14997324_5 (losses INTEGER, team VARCHAR)
SELECT AVG(fa_cup) FROM table_name_79 WHERE name = "steve whitworth" AND total < 400
What is the average number of FA cups Steve Whitworth, who has less than 400 total, has?
CREATE TABLE table_name_79 (fa_cup INTEGER, name VARCHAR, total VARCHAR)
SELECT player FROM table_name_22 WHERE school_club_team = "illinois"
Who is the Player for School/Club Team Illinois?
CREATE TABLE table_name_22 (player VARCHAR, school_club_team VARCHAR)
SELECT percent_of_slovenes_1951 FROM table_name_31 WHERE village__german_ = "roach"
What percentage of Slovenes lived in the village of Roach in 1951?
CREATE TABLE table_name_31 (percent_of_slovenes_1951 VARCHAR, village__german_ VARCHAR)
SELECT 1 AS st_prize___$__ FROM table_name_69 WHERE tournament = "u.s. open"
What is the 1st prize at the U.S. Open?
CREATE TABLE table_name_69 (tournament VARCHAR)
SELECT conf FROM table_name_44 WHERE pos = "rb"
What conference did the player with the position of rb play in?
CREATE TABLE table_name_44 (conf VARCHAR, pos VARCHAR)
SELECT original_air_date FROM table_29063233_1 WHERE uk_viewers__million_ = "6.02"
What was the airdate of the episode with a UK viewership of 6.02 million?
CREATE TABLE table_29063233_1 (original_air_date VARCHAR, uk_viewers__million_ VARCHAR)
SELECT week_14_nov_30 FROM table_name_1 WHERE week_6_oct_5 = "michigan state (5-1)"
Which Week 14 Nov 30 has a Week 6 Oct 5 of michigan state (5-1)?
CREATE TABLE table_name_1 (week_14_nov_30 VARCHAR, week_6_oct_5 VARCHAR)
SELECT area__km²_ FROM table_name_11 WHERE gdp_per_capita__us$_ = "11,929"
What is the area of the nation with GDP per capita (US$) of 11,929?
CREATE TABLE table_name_11 (area__km²_ VARCHAR, gdp_per_capita__us$_ VARCHAR)
SELECT position FROM table_11803648_17 WHERE player = "Patrick Wiercioch"
WHAT POSITION DOES PATRICK WIERCIOCH PLAY?
CREATE TABLE table_11803648_17 (position VARCHAR, player VARCHAR)
SELECT score FROM table_name_33 WHERE date = "april 4, 1993"
What was the score on april 4, 1993?
CREATE TABLE table_name_33 (score VARCHAR, date VARCHAR)
SELECT MAX(year) FROM table_name_27 WHERE bronze = "south korea" AND silver = "philippines"
Which Year is the highest one that has a Bronze of south korea, and a Silver of philippines?
CREATE TABLE table_name_27 (year INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT AVG(overall) FROM table_name_83 WHERE college = "central michigan" AND pick = 8
What is Central Michigan's average overall when the pick was 8?
CREATE TABLE table_name_83 (overall INTEGER, college VARCHAR, pick VARCHAR)
SELECT AVG(crowd) FROM table_name_63 WHERE venue = "kardinia park"
What was the attendance at Kardinia Park?
CREATE TABLE table_name_63 (crowd INTEGER, venue VARCHAR)
SELECT COUNT(DISTINCT job) FROM Person
How many type of jobs do they have?
CREATE TABLE Person (job VARCHAR)
SELECT away_team FROM table_name_95 WHERE tie_no > 16 AND home_team = "forest green rovers"
Who was the away team in a tie no larger than 16 with forest green rovers at home?
CREATE TABLE table_name_95 (away_team VARCHAR, tie_no VARCHAR, home_team VARCHAR)
SELECT COUNT(gold) FROM table_name_72 WHERE bronze > 16
Hold many gold had more than 16 bronzes?
CREATE TABLE table_name_72 (gold VARCHAR, bronze INTEGER)
SELECT began_play FROM table_name_48 WHERE club = "rochester rhinos"
When did the Rochester Rhinos begin to play?
CREATE TABLE table_name_48 (began_play VARCHAR, club VARCHAR)
SELECT city FROM table_name_95 WHERE lead = "tyler forrest"
Which City has a Lead of tyler forrest?
CREATE TABLE table_name_95 (city VARCHAR, lead VARCHAR)
SELECT COUNT(*) FROM technician
How many technicians are there?
CREATE TABLE technician (Id VARCHAR)
SELECT avg_finish FROM table_2182573_2 WHERE year = 2007
What was the average finish in 2007?
CREATE TABLE table_2182573_2 (avg_finish VARCHAR, year VARCHAR)
SELECT round FROM table_name_64 WHERE method = "ko (punch)"
What is the round where there was a KO (punch)?
CREATE TABLE table_name_64 (round VARCHAR, method VARCHAR)
SELECT score FROM table_name_6 WHERE home_team = "leeds united"
What was the final score for the tie where Leeds United was the home team?
CREATE TABLE table_name_6 (score VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_77 WHERE venue = "lake oval"
What was the away team's score in the match at Lake Oval?
CREATE TABLE table_name_77 (away_team VARCHAR, venue VARCHAR)
SELECT COUNT(rank) FROM table_name_59 WHERE name = "dejuan collins" AND assists > 69
With more than 69 Assists, what is Dejuan Collins' Rank?
CREATE TABLE table_name_59 (rank VARCHAR, name VARCHAR, assists VARCHAR)
SELECT MAX(week) FROM table_name_10 WHERE date = "august 24, 1956" AND attendance > 40 OFFSET 175
In what week was the game on August 24, 1956 played in front of 40,175 fans?
CREATE TABLE table_name_10 (week INTEGER, date VARCHAR, attendance VARCHAR)
SELECT time_retired FROM table_name_28 WHERE laps < 51 AND team = "newman-haas racing"
What is the Time/Retired of the Newman-Haas Racing team in under 51 laps?
CREATE TABLE table_name_28 (time_retired VARCHAR, laps VARCHAR, team VARCHAR)
SELECT population_density FROM table_26321719_1 WHERE name = "Beaubassin East"
What is every population density if name is Beaubassin East?
CREATE TABLE table_26321719_1 (population_density VARCHAR, name VARCHAR)
SELECT primary_sponsor_s_ FROM table_19908313_2 WHERE listed_owner_s_ = "Bobby Dotter"
Who sponsors owner Bobby Dotter's team?
CREATE TABLE table_19908313_2 (primary_sponsor_s_ VARCHAR, listed_owner_s_ VARCHAR)
SELECT line FROM table_name_54 WHERE name = "mangalore"
What is the line of Mangalore station?
CREATE TABLE table_name_54 (line VARCHAR, name VARCHAR)
SELECT team FROM table_name_18 WHERE run_3 = "1:20.77"
Which team has run 3 of 1:20.77?
CREATE TABLE table_name_18 (team VARCHAR, run_3 VARCHAR)
SELECT first_name, last_name FROM actor GROUP BY first_name, last_name ORDER BY COUNT(*) DESC LIMIT 1
What is the most popular full name of the actors?
CREATE TABLE actor (first_name VARCHAR, last_name VARCHAR)
SELECT class FROM table_14624447_24 WHERE position = "SLB"
What are all classes for the position SLB?
CREATE TABLE table_14624447_24 (class VARCHAR, position VARCHAR)
SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance LIMIT 1
Find the name of account that has the lowest total checking and saving balance.
CREATE TABLE checking (custid VARCHAR, balance VARCHAR); CREATE TABLE savings (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)