answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT recognised_seats FROM table_19304764_2 WHERE discipline = "Pharmacology"
Name the recognised seats for pharmacology
CREATE TABLE table_19304764_2 (recognised_seats VARCHAR, discipline VARCHAR)
SELECT district FROM table_1342370_41 WHERE incumbent = "Cordell Hull"
In what district was the incumbent Cordell hull?
CREATE TABLE table_1342370_41 (district VARCHAR, incumbent VARCHAR)
SELECT icao FROM table_name_1 WHERE iata = "rba"
What is the ICAO code for the airport with RBA as its IATA code?
CREATE TABLE table_name_1 (icao VARCHAR, iata VARCHAR)
SELECT player FROM table_name_89 WHERE pick > 23
Which player was picked after 23?
CREATE TABLE table_name_89 (player VARCHAR, pick INTEGER)
SELECT hometown FROM table_27529608_21 WHERE name_name_of_act = "PLUtonic"
What is the hometown of Plutonic?
CREATE TABLE table_27529608_21 (hometown VARCHAR, name_name_of_act VARCHAR)
SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1
What's the name of the course with most number of enrollments?
CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Enrolment_Courses (course_id VARCHAR)
SELECT away_team FROM table_name_67 WHERE home_team = "footscray"
Who is the away team that played home team Footscray?
CREATE TABLE table_name_67 (away_team VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_3 WHERE away_team = "leeds united"
What was the date when the away team was the leeds united?
CREATE TABLE table_name_3 (date VARCHAR, away_team VARCHAR)
SELECT location FROM table_24935743_2 WHERE school = "Jeromesville"
What school is in Jeromesville?
CREATE TABLE table_24935743_2 (location VARCHAR, school VARCHAR)
SELECT COUNT(goals) FROM table_name_56 WHERE points = 28 AND matches > 11
How many goals have 28 as the points, and matches greater than 11?
CREATE TABLE table_name_56 (goals VARCHAR, points VARCHAR, matches VARCHAR)
SELECT former_pageant FROM table_14308895_2 WHERE new_pageant = "Miss Bahamas"
which is the former pageant in the country where the new pageant is miss bahamas?
CREATE TABLE table_14308895_2 (former_pageant VARCHAR, new_pageant VARCHAR)
SELECT bronze FROM table_name_2 WHERE rank > 5
What is the bronze value associated with ranks over 5?
CREATE TABLE table_name_2 (bronze VARCHAR, rank INTEGER)
SELECT MAX(pts) FROM table_name_51 WHERE engine = "cosworth straight-4"
What is the highest number of points the cosworth straight-4 engine scored?
CREATE TABLE table_name_51 (pts INTEGER, engine VARCHAR)
SELECT T3.Name FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID WHERE T2.Num_of_shops > 50
Show the names of phones that are on market with number of shops greater than 50.
CREATE TABLE market (Market_ID VARCHAR, Num_of_shops INTEGER); CREATE TABLE phone (Name VARCHAR, Phone_ID VARCHAR); CREATE TABLE phone_market (Market_ID VARCHAR, Phone_ID VARCHAR)
SELECT winner_and_nominees FROM table_name_44 WHERE director = "cary joji fukunaga"
Who was the winner and nominees for the movie directed by cary joji fukunaga?
CREATE TABLE table_name_44 (winner_and_nominees VARCHAR, director VARCHAR)
SELECT name FROM table_name_17 WHERE country = "nga"
What is the name of the player from NGA?
CREATE TABLE table_name_17 (name VARCHAR, country VARCHAR)
SELECT MAX(age) FROM table_22447251_2 WHERE contestant = "Valerie Chardonnens Vargas"
How old is contestant Valerie Chardonnens Vargas?
CREATE TABLE table_22447251_2 (age INTEGER, contestant VARCHAR)
SELECT SUM(january) FROM table_name_69 WHERE score = "7–4" AND game < 42
Which January has a Score of 7–4, and a Game smaller than 42?
CREATE TABLE table_name_69 (january INTEGER, score VARCHAR, game VARCHAR)
SELECT MAX(gold) FROM table_name_40 WHERE silver = 1 AND total > 1
What is the highest gold with 1 silver, and more than 1 altogether?
CREATE TABLE table_name_40 (gold INTEGER, silver VARCHAR, total VARCHAR)
SELECT date FROM table_name_78 WHERE opponent = "bye"
Which date has an Opponent of bye?
CREATE TABLE table_name_78 (date VARCHAR, opponent VARCHAR)
SELECT MIN(area__km²_) FROM table_11780179_1 WHERE population = 16967000
What is the area (km²) for the country with a population of 16967000?
CREATE TABLE table_11780179_1 (area__km²_ INTEGER, population VARCHAR)
SELECT player FROM table_name_67 WHERE country = "united states" AND to_par = "+4" AND score = 71 - 77 = 148
What United States Player has a To par of +4 and a Score of 71-77=148?
CREATE TABLE table_name_67 (player VARCHAR, country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT score FROM table_name_52 WHERE date = "september 8"
What was the score on September 8?
CREATE TABLE table_name_52 (score VARCHAR, date VARCHAR)
SELECT platform_s_ FROM table_name_8 WHERE year = 2007
What platform has a year of 2007?
CREATE TABLE table_name_8 (platform_s_ VARCHAR, year VARCHAR)
SELECT visitor FROM table_name_77 WHERE home = "grizzlies" AND date = "13 november 2007"
What is the visiting team of the game with the home team Grizzlies on 13 November 2007?
CREATE TABLE table_name_77 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT score FROM table_name_6 WHERE opponent = "andrei pavel"
What was the score against andrei pavel?
CREATE TABLE table_name_6 (score VARCHAR, opponent VARCHAR)
SELECT location FROM table_name_36 WHERE method = "decision" AND record = "1-2"
Which location led to a decision and a record of 1-2?
CREATE TABLE table_name_36 (location VARCHAR, method VARCHAR, record VARCHAR)
SELECT date FROM table_name_90 WHERE venue = "los angeles"
On what Date was the Venue Los Angeles?
CREATE TABLE table_name_90 (date VARCHAR, venue VARCHAR)
SELECT stepping FROM table_name_61 WHERE part_number_s_ = "adh4450iaa5do"
What's the stepping amount for adh4450iaa5do?
CREATE TABLE table_name_61 (stepping VARCHAR, part_number_s_ VARCHAR)
SELECT MIN(date) FROM table_name_93 WHERE medal = "bronze"
What is the earliest date for the bronze medal?
CREATE TABLE table_name_93 (date INTEGER, medal VARCHAR)
SELECT record FROM table_name_8 WHERE home = "vancouver"
What is the team's record when vancouver was at home?
CREATE TABLE table_name_8 (record VARCHAR, home VARCHAR)
SELECT SUM(bp_2nd_comp__) AS ˚c_ FROM table_name_33 WHERE bp_azeo__˚c_ = 57.5
Tell me the sum of bp 2nd comp with bp azeo of 57.5
CREATE TABLE table_name_33 (bp_2nd_comp__ INTEGER, bp_azeo__˚c_ VARCHAR)
SELECT MIN(rank) FROM table_name_37 WHERE year > 2005 AND moving_from = "nancy"
Moving from Nancy after 2005, what is listed as the lowest rank?
CREATE TABLE table_name_37 (rank INTEGER, year VARCHAR, moving_from VARCHAR)
SELECT date FROM table_name_67 WHERE venue = "miami" AND goal = 38
What day is miami the venue with 38 goals?
CREATE TABLE table_name_67 (date VARCHAR, venue VARCHAR, goal VARCHAR)
SELECT qual FROM table_name_3 WHERE laps < 68
What is the Qual with less than 68 laps?
CREATE TABLE table_name_3 (qual VARCHAR, laps INTEGER)
SELECT chassis FROM table_name_13 WHERE drivers = "gary bettenhausen"
What chassis does Gary Bettenhausen use?
CREATE TABLE table_name_13 (chassis VARCHAR, drivers VARCHAR)
SELECT AVG(week) FROM table_name_74 WHERE attendance = "48,113"
Tell me the average week for attendance of 48,113
CREATE TABLE table_name_74 (week INTEGER, attendance VARCHAR)
SELECT COUNT(silver) FROM table_name_57 WHERE gold < 1 AND total < 1
How many silver medals for the nation with fewer than 1 golds and total less than 1?
CREATE TABLE table_name_57 (silver VARCHAR, gold VARCHAR, total VARCHAR)
SELECT ranking FROM table_name_95 WHERE nationality = "spain" AND goals = 26
What ranking has the nationality of spain and the goals of 26?
CREATE TABLE table_name_95 (ranking VARCHAR, nationality VARCHAR, goals VARCHAR)
SELECT place FROM table_name_51 WHERE score = 72 - 70 - 67 = 209
What is the place of the player with a 72-70-67=209 score?
CREATE TABLE table_name_51 (place VARCHAR, score VARCHAR)
SELECT MIN(electorate) FROM table_name_57 WHERE political_party = "conservative" AND constituency = "south west devon" AND "conservative" > 2 AND name = "plymstock radford"
What is the smallest electorate for the Conservative party in South West Devon constituency, with over 2 conservatives and a name of Plymstock Radford?
CREATE TABLE table_name_57 (electorate INTEGER, name VARCHAR, political_party VARCHAR, constituency VARCHAR)
SELECT driver FROM table_16493961_1 WHERE date = "June 23" AND team = "Penske Racing"
Name the driver for june 23 and team of penske racing
CREATE TABLE table_16493961_1 (driver VARCHAR, date VARCHAR, team VARCHAR)
SELECT series FROM table_name_53 WHERE date = "may 14"
what series was on may 14
CREATE TABLE table_name_53 (series VARCHAR, date VARCHAR)
SELECT away_team FROM table_name_42 WHERE home_team = "newcastle united"
What is the Away team with Newcastle United as the Home team?
CREATE TABLE table_name_42 (away_team VARCHAR, home_team VARCHAR)
SELECT elevated FROM table_name_25 WHERE cardinalatial_title = "priest of s. eusebio and archbishop of benevento"
What's listed for the Elevated with a Cardinalatial title of Priest of S. Eusebio and Archbishop of Benevento?
CREATE TABLE table_name_25 (elevated VARCHAR, cardinalatial_title VARCHAR)
SELECT league_apps FROM table_27170987_5 WHERE total_goals = 11
How many league apps did the player with 11 team goals have?
CREATE TABLE table_27170987_5 (league_apps VARCHAR, total_goals VARCHAR)
SELECT chassis FROM table_name_30 WHERE engine = "weslake v12"
What Chassis had a Weslake v12 in it?
CREATE TABLE table_name_30 (chassis VARCHAR, engine VARCHAR)
SELECT COUNT(goals_per_match) FROM table_name_12 WHERE name = "cha bum-kun"
What is Cha Bum-Kun's average number of goals per match?
CREATE TABLE table_name_12 (goals_per_match VARCHAR, name VARCHAR)
SELECT MIN(points) FROM table_27539808_5 WHERE game = 32
What is the lowest number of points for game 32?
CREATE TABLE table_27539808_5 (points INTEGER, game VARCHAR)
SELECT venue FROM table_name_91 WHERE against > 21 AND opposing_team = "argentina"
Which venue has an against value larger than 21 and had Argentina as an opposing team.
CREATE TABLE table_name_91 (venue VARCHAR, against VARCHAR, opposing_team VARCHAR)
SELECT december FROM table_27537870_5 WHERE record = "14-17-4"
Name the december for record 14-17-4
CREATE TABLE table_27537870_5 (december VARCHAR, record VARCHAR)
SELECT language FROM table_name_65 WHERE country = "france" AND publication_range = "1992–2003"
What is the language with a France publication range of 1992–2003?
CREATE TABLE table_name_65 (language VARCHAR, country VARCHAR, publication_range VARCHAR)
SELECT cores FROM table_name_76 WHERE l3_cache = "8 mb" AND model_number = "core i7-860"
What is listed for the Cores that has the L3 cache of 8 MB and Model number of Core i7-860?
CREATE TABLE table_name_76 (cores VARCHAR, l3_cache VARCHAR, model_number VARCHAR)
SELECT name FROM table_name_74 WHERE type = "primary" AND dcsf_number > 2337 AND ofsted_number < 135339
What is the name of the primary with a DCSF number larger than 2337 and an Ofsted number smaller than 135339?
CREATE TABLE table_name_74 (name VARCHAR, ofsted_number VARCHAR, type VARCHAR, dcsf_number VARCHAR)
SELECT platform FROM table_name_37 WHERE publisher = "mindark"
For what platform does Mindark publish?
CREATE TABLE table_name_37 (platform VARCHAR, publisher VARCHAR)
SELECT mixed_doubles FROM table_name_49 WHERE year = "2007"
Who won the Mixed Doubles in 2007?
CREATE TABLE table_name_49 (mixed_doubles VARCHAR, year VARCHAR)
SELECT MIN(block) FROM table_name_69 WHERE height = 206 AND spike > 356
What is the lowest number of blocks for players with height of 206 and more than 356 spikes?
CREATE TABLE table_name_69 (block INTEGER, height VARCHAR, spike VARCHAR)
SELECT construction_completed FROM table_name_76 WHERE name = "nelson tunnel/commodore waste rock"
What construction completed is named nelson tunnel/commodore waste rock?
CREATE TABLE table_name_76 (construction_completed VARCHAR, name VARCHAR)
SELECT place FROM table_name_89 WHERE score = 71 AND country = "united states"
When the score is 71 and the player is from United States what is the place?
CREATE TABLE table_name_89 (place VARCHAR, score VARCHAR, country VARCHAR)
SELECT high_assists FROM table_15869204_5 WHERE date = "December 14"
Name the high assists for december 14
CREATE TABLE table_15869204_5 (high_assists VARCHAR, date VARCHAR)
SELECT round FROM table_name_55 WHERE attendance = "12,127"
What round has an attendance of 12,127?
CREATE TABLE table_name_55 (round VARCHAR, attendance VARCHAR)
SELECT pat_robertson FROM table_name_43 WHERE bob_dole = "26%" AND pete_du_pont = "0%"
When Bob Dole had 26%, and Pete du Pont had 0%, what did Pat Robertson have?
CREATE TABLE table_name_43 (pat_robertson VARCHAR, bob_dole VARCHAR, pete_du_pont VARCHAR)
SELECT series_ep FROM table_name_27 WHERE segment_d = "darts"
Name the series ep for darts
CREATE TABLE table_name_27 (series_ep VARCHAR, segment_d VARCHAR)
SELECT population FROM table_171250_2 WHERE area_km_2 = "715.58"
What is the population that has an area of 715.58?
CREATE TABLE table_171250_2 (population VARCHAR, area_km_2 VARCHAR)
SELECT SUM(division) FROM table_name_69 WHERE country = "serbia and montenegro" AND apps < 12 AND goals > 0
What is the total of the Divison that is from the country Serbia and Montenegro with apps smaller than 12 with more goals than 0?
CREATE TABLE table_name_69 (division INTEGER, goals VARCHAR, country VARCHAR, apps VARCHAR)
SELECT COUNT(laps) FROM table_name_37 WHERE time = "+2.987"
How many laps had a time of +2.987?
CREATE TABLE table_name_37 (laps VARCHAR, time VARCHAR)
SELECT valley_vista FROM table_name_39 WHERE dysart = "1668"
What Valley Vista has a Dysart of 1668?
CREATE TABLE table_name_39 (valley_vista VARCHAR, dysart VARCHAR)
SELECT address FROM table_name_44 WHERE mascot = "coyotes"
What is the address for the school that has the coyotes mascot?
CREATE TABLE table_name_44 (address VARCHAR, mascot VARCHAR)
SELECT score FROM table_name_95 WHERE date = "october 7"
What is the score on october 7?
CREATE TABLE table_name_95 (score VARCHAR, date VARCHAR)
SELECT age_as_of_1_february_2014 FROM table_name_18 WHERE name = "dorothy peel"
What is the Age of dorothy Peel as of 1 February 2014 ?
CREATE TABLE table_name_18 (age_as_of_1_february_2014 VARCHAR, name VARCHAR)
SELECT MAX(total) FROM table_name_71 WHERE rank = "6" AND silver > 2
What's the total of rank number 6 with more than 2 silver?
CREATE TABLE table_name_71 (total INTEGER, rank VARCHAR, silver VARCHAR)
SELECT MIN(pick__number) FROM table_10960039_1 WHERE college = "McMaster"
What is McMaster College's pick number?
CREATE TABLE table_10960039_1 (pick__number INTEGER, college VARCHAR)
SELECT opponent FROM table_name_77 WHERE date = "april 28"
Who was the opponent when the Phillies played on April 28?
CREATE TABLE table_name_77 (opponent VARCHAR, date VARCHAR)
SELECT MIN(attendance) FROM table_name_69 WHERE date = "december 20, 1970" AND week < 14
What is the lowest Attendance, when Date is "December 20, 1970", and when Week is less than 14?
CREATE TABLE table_name_69 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT country FROM table_name_46 WHERE population_density__per_km²_ = "50.3"
Which country has a population density of 50.3?
CREATE TABLE table_name_46 (country VARCHAR, population_density__per_km²_ VARCHAR)
SELECT MAX(wins) FROM table_name_46 WHERE goal_difference = 11 AND played > 30
What is the most wins for a position with more than 30 played and a goal difference of 11?
CREATE TABLE table_name_46 (wins INTEGER, goal_difference VARCHAR, played VARCHAR)
SELECT event FROM table_name_32 WHERE championship = "1959 usac championship car season"
With a Championship of 1959 USAC Championship Car Season what is the event?
CREATE TABLE table_name_32 (event VARCHAR, championship VARCHAR)
SELECT year_named FROM table_name_42 WHERE longitude = "227.5e"
What is Year Named, when Longitude is 227.5E?
CREATE TABLE table_name_42 (year_named VARCHAR, longitude VARCHAR)
SELECT COUNT(location_of_the_church) FROM table_178381_1 WHERE year_built = "1957" AND church_name = "Askrova bedehuskapell"
On how many locations is there a church named Askrova Bedehuskapell, built in 1957?
CREATE TABLE table_178381_1 (location_of_the_church VARCHAR, year_built VARCHAR, church_name VARCHAR)
SELECT captain FROM table_name_49 WHERE team = "norwich city"
What is the name of the captain for team Norwich City?
CREATE TABLE table_name_49 (captain VARCHAR, team VARCHAR)
SELECT clubs FROM table_19412902_2 WHERE member_association = "Korea Republic"
How many clubs are there in the Korea Republic?
CREATE TABLE table_19412902_2 (clubs VARCHAR, member_association VARCHAR)
SELECT country FROM table_26166836_1 WHERE road_race = "Xiamen International Marathon"
In which country was the xiamen international marathon?
CREATE TABLE table_26166836_1 (country VARCHAR, road_race VARCHAR)
SELECT AVG(round) FROM table_name_2 WHERE school = "east carolina"
What's the average round number for East Carolina?
CREATE TABLE table_name_2 (round INTEGER, school VARCHAR)
SELECT AVG(total) FROM table_name_14 WHERE year_s__won = "1982"
WHAT IS THE TOTAL THAT HAS A WIN IN 1982?
CREATE TABLE table_name_14 (total INTEGER, year_s__won VARCHAR)
SELECT COUNT(japanese) FROM table_1585609_2 WHERE name = "Amagasaki"
Name the total number of japanese for amagasaki
CREATE TABLE table_1585609_2 (japanese VARCHAR, name VARCHAR)
SELECT AVG(attendance) FROM table_name_31 WHERE date = "september 23, 1973" AND week > 2
What is the average attendance for the games after week 2 on September 23, 1973?
CREATE TABLE table_name_31 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT name FROM table_name_24 WHERE status = "valid" AND authors = "maisch" AND location = "tanzania" AND novelty = "gen et sp nov"
What is Name, when Status is Valid, when Authors is Maisch, when Location is Tanzania, and when Novelty is Gen Et Sp Nov?
CREATE TABLE table_name_24 (name VARCHAR, novelty VARCHAR, location VARCHAR, status VARCHAR, authors VARCHAR)
SELECT borough FROM table_name_54 WHERE location = "seward" AND listed = "1977-11-23"
What is the Borough for the Seward listing on 1977-11-23?
CREATE TABLE table_name_54 (borough VARCHAR, location VARCHAR, listed VARCHAR)
SELECT assists FROM table_26360571_2 WHERE opponent = "Illinois-Chicago"
List the number of assists against illinois-chicago.
CREATE TABLE table_26360571_2 (assists VARCHAR, opponent VARCHAR)
SELECT model__list_ FROM table_24101118_1 WHERE processor = "Yorkfield" AND brand_name = "Xeon"
what is the model where the processor is yorkfield and the brand name is xeon?
CREATE TABLE table_24101118_1 (model__list_ VARCHAR, processor VARCHAR, brand_name VARCHAR)
SELECT score FROM table_name_79 WHERE date = "25 may 2007"
What was the Score on 25 May 2007?
CREATE TABLE table_name_79 (score VARCHAR, date VARCHAR)
SELECT role FROM table_name_26 WHERE notes = "antagonist" AND title = "salud, dinero y amor"
What is the name of the role that has a Title of Salud, Dinero y Amor and antagonist in the notes field?
CREATE TABLE table_name_26 (role VARCHAR, notes VARCHAR, title VARCHAR)
SELECT First_year, Last_year FROM party WHERE Party_Theme = "Spring" OR Party_Theme = "Teqnology"
Show the first year and last year of parties with theme "Spring" or "Teqnology".
CREATE TABLE party (First_year VARCHAR, Last_year VARCHAR, Party_Theme VARCHAR)
SELECT competition FROM table_name_66 WHERE date = "29 september 2007"
Which competition was on 29 September 2007?
CREATE TABLE table_name_66 (competition VARCHAR, date VARCHAR)
SELECT play_by_play_announcer FROM table_2941848_2 WHERE trophy_presentation = "Chris Rose"
Who is every play-by-play announcer when Chris Rose is the trophy presenter?
CREATE TABLE table_2941848_2 (play_by_play_announcer VARCHAR, trophy_presentation VARCHAR)
SELECT high_points FROM table_17323092_7 WHERE date = "February 10"
Who had the high points on the date February 10?
CREATE TABLE table_17323092_7 (high_points VARCHAR, date VARCHAR)
SELECT club FROM table_name_2 WHERE tries_for = "40"
Which club has 40 tries for?
CREATE TABLE table_name_2 (club VARCHAR, tries_for VARCHAR)
SELECT played FROM table_17941032_2 WHERE tries_for = "56"
How many times were there plays with a try of 56?
CREATE TABLE table_17941032_2 (played VARCHAR, tries_for VARCHAR)
SELECT MIN(series__number) FROM table_14929574_3 WHERE directed_by = "Bill Eagles"
Which episode number was directed by Bill Eagles?
CREATE TABLE table_14929574_3 (series__number INTEGER, directed_by VARCHAR)
SELECT screen_size FROM table_name_8 WHERE bluetooth = "no" AND model = "s45 (australia only)"
What is the screen size of the s45 (Australia only) Model with no bluetooth?
CREATE TABLE table_name_8 (screen_size VARCHAR, bluetooth VARCHAR, model VARCHAR)