answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT club_province FROM table_name_51 WHERE player = "steve borthwick"
Name the club/province for steve borthwick
CREATE TABLE table_name_51 (club_province VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_name_36 WHERE player = "michael bradley"
Which School/Club Team has a Player of michael bradley?
CREATE TABLE table_name_36 (school_club_team VARCHAR, player VARCHAR)
SELECT COUNT(rank) FROM table_name_71 WHERE fastest_time__s_ = "11.26" AND nation = "united states"
What rank did the United States swimmer come in who posted 11.26 seconds in the 100-meter youth female division?
CREATE TABLE table_name_71 (rank VARCHAR, fastest_time__s_ VARCHAR, nation VARCHAR)
SELECT MIN(no_in_season) FROM table_11664625_2 WHERE us_viewers__millions_ = "14.57"
When is the first season there were 14.57 million U.S viewers?
CREATE TABLE table_11664625_2 (no_in_season INTEGER, us_viewers__millions_ VARCHAR)
SELECT stadium FROM table_name_30 WHERE final_score = "27-34"
In what stadium did a game result in a final scoreline reading 27-34?
CREATE TABLE table_name_30 (stadium VARCHAR, final_score VARCHAR)
SELECT year FROM table_name_58 WHERE finish_position = "59th"
What year has 59th as a finish position?
CREATE TABLE table_name_58 (year VARCHAR, finish_position VARCHAR)
SELECT date_of_vacancy FROM table_18788823_5 WHERE outgoing_manager = "Micky Adams"
What date did Micky Adams vacate his position?
CREATE TABLE table_18788823_5 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
SELECT MAX(year_named) FROM table_name_39 WHERE name = "ganga valles"
What is the Year named of the Ganga Valles?
CREATE TABLE table_name_39 (year_named INTEGER, name VARCHAR)
SELECT MAX(ends) FROM table_name_41 WHERE name = "zambrano"
Which Ends have a Name of zambrano?
CREATE TABLE table_name_41 (ends INTEGER, name VARCHAR)
SELECT chief_judge FROM table_name_23 WHERE active_service = "1873–1875"
Which Chief Judge has Active service of 1873–1875?
CREATE TABLE table_name_23 (chief_judge VARCHAR, active_service VARCHAR)
SELECT date_of_opinion_poll FROM table_20683381_2 WHERE conductor = "Quantum Research"
When was Quantum Research's poll conducted?
CREATE TABLE table_20683381_2 (date_of_opinion_poll VARCHAR, conductor VARCHAR)
SELECT weight__kg_ FROM table_2062148_2 WHERE jockey = "B. York"
What was the weight in kg when the jockey was B. York?
CREATE TABLE table_2062148_2 (weight__kg_ VARCHAR, jockey VARCHAR)
SELECT loera FROM table_name_47 WHERE source = "surveyusa" AND date = "may 16–may 18, 2008"
Which Loera has a Source of surveyusa, and a Date of may 16–may 18, 2008?
CREATE TABLE table_name_47 (loera VARCHAR, source VARCHAR, date VARCHAR)
SELECT MIN(pick) FROM table_name_57 WHERE round > 1 AND name = "joe day" AND overall < 150
WHAT IS THE PICK FOR JOE DAY, ROUND LARGER THAN 1, AND OVERALL SMALLER THAN 150?
CREATE TABLE table_name_57 (pick INTEGER, overall VARCHAR, round VARCHAR, name VARCHAR)
SELECT eu FROM table_13770460_3 WHERE country = "ESp"
What is the EU status of ESP?
CREATE TABLE table_13770460_3 (eu VARCHAR, country VARCHAR)
SELECT result FROM table_name_98 WHERE attendance = "68,436"
What is the result of the game with 68,436 attending?
CREATE TABLE table_name_98 (result VARCHAR, attendance VARCHAR)
SELECT away_team FROM table_name_77 WHERE venue = "princes park"
Which Away team uses Princes Park as it's venue?
CREATE TABLE table_name_77 (away_team VARCHAR, venue VARCHAR)
SELECT record FROM table_name_51 WHERE attendance = "64,053"
Which record has 64,053 as the attendance?
CREATE TABLE table_name_51 (record VARCHAR, attendance VARCHAR)
SELECT city FROM table_name_20 WHERE region = "east" AND state = "north carolina" AND host = "university of richmond"
What city in the east region in North Carolina was the round where the University of Richmond was the host?
CREATE TABLE table_name_20 (city VARCHAR, host VARCHAR, region VARCHAR, state VARCHAR)
SELECT constructor FROM table_1140076_2 WHERE date = "9 May"
What is the constructor for 9 May?
CREATE TABLE table_1140076_2 (constructor VARCHAR, date VARCHAR)
SELECT 3 AS rd_place FROM table_25058269_1 WHERE season = "2005–06"
In season 2005–06, who is 3rd place?
CREATE TABLE table_25058269_1 (season VARCHAR)
SELECT MIN(wins) FROM table_name_62 WHERE events = 8 AND player = "billy casper" AND earnings___$__ < 71 OFFSET 979
How many wins for billy casper over 8 events and uner $71,979 in earnings?
CREATE TABLE table_name_62 (wins INTEGER, earnings___$__ VARCHAR, events VARCHAR, player VARCHAR)
SELECT height FROM table_name_40 WHERE school = "franklin high school"
Which height is associated with Franklin High School?
CREATE TABLE table_name_40 (height VARCHAR, school VARCHAR)
SELECT driver_s_ FROM table_name_16 WHERE crew_chief = "derrick finley"
Who is the driver of the team with the crew chief Derrick Finley?
CREATE TABLE table_name_16 (driver_s_ VARCHAR, crew_chief VARCHAR)
SELECT title FROM table_10470082_6 WHERE storyteller = "Kiki" AND director = "Will Dixon"
What is the name of the episode told by Kiki and directed by Will Dixon?
CREATE TABLE table_10470082_6 (title VARCHAR, storyteller VARCHAR, director VARCHAR)
SELECT result FROM table_name_77 WHERE year__ceremony_ = "2013 (86th)"
What is the Result of the 2013 (86th) Ceremony?
CREATE TABLE table_name_77 (result VARCHAR, year__ceremony_ VARCHAR)
SELECT leading_scorer FROM table_name_61 WHERE home = "trail blazers"
What is the name of the Leading scorer when the Home was the Trail blazers?
CREATE TABLE table_name_61 (leading_scorer VARCHAR, home VARCHAR)
SELECT COUNT(pos) FROM table_23018775_3 WHERE total_time = "1:30.4135"
How many positions have a total time of 1:30.4135?
CREATE TABLE table_23018775_3 (pos VARCHAR, total_time VARCHAR)
SELECT event FROM table_name_43 WHERE record = "12-1"
Which event has 12-1 as a record?
CREATE TABLE table_name_43 (event VARCHAR, record VARCHAR)
SELECT time FROM table_name_22 WHERE round < 2 AND opponent = "valentijn overeem"
What is Time, when Round is less than 2, and when Opponent is "Valentijn Overeem"?
CREATE TABLE table_name_22 (time VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT discoverer FROM table_name_43 WHERE museum = "burpee museum of natural history"
Who discovered the specimen at the Burpee Museum of Natural History?
CREATE TABLE table_name_43 (discoverer VARCHAR, museum VARCHAR)
SELECT title FROM table_11589522_3 WHERE original_air_date = "January18,2009"
what's the title where original air date is january18,2009
CREATE TABLE table_11589522_3 (title VARCHAR, original_air_date VARCHAR)
SELECT MIN(gold) FROM table_name_67 WHERE silver < 0
What is the lowest number of gold medals the nation with less than 0 silver medals has?
CREATE TABLE table_name_67 (gold INTEGER, silver INTEGER)
SELECT position FROM table_name_42 WHERE channel = "channel 4"
What is the position when the channel shows channel 4?
CREATE TABLE table_name_42 (position VARCHAR, channel VARCHAR)
SELECT athlete FROM table_1231316_7 WHERE location = "Edwardsville"
What is the athlete from Edwardsville?
CREATE TABLE table_1231316_7 (athlete VARCHAR, location VARCHAR)
SELECT surface FROM table_name_24 WHERE tournament = "vaihingen"
What is the surface at the tournament of Vaihingen?
CREATE TABLE table_name_24 (surface VARCHAR, tournament VARCHAR)
SELECT result FROM table_name_20 WHERE score = "0-2"
What is the result when the score is 0-2?
CREATE TABLE table_name_20 (result VARCHAR, score VARCHAR)
SELECT tv_station FROM table_name_36 WHERE average_ratings = "19.5%"
what is the tv station when the average ratings is 19.5%?
CREATE TABLE table_name_36 (tv_station VARCHAR, average_ratings VARCHAR)
SELECT school_club_team FROM table_name_20 WHERE player = "roy de walt"
Which team was Roy de Walt a player on?
CREATE TABLE table_name_20 (school_club_team VARCHAR, player VARCHAR)
SELECT candidates FROM table_1346137_4 WHERE district = "South Carolina 5"
Who were the candidates in the district of South Carolina 5?
CREATE TABLE table_1346137_4 (candidates VARCHAR, district VARCHAR)
SELECT term_start FROM table_name_45 WHERE political_party = "progressive party"
What is the Term Start date of the Progressive Party Prime Minister?
CREATE TABLE table_name_45 (term_start VARCHAR, political_party VARCHAR)
SELECT team_s_ FROM table_1507423_4 WHERE year = 2007
What teams won in 2007?
CREATE TABLE table_1507423_4 (team_s_ VARCHAR, year VARCHAR)
SELECT decile FROM table_name_67 WHERE authority = "state" AND area = "raumati south"
What Decile has State Authority and Raumati South Area?
CREATE TABLE table_name_67 (decile VARCHAR, authority VARCHAR, area VARCHAR)
SELECT COUNT(pole_position) FROM table_25213146_2 WHERE date = "30 March"
How many Pole Positions were there on 30 March?
CREATE TABLE table_25213146_2 (pole_position VARCHAR, date VARCHAR)
SELECT MAX(discs) FROM table_14562722_2
Name the maximum discs
CREATE TABLE table_14562722_2 (discs INTEGER)
SELECT COUNT(team_coxy) FROM table_25816476_2 WHERE air_date = "24 January 2010" AND team_guest_captain = "Gail Porter"
How many entries are there for team coxy for the air date of 24 january 2010 and team guest captain of gail porter?
CREATE TABLE table_25816476_2 (team_coxy VARCHAR, air_date VARCHAR, team_guest_captain VARCHAR)
SELECT winning_constructor FROM table_name_95 WHERE name = "roussillon grand prix"
Which Constructor won the Roussillon Grand Prix?
CREATE TABLE table_name_95 (winning_constructor VARCHAR, name VARCHAR)
SELECT videoconferencing FROM table_name_82 WHERE data_conferencing = "no" AND web_conferencing = "no"
What is Videoconferencing, when Data Conferencing is "No", and when Web Conferencing is "No"?
CREATE TABLE table_name_82 (videoconferencing VARCHAR, data_conferencing VARCHAR, web_conferencing VARCHAR)
SELECT AVG(year) FROM table_name_80 WHERE attendance < 28 OFFSET 505
How many years have less than 28,505 attendance?
CREATE TABLE table_name_80 (year INTEGER, attendance INTEGER)
SELECT MAX(game) FROM table_name_10 WHERE record = "2-1"
What's the highest game found when the record is 2-1?
CREATE TABLE table_name_10 (game INTEGER, record VARCHAR)
SELECT title FROM table_28195971_1 WHERE directed_by = "David Solomon" AND written_by = "Marti Noxon"
What are the title(s) of episodes directed by david solomon and written by marti noxon?
CREATE TABLE table_28195971_1 (title VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT COUNT(candidates) FROM table_1341604_10 WHERE result = "New seat Democratic gain"
how many candidates with result being new seat democratic gain
CREATE TABLE table_1341604_10 (candidates VARCHAR, result VARCHAR)
SELECT gold_coast FROM table_name_24 WHERE auckland = "no" AND adelaide = "yes" AND melbourne = "no"
Which Gold Coast has Auckland no, Adelaide yes, and Melbourne no?
CREATE TABLE table_name_24 (gold_coast VARCHAR, melbourne VARCHAR, auckland VARCHAR, adelaide VARCHAR)
SELECT COUNT(rank) FROM table_name_29 WHERE code__iata_icao_ = "ord/kord"
How many ranks have a Code (IATA/ICAO) of ord/kord?
CREATE TABLE table_name_29 (rank VARCHAR, code__iata_icao_ VARCHAR)
SELECT COUNT(pick) FROM table_name_1 WHERE round > 1 AND player = "jim stack"
What is the total number of Pick, when Round is greater than 1, and when Player is "Jim Stack"?
CREATE TABLE table_name_1 (pick VARCHAR, round VARCHAR, player VARCHAR)
SELECT record FROM table_name_45 WHERE score = "2–0"
What is the record when the score was 2–0?
CREATE TABLE table_name_45 (record VARCHAR, score VARCHAR)
SELECT position_in_table FROM table_18784280_3 WHERE team = "Watford"
Which position in the table is the team watford?
CREATE TABLE table_18784280_3 (position_in_table VARCHAR, team VARCHAR)
SELECT score FROM table_name_93 WHERE record = "12–12"
What is the Score of the game with a Record of 12–12?
CREATE TABLE table_name_93 (score VARCHAR, record VARCHAR)
SELECT player FROM table_name_25 WHERE college = "akron"
Which players plays at Akron College?
CREATE TABLE table_name_25 (player VARCHAR, college VARCHAR)
SELECT home_team AS score FROM table_name_27 WHERE venue = "victoria park"
What was the home team's score at Victoria Park?
CREATE TABLE table_name_27 (home_team VARCHAR, venue VARCHAR)
SELECT T1.title, T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title <> T2.title
For directors who had more than one movie, return the titles and produced years of all movies directed by them.
CREATE TABLE Movie (director VARCHAR, title VARCHAR); CREATE TABLE Movie (title VARCHAR, year VARCHAR, director VARCHAR)
SELECT MAX(rank) FROM table_name_58 WHERE country = "egypt"
What is the highest rank for the team of egypt?
CREATE TABLE table_name_58 (rank INTEGER, country VARCHAR)
SELECT MIN(2013) FROM table_name_34 WHERE 2010 > 5 AND country = "germany" AND 2012 < 4
What is the lowest number of participants in 2013 when there were more than 5 participants in 2010, less than 4 participants in 2012 and country was germany?
CREATE TABLE table_name_34 (country VARCHAR)
SELECT version FROM table_name_39 WHERE genre = "action" AND title = "hairball"
What is Version, when Genre is "Action", and when Title is "Hairball"?
CREATE TABLE table_name_39 (version VARCHAR, genre VARCHAR, title VARCHAR)
SELECT western_title FROM table_name_92 WHERE pinyin = "new chāojí mǎlìōu xiōngdì"
What is the western title of the pinyin new chāojí mǎlìōu xiōngdì?
CREATE TABLE table_name_92 (western_title VARCHAR, pinyin VARCHAR)
SELECT COUNT(gold) FROM table_name_61 WHERE silver < 1 AND nation = "slovakia"
What is the total number of gold medals of slovakia, which has less than 1 silver medal?
CREATE TABLE table_name_61 (gold VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT date FROM table_name_73 WHERE opponent = "john mcenroe" AND score = "3–6, 6–3, 2–6"
What is the date of the match against John McEnroe with a Score of 3–6, 6–3, 2–6?
CREATE TABLE table_name_73 (date VARCHAR, opponent VARCHAR, score VARCHAR)
SELECT COUNT(viewers) FROM table_24399615_4 WHERE bbc_three_weekly_ranking = "1"
How many items are listed under viewers column when the bbd three weekly ranking was 1?
CREATE TABLE table_24399615_4 (viewers VARCHAR, bbc_three_weekly_ranking VARCHAR)
SELECT score FROM table_name_77 WHERE record = "39-25"
The game that had a record of 39-25, what was the score?
CREATE TABLE table_name_77 (score VARCHAR, record VARCHAR)
SELECT competition FROM table_name_37 WHERE opponents = "sv werder bremen" AND score = "1-2"
What is the name of the competition with opponents of Sv Werder Bremen and a score of 1-2?
CREATE TABLE table_name_37 (competition VARCHAR, opponents VARCHAR, score VARCHAR)
SELECT british_record FROM table_name_70 WHERE guernsey_record = "32-8-0"
What is the British record for the fish with a Guernsey record of 32-8-0?
CREATE TABLE table_name_70 (british_record VARCHAR, guernsey_record VARCHAR)
SELECT country FROM table_104858_1 WHERE year_current_scouting_organization_joined_wosm = "1930" AND year_member_organization_was_founded = "1926"
Which countries have a scouting organization that was founded in 1926, and joined WOSM in 1930?
CREATE TABLE table_104858_1 (country VARCHAR, year_current_scouting_organization_joined_wosm VARCHAR, year_member_organization_was_founded VARCHAR)
SELECT chairman FROM table_29398373_2 WHERE captain = "Iker Casillas"
Name the chairman for iker casillas
CREATE TABLE table_29398373_2 (chairman VARCHAR, captain VARCHAR)
SELECT time_retired FROM table_name_1 WHERE grid < 8 AND laps = 73 AND constructor = "williams - bmw"
What is the Time/Retired that has a Grid smaller than 8, 73 laps, and a Constructor of williams - bmw?
CREATE TABLE table_name_1 (time_retired VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT high_points FROM table_27722734_11 WHERE date = "April 8"
Name the high points for april 8
CREATE TABLE table_27722734_11 (high_points VARCHAR, date VARCHAR)
SELECT MAX(draws) FROM table_name_59 WHERE matches > 6 AND club = "newcastle knights" AND record___percentage__[draw_ = _05_wins] > 25
How many draws, more than 6, does Newcastle Knights have with a record (%) larger than 25?
CREATE TABLE table_name_59 (draws INTEGER, matches VARCHAR, club VARCHAR, record___percentage__ VARCHAR, draw_ VARCHAR, _05_wins VARCHAR)
SELECT frequency FROM table_name_68 WHERE format = "contemporary christian music"
what is the frequency when the format is contemporary christian music?
CREATE TABLE table_name_68 (frequency VARCHAR, format VARCHAR)
SELECT MIN(no_in_series) FROM table_2226817_6 WHERE no_in_season = 13
What' the series number of the episode with season number 13?
CREATE TABLE table_2226817_6 (no_in_series INTEGER, no_in_season VARCHAR)
SELECT constructor FROM table_name_57 WHERE grid > 4 AND driver = "heinz-harald frentzen"
Tell me the constructor for Grid more than 4 and drivers being heinz-harald frentzen
CREATE TABLE table_name_57 (constructor VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT grid FROM table_name_74 WHERE constructor = "maserati" AND driver = "oscar alfredo gálvez"
Which grid is constructed by Maserati and driven by Oscar Alfredo Gálvez?
CREATE TABLE table_name_74 (grid VARCHAR, constructor VARCHAR, driver VARCHAR)
SELECT MAX(T1.duration), MAX(T2.resolution), T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.languages ORDER BY T2.languages
What are the maximum duration and resolution of songs grouped and ordered by languages?
CREATE TABLE song (languages VARCHAR, resolution INTEGER, f_id VARCHAR); CREATE TABLE files (duration INTEGER, f_id VARCHAR)
SELECT deaths_from_warfare FROM table_name_33 WHERE nation = "choctaw"
How many warfare deaths befell the choctaw nation?
CREATE TABLE table_name_33 (deaths_from_warfare VARCHAR, nation VARCHAR)
SELECT MIN(post_code) FROM table_1976898_1 WHERE chinese_name__simplified___traditional_ = "潜山县 / 潛山縣"
What's the post code of the county with the Chinese name 潜山县 / 潛山縣?
CREATE TABLE table_1976898_1 (post_code INTEGER, chinese_name__simplified___traditional_ VARCHAR)
SELECT height FROM table_name_48 WHERE hometown = "chicago, il"
How tall is the player from Chicago, IL?
CREATE TABLE table_name_48 (height VARCHAR, hometown VARCHAR)
SELECT date FROM table_13328239_4 WHERE venue = "Halton Stadium"
When was the game happening at Halton Stadium?
CREATE TABLE table_13328239_4 (date VARCHAR, venue VARCHAR)
SELECT driver FROM table_name_82 WHERE points < 36 AND team = "greenfield mowers racing"
Which driver for Greenfield Mowers Racing has fewer than 36 points?
CREATE TABLE table_name_82 (driver VARCHAR, points VARCHAR, team VARCHAR)
SELECT director_s_ FROM table_25764073_3 WHERE writer_s_ = "Peter Gawler"
Name the directors for peter gawler
CREATE TABLE table_25764073_3 (director_s_ VARCHAR, writer_s_ VARCHAR)
SELECT MAX(silver) FROM table_name_95 WHERE bronze < 3 AND gold < 1 AND total = 1 AND nation = "ireland"
What is the highest number of silver medals that Ireland earned when they scored less than 3 bronze medals and earned 1 medal?
CREATE TABLE table_name_95 (silver INTEGER, nation VARCHAR, total VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT assists FROM table_19722233_5 WHERE minutes = 195
how many assists did the player who played 195 minutes make
CREATE TABLE table_19722233_5 (assists VARCHAR, minutes VARCHAR)
SELECT COUNT(written_by) FROM table_25740548_2 WHERE production_code = "CA106"
How many episodes with the production code CA106 are there?
CREATE TABLE table_25740548_2 (written_by VARCHAR, production_code VARCHAR)
SELECT score FROM table_name_5 WHERE date = "april 23"
What was the score on April 23?
CREATE TABLE table_name_5 (score VARCHAR, date VARCHAR)
SELECT cover_model FROM table_name_67 WHERE interview_subject = "joan collins"
Who was the Cover model in the issue in which the Interview subject was Joan Collins?
CREATE TABLE table_name_67 (cover_model VARCHAR, interview_subject VARCHAR)
SELECT AVG(top_25) FROM table_name_58 WHERE top_10 < 7 AND tournament = "the open championship" AND top_5 > 1
What is the average Top-25 that has a Top-10 less than 7, and the Tournament is the open championship, with a Top-5more than 1?
CREATE TABLE table_name_58 (top_25 INTEGER, top_5 VARCHAR, top_10 VARCHAR, tournament VARCHAR)
SELECT Author FROM submission WHERE College = "Florida" OR College = "Temple"
Show the names of authors from college "Florida" or "Temple"
CREATE TABLE submission (Author VARCHAR, College VARCHAR)
SELECT MAX(withdrawn) FROM table_20391799_1 WHERE ltsr_no = 37
Name the most withdrawn for 37 lstr no.
CREATE TABLE table_20391799_1 (withdrawn INTEGER, ltsr_no VARCHAR)
SELECT MAX(gold) FROM table_name_30 WHERE nation = "canada" AND silver < 7
With less than 7 Silver medals, how many Gold medals did Canada receive?
CREATE TABLE table_name_30 (gold INTEGER, nation VARCHAR, silver VARCHAR)
SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director = "Walter Hill"
Show the studios that have not produced films with director "Walter Hill".
CREATE TABLE film (Studio VARCHAR, Director VARCHAR)
SELECT MAX(attendance) FROM table_name_18 WHERE date = "november 16, 1975"
What was the attendance during the november 16, 1975 game?
CREATE TABLE table_name_18 (attendance INTEGER, date VARCHAR)
SELECT MAX(no_in_season) FROM table_10842344_1 WHERE us_viewers__millions_ = "14.37"
What's the latest episode in a season where the U.S. viewers totaled 14.37 million?
CREATE TABLE table_10842344_1 (no_in_season INTEGER, us_viewers__millions_ VARCHAR)
SELECT year FROM table_name_6 WHERE start = "13"
What year did he start at 13?
CREATE TABLE table_name_6 (year VARCHAR, start VARCHAR)