answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT Song FROM volume ORDER BY Song
Please list all songs in volumes in ascending alphabetical order.
CREATE TABLE volume (Song VARCHAR)
SELECT d_46 FROM table_name_34 WHERE d_43 = "majority→"
Name the D 46 which has a D 43 of majority→
CREATE TABLE table_name_34 (d_46 VARCHAR, d_43 VARCHAR)
SELECT Park FROM roller_coaster ORDER BY Speed DESC LIMIT 1
Show the park of the roller coaster with the highest speed.
CREATE TABLE roller_coaster (Park VARCHAR, Speed VARCHAR)
SELECT nationality FROM table_name_68 WHERE nhl_team = "washington capitals"
What is the nationality of the Washington Capitals?
CREATE TABLE table_name_68 (nationality VARCHAR, nhl_team VARCHAR)
SELECT SUM(laps) FROM table_name_45 WHERE time_retired = "2:54:23.8"
How many laps were driven in 2:54:23.8?
CREATE TABLE table_name_45 (laps INTEGER, time_retired VARCHAR)
SELECT nation FROM table_name_62 WHERE total < 14 AND silver = 1 AND rank = "5"
What nation won fewer than 14 total medals, 1 silver medal, and rank 5?
CREATE TABLE table_name_62 (nation VARCHAR, rank VARCHAR, total VARCHAR, silver VARCHAR)
SELECT name FROM instructor WHERE name LIKE '%dar%'
Find the names of all instructors whose name includes the substring “dar”.
CREATE TABLE instructor (name VARCHAR)
SELECT MAX(rank) FROM table_name_92 WHERE matches = 362
What is the Rank of the player with 362 Matches?
CREATE TABLE table_name_92 (rank INTEGER, matches VARCHAR)
SELECT batsmen FROM table_name_83 WHERE year = "1982"
Who is the Batsman from the year 1982?
CREATE TABLE table_name_83 (batsmen VARCHAR, year VARCHAR)
SELECT COUNT(total_points_earned) FROM table_23662272_4 WHERE average = "21.3"
What is the total points earned total number if the average is 21.3?
CREATE TABLE table_23662272_4 (total_points_earned VARCHAR, average VARCHAR)
SELECT movies FROM table_29217650_1 WHERE december_25 = "P3.2 million"
What film earmed p3.2 million on December 25?
CREATE TABLE table_29217650_1 (movies VARCHAR, december_25 VARCHAR)
SELECT directed_by FROM table_2626495_1 WHERE written_by = "James Clavell"
who directed the episode james clavell wrote?
CREATE TABLE table_2626495_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT engine FROM table_name_57 WHERE year < 2004 AND entrant = "bmw motorsport" AND points = 123
What is the engine for the bmw motorsport entrant with 123 points before 2004?
CREATE TABLE table_name_57 (engine VARCHAR, points VARCHAR, year VARCHAR, entrant VARCHAR)
SELECT remixed_by FROM table_name_51 WHERE year = 1986 AND version = "long version"
Which long version was remixed in 1986?
CREATE TABLE table_name_51 (remixed_by VARCHAR, year VARCHAR, version VARCHAR)
SELECT DISTINCT (catalog_entry_name) FROM catalog_contents
Find the names of all the catalog entries.
CREATE TABLE catalog_contents (catalog_entry_name VARCHAR)
SELECT DISTINCT firstname, lastname FROM teachers
Report the first name and last name of all the teachers.
CREATE TABLE teachers (firstname VARCHAR, lastname VARCHAR)
SELECT MAX(total) FROM table_name_34 WHERE country = "spain"
What's spain's highest total?
CREATE TABLE table_name_34 (total INTEGER, country VARCHAR)
SELECT seasons FROM table_19487922_1 WHERE country = "Monaco"
How many seasons for Monaco?
CREATE TABLE table_19487922_1 (seasons VARCHAR, country VARCHAR)
SELECT COUNT(points) FROM table_name_7 WHERE team = "rusport" AND laps = 45
How many Points have a Team of rusport, and Laps of 45?
CREATE TABLE table_name_7 (points VARCHAR, team VARCHAR, laps VARCHAR)
SELECT SUM(year) FROM table_name_49 WHERE entrant = "connaught engineering" AND points < 0
Name the sum of year for connaught engineering and points less than 0
CREATE TABLE table_name_49 (year INTEGER, entrant VARCHAR, points VARCHAR)
SELECT points FROM table_name_42 WHERE club = "bridgend athletic rfc"
How many points did the Bridgend Athletic RFC have?
CREATE TABLE table_name_42 (points VARCHAR, club 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 result FROM table_name_52 WHERE year < 2013 AND category = "presenter talent show"
What was the result in a year before 2013 that the nomination category was Presenter Talent Show?
CREATE TABLE table_name_52 (result VARCHAR, year VARCHAR, category VARCHAR)
SELECT years FROM table_name_36 WHERE goals > 2 AND games = "11 (2)"
What year had more than 2 goals and 11 (2) games?
CREATE TABLE table_name_36 (years VARCHAR, goals VARCHAR, games VARCHAR)
SELECT res FROM table_name_51 WHERE time = "4:27"
What was the result of the 4:27 fight?
CREATE TABLE table_name_51 (res VARCHAR, time VARCHAR)
SELECT school_name, LOCATION, mascot FROM school
List the name, location, mascot for all schools.
CREATE TABLE school (school_name VARCHAR, LOCATION VARCHAR, mascot VARCHAR)
SELECT object_type FROM table_name_28 WHERE apparent_magnitude > 10.6 AND declination___j2000__ = "°44′07″"
Tell me the object type which has an apparent magnitude more than 10.6 and declination of °44′07″
CREATE TABLE table_name_28 (object_type VARCHAR, apparent_magnitude VARCHAR, declination___j2000__ VARCHAR)
SELECT MAX(pick) FROM table_name_39 WHERE position = "g/f"
What is the highest Pick, when Position is "G/F"?
CREATE TABLE table_name_39 (pick INTEGER, position VARCHAR)
SELECT country FROM table_name_99 WHERE score = 69 - 71 - 66 = 206
What is the Country of the Player with a Score of 69-71-66=206?
CREATE TABLE table_name_99 (country VARCHAR, score VARCHAR)
SELECT host FROM table_name_62 WHERE state = "texas" AND venue = "montagne center"
What was the host of the round in the Montagne Center in Texas?
CREATE TABLE table_name_62 (host VARCHAR, state VARCHAR, venue VARCHAR)
SELECT municipality FROM table_255885_1 WHERE area__km²_ = "199.35"
What is the municipality that has an area of exactly 199.35 sq. km?
CREATE TABLE table_255885_1 (municipality VARCHAR, area__km²_ VARCHAR)
SELECT tv_series FROM table_name_33 WHERE species = "boar"
What show has a boar?
CREATE TABLE table_name_33 (tv_series VARCHAR, species VARCHAR)
SELECT MIN(year) FROM table_name_47 WHERE wins < 0
Which Year is the lowest one that has Wins smaller than 0?
CREATE TABLE table_name_47 (year INTEGER, wins INTEGER)
SELECT tournament FROM table_name_38 WHERE country = "united states"
what is the tournament when the country is united states?
CREATE TABLE table_name_38 (tournament VARCHAR, country VARCHAR)
SELECT record FROM table_name_10 WHERE decision = "denis" AND date = "november 4"
What is the record for November 4, with a decision made by Denis?
CREATE TABLE table_name_10 (record VARCHAR, decision VARCHAR, date VARCHAR)
SELECT location FROM table_name_86 WHERE mascot = "lancers"
What school has the Lancers as their mascot?
CREATE TABLE table_name_86 (location VARCHAR, mascot VARCHAR)
SELECT tournament FROM table_name_12 WHERE 2011 = "1r"
What tournament has 1r as the 2011?
CREATE TABLE table_name_12 (tournament VARCHAR)
SELECT playoffs FROM table_name_82 WHERE year = "2004-05"
What is the Playoffs during 2004-05?
CREATE TABLE table_name_82 (playoffs VARCHAR, year VARCHAR)
SELECT series FROM table_name_2 WHERE season = 2007
What is Series, when Season is 2007?
CREATE TABLE table_name_2 (series VARCHAR, season VARCHAR)
SELECT t3.headquartered_city, COUNT(*) FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city
Find the number of stores in each city.
CREATE TABLE district (headquartered_city VARCHAR, district_id VARCHAR); CREATE TABLE store_district (store_id VARCHAR, district_id VARCHAR); CREATE TABLE store (store_id VARCHAR)
SELECT driver FROM table_name_89 WHERE laps < 19 AND grid < 10
What driver has under 19 laps and a grid under 10?
CREATE TABLE table_name_89 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT MIN(ofsted) FROM table_name_63 WHERE school = "marple hall school" AND capacity > 1711
Which Ofsted has a School of marple hall school, and a Capacity larger than 1711?
CREATE TABLE table_name_63 (ofsted INTEGER, school VARCHAR, capacity VARCHAR)
SELECT t3.name, t3.time FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id JOIN train AS t3 ON t2.train_id = t3.id WHERE t1.local_authority = "Chiltern"
Find names and times of trains that run through stations for the local authority Chiltern.
CREATE TABLE station (id VARCHAR, local_authority VARCHAR); CREATE TABLE route (station_id VARCHAR, train_id VARCHAR); CREATE TABLE train (name VARCHAR, time VARCHAR, id VARCHAR)
SELECT MIN(overall) FROM table_name_25 WHERE round > 17
What is the lowest overall with more than 17 rounds?
CREATE TABLE table_name_25 (overall INTEGER, round INTEGER)
SELECT subregion FROM table_name_41 WHERE no_p = 4 AND pop_area__1_km²_ = 534
Which Subregion has a No P. of 4, and a Pop/Area (1/km²) of 534?
CREATE TABLE table_name_41 (subregion VARCHAR, no_p VARCHAR, pop_area__1_km²_ VARCHAR)
SELECT wins FROM table_name_92 WHERE third = "1" AND points < 572 AND races < 16
What is the number of wins when the number of third was 1, points were less than 572 and had less than 16 races?
CREATE TABLE table_name_92 (wins VARCHAR, races VARCHAR, third VARCHAR, points VARCHAR)
SELECT trainer FROM table_name_93 WHERE odds > 36 AND post = 11
Who trained the horse on post 11 with over 36 odds?
CREATE TABLE table_name_93 (trainer VARCHAR, odds VARCHAR, post VARCHAR)
SELECT remarks FROM table_name_79 WHERE airline = "dutch antilles express"
What is the Remark of Airline of Dutch Antilles Express?
CREATE TABLE table_name_79 (remarks VARCHAR, airline VARCHAR)
SELECT date_of_replacement FROM table_name_98 WHERE date_outgoing = "august 20, 2008"
When did the manager take over for the manager that left on August 20, 2008?
CREATE TABLE table_name_98 (date_of_replacement VARCHAR, date_outgoing VARCHAR)
SELECT MIN(crowd) FROM table_name_61 WHERE away_team = "north melbourne"
What is the smallest crowd with the away team of North Melbourne?
CREATE TABLE table_name_61 (crowd INTEGER, away_team VARCHAR)
SELECT championship_titles FROM table_19312274_3 WHERE name = "LRS Formula / Laurent Rédon Motorsport"
How many championship titles for LRS Formula / Laurent Rédon Motorsport?
CREATE TABLE table_19312274_3 (championship_titles VARCHAR, name VARCHAR)
SELECT date FROM table_name_98 WHERE home_team = "portland" AND game = "game 5"
On what date did Portland play game 5 at home?
CREATE TABLE table_name_98 (date VARCHAR, home_team VARCHAR, game VARCHAR)
SELECT date FROM table_name_73 WHERE venue = "exhibition stadium"
On what Date was the Venue at Exhibition Stadium?
CREATE TABLE table_name_73 (date VARCHAR, venue VARCHAR)
SELECT MAX(crowd) FROM table_name_46 WHERE home_team = "richmond"
What was Richmond's highest attendance?
CREATE TABLE table_name_46 (crowd INTEGER, home_team VARCHAR)
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "CVO" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "APG"
Find all airlines that have flights from airport 'CVO' but not from 'APG'.
CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR); CREATE TABLE FLIGHTS (Airline VARCHAR, SourceAirport VARCHAR)
SELECT MIN(age) FROM table_26263322_1 WHERE result = "Fired in week 8"
What is the age when the result is fired in week 8
CREATE TABLE table_26263322_1 (age INTEGER, result VARCHAR)
SELECT MAX(wins) FROM table_name_60 WHERE average > 73.02 AND year > 1999
What is the highest number of wins for years after 1999 with averages over 73.02?
CREATE TABLE table_name_60 (wins INTEGER, average VARCHAR, year VARCHAR)
SELECT score FROM table_18183850_12 WHERE opponent = "Dominika Cibulková"
What was the score when the opponent was Dominika Cibulková?
CREATE TABLE table_18183850_12 (score VARCHAR, opponent VARCHAR)
SELECT MAX(Points) FROM climber WHERE Country = "United Kingdom"
What is the maximum point for climbers whose country is United Kingdom?
CREATE TABLE climber (Points INTEGER, Country VARCHAR)
SELECT home_team FROM table_name_17 WHERE away_team = "frickley colliery"
what is the home team when the away team is frickley colliery?
CREATE TABLE table_name_17 (home_team VARCHAR, away_team VARCHAR)
SELECT AVG(horsepower) FROM cars_data WHERE year < 1980
What is the average horsepower for all cars produced before 1980 ?
CREATE TABLE cars_data (horsepower INTEGER, year INTEGER)
SELECT became_dauphine FROM table_name_72 WHERE birth = "1393"
When was became dauphine when birth is 1393?
CREATE TABLE table_name_72 (became_dauphine VARCHAR, birth VARCHAR)
SELECT capital FROM table_16278894_1 WHERE population_census_2009 = 730129
What capital's county had a population of 730129 as of 2009?
CREATE TABLE table_16278894_1 (capital VARCHAR, population_census_2009 VARCHAR)
SELECT MIN(gain) FROM table_name_40 WHERE long = 18 AND loss < 191
What is the lowest gain with an 18 long, and a loss less than 191?
CREATE TABLE table_name_40 (gain INTEGER, long VARCHAR, loss VARCHAR)
SELECT AVG(bedroom_count) FROM Apartments
What is the average number of bedrooms of all apartments?
CREATE TABLE Apartments (bedroom_count INTEGER)
SELECT chassis FROM table_name_25 WHERE rank = "3rd"
What is the chassis when the rank is 3rd?
CREATE TABLE table_name_25 (chassis VARCHAR, rank VARCHAR)
SELECT score FROM table_name_29 WHERE decision = "johnson"
Which score has a Decision of johnson?
CREATE TABLE table_name_29 (score VARCHAR, decision VARCHAR)
SELECT surface FROM table_name_42 WHERE date = "october 3, 2010"
What surface was played on on October 3, 2010?
CREATE TABLE table_name_42 (surface VARCHAR, date VARCHAR)
SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1
What is the horsepower of the car with the largest accelerate?
CREATE TABLE CARS_DATA (horsepower VARCHAR, accelerate VARCHAR)
SELECT week_3 FROM table_name_47 WHERE week_1 = "amanda batt"
Who is week 3 if week 1 is Amanda Batt?
CREATE TABLE table_name_47 (week_3 VARCHAR, week_1 VARCHAR)
SELECT density__hab_km²_ FROM table_name_11 WHERE city_district = "san sebastián"
What is the density of San Sebastián?
CREATE TABLE table_name_11 (density__hab_km²_ VARCHAR, city_district VARCHAR)
SELECT median_household_income FROM table_name_56 WHERE per_capita_income = "$21,585"
What is the median household income when the per capita is $21,585?
CREATE TABLE table_name_56 (median_household_income VARCHAR, per_capita_income VARCHAR)
SELECT directed_by FROM table_13301516_1 WHERE original_air_date = "January 15, 2008"
Who directed the episode that originally aired on January 15, 2008?
CREATE TABLE table_13301516_1 (directed_by VARCHAR, original_air_date VARCHAR)
SELECT distance FROM table_name_71 WHERE year = 1997
What was the distance in 1997?
CREATE TABLE table_name_71 (distance VARCHAR, year VARCHAR)
SELECT purse___$__ FROM table_1520559_1 WHERE winners_share__$_ = 428650
What purses had a winners share equal to $428650?
CREATE TABLE table_1520559_1 (purse___$__ VARCHAR, winners_share__$_ VARCHAR)
SELECT result FROM table_name_51 WHERE week < 15 AND date = "november 20, 1983"
What happened on November 20, 1983 before week 15?
CREATE TABLE table_name_51 (result VARCHAR, week VARCHAR, date VARCHAR)
SELECT MIN(population__2011_) FROM table_2328113_1
What was the minimum population in 2011?
CREATE TABLE table_2328113_1 (population__2011_ INTEGER)
SELECT date FROM table_name_25 WHERE record = "1-1"
What is Date, when Record is "1-1"?
CREATE TABLE table_name_25 (date VARCHAR, record VARCHAR)
SELECT COUNT(year) FROM table_name_84 WHERE nominee = "simon baker"
How many years does simon baker appear as a nominee?
CREATE TABLE table_name_84 (year VARCHAR, nominee VARCHAR)
SELECT function FROM table_18138132_2 WHERE release_date = "2011-06-23"
What functions were released on 2011-06-23?
CREATE TABLE table_18138132_2 (function VARCHAR, release_date VARCHAR)
SELECT AVG(drawn) FROM table_name_98 WHERE lost > 0 AND points < 11 AND games < 7
Which Drawn has a Lost larger than 0, and Points smaller than 11, and Games smaller than 7?
CREATE TABLE table_name_98 (drawn INTEGER, games VARCHAR, lost VARCHAR, points VARCHAR)
SELECT award FROM table_name_54 WHERE category = "teen pick show: comedy"
Which award show nominated The Suite Life on Deck for the Teen Pick Show: Comedy category?
CREATE TABLE table_name_54 (award VARCHAR, category VARCHAR)
SELECT outcome_code, COUNT(*) FROM mailshot_customers GROUP BY outcome_code
Show the outcome code of mailshots along with the number of mailshots in each outcome code.
CREATE TABLE mailshot_customers (outcome_code VARCHAR)
SELECT fcc_info FROM table_name_51 WHERE erp_w > 92 AND call_sign = "k264ba"
What is FCC info when ERP W is larger than 92 and call sign has k264ba?
CREATE TABLE table_name_51 (fcc_info VARCHAR, erp_w VARCHAR, call_sign VARCHAR)
SELECT MIN(population__2002_) FROM table_2562572_5 WHERE urban_settlement = "Ada"
Name the population for 2002 being ada
CREATE TABLE table_2562572_5 (population__2002_ INTEGER, urban_settlement VARCHAR)
SELECT MAX(crowd) FROM table_name_33 WHERE away_team = "geelong"
What is the highest crowd population when the away team is Geelong?
CREATE TABLE table_name_33 (crowd INTEGER, away_team VARCHAR)
SELECT week FROM table_name_87 WHERE record = "4-10"
Which week led to a record of 4-10?
CREATE TABLE table_name_87 (week VARCHAR, record VARCHAR)
SELECT place FROM table_name_46 WHERE to_par = "+3" AND score = 74 - 73 = 147
What is the Place when the To par was +3 and Score was 74-73=147?
CREATE TABLE table_name_46 (place VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT AVG(round) FROM table_name_7 WHERE time = "5:00" AND event = "hero's 9"
What is the average round of the match in the Hero's 9 event with a time of 5:00?
CREATE TABLE table_name_7 (round INTEGER, time VARCHAR, event VARCHAR)
SELECT meet FROM table_name_99 WHERE event = "flying 200 m time trial"
what is the meet when the event is flying 200 m time trial?
CREATE TABLE table_name_99 (meet VARCHAR, event VARCHAR)
SELECT AVG(scored) FROM table_name_30 WHERE draws < 6 AND team = "guaraní" AND losses < 5
What is the averaged scored number of team guaraní, which has less than 6 draws and less than 5 losses?
CREATE TABLE table_name_30 (scored INTEGER, losses VARCHAR, draws VARCHAR, team VARCHAR)
SELECT AVG(miles_)[one_way] FROM table_name_89 WHERE fans_took = "340"
What shows for miles [One Way] when the fans took 340?
CREATE TABLE table_name_89 (one_way VARCHAR, miles_ INTEGER, fans_took VARCHAR)
SELECT fencing_victories__pts_ FROM table_name_68 WHERE total = 5640
Which Fencing Victories (pts) has a Total of 5640?
CREATE TABLE table_name_68 (fencing_victories__pts_ VARCHAR, total VARCHAR)
SELECT surface FROM table_1918850_2 WHERE score_in_the_final = "6-2, 6-3"
what is the surface of the final which had score 6-2, 6-3
CREATE TABLE table_1918850_2 (surface VARCHAR, score_in_the_final VARCHAR)
SELECT shot_pct FROM table_name_96 WHERE skip = "madeleine dupont"
What is Madeleine Dupont's shot pct.?
CREATE TABLE table_name_96 (shot_pct VARCHAR, skip VARCHAR)
SELECT name FROM table_16799784_11 WHERE latitude = "10.0S"
Which name is at latitude 10.0s?
CREATE TABLE table_16799784_11 (name VARCHAR, latitude VARCHAR)
SELECT decision FROM table_27537518_6 WHERE date = "December 26"
Who made the decision in the game played on December 26?
CREATE TABLE table_27537518_6 (decision VARCHAR, date VARCHAR)
SELECT played FROM table_17510803_2 WHERE points_for = "362"
How many have been played for 362 points?
CREATE TABLE table_17510803_2 (played VARCHAR, points_for VARCHAR)
SELECT AVG(attendance) FROM table_name_71 WHERE result = "w 21–7"
What was the Attendance at the Game with a Result of w 21–7?
CREATE TABLE table_name_71 (attendance INTEGER, result VARCHAR)
SELECT attendance FROM table_name_97 WHERE tie_no = "5"
What is listed for the Attendance that has a Tie no of 5?
CREATE TABLE table_name_97 (attendance VARCHAR, tie_no VARCHAR)