answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT round FROM table_1137703_2 WHERE grand_prix = "Spanish grand_prix"
Which round was the Spanish Grand Prix?
CREATE TABLE table_1137703_2 (round VARCHAR, grand_prix VARCHAR)
SELECT MIN(species_in_the_peruvian_amazon) FROM table_11727969_1 WHERE taxonomy = "s Fern ( Pteridophyta )"
what's the minimum species in the peruvian amazon with taxonomy s fern ( pteridophyta )
CREATE TABLE table_11727969_1 (species_in_the_peruvian_amazon INTEGER, taxonomy VARCHAR)
SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents
Show ids for all templates not used by any document.
CREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (template_id VARCHAR)
SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.city = 'new york city'
Who has a friend that is from new york city?
CREATE TABLE Person (name VARCHAR, city VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
SELECT iata FROM table_name_7 WHERE airport = "shahjalal international airport"
What is the IATA code for SHahjalal International Airport?
CREATE TABLE table_name_7 (iata VARCHAR, airport VARCHAR)
SELECT event FROM table_name_82 WHERE result = "7th (5-6)"
What event has the result of 7th (5-6)?
CREATE TABLE table_name_82 (event VARCHAR, result VARCHAR)
SELECT gics_sector FROM table_20667854_1 WHERE free_float = "0.3180"
What is every GICS sector for free float of 0.3180?
CREATE TABLE table_20667854_1 (gics_sector VARCHAR, free_float VARCHAR)
SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY COUNT(*) DESC LIMIT 1
Show the membership level with most number of members.
CREATE TABLE member (LEVEL VARCHAR)
SELECT MAX(laps) FROM table_name_10 WHERE constructor = "minardi - fondmetal" AND driver = "marc gené" AND grid > 20
Which entry has the highest laps of those with constructor Minardi - Fondmetal, driver Marc Gené, and a grid larger than 20?
CREATE TABLE table_name_10 (laps INTEGER, grid VARCHAR, constructor VARCHAR, driver VARCHAR)
SELECT born_in_a_non_eu_state__millions_ FROM table_name_32 WHERE total_population__millions_ = 62.008
How many people were born in a non EU state (in millions), when the Total population (in millions) was 62.008?
CREATE TABLE table_name_32 (born_in_a_non_eu_state__millions_ VARCHAR, total_population__millions_ VARCHAR)
SELECT authority FROM table_name_46 WHERE roll = 96
What is the authority for roll of 96?
CREATE TABLE table_name_46 (authority VARCHAR, roll VARCHAR)
SELECT character_name FROM table_name_72 WHERE release_date = "july 29, 1938"
What was the character name for the film with a release date of July 29, 1938?
CREATE TABLE table_name_72 (character_name VARCHAR, release_date VARCHAR)
SELECT COUNT(decile) FROM table_name_55 WHERE area = "whitby" AND name = "samuel marsden collegiate school" AND roll > 163
What was the decile of Samuel Marsden Collegiate School in Whitby, when it had a roll higher than 163?
CREATE TABLE table_name_55 (decile VARCHAR, roll VARCHAR, area VARCHAR, name VARCHAR)
SELECT tyre FROM table_name_93 WHERE entrant = "team lotus" AND driver = "mika salo"
What tyre did Mika Salo use for team Lotus?
CREATE TABLE table_name_93 (tyre VARCHAR, entrant VARCHAR, driver VARCHAR)
SELECT AVG(gold) FROM table_name_5 WHERE rank > 5
what is the average number of gold when the rank is more than 5?
CREATE TABLE table_name_5 (gold INTEGER, rank INTEGER)
SELECT 2005 FROM table_name_73 WHERE 2006 = "1r"
What is 2005, when 2006 is "1R"?
CREATE TABLE table_name_73 (Id VARCHAR)
SELECT launched FROM table_name_22 WHERE commissioned = "july 1948" AND bow_number = "ps-31"
When did the ship that was commissioned July 1948 with a bow number of ps-31 launch?
CREATE TABLE table_name_22 (launched VARCHAR, commissioned VARCHAR, bow_number VARCHAR)
SELECT name FROM table_name_76 WHERE species_authority = "sigmodon hispidus say & ord, 1825"
What is the name for the species Authority of sigmodon hispidus say & ord, 1825?
CREATE TABLE table_name_76 (name VARCHAR, species_authority VARCHAR)
SELECT try_bonus FROM table_14058433_3 WHERE club = "Ruthin RFC"
What is the try bonus for Ruthin RFC?
CREATE TABLE table_14058433_3 (try_bonus VARCHAR, club VARCHAR)
SELECT AVG(weight) FROM table_name_69 WHERE height = "6-9"
Can you tell me the average Weight that has Height of 6-9?
CREATE TABLE table_name_69 (weight INTEGER, height VARCHAR)
SELECT SUM(date_of_official_foundation_of_municipality) FROM table_name_65 WHERE province = "kermān" AND 2006 = 167014 AND rank < 46
What is the sum of Date of Official Foundation of Municipality, when Province is "Kermān", when 2006 us "167014", and when Rank is less than 46?
CREATE TABLE table_name_65 (date_of_official_foundation_of_municipality INTEGER, rank VARCHAR, province VARCHAR)
SELECT physician, department FROM affiliated_with WHERE primaryaffiliation = 1
List the physicians' employee ids together with their primary affiliation departments' ids.
CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR, primaryaffiliation VARCHAR)
SELECT player FROM table_10015132_11 WHERE position = "Guard" AND years_in_toronto = "1996-97"
What player played guard for toronto in 1996-97?
CREATE TABLE table_10015132_11 (player VARCHAR, position VARCHAR, years_in_toronto VARCHAR)
SELECT candidate FROM table_name_41 WHERE number_of_votes = "73,494"
Who is the candidate with 73,494 votes?
CREATE TABLE table_name_41 (candidate VARCHAR, number_of_votes VARCHAR)
SELECT pitcher FROM table_19839391_3 WHERE seasons = "1970"
List the pitchers for the 1970 season
CREATE TABLE table_19839391_3 (pitcher VARCHAR, seasons VARCHAR)
SELECT nation FROM table_name_65 WHERE silver > 2 AND gold < 4
Which country had more than 2 silvers and less than 4 golds?
CREATE TABLE table_name_65 (nation VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT year_model FROM table_1444201_1 WHERE model = "1.3"
Name the year model for 1.3
CREATE TABLE table_1444201_1 (year_model VARCHAR, model VARCHAR)
SELECT proxy FROM table_name_59 WHERE image_quality = "✓" AND encryption = "ssl" AND license = "proprietary"
what is the proxy when the image quality is ✓, the encryption is ssl and the license is proprietary?
CREATE TABLE table_name_59 (proxy VARCHAR, license VARCHAR, image_quality VARCHAR, encryption VARCHAR)
SELECT COUNT(language) FROM table_2509112_3 WHERE tacachi_municipality = 3
What is the language total number if the Tacachi Municipality is 3?
CREATE TABLE table_2509112_3 (language VARCHAR, tacachi_municipality VARCHAR)
SELECT site FROM table_name_67 WHERE opponent_number = "northwestern"
At which site was Northwestern an opponent?
CREATE TABLE table_name_67 (site VARCHAR, opponent_number VARCHAR)
SELECT MAX(attendance) FROM table_name_82 WHERE week = 6
what is the highest attendance for week 6?
CREATE TABLE table_name_82 (attendance INTEGER, week VARCHAR)
SELECT AVG(b_score) FROM table_name_20 WHERE gymnast = "kōhei uchimura ( jpn )"
what is the average b score when the gymnast is kōhei uchimura ( jpn )?
CREATE TABLE table_name_20 (b_score INTEGER, gymnast VARCHAR)
SELECT position FROM table_name_68 WHERE years_in_orlando = "1997–1998"
Which Position has a Years in Orlando of 1997–1998?
CREATE TABLE table_name_68 (position VARCHAR, years_in_orlando VARCHAR)
SELECT result FROM table_name_49 WHERE year > 1995 AND episode = "season 6"
What was the result of nomination for Season 6 after 1995?
CREATE TABLE table_name_49 (result VARCHAR, year VARCHAR, episode VARCHAR)
SELECT MIN(total) FROM table_name_81 WHERE finish = "t59"
Which Total has a Finish of t59?
CREATE TABLE table_name_81 (total INTEGER, finish VARCHAR)
SELECT MAX(laps) FROM table_name_40 WHERE grid < 22 AND rider = "ruben xaus"
Tell me the highest Laps for grid less than 22 and riderS of ruben xaus
CREATE TABLE table_name_40 (laps INTEGER, grid VARCHAR, rider VARCHAR)
SELECT AVG(original_air_date) FROM table_name_20 WHERE series_number = 10
What was the original air date of series number 10?
CREATE TABLE table_name_20 (original_air_date INTEGER, series_number VARCHAR)
SELECT institution FROM table_16403890_1 WHERE team_nickname = "Colonials"
Which school has the mascot of the Colonials?
CREATE TABLE table_16403890_1 (institution VARCHAR, team_nickname VARCHAR)
SELECT margin_of_victory FROM table_1121352_2 WHERE date = "Mar 28, 2004"
Where is the margin of victory dated mar 28, 2004?
CREATE TABLE table_1121352_2 (margin_of_victory VARCHAR, date VARCHAR)
SELECT score_in_the_final FROM table_2201724_1 WHERE opponent_in_the_final = "Tony Roche"
What are the scores in matches against Tony Roche?
CREATE TABLE table_2201724_1 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR)
SELECT role_s_ FROM table_26397277_3 WHERE pick__number = 17
Name the role for pick number 17
CREATE TABLE table_26397277_3 (role_s_ VARCHAR, pick__number VARCHAR)
SELECT car_s_ FROM table_2182170_1 WHERE driver_s_ = "Jeff Fuller"
What type of car does Jeff Fuller drive?
CREATE TABLE table_2182170_1 (car_s_ VARCHAR, driver_s_ VARCHAR)
SELECT length FROM table_name_53 WHERE song_title = "ma ke jaisi"
What is the average length for the song "Ma Ke Jaisi"?
CREATE TABLE table_name_53 (length VARCHAR, song_title VARCHAR)
SELECT transit_connections FROM table_22771048_2 WHERE station = "Pioneer Square U"
What are the transit connections from Pioneer Square U?
CREATE TABLE table_22771048_2 (transit_connections VARCHAR, station VARCHAR)
SELECT opponent FROM table_name_72 WHERE player < 113 AND event = 2011
Who was the opponent in the 2011 event with less than 113 players?
CREATE TABLE table_name_72 (opponent VARCHAR, player VARCHAR, event VARCHAR)
SELECT engine_s_ FROM table_name_53 WHERE points > 0 AND year < 1984
Which engine has more than 0 points and a year before 1984?
CREATE TABLE table_name_53 (engine_s_ VARCHAR, points VARCHAR, year VARCHAR)
SELECT COUNT(position) FROM table_name_7 WHERE against < 28 AND team = "americano-sp" AND played > 8
How many positions have points against less than 28, americano-sp as the team, with a played greater than 8?
CREATE TABLE table_name_7 (position VARCHAR, played VARCHAR, against VARCHAR, team VARCHAR)
SELECT worldwide_gross FROM table_name_60 WHERE movie = "jab tak hai jaan"
How did the jab tak hai jaan movie gross worldwide?
CREATE TABLE table_name_60 (worldwide_gross VARCHAR, movie VARCHAR)
SELECT COUNT(first_elected) FROM table_name_77 WHERE incumbent = "barclay henley"
What year was Barclay Henley first elected?
CREATE TABLE table_name_77 (first_elected VARCHAR, incumbent VARCHAR)
SELECT tv_time FROM table_name_51 WHERE date = "december 27, 2003"
What is the TV Time of the game on December 27, 2003?
CREATE TABLE table_name_51 (tv_time VARCHAR, date VARCHAR)
SELECT icelandic FROM table_name_59 WHERE danish = "blåt/blå"
Which Icelandic has a Danish of blåt/blå?
CREATE TABLE table_name_59 (icelandic VARCHAR, danish VARCHAR)
SELECT last_win FROM table_name_34 WHERE last_final_lost = "2011"
When was the last win for the club that had a final loss in 2011?
CREATE TABLE table_name_34 (last_win VARCHAR, last_final_lost VARCHAR)
SELECT grid FROM table_name_84 WHERE driver = "jacques villeneuve"
Jacques Villeneuve was on what grid?
CREATE TABLE table_name_84 (grid VARCHAR, driver VARCHAR)
SELECT AVG(november) FROM table_name_91 WHERE record = "15-6-1"
What day in November has a record of 15-6-1?
CREATE TABLE table_name_91 (november INTEGER, record VARCHAR)
SELECT COUNT(rank) FROM table_name_73 WHERE grid < 20 AND driver = "dick rathmann" AND qual > 130.92
I want the total number of rank for Grid less than 20 and dick rathmann and Qual more than 130.92
CREATE TABLE table_name_73 (rank VARCHAR, qual VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT date FROM table_name_88 WHERE score = "3–0" AND set_1 = "25–22"
What date was the score 3–0, and set 1 was 25–22?
CREATE TABLE table_name_88 (date VARCHAR, score VARCHAR, set_1 VARCHAR)
SELECT SUM(works_number) FROM table_name_78 WHERE type = "0-6-4t" AND date > 1875
What is the total works number of the locomotive with 0-6-4t type after 1875?
CREATE TABLE table_name_78 (works_number INTEGER, type VARCHAR, date VARCHAR)
SELECT COUNT(date) FROM table_1140083_2 WHERE race = "Monaco Grand Prix"
How many days is the Monaco Grand Prix?
CREATE TABLE table_1140083_2 (date VARCHAR, race VARCHAR)
SELECT mlb_draft FROM table_11677100_16 WHERE school = "Mountain Pointe High school"
Who was drafted from the school Mountain Pointe High School?
CREATE TABLE table_11677100_16 (mlb_draft VARCHAR, school VARCHAR)
SELECT cfl_team FROM table_name_98 WHERE pick__number = 48
What is the CFL Team with #48 as the pick number?
CREATE TABLE table_name_98 (cfl_team VARCHAR, pick__number VARCHAR)
SELECT 2004 FROM table_name_40 WHERE 2011 = "90.917"
What is the 2004 Lukoil oil prodroduction when in 2011 oil production 90.917 million tonnes?
CREATE TABLE table_name_40 (Id VARCHAR)
SELECT opponent FROM table_name_68 WHERE round = "3" AND method = "decision"
Who has a round of 3 with a method of decision?
CREATE TABLE table_name_68 (opponent VARCHAR, round VARCHAR, method VARCHAR)
SELECT SUM(gold) FROM table_name_79 WHERE total < 1
How many total golds do teams have when the total medals is less than 1?
CREATE TABLE table_name_79 (gold INTEGER, total INTEGER)
SELECT date FROM table_name_34 WHERE circuit = "mosport park"
What is the date of the Mosport Park circuit?
CREATE TABLE table_name_34 (date VARCHAR, circuit VARCHAR)
SELECT runner_up_a FROM table_22757733_4 WHERE winner = "Sankar Adhi"
who ended runner-up to sankar adhi?
CREATE TABLE table_22757733_4 (runner_up_a VARCHAR, winner VARCHAR)
SELECT MAX(overall) FROM table_name_9 WHERE name = "gregory spann" AND pick__number > 19
Which Overall is the highest one that has a Name of gregory spann, and a Pick # larger than 19?
CREATE TABLE table_name_9 (overall INTEGER, name VARCHAR, pick__number VARCHAR)
SELECT date FROM table_name_33 WHERE game = 4
Which Date has a Game of 4?
CREATE TABLE table_name_33 (date VARCHAR, game VARCHAR)
SELECT title FROM table_17624965_1 WHERE production_code = 618
What was the name of eipsode 618?
CREATE TABLE table_17624965_1 (title VARCHAR, production_code VARCHAR)
SELECT first_name, last_name, hire_date, salary, department_id FROM employees WHERE NOT first_name LIKE '%M%'
display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M.
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR, salary VARCHAR, department_id VARCHAR)
SELECT 2 AS nd_leg FROM table_17282875_3 WHERE team__number1 = "San Lorenzo"
When they played San Lorenzo, what was the score of the second leg?
CREATE TABLE table_17282875_3 (team__number1 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 COUNT(candidates) FROM table_1342218_24 WHERE incumbent = "Thomas Abernethy"
How many people on this list are named thomas abernethy?
CREATE TABLE table_1342218_24 (candidates VARCHAR, incumbent VARCHAR)
SELECT in_county_tuition_per_credit_hour__fall_2009_ FROM table_22308881_2 WHERE college = "Mercer"
How much was the in-county tuition per credit hour at the Mercer College by the fall of 2009?
CREATE TABLE table_22308881_2 (in_county_tuition_per_credit_hour__fall_2009_ VARCHAR, college VARCHAR)
SELECT COUNT(division) FROM table_12002388_1 WHERE reg_season = "4th"
How many teams placed 4th in the regular season?
CREATE TABLE table_12002388_1 (division VARCHAR, reg_season VARCHAR)
SELECT MAX(hull_numbers) FROM table_12232526_2
what is the maximum number of hull numbers?
CREATE TABLE table_12232526_2 (hull_numbers INTEGER)
SELECT SUM(fog__days_year_) FROM table_name_50 WHERE rain__mm_year_ = "1 109"
What is the amount of fog where the rain is 1 109?
CREATE TABLE table_name_50 (fog__days_year_ INTEGER, rain__mm_year_ VARCHAR)
SELECT save FROM table_name_49 WHERE opponent = "rice"
What is the save of the game with rice as the opponent?
CREATE TABLE table_name_49 (save VARCHAR, opponent VARCHAR)
SELECT finalist FROM table_name_17 WHERE week = "may 3"
Which Finalist has a Week of may 3?
CREATE TABLE table_name_17 (finalist VARCHAR, week VARCHAR)
SELECT 2012 FROM table_name_82 WHERE 2005 = "314"
Tell me the 2012 when 2005 is 314
CREATE TABLE table_name_82 (Id VARCHAR)
SELECT format FROM table_name_57 WHERE album = "pacific ocean blue" AND year = 1991
What is the format of the album Pacific Ocean Blue in 1991?
CREATE TABLE table_name_57 (format VARCHAR, album VARCHAR, year VARCHAR)
SELECT females FROM table_name_10 WHERE number = "706"
Which language do 706 females speak?
CREATE TABLE table_name_10 (females VARCHAR, number VARCHAR)
SELECT title FROM table_name_96 WHERE developer = "battlecry studios"
Which title was developed by Battlecry Studios?
CREATE TABLE table_name_96 (title VARCHAR, developer VARCHAR)
SELECT MAX(standard_order) FROM table_name_93 WHERE transcription__based_on_pinyin_ = "she jiang"
What is the highest standard order for the Transcription based on Pinyin, She Jiang?
CREATE TABLE table_name_93 (standard_order INTEGER, transcription__based_on_pinyin_ VARCHAR)
SELECT role_code FROM Employees GROUP BY role_code HAVING COUNT(*) >= 3
Show all role codes with at least 3 employees.
CREATE TABLE Employees (role_code VARCHAR)
SELECT tournament FROM table_name_86 WHERE date = "august 11, 1984"
What tournament was being played on August 11, 1984?
CREATE TABLE table_name_86 (tournament VARCHAR, date VARCHAR)
SELECT district FROM table_2668374_13 WHERE incumbent = "John Smilie"
What district had an election with incumbent john smilie?
CREATE TABLE table_2668374_13 (district VARCHAR, incumbent VARCHAR)
SELECT MAX(charge_amount) FROM Charges
How much does the most expensive charge type costs?
CREATE TABLE Charges (charge_amount INTEGER)
SELECT player FROM table_name_23 WHERE college_junior_club_team__league_ = "val d'or foreurs ( qmjhl )"
What is Player, when College/Junior/Club Team (League) is "Val d'Or Foreurs ( QMJHL )"?
CREATE TABLE table_name_23 (player VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT tournament FROM table_11622829_1 WHERE score = "135 (-7)"
For which tournaments was the score 135 (-7)?
CREATE TABLE table_11622829_1 (tournament VARCHAR, score VARCHAR)
SELECT date FROM table_name_3 WHERE competition = "friendly" AND score = "2-1"
Which date has a competition type of friendly and a score of 2-1?
CREATE TABLE table_name_3 (date VARCHAR, competition VARCHAR, score VARCHAR)
SELECT COUNT(high_rebounds) FROM table_22871239_5 WHERE _number = 5
How many high rebound catagories are listed for game number 5?
CREATE TABLE table_22871239_5 (high_rebounds VARCHAR, _number VARCHAR)
SELECT name FROM table_name_96 WHERE decile = 5 AND area = "tauranga"
Which name has a Decile of 5, and an Area of tauranga?
CREATE TABLE table_name_96 (name VARCHAR, decile VARCHAR, area VARCHAR)
SELECT MIN(free) FROM table_name_87 WHERE athlete = "apolline dreyfuss & lila meesseman-bakir" AND total > 90.333
What is the free of Apolline Dreyfuss & Lila Meesseman-Bakir, when the total was larger than 90.333?
CREATE TABLE table_name_87 (free INTEGER, athlete VARCHAR, total VARCHAR)
SELECT T1.date_incident_start, date_incident_end FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.last_name = "Fahey"
Find the start and end dates of behavior incidents of students with last name "Fahey".
CREATE TABLE Behavior_Incident (date_incident_start VARCHAR, student_id VARCHAR); CREATE TABLE Students (student_id VARCHAR, last_name VARCHAR)
SELECT landesliga_mitte FROM table_20181270_3 WHERE landesliga_süd = "FC Gundelfingen" AND landesliga_nord = "VfL Frohnlach"
Name the landesliga mitte for fc gundelfingen and vfl frohnlach
CREATE TABLE table_20181270_3 (landesliga_mitte VARCHAR, landesliga_süd VARCHAR, landesliga_nord VARCHAR)
SELECT crowd FROM table_name_31 WHERE home_team = "north melbourne"
What was the attendance for the North Melbourne's home game?
CREATE TABLE table_name_31 (crowd VARCHAR, home_team VARCHAR)
SELECT catalogno FROM table_name_31 WHERE remark = "#160 us"
Which Catalogno was #160 us?
CREATE TABLE table_name_31 (catalogno VARCHAR, remark VARCHAR)
SELECT MIN(match_no) FROM table_19072602_1 WHERE team_usa = "Bill Hoffman"
What's the match number where Bill Hoffman plays for Team USA?
CREATE TABLE table_19072602_1 (match_no INTEGER, team_usa VARCHAR)
SELECT home_team AS score FROM table_name_76 WHERE venue = "windy hill"
What was the home team's score at Windy Hill?
CREATE TABLE table_name_76 (home_team VARCHAR, venue VARCHAR)
SELECT round FROM table_name_30 WHERE position = "according to official website"
Which round's position is according to official website?
CREATE TABLE table_name_30 (round VARCHAR, position VARCHAR)