answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT label FROM table_name_77 WHERE catalogue = "7200222"
What is the label for catalogue 7200222?
CREATE TABLE table_name_77 (label VARCHAR, catalogue VARCHAR)
SELECT player FROM table_name_38 WHERE place = "t5"
What player has t5 as the place?
CREATE TABLE table_name_38 (player VARCHAR, place VARCHAR)
SELECT college FROM table_name_82 WHERE player = "richard ticzon"
What college did Richard Ticzon attend?
CREATE TABLE table_name_82 (college VARCHAR, player VARCHAR)
SELECT lengths_behind FROM table_name_63 WHERE jockey = "ramon a. dominguez"
What's the lengths behind of Jockey Ramon A. Dominguez?
CREATE TABLE table_name_63 (lengths_behind VARCHAR, jockey VARCHAR)
SELECT record FROM table_name_30 WHERE date = "march 14"
What was the record on March 14?
CREATE TABLE table_name_30 (record VARCHAR, date VARCHAR)
SELECT bonus_points FROM table_name_83 WHERE drawn = "2" AND points_against = "599"
What is the number of bonus points when there are 2 drawn and the points against is 599?
CREATE TABLE table_name_83 (bonus_points VARCHAR, drawn VARCHAR, points_against VARCHAR)
SELECT client FROM table_13150274_1 WHERE area_of_operation = "EchiraX Concession"
Whose address of operation was the Echirax Concession?
CREATE TABLE table_13150274_1 (client VARCHAR, area_of_operation VARCHAR)
SELECT COUNT(display_size__in_) FROM table_name_29 WHERE model = "vaio pcg-u3"
Which Display size (in) has a Model of vaio pcg-u3?
CREATE TABLE table_name_29 (display_size__in_ VARCHAR, model VARCHAR)
SELECT japanese_voice_actor FROM table_name_25 WHERE eagle_riders = "ollie keeawani"
Who is the Japanese voice actor of Eagle Rider Ollie Keeawani?
CREATE TABLE table_name_25 (japanese_voice_actor VARCHAR, eagle_riders VARCHAR)
SELECT result FROM table_name_40 WHERE first_elected = "1904" AND incumbent = "james o'h. patterson"
What was the result for james o'h. patterson when first elected in 1904?
CREATE TABLE table_name_40 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT MAX(year) FROM table_name_89 WHERE director = "christopher kulikowski"
What is the most recent year featuring the director Christopher Kulikowski?
CREATE TABLE table_name_89 (year INTEGER, director VARCHAR)
SELECT SUM(attendance) FROM table_name_43 WHERE home = "vancouver" AND date = "may 22"
What is the combined crowd in Vancouver on may 22?
CREATE TABLE table_name_43 (attendance INTEGER, home VARCHAR, date VARCHAR)
SELECT tour FROM table_14496232_2 WHERE mens_singles = "Chen Jin" AND womens_doubles = "Zhang Yawen Zhao Tingting"
Name the tour when mens singles is chen jin and womens doubles is zhang yawen zhao tingting
CREATE TABLE table_14496232_2 (tour VARCHAR, mens_singles VARCHAR, womens_doubles VARCHAR)
SELECT 2 AS nd_leg FROM table_name_74 WHERE agg = "1-3"
For an aggregate of 1-3, what was the 2nd leg?
CREATE TABLE table_name_74 (agg VARCHAR)
SELECT time FROM table_name_47 WHERE heat = 5 AND lane = 3
What is the time of lane 3 in heat 5?
CREATE TABLE table_name_47 (time VARCHAR, heat VARCHAR, lane VARCHAR)
SELECT position FROM table_name_44 WHERE a_score > 7
what is the position for the competitor that has a score more than 7
CREATE TABLE table_name_44 (position VARCHAR, a_score INTEGER)
SELECT MAX(fourth_place) FROM table_14573770_4 WHERE nation = "Argentina"
How many teams named argentina?
CREATE TABLE table_14573770_4 (fourth_place INTEGER, nation VARCHAR)
SELECT audience FROM table_name_74 WHERE title = "mi amigo el monstruo"
What was the audience for Mi Amigo el Monstruo?
CREATE TABLE table_name_74 (audience VARCHAR, title VARCHAR)
SELECT country FROM table_name_81 WHERE place = "t3" AND score = 70 - 68 = 138
What country was the player from who placed t3 with a score of 70-68=138?
CREATE TABLE table_name_81 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT 2006 FROM table_name_63 WHERE 2007 = "1r" AND 2002 = "q2"
What is 2006, when 2007 is "1R", and when 2002 is "Q2"?
CREATE TABLE table_name_63 (Id VARCHAR)
SELECT SUM(score) FROM table_name_9 WHERE to_par = "–5" AND player = "peter jacobsen"
What is the score when the to par was –5, for Peter Jacobsen?
CREATE TABLE table_name_9 (score INTEGER, to_par VARCHAR, player VARCHAR)
SELECT wed_3_june FROM table_21607058_1 WHERE rank = 12
What were the time and speed for the rider ranked in 12 on Wed, June 3?
CREATE TABLE table_21607058_1 (wed_3_june VARCHAR, rank VARCHAR)
SELECT class AS pos FROM table_name_72 WHERE year < 2013 AND laps > 175
What is Class Pos., when Year is before 2013, and when Laps is greater than 175?
CREATE TABLE table_name_72 (class VARCHAR, year VARCHAR, laps VARCHAR)
SELECT MAX(nepalis_admitted) FROM table_name_67 WHERE bangladeshis_admitted < 1 OFFSET 896
What was the most Nepalis admitted when fewer than 1,896 Bangladeshis were admitted?
CREATE TABLE table_name_67 (nepalis_admitted INTEGER, bangladeshis_admitted INTEGER)
SELECT date FROM table_name_92 WHERE potts__i_ = "9%"
On which date did Potts (I) poll at 9%?
CREATE TABLE table_name_92 (date VARCHAR, potts__i_ VARCHAR)
SELECT T2.Player FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Country_name = "Indonesia"
Which players are from Indonesia?
CREATE TABLE country (Country_id VARCHAR, Country_name VARCHAR); CREATE TABLE match_season (Player VARCHAR, Country VARCHAR)
SELECT student_id, COUNT(*) FROM Likes GROUP BY student_id
Count the number of likes for each student id.
CREATE TABLE Likes (student_id VARCHAR)
SELECT director FROM table_26866519_1 WHERE series__number = 201
Who directed series episode number 201?
CREATE TABLE table_26866519_1 (director VARCHAR, series__number VARCHAR)
SELECT name FROM table_27487310_5 WHERE host_s_ = "unknown"
What is the name of the series with the unknown host?
CREATE TABLE table_27487310_5 (name VARCHAR, host_s_ VARCHAR)
SELECT average FROM table_26611679_3 WHERE games_played = 23
Name the average for 23 games played
CREATE TABLE table_26611679_3 (average VARCHAR, games_played VARCHAR)
SELECT AVG(fa_cup_goals) FROM table_name_80 WHERE fa_cup_apps = "0" AND total_goals < 1 AND position = "df"
what is the average fa cup goals when the fa cup apps is 0, total goals is less than 1 and position is df?
CREATE TABLE table_name_80 (fa_cup_goals INTEGER, position VARCHAR, fa_cup_apps VARCHAR, total_goals VARCHAR)
SELECT lost FROM table_name_84 WHERE tries_for = "103"
How many losses were there with 103 tries for?
CREATE TABLE table_name_84 (lost VARCHAR, tries_for VARCHAR)
SELECT COUNT(rank) FROM table_name_98 WHERE attendance = 93 OFFSET 039
What is the Rank of the game with an Attendance of 93,039?
CREATE TABLE table_name_98 (rank VARCHAR, attendance VARCHAR)
SELECT COUNT(rank_07_11) FROM table_167354_2 WHERE world_ranking = "4"
How many figures are there for Rank 07-11 when the world ranking is 4?
CREATE TABLE table_167354_2 (rank_07_11 VARCHAR, world_ranking VARCHAR)
SELECT score FROM table_name_97 WHERE report = "fifa" AND date = "october 13, 2007"
What is the score of the FIFA report on October 13, 2007?
CREATE TABLE table_name_97 (score VARCHAR, report VARCHAR, date VARCHAR)
SELECT AVG(losses) FROM table_name_43 WHERE years = "1904"
How many losses did Notre Dame have in 1904?
CREATE TABLE table_name_43 (losses INTEGER, years VARCHAR)
SELECT score FROM table_name_73 WHERE competition = "euro 2004 qualifier"
What is Score, when Competition is "Euro 2004 Qualifier"?
CREATE TABLE table_name_73 (score VARCHAR, competition VARCHAR)
SELECT MAX(no_in_series) FROM table_22078972_2 WHERE written_by = "David North"
What's the series number of the episode whose writer is David North?
CREATE TABLE table_22078972_2 (no_in_series INTEGER, written_by VARCHAR)
SELECT MIN(team_s_) FROM table_name_31 WHERE top_goalscorer_s_ = "tvmk" AND champion = "flora"
What is the lowest team (s) that have tvmk as top scorer (s) and flora as the champion?
CREATE TABLE table_name_31 (team_s_ INTEGER, top_goalscorer_s_ VARCHAR, champion VARCHAR)
SELECT price FROM table_name_24 WHERE upstream = "256 kbit" AND downstream = "512 kbit"
What is the price of the internet provider that has an upstream rate of 256 kbit and a downstream rate of 512 kbit?
CREATE TABLE table_name_24 (price VARCHAR, upstream VARCHAR, downstream VARCHAR)
SELECT gillingham_career FROM table_name_79 WHERE goals = 0 AND apps < 37 AND nationality = "england" AND position = "mf"
When did the mf from England play for Gillingham that made 0 goals and less than 37 appearances?
CREATE TABLE table_name_79 (gillingham_career VARCHAR, position VARCHAR, nationality VARCHAR, goals VARCHAR, apps VARCHAR)
SELECT title FROM table_name_83 WHERE rank > 14 AND worldwide_gross = "$202,292,902"
Who has the title and rank 14, and a worldwide gross of $202,292,902?
CREATE TABLE table_name_83 (title VARCHAR, rank VARCHAR, worldwide_gross VARCHAR)
SELECT MAX(_number) FROM table_11235334_2 WHERE air_date = "September 29, 2008"
what is the most # that aired on september 29, 2008?
CREATE TABLE table_11235334_2 (_number INTEGER, air_date VARCHAR)
SELECT country FROM table_name_70 WHERE total > 300
What is the country of the player who has a total larger than 300?
CREATE TABLE table_name_70 (country VARCHAR, total INTEGER)
SELECT replaced_by FROM table_17039232_3 WHERE outgoing_manager = "Kent Nielsen"
Name the replaced by when outgoing manager is kent nielsen
CREATE TABLE table_17039232_3 (replaced_by VARCHAR, outgoing_manager VARCHAR)
SELECT nat FROM table_name_36 WHERE name = "rix"
Where is Rix from?
CREATE TABLE table_name_36 (nat VARCHAR, name VARCHAR)
SELECT COUNT(type_of_fare) FROM table_20803241_1 WHERE 31 - day_pass = "N/A" AND cash_fare = "N/A"
When n/a is the cash fate and n/a is the 31-day pass how many types of fare are there?
CREATE TABLE table_20803241_1 (type_of_fare VARCHAR, cash_fare VARCHAR, day_pass VARCHAR)
SELECT MAX(grid) FROM table_name_91 WHERE time_retired = "52:52.1881"
What is the highest numbered grid with a time or retired time of 52:52.1881?
CREATE TABLE table_name_91 (grid INTEGER, time_retired VARCHAR)
SELECT venue FROM table_name_29 WHERE away_team = "richmond"
What venue did Richmond play as the away team?
CREATE TABLE table_name_29 (venue VARCHAR, away_team VARCHAR)
SELECT opponent FROM table_name_77 WHERE date = "october 28, 2001"
Who is the opponent on October 28, 2001?
CREATE TABLE table_name_77 (opponent VARCHAR, date VARCHAR)
SELECT year_s__won FROM table_name_45 WHERE to_par = "+1"
Which years was there a To par of +1?
CREATE TABLE table_name_45 (year_s__won VARCHAR, to_par VARCHAR)
SELECT AVG(Number_of_hosts) FROM party
What is the average number of hosts for parties?
CREATE TABLE party (Number_of_hosts INTEGER)
SELECT MAX(laps) FROM table_name_58 WHERE driver = "kazuki nakajima" AND grid > 19
What are the highest laps Kazuki Nakajima did with a Grid larger than 19?
CREATE TABLE table_name_58 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT icao FROM table_name_21 WHERE iata = "mle"
For an IATA of MLE, what is the ICAO?
CREATE TABLE table_name_21 (icao VARCHAR, iata VARCHAR)
SELECT victory_margin__in_lengths_ FROM table_name_74 WHERE finish = "1st" AND jockey = "kent desormeaux" AND time = "1:35.66"
What was the victory margin for a finish of 1st with a rider of Kent Desormeaux, with a time of 1:35.66?
CREATE TABLE table_name_74 (victory_margin__in_lengths_ VARCHAR, time VARCHAR, finish VARCHAR, jockey VARCHAR)
SELECT district FROM table_1341718_44 WHERE incumbent = "Earle Cabell"
Which district elected incumbent Earle Cabell?
CREATE TABLE table_1341718_44 (district VARCHAR, incumbent VARCHAR)
SELECT date FROM table_name_47 WHERE nation = "russia" AND venue = "madrid , spain"
What is the Date when Russia was the nation and the venue was madrid , spain?
CREATE TABLE table_name_47 (date VARCHAR, nation VARCHAR, venue VARCHAR)
SELECT team FROM table_22669044_9 WHERE high_assists = "Kirk Hinrich , Derrick Rose , John Salmons (6)"
Name the team for kirk hinrich , derrick rose , john salmons (6)
CREATE TABLE table_22669044_9 (team VARCHAR, high_assists VARCHAR)
SELECT stroke__mm_ FROM table_23722304_2 WHERE vehicle_code = "T211"
what is the stroke where the vehicle code is t211?
CREATE TABLE table_23722304_2 (stroke__mm_ VARCHAR, vehicle_code VARCHAR)
SELECT to_par FROM table_name_61 WHERE player = "dick metz"
Name the To par for dick metz
CREATE TABLE table_name_61 (to_par VARCHAR, player VARCHAR)
SELECT no_in_series FROM table_24223834_3 WHERE us_viewers__in_millions_ = "2.528"
What episode number in the series had 2.528 million u.s. viewers?
CREATE TABLE table_24223834_3 (no_in_series VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT COUNT(master_recording) FROM table_22457674_1 WHERE artist = "Doobie Brothers The Doobie Brothers"
Name the number of master recording for doobie brothers the doobie brothers
CREATE TABLE table_22457674_1 (master_recording VARCHAR, artist VARCHAR)
SELECT COUNT(district) FROM table_15572443_1 WHERE election_date = "December 1799"
Name the number of districts for december 1799
CREATE TABLE table_15572443_1 (district VARCHAR, election_date VARCHAR)
SELECT COUNT(bronze) FROM table_name_54 WHERE silver = 0 AND total < 1
Tell me the number of bronze for silver of 0 and total less than 1
CREATE TABLE table_name_54 (bronze VARCHAR, silver VARCHAR, total VARCHAR)
SELECT record FROM table_name_20 WHERE event = "ufc 67"
What is his record at ufc 67?
CREATE TABLE table_name_20 (record VARCHAR, event VARCHAR)
SELECT MIN(extra_points) FROM table_14342210_6
What is the least amount of extra points made in by a player?
CREATE TABLE table_14342210_6 (extra_points INTEGER)
SELECT won FROM table_12828723_3 WHERE points_for = "376"
what's the win with points for being 376
CREATE TABLE table_12828723_3 (won VARCHAR, points_for VARCHAR)
SELECT class FROM table_name_16 WHERE year_made = "1899–1900"
What is the Class of 1899–1900?
CREATE TABLE table_name_16 (class VARCHAR, year_made VARCHAR)
SELECT COUNT(enrollment) FROM table_27361255_1 WHERE team_nickname = "RedHawks"
What is the enrollment for the Redhawks?
CREATE TABLE table_27361255_1 (enrollment VARCHAR, team_nickname VARCHAR)
SELECT season FROM table_name_63 WHERE lead = "don bartlett" AND third = "don walchuk" AND second = "carter rycroft"
What is the Season when the Lead was don bartlett, and the third was don walchuk, and a Second of carter rycroft?
CREATE TABLE table_name_63 (season VARCHAR, second VARCHAR, lead VARCHAR, third VARCHAR)
SELECT scorers FROM table_name_94 WHERE opponents = "oldham athletic" AND round = "semi-final"
Who were the scorers in the semi-final round where oldham athletic were the opponents?
CREATE TABLE table_name_94 (scorers VARCHAR, opponents VARCHAR, round VARCHAR)
SELECT record FROM table_name_60 WHERE date = "april 8"
Which record is dated April 8?
CREATE TABLE table_name_60 (record VARCHAR, date VARCHAR)
SELECT MIN(rank) FROM table_name_85 WHERE lane > 5 AND name = "elizabeth van welie"
What is the lowest rank of a swimmer named Elizabeth Van Welie with a lane larger than 5?
CREATE TABLE table_name_85 (rank INTEGER, lane VARCHAR, name VARCHAR)
SELECT away_team FROM table_name_76 WHERE tie_no = "18"
In Tie #18, who was the away team?
CREATE TABLE table_name_76 (away_team VARCHAR, tie_no VARCHAR)
SELECT report FROM table_name_84 WHERE winning_driver = "ayrton senna" AND date = "27 august"
What is the report for the race that Ayrton Senna won on 27 August?
CREATE TABLE table_name_84 (report VARCHAR, winning_driver VARCHAR, date VARCHAR)
SELECT MAX(no_in_season) FROM table_18268826_1 WHERE us_viewers__million_ = "3.19"
What's the season number of the episode viewed by 3.19 million people in the US?
CREATE TABLE table_18268826_1 (no_in_season INTEGER, us_viewers__million_ VARCHAR)
SELECT category FROM table_name_72 WHERE year = 2008
What was the category in 2008?
CREATE TABLE table_name_72 (category VARCHAR, year VARCHAR)
SELECT game_name FROM table_name_92 WHERE odds_of_winning = "1 in 4.23" AND top_prize = "$15,000"
What is the name of the game with odds of winning 1 in 4.23 with a top prize of $15,000?
CREATE TABLE table_name_92 (game_name VARCHAR, odds_of_winning VARCHAR, top_prize VARCHAR)
SELECT phone, room, building FROM Faculty WHERE Fname = "Jerry" AND Lname = "Prince"
Show the phone, room, and building for the faculty named Jerry Prince.
CREATE TABLE Faculty (phone VARCHAR, room VARCHAR, building VARCHAR, Fname VARCHAR, Lname VARCHAR)
SELECT name FROM table_name_19 WHERE position = "head coach"
Who was the head coach?
CREATE TABLE table_name_19 (name VARCHAR, position VARCHAR)
SELECT translation FROM table_23915_4 WHERE ipa___rio_de_janeiro__ = "ki̥ mo̞ɕˈtɾaɾɜ̃w̃ nɐ ˈtɛʁə tɕĩʑiˈtɜ̃nə"
What is the original of the ipa ( rio de janeiro )translation ki̥ mo̞ɕˈtɾaɾɜ̃w̃ nɐ ˈtɛʁə tɕĩʑiˈtɜ̃nə?
CREATE TABLE table_23915_4 (translation VARCHAR, ipa___rio_de_janeiro__ VARCHAR)
SELECT rider FROM table_name_92 WHERE time = "+2:11.524"
Which rider has a time of +2:11.524?
CREATE TABLE table_name_92 (rider VARCHAR, time VARCHAR)
SELECT competition FROM table_name_48 WHERE away_result = "0–3" AND season = "1969-70"
Away result of 0–3, and a Season of 1969-70 is what competition?
CREATE TABLE table_name_48 (competition VARCHAR, away_result VARCHAR, season VARCHAR)
SELECT score FROM table_name_85 WHERE date = "15 march 2006"
What was the score on 15 march 2006?
CREATE TABLE table_name_85 (score VARCHAR, date VARCHAR)
SELECT role FROM table_name_55 WHERE broadcaster = "challenge tv"
What was the role for Challenge TV?
CREATE TABLE table_name_55 (role VARCHAR, broadcaster VARCHAR)
SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1
Show the names of conductors that have conducted more than one orchestras.
CREATE TABLE orchestra (Conductor_ID VARCHAR); CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR)
SELECT director FROM table_10798928_1 WHERE original_title = "Dulcinea"
Who directed Dulcinea?
CREATE TABLE table_10798928_1 (director VARCHAR, original_title VARCHAR)
SELECT result FROM table_name_19 WHERE round > 4 AND opponent = "ed mahone"
What resulted after 4 rounds with Ed Mahone?
CREATE TABLE table_name_19 (result VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT year FROM table_name_77 WHERE engine = "ferrari v6"
What year engine does a ferrari v6 have?
CREATE TABLE table_name_77 (year VARCHAR, engine VARCHAR)
SELECT time_retired FROM table_name_81 WHERE grid = 16
What is the time/retired for the driver with 16 grids?
CREATE TABLE table_name_81 (time_retired VARCHAR, grid VARCHAR)
SELECT indiana FROM table_18461045_1 WHERE michigan = "Midland Northeast LL Midland"
What was the little league team from Indiana when the little league team from Michigan was Midland Northeast LL Midland?
CREATE TABLE table_18461045_1 (indiana VARCHAR, michigan VARCHAR)
SELECT score FROM table_name_71 WHERE date = "july 18" AND record = "41-51"
What is the Score on July 18 that has Record of 41-51?
CREATE TABLE table_name_71 (score VARCHAR, date VARCHAR, record VARCHAR)
SELECT place FROM table_name_89 WHERE player = "seve ballesteros"
What Place has a Player of seve ballesteros?
CREATE TABLE table_name_89 (place VARCHAR, player VARCHAR)
SELECT state_s__on_the_ballot FROM table_name_98 WHERE candidate = "jack herer"
Name the staes on the ballot for jack herer
CREATE TABLE table_name_98 (state_s__on_the_ballot VARCHAR, candidate VARCHAR)
SELECT project_details FROM Projects WHERE NOT project_id IN (SELECT project_id FROM Project_outcomes)
Which projects have no outcome? List the project details.
CREATE TABLE Project_outcomes (project_details VARCHAR, project_id VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR)
SELECT MAX(pick) FROM table_name_52 WHERE team = "denver broncos"
What is the highest pick number for a pick drafted by the denver broncos?
CREATE TABLE table_name_52 (pick INTEGER, team VARCHAR)
SELECT player FROM table_10812938_3 WHERE college = "Saint Mary's"
Which player went to college at Saint Mary's?
CREATE TABLE table_10812938_3 (player VARCHAR, college VARCHAR)
SELECT broadcast_date FROM table_29135051_3 WHERE guest_s_ = "Barbara Windsor and Heston Blumenthal"
when was the episode on which barbara windsor and heston blumenthal guest starred broadcasted
CREATE TABLE table_29135051_3 (broadcast_date VARCHAR, guest_s_ VARCHAR)
SELECT date FROM table_name_60 WHERE record = "52-60"
For the record of 52-60 what's the date?
CREATE TABLE table_name_60 (date VARCHAR, record VARCHAR)
SELECT read_by FROM table_2950964_5 WHERE isbn = "isbn 978-1-4084-6879-1"
THe audio book with ISBN 978-1-4084-6879-1 is read by whom?
CREATE TABLE table_2950964_5 (read_by VARCHAR, isbn VARCHAR)