answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT lead_envoy FROM table_name_62 WHERE ryūkyūan_king = "shō eki"
Who was the lead envoy of the mission with the Ryūkyūan King shō eki?
CREATE TABLE table_name_62 (lead_envoy VARCHAR, ryūkyūan_king VARCHAR)
SELECT director FROM table_25737761_3 WHERE no = 2
Who directed episode number 2?
CREATE TABLE table_25737761_3 (director VARCHAR, no VARCHAR)
SELECT first_elected FROM table_1341690_13 WHERE incumbent = "Sidney R. Yates"
what year was the first elected incumbant Sidney R. Yates?
CREATE TABLE table_1341690_13 (first_elected VARCHAR, incumbent VARCHAR)
SELECT leading_scorer FROM table_name_99 WHERE date = "9 january 2008"
Who was the leading scorer on 9 January 2008?
CREATE TABLE table_name_99 (leading_scorer VARCHAR, date VARCHAR)
SELECT MIN(total_population) FROM table_1389609_3 WHERE region = "Southeast Asia"
What is the entire inhabitants in Southeast Asia?
CREATE TABLE table_1389609_3 (total_population INTEGER, region VARCHAR)
SELECT COUNT(winning_score) FROM table_17335602_1 WHERE tournament = "RR Donnelley LPGA Founders Cup"
How many winning scores were there in the rr donnelley lpga founders cup?
CREATE TABLE table_17335602_1 (winning_score VARCHAR, tournament VARCHAR)
SELECT rank__night_ FROM table_15681686_4 WHERE rating = "4.4"
what is the rank for the rating 4.4?
CREATE TABLE table_15681686_4 (rank__night_ VARCHAR, rating VARCHAR)
SELECT series FROM table_name_86 WHERE date = "may 18"
Which Series are on may 18?
CREATE TABLE table_name_86 (series VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_41 WHERE round = "32"
What opponent has 32 as the round?
CREATE TABLE table_name_41 (opponent VARCHAR, round VARCHAR)
SELECT margin_of_victory FROM table_1602858_1 WHERE winning_score = 63 - 68 - 68 - 68 = 267
What was the margin of victory with the winning score "63-68-68-68=267"?
CREATE TABLE table_1602858_1 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT MAX(league_cup) FROM table_name_97 WHERE name = "danny collins" AND premier_league > 1
What is the highest league cup of danny collins, who has more than 1 premier league?
CREATE TABLE table_name_97 (league_cup INTEGER, name VARCHAR, premier_league VARCHAR)
SELECT venue FROM table_name_4 WHERE championships = 1 AND established > 1957
What Venue has more than 1 Championship and was Established after 1957?
CREATE TABLE table_name_4 (venue VARCHAR, championships VARCHAR, established VARCHAR)
SELECT MIN(frequency___hz__) FROM table_name_48 WHERE helmholtz_pitch = "d"
What is the lowest Frequency where the Hemholtz pitch is d?
CREATE TABLE table_name_48 (frequency___hz__ INTEGER, helmholtz_pitch VARCHAR)
SELECT AVG(grid) FROM table_name_15 WHERE time_retired = "oil pressure" AND laps > 50
what is the grid when the time/retired is oil pressure and the laps are more than 50?
CREATE TABLE table_name_15 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id ORDER BY T3.tot_cred DESC LIMIT 1
Find the name of instructor who is the advisor of the student who has the highest number of total credits.
CREATE TABLE student (id VARCHAR, tot_cred VARCHAR); CREATE TABLE advisor (i_id VARCHAR, s_id VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR)
SELECT finalists FROM table_name_53 WHERE season = "1972–73"
Who were the finalists in the 1972–73 season?
CREATE TABLE table_name_53 (finalists VARCHAR, season VARCHAR)
SELECT team FROM table_11959669_4 WHERE date = "December 5"
Which team played on December 5?
CREATE TABLE table_11959669_4 (team VARCHAR, date VARCHAR)
SELECT SUM(females___percentage_) FROM table_name_71 WHERE hiv_awareness__males_percentage_ > 92 AND females_rank > 2 AND males_rank < 3
Which Females (%) has an HIV awareness (males%) larger than 92, and Females Rank larger than 2, and Males Rank smaller than 3?
CREATE TABLE table_name_71 (females___percentage_ INTEGER, males_rank VARCHAR, hiv_awareness__males_percentage_ VARCHAR, females_rank VARCHAR)
SELECT stopping_pattern FROM table_name_50 WHERE platform = "[2777] mciver station platforms"
Which Stopping pattern has a Platform of [2777] mciver station platforms?
CREATE TABLE table_name_50 (stopping_pattern VARCHAR, platform VARCHAR)
SELECT original_title FROM table_name_95 WHERE year < 2003 AND country = "japan/taiwan"
What is the original title of the film from Japan/Taiwan before 2003?
CREATE TABLE table_name_95 (original_title VARCHAR, year VARCHAR, country VARCHAR)
SELECT rank_2010 FROM table_293465_1 WHERE country = "Indonesia"
When indonesia is the country what is the rank of 2010?
CREATE TABLE table_293465_1 (rank_2010 VARCHAR, country VARCHAR)
SELECT nationality FROM table_name_24 WHERE group = "b" AND result = "4.30" AND name = "alana boyd"
Alana Boyd of group B with a 4.30 result has what nationality?
CREATE TABLE table_name_24 (nationality VARCHAR, name VARCHAR, group VARCHAR, result VARCHAR)
SELECT notes FROM table_name_40 WHERE authors = "zhou clarke zhang"
Which Notes has Authors of zhou clarke zhang?
CREATE TABLE table_name_40 (notes VARCHAR, authors VARCHAR)
SELECT COUNT(goals_for) FROM table_name_68 WHERE points_1 = "41"
What is the total number of Goals For, when Points 1 is "41"?
CREATE TABLE table_name_68 (goals_for VARCHAR, points_1 VARCHAR)
SELECT Party_Theme, LOCATION FROM party
What are the themes and locations of parties?
CREATE TABLE party (Party_Theme VARCHAR, LOCATION VARCHAR)
SELECT spanish FROM table_15040_8 WHERE french = "filtrer"
What is the Spanish word for the French word filtrer?
CREATE TABLE table_15040_8 (spanish VARCHAR, french VARCHAR)
SELECT t3.address_content FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t1.customer_name = "Maudie Kertzmann"
What is the address content of the customer named "Maudie Kertzmann"?
CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE addresses (address_content VARCHAR, address_id VARCHAR)
SELECT points_against FROM table_name_80 WHERE drawn = "2" AND points = "32"
What is Points Against, when Drawn is "2", and when Points Of is "32"?
CREATE TABLE table_name_80 (points_against VARCHAR, drawn VARCHAR, points VARCHAR)
SELECT COUNT(series__number) FROM table_14929574_3 WHERE us_viewers__million_ = "3.35"
Which episode number drew in 3.35 million viewers in the United States?
CREATE TABLE table_14929574_3 (series__number VARCHAR, us_viewers__million_ VARCHAR)
SELECT television_service FROM table_name_30 WHERE package_option = "sky tv" AND language = "italian english"
What is the television service that has package with sky tv, and it in Italian English?
CREATE TABLE table_name_30 (television_service VARCHAR, package_option VARCHAR, language VARCHAR)
SELECT AVG(rank) FROM table_name_76 WHERE time > 53.38
What is the average rank of an athlete that holds a time higher than 53.38?
CREATE TABLE table_name_76 (rank INTEGER, time INTEGER)
SELECT fastest_lap FROM table_name_76 WHERE winning_team = "audi sport team abt" AND circuit = "oschersleben"
What is the fastest lap of the Oschersleben circuit with Audi Sport Team ABT as the winning team?
CREATE TABLE table_name_76 (fastest_lap VARCHAR, winning_team VARCHAR, circuit VARCHAR)
SELECT time FROM table_name_67 WHERE score = "0–3"
What was the time when the score was 0–3?
CREATE TABLE table_name_67 (time VARCHAR, score VARCHAR)
SELECT qual_2 FROM table_name_31 WHERE team = "dale coyne racing" AND qual_1 = "1:00.081"
What is the second qualifying time for the dale coyne racing team with a first qualifying time of 1:00.081?
CREATE TABLE table_name_31 (qual_2 VARCHAR, team VARCHAR, qual_1 VARCHAR)
SELECT MIN(react) FROM table_name_62 WHERE country = "sri lanka" AND lane > 8
What is the lowest of the athlete from sri lanka who has a lane greater than 8?
CREATE TABLE table_name_62 (react INTEGER, country VARCHAR, lane VARCHAR)
SELECT COUNT(chromosomal_location) FROM table_29871617_1 WHERE family_name = "IL-1F8"
How many different chromosomal locations are there in the family il-1f8?
CREATE TABLE table_29871617_1 (chromosomal_location VARCHAR, family_name VARCHAR)
SELECT MAX(number_one_s_) FROM table_19542477_8
What is the highest overall number one(s)?
CREATE TABLE table_19542477_8 (number_one_s_ INTEGER)
SELECT MAX(rank) FROM table_name_47 WHERE director = "john woo"
what is the highest rank for director john woo?
CREATE TABLE table_name_47 (rank INTEGER, director VARCHAR)
SELECT dob FROM table_name_58 WHERE bats = "r" AND throws = "r" AND position = "rhp" AND first = "john"
Which DOB has Bats of r, and Throws of r, and a Position of rhp, and a First of john?
CREATE TABLE table_name_58 (dob VARCHAR, first VARCHAR, position VARCHAR, bats VARCHAR, throws VARCHAR)
SELECT MAX(scored) FROM table_14871601_2 WHERE points = 19 AND team = "3 de Febrero"
What is the value scored when there were 19 points for the team 3 de Febrero?
CREATE TABLE table_14871601_2 (scored INTEGER, points VARCHAR, team VARCHAR)
SELECT MAX(pick__number) FROM table_name_13 WHERE cfl_team = "hamilton tiger-cats"
What was the highest pick number for the Hamilton tiger-cats?
CREATE TABLE table_name_13 (pick__number INTEGER, cfl_team VARCHAR)
SELECT venue FROM table_name_97 WHERE competition = "1995 southeast asian games"
What's the venue of the 1995 Southeast Asian Games?
CREATE TABLE table_name_97 (venue VARCHAR, competition VARCHAR)
SELECT COUNT(player) FROM table_10960039_6 WHERE college = "Adams State"
How many players played for adams state school?
CREATE TABLE table_10960039_6 (player VARCHAR, college VARCHAR)
SELECT COUNT(goal) FROM table_name_61 WHERE competition = "euro 2012 q" AND score = "3-0"
How many goals when the score is 3-0 in the euro 2012 q?
CREATE TABLE table_name_61 (goal VARCHAR, competition VARCHAR, score VARCHAR)
SELECT result FROM table_name_36 WHERE date = "november 25, 1973"
What were the results for november 25, 1973?
CREATE TABLE table_name_36 (result VARCHAR, date VARCHAR)
SELECT date FROM table_name_69 WHERE event_circuit = "barbagallo raceway"
what is the date of barbagallo raceway?
CREATE TABLE table_name_69 (date VARCHAR, event_circuit VARCHAR)
SELECT high_points FROM table_name_86 WHERE date = "november 12"
Who had the most points in the game on November 12?
CREATE TABLE table_name_86 (high_points VARCHAR, date VARCHAR)
SELECT score FROM table_name_68 WHERE opponent = "marquette"
What was the score for the game against Marquette?
CREATE TABLE table_name_68 (score VARCHAR, opponent VARCHAR)
SELECT height_m__ft_ FROM table_name_77 WHERE rank > 10 AND name = "tameer tower"
What is the height for rank greater than 10 in Tameer Tower?
CREATE TABLE table_name_77 (height_m__ft_ VARCHAR, rank VARCHAR, name VARCHAR)
SELECT title FROM table_name_72 WHERE platform_s_ = "3ds" AND director = "naohiko aoyama"
What 3ds game did Naohiko Aoyama direct?
CREATE TABLE table_name_72 (title VARCHAR, platform_s_ VARCHAR, director VARCHAR)
SELECT constructor FROM table_name_74 WHERE grid = 11
Who was the constructor when the grid was 11?
CREATE TABLE table_name_74 (constructor VARCHAR, grid VARCHAR)
SELECT relationship FROM table_name_95 WHERE age_at_death = "96"
What is the relationship of the woman who died at 96?
CREATE TABLE table_name_95 (relationship VARCHAR, age_at_death VARCHAR)
SELECT AVG(played) FROM table_name_62 WHERE conceded < 7
Mean of played with smaller than 7 conceded?
CREATE TABLE table_name_62 (played INTEGER, conceded INTEGER)
SELECT laps FROM table_name_51 WHERE driver = "roberto moreno"
How many laps does roberto moreno have?
CREATE TABLE table_name_51 (laps VARCHAR, driver VARCHAR)
SELECT home_team FROM table_name_86 WHERE venue = "mcg"
Who was the home team at MCG?
CREATE TABLE table_name_86 (home_team VARCHAR, venue VARCHAR)
SELECT MAX(round) FROM table_name_14 WHERE position = "running back"
Which Round is the highest one that has a Position of running back?
CREATE TABLE table_name_14 (round INTEGER, position VARCHAR)
SELECT COUNT(points) FROM table_name_20 WHERE year > 1972 AND chassis = "mclaren m23"
How many points are there for a Mclaren m23 chassis later than 1972?
CREATE TABLE table_name_20 (points VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT surface FROM table_name_90 WHERE finalist = "andrei pavel"
What is the Surface, when the Finalist is Andrei Pavel?
CREATE TABLE table_name_90 (surface VARCHAR, finalist VARCHAR)
SELECT high_points FROM table_name_53 WHERE date = "june 16"
who has the high points on june 16?
CREATE TABLE table_name_53 (high_points VARCHAR, date VARCHAR)
SELECT pick FROM table_name_95 WHERE nfl_club = "buffalo bills"
What is the pick of the NFL club buffalo bills?
CREATE TABLE table_name_95 (pick VARCHAR, nfl_club VARCHAR)
SELECT points_for FROM table_name_8 WHERE points = "63"
What is Points For, when Points is "63"?
CREATE TABLE table_name_8 (points_for VARCHAR, points VARCHAR)
SELECT COUNT(round) FROM table_name_90 WHERE opponent = "sakae kasuya"
How many rounds have an Opponent of sakae kasuya?
CREATE TABLE table_name_90 (round VARCHAR, opponent VARCHAR)
SELECT MIN(number_of_floors) FROM table_27067379_1 WHERE completion = 2010
if the completed is 2010, what is the number of floors?
CREATE TABLE table_27067379_1 (number_of_floors INTEGER, completion VARCHAR)
SELECT total_seats FROM table_19304764_2 WHERE discipline = "Otorhinolaryngology"
Name the total seats for otorhinolaryngology
CREATE TABLE table_19304764_2 (total_seats VARCHAR, discipline VARCHAR)
SELECT rating FROM table_17525955_2 WHERE rating / SHARE(18 AS –49) = 0.9 / 4
What is the rating of the episode with a rating/share of 0.9/4?
CREATE TABLE table_17525955_2 (rating VARCHAR)
SELECT away_team FROM table_name_4 WHERE score = "0–3"
Which Away team has a Score of 0–3?
CREATE TABLE table_name_4 (away_team VARCHAR, score VARCHAR)
SELECT T1.Name, T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING COUNT(*) <= 1
Show the names and ids of tourist attractions that are visited at most once.
CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR)
SELECT casualties FROM table_name_24 WHERE location = "kunduz" AND circumstances = "suicide"
Which Casualties have a Location of kunduz, and Circumstances of suicide?
CREATE TABLE table_name_24 (casualties VARCHAR, location VARCHAR, circumstances VARCHAR)
SELECT MAX(clock_rate__mhz_) FROM table_142573_1
Name the maximum clock rate mhz
CREATE TABLE table_142573_1 (clock_rate__mhz_ INTEGER)
SELECT league FROM table_name_18 WHERE away = "2-3"
What league has 2-3 as the away?
CREATE TABLE table_name_18 (league VARCHAR, away VARCHAR)
SELECT email FROM user_profiles WHERE name = 'Mary'
Find the emails of the user named "Mary".
CREATE TABLE user_profiles (email VARCHAR, name VARCHAR)
SELECT T1.course_name, T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id WHERE T2.subject_name = "Computer Science"
Find the names and descriptions of courses that belong to the subject named "Computer Science".
CREATE TABLE Courses (course_name VARCHAR, course_description VARCHAR, subject_id VARCHAR); CREATE TABLE Subjects (subject_id VARCHAR, subject_name VARCHAR)
SELECT roleplay FROM table_17827271_1 WHERE actor_in_original_production = "Alison Pargeter"
What RolePlay actor played the same role Alison Pargeter played in the original production?
CREATE TABLE table_17827271_1 (roleplay VARCHAR, actor_in_original_production VARCHAR)
SELECT venue FROM table_name_48 WHERE competition = "1978 fifa world cup qualification"
In what venue was the 1978 FIFA world cup qualification played in?
CREATE TABLE table_name_48 (venue VARCHAR, competition VARCHAR)
SELECT date FROM table_name_69 WHERE score = "6–4, 7–5"
On what date was the score 6–4, 7–5?
CREATE TABLE table_name_69 (date VARCHAR, score VARCHAR)
SELECT best_actress FROM table_name_12 WHERE year = "2012 6th"
Which Best Actress has a Year of 2012 6th?
CREATE TABLE table_name_12 (best_actress VARCHAR, year VARCHAR)
SELECT MAX(year_joined) FROM table_name_97 WHERE enrollment < 726 AND school = "tri-west"
Which Year Joined has an Enrollment smaller than 726, and a School of tri-west?
CREATE TABLE table_name_97 (year_joined INTEGER, enrollment VARCHAR, school VARCHAR)
SELECT to_par FROM table_name_71 WHERE score = 73 - 71 = 144
What is the to par for the score 73-71=144?
CREATE TABLE table_name_71 (to_par VARCHAR, score VARCHAR)
SELECT season FROM table_name_87 WHERE score = "vasco da gama"
What is the season where Vasco da gama is the score?
CREATE TABLE table_name_87 (season VARCHAR, score VARCHAR)
SELECT result FROM table_name_33 WHERE opponent = "new england patriots"
What was the result when the new england patriots played?
CREATE TABLE table_name_33 (result VARCHAR, opponent VARCHAR)
SELECT fri_30_may FROM table_14209455_1 WHERE mon_26_may = "19' 02.890 118.847mph"
what is the numbr for fri may 30 and mon may 26 is 19' 02.890 118.847mph?
CREATE TABLE table_14209455_1 (fri_30_may VARCHAR, mon_26_may VARCHAR)
SELECT AVG(laps) FROM table_name_27 WHERE time_retired = "+5 laps"
What is the average laps that had a time/retired of +5 laps?
CREATE TABLE table_name_27 (laps INTEGER, time_retired VARCHAR)
SELECT venue FROM table_name_65 WHERE result = "won 5-4"
Which Venue has a Result of won 5-4?
CREATE TABLE table_name_65 (venue VARCHAR, result VARCHAR)
SELECT COUNT(floors) FROM table_name_58 WHERE year < 2008 AND name = "guinness tower"
What is the number of floors that have years under 2008 and were named Guinness Tower?
CREATE TABLE table_name_58 (floors VARCHAR, year VARCHAR, name VARCHAR)
SELECT pos FROM table_name_8 WHERE date_from = "28 august 2008"
What is Pos., when Date From is "28 August 2008"?
CREATE TABLE table_name_8 (pos VARCHAR, date_from VARCHAR)
SELECT class FROM table_name_58 WHERE co_drivers = "emanuele pirro jj lehto"
What is the class of the co-driver emanuele pirro jj lehto?
CREATE TABLE table_name_58 (class VARCHAR, co_drivers VARCHAR)
SELECT surface FROM table_name_53 WHERE tournament = "st. petersburg , russia"
Which Surface has a Tournament of st. petersburg , russia?
CREATE TABLE table_name_53 (surface VARCHAR, tournament VARCHAR)
SELECT Status FROM city WHERE Population > 1500 INTERSECT SELECT Status FROM city WHERE Population < 500
Show the status shared by cities with population bigger than 1500 and smaller than 500.
CREATE TABLE city (Status VARCHAR, Population INTEGER)
SELECT number FROM table_name_11 WHERE language = "belarusian"
What is the number of the belarusian language?
CREATE TABLE table_name_11 (number VARCHAR, language VARCHAR)
SELECT MAX(overall) FROM table_name_8 WHERE college = "southern mississippi" AND round < 6
What is the highest overall pick from the College of Southern Mississippi that was selected before round 6?
CREATE TABLE table_name_8 (overall INTEGER, college VARCHAR, round VARCHAR)
SELECT release_date FROM table_name_71 WHERE title = "inki and the minah bird"
When was Inki and the Minah Bird released?
CREATE TABLE table_name_71 (release_date VARCHAR, title VARCHAR)
SELECT date_year FROM table_21436373_5 WHERE attendance = 45010
On what date/s has attendance been 45010?
CREATE TABLE table_21436373_5 (date_year VARCHAR, attendance VARCHAR)
SELECT MIN(order) FROM table_name_66 WHERE minister = "joe hockey"
What is the lowest order with a Minister that is joe hockey?
CREATE TABLE table_name_66 (order INTEGER, minister VARCHAR)
SELECT tournament FROM table_name_80 WHERE date = "21 may 2006"
What tournament was held on 21 May 2006?
CREATE TABLE table_name_80 (tournament VARCHAR, date VARCHAR)
SELECT SUM(unit) FROM table_name_20 WHERE aircraft = "f.e.2b" AND location = "logeast"
What is the Unit for the Aircraft F.e.2b, located in Logeast?
CREATE TABLE table_name_20 (unit INTEGER, aircraft VARCHAR, location VARCHAR)
SELECT opponent FROM table_name_45 WHERE round = "1" AND record = "14-4-1"
Who was the opponent with a record of 14-4-1 and has a round of 1?
CREATE TABLE table_name_45 (opponent VARCHAR, round VARCHAR, record VARCHAR)
SELECT attendance FROM table_name_90 WHERE date = "may 26"
What was the attendance on May 26?
CREATE TABLE table_name_90 (attendance VARCHAR, date VARCHAR)
SELECT position FROM table_25517718_3 WHERE player = "Boggs"
What position does Boggs play?
CREATE TABLE table_25517718_3 (position VARCHAR, player VARCHAR)
SELECT home_team AS score FROM table_name_75 WHERE away_team = "essendon"
Name the home team when the away team was essendon
CREATE TABLE table_name_75 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(date) FROM table_2985987_2 WHERE race = "Victoria Derby"
What many times was the victoria derby raced?
CREATE TABLE table_2985987_2 (date VARCHAR, race VARCHAR)