answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT scores FROM table_23575917_7 WHERE lees_team = "Clare Balding and Miranda Hart"
If the lees team is Clare Balding and Miranda Hart, what was the score?
CREATE TABLE table_23575917_7 (scores VARCHAR, lees_team VARCHAR)
SELECT COUNT(median_monthly_per_capita___labour_force_income__hkd_) FROM table_151994_1 WHERE population__2006_est_ = 365540
Name the total number of median income for population 2006 for 365540
CREATE TABLE table_151994_1 (median_monthly_per_capita___labour_force_income__hkd_ VARCHAR, population__2006_est_ VARCHAR)
SELECT date FROM table_name_69 WHERE opponent_in_the_final = "paul goldstein"
What date did Paul Goldstein play the final?
CREATE TABLE table_name_69 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT home_team AS score FROM table_name_70 WHERE away_team = "collingwood"
What is the score of the home team that played Collingwood?
CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR)
SELECT MAX(score) FROM table_name_1 WHERE country = "france" AND venue = "bokskogens"
What was France's highest score when the venue was Bokskogens?
CREATE TABLE table_name_1 (score INTEGER, country VARCHAR, venue VARCHAR)
SELECT visitor FROM table_name_98 WHERE decision = "osgood" AND home = "edmonton"
Who was the visiting team at the game where Edmonton was the home team and the decision was Osgood?
CREATE TABLE table_name_98 (visitor VARCHAR, decision VARCHAR, home VARCHAR)
SELECT school_club_team FROM table_name_25 WHERE player = "kenny smith"
What team does Kenny Smith play for?
CREATE TABLE table_name_25 (school_club_team VARCHAR, player VARCHAR)
SELECT competition FROM table_name_56 WHERE date = "december 25, 1925"
Who played on December 25, 1925?
CREATE TABLE table_name_56 (competition VARCHAR, date VARCHAR)
SELECT MAX(orangemen_points) FROM table_23346983_1 WHERE game = 1
How many points did the Orangemen score in game 1?
CREATE TABLE table_23346983_1 (orangemen_points INTEGER, game VARCHAR)
SELECT location FROM table_name_77 WHERE round = "1" AND opponent = "luiz claudio das dores"
Where was the fight located that lasted 1 round against luiz claudio das dores?
CREATE TABLE table_name_77 (location VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT opponent FROM table_name_59 WHERE week > 7 AND stadium = "schaefer stadium"
Who was the opposing team at Schaefer Stadium later in the season than week 7?
CREATE TABLE table_name_59 (opponent VARCHAR, week VARCHAR, stadium VARCHAR)
SELECT AVG(wins) FROM table_name_59 WHERE club = "barcelona atlètic" AND goals_for > 56
Which average wins have a Club of barcelona atlètic, and Goals for larger than 56?
CREATE TABLE table_name_59 (wins INTEGER, club VARCHAR, goals_for VARCHAR)
SELECT venue FROM table_name_48 WHERE home_team = "st kilda"
Where does St Kilda play?
CREATE TABLE table_name_48 (venue VARCHAR, home_team VARCHAR)
SELECT player FROM table_1213511_2 WHERE nhl_team = "New York Rangers"
Who's the player for the New York Rangers?
CREATE TABLE table_1213511_2 (player VARCHAR, nhl_team VARCHAR)
SELECT shigella FROM table_10321124_1 WHERE yersinia = "YscP"
what's the shigella with yersinia being yscp
CREATE TABLE table_10321124_1 (shigella VARCHAR, yersinia VARCHAR)
SELECT date_made FROM table_name_31 WHERE type = "0-6-0" AND gsr_class = "441"
What is the date of creation of the locomotive of type 0-6-0 and GSR class of 441?
CREATE TABLE table_name_31 (date_made VARCHAR, type VARCHAR, gsr_class VARCHAR)
SELECT ratings__5_capital_cities_ FROM table_name_82 WHERE episode_no = "wonder drug"
What was the rating of the episode Wonder Drug?
CREATE TABLE table_name_82 (ratings__5_capital_cities_ VARCHAR, episode_no VARCHAR)
SELECT try_bonus FROM table_12792876_4 WHERE points_against = "430"
Name the try bonus of points against at 430
CREATE TABLE table_12792876_4 (try_bonus VARCHAR, points_against VARCHAR)
SELECT airport FROM table_name_39 WHERE city = "perth"
Which airport has perth as the city?
CREATE TABLE table_name_39 (airport VARCHAR, city VARCHAR)
SELECT hdi_2011 FROM table_name_54 WHERE di_2011 = "7.63"
What is the HDI 2011 of the country with a DI 2011 of 7.63?
CREATE TABLE table_name_54 (hdi_2011 VARCHAR, di_2011 VARCHAR)
SELECT date_of_appointment FROM table_26976615_3 WHERE date_of_vacancy = "22 August 2010"
What is the date of appointment for the date of vacancy of 22 august 2010?
CREATE TABLE table_26976615_3 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR)
SELECT constructor FROM table_name_20 WHERE chassis = "tg181" AND driver = "derek warwick"
Who constructed the car that Derek Warwick raced in with a TG181 chassis?
CREATE TABLE table_name_20 (constructor VARCHAR, chassis VARCHAR, driver VARCHAR)
SELECT competition FROM table_13328239_4 WHERE score = "38-14"
What competition ended with a score of 38-14?
CREATE TABLE table_13328239_4 (competition VARCHAR, score VARCHAR)
SELECT team FROM table_26914759_3 WHERE incoming_manager = "Dave Penney"
WHich team had dave penney as an incoming manager
CREATE TABLE table_26914759_3 (team VARCHAR, incoming_manager VARCHAR)
SELECT directed_by FROM table_25851971_1 WHERE us_viewers__million_ = "4.82"
Who directed the episode with 4.82 million U.S. viewers?
CREATE TABLE table_25851971_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT saturday FROM table_name_80 WHERE sunday = "yes" AND evening = "yes"
Which Saturday has a Sunday of yes and a Evening of yes?
CREATE TABLE table_name_80 (saturday VARCHAR, sunday VARCHAR, evening VARCHAR)
SELECT AVG(clean_) & _jerk FROM table_name_10 WHERE snatch = 140 AND total__kg_ < 315
Name the average clean and jerk for snatch of 140 and total kg less than 315
CREATE TABLE table_name_10 (_jerk VARCHAR, clean_ INTEGER, snatch VARCHAR, total__kg_ VARCHAR)
SELECT population_density___km²_2010_ FROM table_21734764_1 WHERE administrative_division = "Bandung Regency"
What is the population density of bandung regency?
CREATE TABLE table_21734764_1 (population_density___km²_2010_ VARCHAR, administrative_division VARCHAR)
SELECT winner FROM table_name_63 WHERE route = "mechelen > mechelen"
Who was the winner of the mechelen > mechelen route?
CREATE TABLE table_name_63 (winner VARCHAR, route VARCHAR)
SELECT score FROM table_name_90 WHERE high_points = "douglas (15)"
Which Score has High points of douglas (15)?
CREATE TABLE table_name_90 (score VARCHAR, high_points VARCHAR)
SELECT COUNT(attendance) FROM table_26455614_1 WHERE runner_up = "Red Star"
How many games had red star as the runner up?
CREATE TABLE table_26455614_1 (attendance VARCHAR, runner_up VARCHAR)
SELECT MAX(_percentage_similarity_to_c7orf38) FROM table_26957063_3 WHERE _percentage_identity_to_c7orf38 = 81
What is the % similarity to C7orf38 of the animal whose % identity to C7orf38 is 81?
CREATE TABLE table_26957063_3 (_percentage_similarity_to_c7orf38 INTEGER, _percentage_identity_to_c7orf38 VARCHAR)
SELECT tournament FROM table_name_4 WHERE outcome = "winner" AND surface = "hard (i)"
Which Tournament has an Outcome of winner, and a Surface of hard (i)?
CREATE TABLE table_name_4 (tournament VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT high_assists FROM table_27721131_2 WHERE score = "W 97–94 (OT)"
Who's in the high assists with a w 97–94 (ot) score?
CREATE TABLE table_27721131_2 (high_assists VARCHAR, score VARCHAR)
SELECT code FROM table_name_97 WHERE cr = "16.7:1"
What code has a C.R of 16.7:1?
CREATE TABLE table_name_97 (code VARCHAR, cr VARCHAR)
SELECT COUNT(villains) FROM table_10470082_3 WHERE no = 25
How many villians were in No. 25?
CREATE TABLE table_10470082_3 (villains VARCHAR, no VARCHAR)
SELECT e_coli FROM table_name_22 WHERE substrates = "uracil"
Which E. coli has a substrate of uracil?
CREATE TABLE table_name_22 (e_coli VARCHAR, substrates VARCHAR)
SELECT COUNT(losses) FROM table_name_75 WHERE games_played < 8 AND wins < 3
How many losses occurred with less than 8 games played and less than 3 wins?
CREATE TABLE table_name_75 (losses VARCHAR, games_played VARCHAR, wins VARCHAR)
SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY COUNT(*) DESC LIMIT 1
Find the busiest destination airport that runs most number of routes in China.
CREATE TABLE routes (dst_apid VARCHAR); CREATE TABLE airports (name VARCHAR, apid VARCHAR, country VARCHAR)
SELECT away_team AS score FROM table_name_28 WHERE venue = "princes park"
What was the away score at the Princes Park game?
CREATE TABLE table_name_28 (away_team VARCHAR, venue VARCHAR)
SELECT COUNT(no_in_series) FROM table_1876825_2 WHERE original_air_date = "March 19, 2000"
Name the total number of series for march 19, 2000
CREATE TABLE table_1876825_2 (no_in_series VARCHAR, original_air_date VARCHAR)
SELECT championship FROM table_name_30 WHERE year = 1985
What championship was in 1985?
CREATE TABLE table_name_30 (championship VARCHAR, year VARCHAR)
SELECT COUNT(crowd) FROM table_name_79 WHERE away_team = "essendon"
What was the crowd size when Essendon was the away team?
CREATE TABLE table_name_79 (crowd VARCHAR, away_team VARCHAR)
SELECT start FROM table_name_17 WHERE year > 2010 AND team = "chip ganassi racing"
What start has a year later than 2010, and chip ganassi racing as the team?
CREATE TABLE table_name_17 (start VARCHAR, year VARCHAR, team VARCHAR)
SELECT runner_up FROM table_1507431_1 WHERE no = 2
Who are all runner-ups for No. 2?
CREATE TABLE table_1507431_1 (runner_up VARCHAR, no VARCHAR)
SELECT player FROM table_name_89 WHERE position = "df" AND loaned_to = "stoke city"
What player that has a Position of df, and Loaned to is Stoke City?
CREATE TABLE table_name_89 (player VARCHAR, position VARCHAR, loaned_to VARCHAR)
SELECT 1 AS st_leg FROM table_name_34 WHERE team_2 = "as police"
What was the first leg score for the match that had AS Police as team 2?
CREATE TABLE table_name_34 (team_2 VARCHAR)
SELECT MAX(number_of_believers) FROM table_24613895_1 WHERE name_in_syriac = "ܓܘܝܠܢ"
Name the most number of believers for ܓܘܝܠܢ
CREATE TABLE table_24613895_1 (number_of_believers INTEGER, name_in_syriac VARCHAR)
SELECT diameter__km_ FROM table_16799784_7 WHERE longitude = "170.1E"
what is the diameter (km) of longitude 170.1e
CREATE TABLE table_16799784_7 (diameter__km_ VARCHAR, longitude VARCHAR)
SELECT COUNT(DISTINCT card_type_code) FROM Customers_Cards
Show the number of card types.
CREATE TABLE Customers_Cards (card_type_code VARCHAR)
SELECT branding FROM table_name_70 WHERE frequency = "00 94.5"
What is the Branding of Frequency 00 94.5?
CREATE TABLE table_name_70 (branding VARCHAR, frequency VARCHAR)
SELECT COUNT(opponents) FROM table_21035326_1 WHERE game = 4
What is the total number of opponents played against the bears in game 4?
CREATE TABLE table_21035326_1 (opponents VARCHAR, game VARCHAR)
SELECT date FROM table_name_72 WHERE region = "new zealand"
What is the release Date for the Region in New Zealand ?
CREATE TABLE table_name_72 (date VARCHAR, region VARCHAR)
SELECT AVG(season) FROM table_name_51 WHERE races < 3 AND wins < 1
In what Season were then less than 3 Races with less than 1 Win?
CREATE TABLE table_name_51 (season INTEGER, races VARCHAR, wins VARCHAR)
SELECT high_points FROM table_name_55 WHERE date = "february 11"
What was the High points when date was February 11?
CREATE TABLE table_name_55 (high_points VARCHAR, date VARCHAR)
SELECT COUNT(moves) FROM table_name_52 WHERE result = "½–½" AND year < 1999 AND black = "anand"
What's the total number of moves with a result of ½–½ and a black of Anand before 1999?
CREATE TABLE table_name_52 (moves VARCHAR, black VARCHAR, result VARCHAR, year VARCHAR)
SELECT MIN(time) FROM table_name_85 WHERE athlete = "paulo villar" AND lane < 9
What is the lowest time for Paulo Villar in lane 9?
CREATE TABLE table_name_85 (time INTEGER, athlete VARCHAR, lane VARCHAR)
SELECT transliteration FROM table_22464685_1 WHERE period_covered = "1125-1223"
what is the transliteration during the period covered is 1125-1223?
CREATE TABLE table_22464685_1 (transliteration VARCHAR, period_covered VARCHAR)
SELECT score FROM table_name_47 WHERE tie_no = "4"
What is the score when the tie number is 4?
CREATE TABLE table_name_47 (score VARCHAR, tie_no VARCHAR)
SELECT COUNT(*) FROM Templates WHERE template_type_code = "CV"
How many templates have template type code CV?
CREATE TABLE Templates (template_type_code VARCHAR)
SELECT SUM(week) FROM table_name_97 WHERE opponent = "houston oilers" AND attendance > 54 OFFSET 582
What is the sum of the weeks during which the Redskins played against the Houston Oilers and had more than 54,582 fans in attendance?
CREATE TABLE table_name_97 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
SELECT built FROM table_name_8 WHERE wheels = "0-4-0" AND status = "in service"
What is found in the Built column of the locomotive with 0-4-0 wheels that is still in service?
CREATE TABLE table_name_8 (built VARCHAR, wheels VARCHAR, status VARCHAR)
SELECT iata FROM table_name_59 WHERE country = "china" AND icao = "zspd"
Which IATA is associated with China and an ICAO of ZSPD?
CREATE TABLE table_name_59 (iata VARCHAR, country VARCHAR, icao VARCHAR)
SELECT elevator FROM table_name_63 WHERE elector = "giovanni gaetano orsini"
When Giovanni Gaetano Orsini was the elector who was the elevator?
CREATE TABLE table_name_63 (elevator VARCHAR, elector VARCHAR)
SELECT friday FROM table_name_34 WHERE sunday = "alice levine jamie east"
Who was the presenter on Friday of the series in which Alice Levine Jamie East presented on Sunday?
CREATE TABLE table_name_34 (friday VARCHAR, sunday VARCHAR)
SELECT best_finish FROM table_name_41 WHERE money_list_rank = "n/a" AND earnings___$__ > 0 AND cuts_made > 1
what is the best finish when money list rank is n/a, earnings ($) is more than 0 and cuts made is more than 1?
CREATE TABLE table_name_41 (best_finish VARCHAR, cuts_made VARCHAR, money_list_rank VARCHAR, earnings___$__ VARCHAR)
SELECT city FROM table_name_92 WHERE icao = "wadd"
Which city's ICAO is WADD?
CREATE TABLE table_name_92 (city VARCHAR, icao VARCHAR)
SELECT COUNT(no_of_barangays) FROM table_2402209_1 WHERE population__2010_ = 13824
How many different counts of tue number of Barangays are there for the municipality with 13824 citizens in 2010?
CREATE TABLE table_2402209_1 (no_of_barangays VARCHAR, population__2010_ VARCHAR)
SELECT home FROM table_name_77 WHERE record = "7–5–2"
Where was home with a record of 7–5–2?
CREATE TABLE table_name_77 (home VARCHAR, record VARCHAR)
SELECT margin FROM table_262383_1 WHERE runner_s__up = "Mike Turnesa"
what is the space where the next one was mike turnesa
CREATE TABLE table_262383_1 (margin VARCHAR, runner_s__up VARCHAR)
SELECT AVG(acquired) FROM table_name_73 WHERE number = 7
What is the average Acquired when the Number shows as 7?
CREATE TABLE table_name_73 (acquired INTEGER, number VARCHAR)
SELECT location FROM table_name_46 WHERE unit = "two medicine formation"
Where is two medicine formation?
CREATE TABLE table_name_46 (location VARCHAR, unit VARCHAR)
SELECT district FROM table_1342292_4 WHERE first_elected = 1932
What district had someone first elected in 1932?
CREATE TABLE table_1342292_4 (district VARCHAR, first_elected VARCHAR)
SELECT coach FROM table_name_18 WHERE conference_titles = "0" AND seasons > 2 AND losses > 87 AND ncaa = "0"
Which coach has 0 conference titles, more than 2 seasons, higher than 87 losses and 0 NCAA?
CREATE TABLE table_name_18 (coach VARCHAR, ncaa VARCHAR, losses VARCHAR, conference_titles VARCHAR, seasons VARCHAR)
SELECT MAX(prev) FROM table_name_4 WHERE rank = 9 AND rating < 2746
What is the highest prev that has 9 as the rank, with a rating less than 2746?
CREATE TABLE table_name_4 (prev INTEGER, rank VARCHAR, rating VARCHAR)
SELECT pos FROM table_name_86 WHERE name = "alyona klimenko"
What is Alyona Klimenko's Pos.?
CREATE TABLE table_name_86 (pos VARCHAR, name VARCHAR)
SELECT score FROM table_name_85 WHERE player = "dave hill"
What was Dave Hill's score?
CREATE TABLE table_name_85 (score VARCHAR, player VARCHAR)
SELECT T1.name_first, T1.name_last, T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY COUNT(*) DESC LIMIT 3
Which 3 players won the most player awards? List their full name and id.
CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE player_award (player_id VARCHAR)
SELECT MIN(position) FROM table_name_95 WHERE played > 9 AND points < 11 AND drawn < 0
Which Position has a Played larger than 9, and a Points smaller than 11, and a Drawn smaller than 0?
CREATE TABLE table_name_95 (position INTEGER, drawn VARCHAR, played VARCHAR, points VARCHAR)
SELECT district FROM table_1346118_5 WHERE candidates = "John I. Nolan (R) 87% Thomas F. Feeley (S) 13%"
Which district was the race between john i. nolan (r) 87% thomas f. feeley (s) 13%?
CREATE TABLE table_1346118_5 (district VARCHAR, candidates VARCHAR)
SELECT mountains_classification FROM table_22941863_19 WHERE winner = "Michael Albasini"
If the winner is Michael Albasini, what is the mountains classification name?
CREATE TABLE table_22941863_19 (mountains_classification VARCHAR, winner VARCHAR)
SELECT outcome FROM table_name_67 WHERE opponent_in_the_final = "all england open"
What is the Outcome when All England Open is the Opponent in the final?
CREATE TABLE table_name_67 (outcome VARCHAR, opponent_in_the_final VARCHAR)
SELECT chassis FROM table_name_80 WHERE engine = "ferrari flat-12" AND points > 1
A ferrari flat-12 engine with more than 1 point has what kind of chassis?
CREATE TABLE table_name_80 (chassis VARCHAR, engine VARCHAR, points VARCHAR)
SELECT match1 FROM table_24538140_2 WHERE team = "Eastern Tigers"
What is the score for match 1 for the team Eastern Tigers?
CREATE TABLE table_24538140_2 (match1 VARCHAR, team VARCHAR)
SELECT MIN(rank) FROM table_22355_5
What's the minimal rank of a athlete shown in the chart?
CREATE TABLE table_22355_5 (rank INTEGER)
SELECT hanzi FROM table_name_92 WHERE regional_population_2010_ = "4,591,972"
Which Hanzi has a Regional Population of 4,591,972 in 2010?
CREATE TABLE table_name_92 (hanzi VARCHAR, regional_population_2010_ VARCHAR)
SELECT notes FROM table_name_77 WHERE year < 2006 AND silver = "jenny johansson"
What are the Notes against a Silver for Jenny Johansson earlier than 2006?
CREATE TABLE table_name_77 (notes VARCHAR, year VARCHAR, silver VARCHAR)
SELECT season FROM table_175980_2 WHERE ranking = "#47"
What seasons had a ranking of #47?
CREATE TABLE table_175980_2 (season VARCHAR, ranking VARCHAR)
SELECT player FROM table_name_85 WHERE overall < 209 AND club_team = "victoriaville tigres (qmjhl)" AND round = 1
What is the name of the player with an overall less than 209 for the Victoriaville tigres (qmjhl), and a Round of 1?
CREATE TABLE table_name_85 (player VARCHAR, round VARCHAR, overall VARCHAR, club_team VARCHAR)
SELECT MIN(failures) FROM table_name_28 WHERE launches = 1 AND partial_failures < 0
What is the least amount of failures with 1 launch and 0 partial failures?
CREATE TABLE table_name_28 (failures INTEGER, launches VARCHAR, partial_failures VARCHAR)
SELECT MIN(points) FROM table_26882866_1 WHERE standing = "5th"
Name the leaast points for standing 5th
CREATE TABLE table_26882866_1 (points INTEGER, standing VARCHAR)
SELECT away_team FROM table_name_23 WHERE home_team = "footscray"
What is the name of the away team who played Footscray?
CREATE TABLE table_name_23 (away_team VARCHAR, home_team VARCHAR)
SELECT floors FROM table_name_44 WHERE street_address_in_detroit = "1828 jay street"
How many floors does the address 1828 jay street have?
CREATE TABLE table_name_44 (floors VARCHAR, street_address_in_detroit VARCHAR)
SELECT the_wørd FROM table_25691838_12 WHERE guest = "Daniel Ellsberg , William Wegman , Julie Taymor"
What is "the wørd" when guests were daniel ellsberg , william wegman , julie taymor?
CREATE TABLE table_25691838_12 (the_wørd VARCHAR, guest VARCHAR)
SELECT SUM(attendance) FROM table_name_8 WHERE premiership = "pre-season cup" AND runner_up = "north melbourne" AND season < 2000
If the season is before 2000, the runner up was north melbourne, and it's the pre-season cup, what's the sum of attendees?
CREATE TABLE table_name_8 (attendance INTEGER, season VARCHAR, premiership VARCHAR, runner_up VARCHAR)
SELECT japanese FROM table_name_28 WHERE chinese = "叉焼"
What are the Japanese characters for the Chinese word 叉焼?
CREATE TABLE table_name_28 (japanese VARCHAR, chinese VARCHAR)
SELECT date FROM table_name_48 WHERE region = "france" AND catalog = "82876-70291-2"
What Date is listed for the Region of France and Catalog of 82876-70291-2?
CREATE TABLE table_name_48 (date VARCHAR, region VARCHAR, catalog VARCHAR)
SELECT T1.Name, T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID
Show names of climbers and the names of mountains they climb.
CREATE TABLE mountain (Name VARCHAR, Mountain_ID VARCHAR); CREATE TABLE climber (Name VARCHAR, Mountain_ID VARCHAR)
SELECT COUNT(no_in_series) FROM table_21666472_1 WHERE written_by = "Greg Haddrick"
How many number in series's are written by Greg Haddrick?
CREATE TABLE table_21666472_1 (no_in_series VARCHAR, written_by VARCHAR)
SELECT AVG(Age) FROM STUDENT WHERE Sex = "F"
What is the average age of female (sex is F) students?
CREATE TABLE STUDENT (Age INTEGER, Sex VARCHAR)