question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the average Goals/Games for Rummenigge, Karl-Heinz, with Goals less than 162?
CREATE TABLE table_name_66 (games VARCHAR, goals INTEGER, name VARCHAR)
SELECT AVG(goals) / games FROM table_name_66 WHERE name = "rummenigge, karl-heinz" AND goals < 162
Which body tackle has yes for the diving tackle and the sliding tackle classified as a trip?
CREATE TABLE table_name_56 (body_tackle VARCHAR, diving_tackle VARCHAR, sliding_tackle VARCHAR)
SELECT body_tackle FROM table_name_56 WHERE diving_tackle = "yes" AND sliding_tackle = "classified as a trip"
Find the id of the candidate who got the lowest oppose rate.
CREATE TABLE candidate (Candidate_ID VARCHAR, oppose_rate VARCHAR)
SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1
Which league has an FA cup greater than 0, with a total greater than 21?
CREATE TABLE table_name_76 (league VARCHAR, fa_cup VARCHAR, total VARCHAR)
SELECT league FROM table_name_76 WHERE fa_cup > 0 AND total > 21
What was the date of the game when the opponent was the Miami Dolphins?
CREATE TABLE table_17782308_1 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_17782308_1 WHERE opponent = "Miami Dolphins"
What is the result of the game with 67,715 fans attending?
CREATE TABLE table_name_54 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_54 WHERE attendance = "67,715"
What was the result when the opponent was Rory Markham?
CREATE TABLE table_name_96 (res VARCHAR, opponent VARCHAR)
SELECT res FROM table_name_96 WHERE opponent = "rory markham"
Whats the name of segment D in the episode where segment A is tequila
CREATE TABLE table_15187735_16 (segment_d VARCHAR, segment_a VARCHAR)
SELECT segment_d FROM table_15187735_16 WHERE segment_a = "Tequila"
Name the total number of club for lost being 16
CREATE TABLE table_27293285_4 (club VARCHAR, lost VARCHAR)
SELECT COUNT(club) FROM table_27293285_4 WHERE lost = "16"
What is the total number of medals when there are 18 gold medals?
CREATE TABLE table_name_83 (total INTEGER, gold VARCHAR)
SELECT SUM(total) FROM table_name_83 WHERE gold = 18
What was the home team's score at kardinia park?
CREATE TABLE table_name_7 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_7 WHERE venue = "kardinia park"
Which Team has a Year of 2000?
CREATE TABLE table_name_45 (team VARCHAR, year VARCHAR)
SELECT team FROM table_name_45 WHERE year = 2000
where was the venue where the attendance was 702?
CREATE TABLE table_17120964_9 (venue VARCHAR, attendance VARCHAR)
SELECT venue FROM table_17120964_9 WHERE attendance = "702"
How many picks were from round 6?
CREATE TABLE table_name_84 (pick VARCHAR, round VARCHAR)
SELECT COUNT(pick) FROM table_name_84 WHERE round = 6
What was the challenge for episode 28?
CREATE TABLE table_24798489_2 (challenge VARCHAR, episode_number VARCHAR)
SELECT challenge FROM table_24798489_2 WHERE episode_number = 28
Who is the youngest male?
CREATE TABLE Person (name VARCHAR, gender VARCHAR, age INTEGER); CREATE TABLE person (name VARCHAR, gender VARCHAR, age INTEGER)
SELECT name FROM Person WHERE gender = 'male' AND age = (SELECT MIN(age) FROM person WHERE gender = 'male')
How many places according to the 2011 census of whatever population have an area of 132.79 kilometers squared?
CREATE TABLE table_14325808_1 (population__2011_census_ VARCHAR, area__km²_ VARCHAR)
SELECT COUNT(population__2011_census_) FROM table_14325808_1 WHERE area__km²_ = "132.79"
Who wrote the episode whose director is Karen Gaviola?
CREATE TABLE table_23799653_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT written_by FROM table_23799653_1 WHERE directed_by = "Karen Gaviola"
What is the lowest number of laps with a time/retired of +38.426?
CREATE TABLE table_name_62 (laps INTEGER, time_retired VARCHAR)
SELECT MIN(laps) FROM table_name_62 WHERE time_retired = "+38.426"
What is Tries Against, when Tries For is 21?
CREATE TABLE table_name_56 (tries_against VARCHAR, tries_for VARCHAR)
SELECT tries_against FROM table_name_56 WHERE tries_for = "21"
what is the torque when the notes are laredo, limited, overland and the engine is 5.7l hemi v8?
CREATE TABLE table_name_69 (torque VARCHAR, notes VARCHAR, engine VARCHAR)
SELECT torque FROM table_name_69 WHERE notes = "laredo, limited, overland" AND engine = "5.7l hemi v8"
What is the listed surface for the Championship of Toronto that had a runner-up outcome?
CREATE TABLE table_name_56 (surface VARCHAR, outcome VARCHAR, championship VARCHAR)
SELECT surface FROM table_name_56 WHERE outcome = "runner-up" AND championship = "toronto"
What is Moondancer's Primary Military Speciality?
CREATE TABLE table_name_39 (primary_military_speciality VARCHAR, code_name VARCHAR)
SELECT primary_military_speciality FROM table_name_39 WHERE code_name = "moondancer"
Which players are from Indonesia?
CREATE TABLE country (Country_id VARCHAR, Country_name VARCHAR); CREATE TABLE match_season (Player VARCHAR, Country VARCHAR)
SELECT T2.Player FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Country_name = "Indonesia"
What is the number of people in attendance when the time is 3:00?
CREATE TABLE table_name_82 (attendance VARCHAR, time VARCHAR)
SELECT attendance FROM table_name_82 WHERE time = "3:00"
What is the FCC info of the translator with an Irmo, South Carolina city license?
CREATE TABLE table_name_51 (fcc_info VARCHAR, city_of_license VARCHAR)
SELECT fcc_info FROM table_name_51 WHERE city_of_license = "irmo, south carolina"
What is the average year founded that is located in Broken Hill and has school years of k-6?
CREATE TABLE table_name_31 (founded INTEGER, years VARCHAR, suburb_town VARCHAR)
SELECT AVG(founded) FROM table_name_31 WHERE years = "k-6" AND suburb_town = "broken hill"
How many times was there a draw when played is more than 4 and the first game is in 2000?
CREATE TABLE table_name_24 (drawn VARCHAR, played VARCHAR, first_game VARCHAR)
SELECT drawn FROM table_name_24 WHERE played > 4 AND first_game = 2000
Who is the winner for the Tournament in Hong Kong with a third place winner named Mikael Pernfors?
CREATE TABLE table_name_32 (winner VARCHAR, third_place VARCHAR, tournament VARCHAR)
SELECT winner FROM table_name_32 WHERE third_place = "mikael pernfors" AND tournament = "hong kong"
What is the voltage when the L2 cache is 2 × 256 kb and the turbo is 5/8?
CREATE TABLE table_name_71 (voltage VARCHAR, l2_cache VARCHAR, turbo VARCHAR)
SELECT voltage FROM table_name_71 WHERE l2_cache = "2 × 256 kb" AND turbo = "5/8"
What was the attendance for the game after game 4?
CREATE TABLE table_name_96 (attendance VARCHAR, game INTEGER)
SELECT attendance FROM table_name_96 WHERE game > 4
What were the most in attendance in Richmond?
CREATE TABLE table_name_61 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(crowd) FROM table_name_61 WHERE away_team = "richmond"
Which player has a FG Pct less than 45.9, a def reb less than 43, and a total reb of 9?
CREATE TABLE table_name_21 (player VARCHAR, total_reb VARCHAR, fg_pct VARCHAR, def_reb VARCHAR)
SELECT player FROM table_name_21 WHERE fg_pct < 45.9 AND def_reb < 43 AND total_reb = 9
what is the record when the opponent is jeff williams?
CREATE TABLE table_name_37 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_37 WHERE opponent = "jeff williams"
When is the last episode air date for season 3?
CREATE TABLE table_name_2 (last_air_date VARCHAR, season VARCHAR)
SELECT last_air_date FROM table_name_2 WHERE season = 3
What is the sum of number of bearers in 2009 for a rank above 1, a type of patronymic, an etymology meaning son of Christian, and the number of bearers in 1971 greater than 45.984?
CREATE TABLE table_name_3 (number_of_bearers_2009 INTEGER, number_of_bearers_1971 VARCHAR, etymology VARCHAR, rank VARCHAR, type VARCHAR)
SELECT SUM(number_of_bearers_2009) FROM table_name_3 WHERE rank > 1 AND type = "patronymic" AND etymology = "son of christian" AND number_of_bearers_1971 > 45.984
Where does the bg express train end?
CREATE TABLE table_12095519_1 (destination VARCHAR, train_name VARCHAR)
SELECT destination FROM table_12095519_1 WHERE train_name = "BG Express"
What is the name of the team whose class is Rotax Light?
CREATE TABLE table_name_95 (team VARCHAR, class VARCHAR)
SELECT team FROM table_name_95 WHERE class = "rotax light"
What is the main span in feet from a year of 2009 or more recent with a rank less than 94 and 1,310 main span metres?
CREATE TABLE table_name_69 (main_span_feet VARCHAR, main_span_metres VARCHAR, year_opened VARCHAR, rank VARCHAR)
SELECT main_span_feet FROM table_name_69 WHERE year_opened > 2009 AND rank < 94 AND main_span_metres = "1,310"
Name the loss for series 2-2
CREATE TABLE table_name_90 (loss VARCHAR, series VARCHAR)
SELECT loss FROM table_name_90 WHERE series = "2-2"
what is the pennant when the builder is yarrow, scotstoun?
CREATE TABLE table_name_23 (pennant VARCHAR, builder VARCHAR)
SELECT pennant FROM table_name_23 WHERE builder = "yarrow, scotstoun"
How many original air dates were there for the episode with production code 212?
CREATE TABLE table_23937219_3 (original_air_date VARCHAR, prod_code VARCHAR)
SELECT COUNT(original_air_date) FROM table_23937219_3 WHERE prod_code = 212
What was the earliest year for a car with 3 points and Cooper t20 chassis?
CREATE TABLE table_name_36 (year INTEGER, points VARCHAR, chassis VARCHAR)
SELECT MIN(year) FROM table_name_36 WHERE points = 3 AND chassis = "cooper t20"
In what competition was the score reported as 12.8 (80) - 8.7 (55)?
CREATE TABLE table_name_30 (competition VARCHAR, score VARCHAR)
SELECT competition FROM table_name_30 WHERE score = "12.8 (80) - 8.7 (55)"
What is the release date of The Blow Out?
CREATE TABLE table_name_59 (release_date VARCHAR, title VARCHAR)
SELECT release_date FROM table_name_59 WHERE title = "the blow out"
When was the first season?
CREATE TABLE table_16857_2 (season INTEGER)
SELECT MIN(season) FROM table_16857_2
What is the age when the result is fired in week 8
CREATE TABLE table_26263322_1 (age INTEGER, result VARCHAR)
SELECT MIN(age) FROM table_26263322_1 WHERE result = "Fired in week 8"
What is the most amount of points any team had in round 4?
CREATE TABLE table_24784769_1 (round4 INTEGER)
SELECT MAX(round4) FROM table_24784769_1
What team was the away team when the home team was Grimsby Town?
CREATE TABLE table_name_24 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_24 WHERE home_team = "grimsby town"
What is the highest pjuehun with a kenema greater than 559, a kambia of 45,653, and a tonkolili greater than 113,926?
CREATE TABLE table_name_9 (pujehun INTEGER, tonkolili VARCHAR, kenema VARCHAR, kambia VARCHAR)
SELECT MAX(pujehun) FROM table_name_9 WHERE kenema > 559 AND kambia = "45,653" AND tonkolili > 113 OFFSET 926
What year has an issue price of $697.95?
CREATE TABLE table_name_9 (year VARCHAR, issue_price VARCHAR)
SELECT COUNT(year) FROM table_name_9 WHERE issue_price = "$697.95"
What date was Leo Mainoldi (24) the leading scorer?
CREATE TABLE table_name_72 (date VARCHAR, leading_scorer VARCHAR)
SELECT date FROM table_name_72 WHERE leading_scorer = "leo mainoldi (24)"
What was the sum of the crowds that watched Fitzroy play as the away team?
CREATE TABLE table_name_81 (crowd INTEGER, away_team VARCHAR)
SELECT SUM(crowd) FROM table_name_81 WHERE away_team = "fitzroy"
Tell me the average units sold for square enix
CREATE TABLE table_name_46 (units_sold INTEGER, publisher VARCHAR)
SELECT AVG(units_sold) FROM table_name_46 WHERE publisher = "square enix"
List the branch name and city without any registered members.
CREATE TABLE membership_register_branch (name VARCHAR, city VARCHAR, branch_id VARCHAR); CREATE TABLE branch (name VARCHAR, city VARCHAR, branch_id VARCHAR)
SELECT name, city FROM branch WHERE NOT branch_id IN (SELECT branch_id FROM membership_register_branch)
What is the score from the game where Algeria is the opponent at Porto-Novo?
CREATE TABLE table_name_28 (score VARCHAR, opponent VARCHAR, location VARCHAR)
SELECT score FROM table_name_28 WHERE opponent = "algeria" AND location = "porto-novo"
What is the fewest amount of Pro Bowl appearances any of the players had?
CREATE TABLE table_274117_5 (number INTEGER)
SELECT MIN(number) FROM table_274117_5
What year had a 1st round playoff in the NASL indoor league?
CREATE TABLE table_name_6 (year VARCHAR, playoffs VARCHAR, league VARCHAR)
SELECT year FROM table_name_6 WHERE playoffs = "1st round" AND league = "nasl indoor"
What's the average destroyed with a 1990 over 12, more than 1 damaged, 6 survivors, and a to Iran less than 4?
CREATE TABLE table_name_17 (destroyed INTEGER, survived VARCHAR, to_iran VARCHAR, damaged VARCHAR)
SELECT AVG(destroyed) FROM table_name_17 WHERE 1990 > 12 AND damaged > 1 AND to_iran < 4 AND survived = 6
Which Year is the lowest one that has a To par of –1?
CREATE TABLE table_name_93 (year INTEGER, to_par VARCHAR)
SELECT MIN(year) FROM table_name_93 WHERE to_par = "–1"
What is the lowest stage number that starts with els alocs and has a middle difficulty?
CREATE TABLE table_name_60 (stage INTEGER, difficulty VARCHAR, start VARCHAR)
SELECT MIN(stage) FROM table_name_60 WHERE difficulty = "middle" AND start = "els alocs"
What was the result in 2013 in the tournament whose 2010 result was q2?
CREATE TABLE table_name_8 (Id VARCHAR)
SELECT 2013 FROM table_name_8 WHERE 2010 = "q2"
What is the lowest positioned team with 2 wins and losses greater than 13?
CREATE TABLE table_name_84 (position INTEGER, wins VARCHAR, loses VARCHAR)
SELECT MIN(position) FROM table_name_84 WHERE wins = 2 AND loses > 13
What is the Away team with Newcastle United as the Home team?
CREATE TABLE table_name_42 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_42 WHERE home_team = "newcastle united"
what's the transmission where turbo is yes (mitsubishi td04-16t )
CREATE TABLE table_11167610_1 (transmission VARCHAR, turbo VARCHAR)
SELECT transmission FROM table_11167610_1 WHERE turbo = "Yes (Mitsubishi TD04-16t )"
What prefix has chemical class Iodoalkane?
CREATE TABLE table_name_73 (prefix VARCHAR, chemical_class VARCHAR)
SELECT prefix FROM table_name_73 WHERE chemical_class = "iodoalkane"
who won the senate seat in arkansas
CREATE TABLE table_1133844_4 (senator VARCHAR, state__linked_to_summaries_below_ VARCHAR)
SELECT senator FROM table_1133844_4 WHERE state__linked_to_summaries_below_ = "Arkansas"
What is the lowest league cup with a premier League of 1, and the total is less than 5?
CREATE TABLE table_name_71 (league_cup INTEGER, premier_league VARCHAR, total VARCHAR)
SELECT MIN(league_cup) FROM table_name_71 WHERE premier_league = 1 AND total < 5
What is the number of points for the team with 49 tries against and 14 lost?
CREATE TABLE table_name_19 (points_against VARCHAR, tries_against VARCHAR, lost VARCHAR)
SELECT points_against FROM table_name_19 WHERE tries_against = "49" AND lost = "14"
What is the highest attendance for the game after week 1 on November 12, 1961?
CREATE TABLE table_name_27 (attendance INTEGER, week VARCHAR, date VARCHAR)
SELECT MAX(attendance) FROM table_name_27 WHERE week > 1 AND date = "november 12, 1961"
Name the least fa cup goals with fa cup apps being 2 and fw
CREATE TABLE table_27086613_5 (fa_cup_goals INTEGER, fa_cup_apps VARCHAR, position VARCHAR)
SELECT MIN(fa_cup_goals) FROM table_27086613_5 WHERE fa_cup_apps = 2 AND position = "FW"
What is the opening day net gross a Reliance Entertainment movie before 2011 had?
CREATE TABLE table_name_90 (opening_day_net_gross INTEGER, studio_s_ VARCHAR, year VARCHAR)
SELECT SUM(opening_day_net_gross) FROM table_name_90 WHERE studio_s_ = "reliance entertainment" AND year < 2011
what is the format of "callanetics: 10 years younger in 10 hours"?
CREATE TABLE table_11222744_3 (format VARCHAR, title VARCHAR)
SELECT format FROM table_11222744_3 WHERE title = "Callanetics: 10 years Younger In 10 Hours"
What was the status of Bluetooth for the model that launched after 2004 with a ROM (MiB) of 128 and a Wifi of 802.11b?
CREATE TABLE table_name_5 (bluetooth VARCHAR, wifi VARCHAR, launch_year VARCHAR, rom___mib__ VARCHAR)
SELECT bluetooth FROM table_name_5 WHERE launch_year > 2004 AND rom___mib__ = 128 AND wifi = "802.11b"
Show all game ids and the number of hours played.
CREATE TABLE Plays_games (gameid VARCHAR, hours_played INTEGER)
SELECT gameid, SUM(hours_played) FROM Plays_games GROUP BY gameid
What is the Rich Savage percentage in the poll with Jody Wagner at 30%?
CREATE TABLE table_name_90 (rich_savage VARCHAR, jody_wagner VARCHAR)
SELECT rich_savage FROM table_name_90 WHERE jody_wagner = "30%"
What is the lowest Game, when Date is "November 1"?
CREATE TABLE table_name_45 (game INTEGER, date VARCHAR)
SELECT MIN(game) FROM table_name_45 WHERE date = "november 1"
Which position does Loren Woods play?
CREATE TABLE table_10015132_21 (position VARCHAR, player VARCHAR)
SELECT position FROM table_10015132_21 WHERE player = "Loren Woods"
What is the title for the Murex D'or survey, after 2005, Said Elmarouk as director, and was nominated?
CREATE TABLE table_name_95 (title VARCHAR, result VARCHAR, director VARCHAR, survey VARCHAR, year VARCHAR)
SELECT title FROM table_name_95 WHERE survey = "murex d'or" AND year > 2005 AND director = "said elmarouk" AND result = "nominated"
Name the total number of April for game more than 81 and reord of 38-33-10
CREATE TABLE table_name_46 (april VARCHAR, record VARCHAR, game VARCHAR)
SELECT COUNT(april) FROM table_name_46 WHERE record = "38-33-10" AND game > 81
What Field was Commissioned in 1958, 2005?
CREATE TABLE table_name_24 (field VARCHAR, commissioned VARCHAR)
SELECT field FROM table_name_24 WHERE commissioned = "1958, 2005"
When the Loss is Johnson (4-12), what is the date?
CREATE TABLE table_name_9 (date VARCHAR, loss VARCHAR)
SELECT date FROM table_name_9 WHERE loss = "johnson (4-12)"
Which Score has a To Par of –1?
CREATE TABLE table_name_59 (score INTEGER, to_par VARCHAR)
SELECT MIN(score) FROM table_name_59 WHERE to_par = "–1"
Where did Ben Gordon (8) have the high assists?
CREATE TABLE table_name_55 (location_attendance VARCHAR, high_assists VARCHAR)
SELECT location_attendance FROM table_name_55 WHERE high_assists = "ben gordon (8)"
What was the amount of the 1st prize when paul azinger (9) was the winner?
CREATE TABLE table_name_95 (winner VARCHAR)
SELECT AVG(1 AS st_prize___) AS $__ FROM table_name_95 WHERE winner = "paul azinger (9)"
What is Time, when Method is "submission (knees)"?
CREATE TABLE table_name_14 (time VARCHAR, method VARCHAR)
SELECT time FROM table_name_14 WHERE method = "submission (knees)"
Which EL places have a Rank 2013 of 15?
CREATE TABLE table_name_4 (el_places INTEGER, rank_2013 VARCHAR)
SELECT MAX(el_places) FROM table_name_4 WHERE rank_2013 = "15"
If the team is união de leiria, what is the date of appointment?
CREATE TABLE table_27133147_3 (date_of_appointment VARCHAR, team VARCHAR)
SELECT date_of_appointment FROM table_27133147_3 WHERE team = "União de Leiria"
What is Dave Rummells's to par?
CREATE TABLE table_name_22 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_22 WHERE player = "dave rummells"
What Event has a Position of 1st, a Year of 1983, and a Venue of budapest?
CREATE TABLE table_name_34 (event VARCHAR, venue VARCHAR, position VARCHAR, year VARCHAR)
SELECT event FROM table_name_34 WHERE position = "1st" AND year = 1983 AND venue = "budapest"
what is the date when the opponent# is iowa?
CREATE TABLE table_name_42 (date VARCHAR, opponent_number VARCHAR)
SELECT date FROM table_name_42 WHERE opponent_number = "iowa"
What was the result when the new england patriots played?
CREATE TABLE table_name_33 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_33 WHERE opponent = "new england patriots"
how many times was the population estimate 2005 have an area (km2) more than 8,023.74?
CREATE TABLE table_name_26 (population_estimate_2005 VARCHAR, area__km_2__ INTEGER)
SELECT COUNT(population_estimate_2005) FROM table_name_26 WHERE area__km_2__ > 8 OFFSET 023.74
Who was the away team at Victoria Park?
CREATE TABLE table_name_52 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_52 WHERE venue = "victoria park"
Name the original air date of 1/2 in season
CREATE TABLE table_16951593_1 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT original_air_date FROM table_16951593_1 WHERE no_in_season = "1/2"
What is the result of the match with Zab Judah as the opponent?
CREATE TABLE table_name_42 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_42 WHERE opponent = "zab judah"
Who was the away team at Princes Park?
CREATE TABLE table_name_26 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_26 WHERE venue = "princes park"
What label has cd single as the format?
CREATE TABLE table_name_20 (label VARCHAR, format VARCHAR)
SELECT label FROM table_name_20 WHERE format = "cd single"
What college has an overall less than 243, and tony green as the name?
CREATE TABLE table_name_70 (college VARCHAR, overall VARCHAR, name VARCHAR)
SELECT college FROM table_name_70 WHERE overall < 243 AND name = "tony green"
What is the sum of the clubs remaining with 34 new entries this round and more than 34 clubs involved?
CREATE TABLE table_name_25 (clubs_remaining INTEGER, new_entries_this_round VARCHAR, clubs_involved VARCHAR)
SELECT SUM(clubs_remaining) FROM table_name_25 WHERE new_entries_this_round = "34" AND clubs_involved > 34