answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT format FROM table_name_72 WHERE catalog = "vcrdx 106"
Which Format has a Catalog of vcrdx 106?
CREATE TABLE table_name_72 (format VARCHAR, catalog VARCHAR)
SELECT birthplace FROM table_name_71 WHERE real_name = "pete sanderson"
What is the birthplace of Pete Sanderson?
CREATE TABLE table_name_71 (birthplace VARCHAR, real_name VARCHAR)
SELECT kr_td FROM table_16912000_13 WHERE mfg_lg = 64
What is the kr td when mfg lg is 64?
CREATE TABLE table_16912000_13 (kr_td VARCHAR, mfg_lg VARCHAR)
SELECT COUNT(incumbent) FROM table_1341522_41 WHERE party = "Republican" AND first_elected = 1974
How many republican incumbents first elected in 1974?
CREATE TABLE table_1341522_41 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR)
SELECT home_team AS score FROM table_name_17 WHERE venue = "junction oval"
What was the home team's score at junction oval?
CREATE TABLE table_name_17 (home_team VARCHAR, venue VARCHAR)
SELECT successor FROM table_2417345_3 WHERE date_of_successors_formal_installation = "March 30, 1870"
Who was the successor that was formally installed on March 30, 1870?
CREATE TABLE table_2417345_3 (successor VARCHAR, date_of_successors_formal_installation VARCHAR)
SELECT shooter FROM table_name_36 WHERE rank_points = "olympic bronze medalist"
What was the shooter when the rank points was olympic bronze medalist?
CREATE TABLE table_name_36 (shooter VARCHAR, rank_points VARCHAR)
SELECT original_air_date FROM table_26825349_1 WHERE us_viewers__millions_ = "8.62"
The episode that had 8.62 million US viewers originally aired on which date?
CREATE TABLE table_26825349_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT team FROM table_name_68 WHERE manner_of_departure = "sacked" AND date_of_vacancy = "4 december"
I want to know the team that was sacked and date of vacancy was 4 december
CREATE TABLE table_name_68 (team VARCHAR, manner_of_departure VARCHAR, date_of_vacancy VARCHAR)
SELECT SUM(totaltk) FROM table_name_9 WHERE yards < 0
what is the sum of totaltk when yards is less than 0?
CREATE TABLE table_name_9 (totaltk INTEGER, yards INTEGER)
SELECT name FROM table_name_30 WHERE law_school_attended = "columbia law school" AND appointed = 2004
Who attended Columbia law school and was appointed in 2004?
CREATE TABLE table_name_30 (name VARCHAR, law_school_attended VARCHAR, appointed VARCHAR)
SELECT MIN(episode) FROM table_2140071_12 WHERE coach = "Donnie Klang"
Name the least episode for donnie klang
CREATE TABLE table_2140071_12 (episode INTEGER, coach VARCHAR)
SELECT rank FROM table_name_98 WHERE total_gdp__€_bn__ = "€11.243"
Which rank has a Total GDP (€ bn) of €11.243??
CREATE TABLE table_name_98 (rank VARCHAR, total_gdp__€_bn__ VARCHAR)
SELECT SUM(wins) FROM table_name_82 WHERE losses = 16 AND against < 3213
How many wins have 16 losses and an Against smaller than 3213?
CREATE TABLE table_name_82 (wins INTEGER, losses VARCHAR, against VARCHAR)
SELECT MIN(production_code) FROM table_14845640_1 WHERE us_viewers__millions_ = "16.04"
Namw the minimum production code for 16.04 million viewers
CREATE TABLE table_14845640_1 (production_code INTEGER, us_viewers__millions_ VARCHAR)
SELECT date FROM table_name_65 WHERE city_location = "vancouver, british columbia"
Which Date had a City/Location of vancouver, british columbia?
CREATE TABLE table_name_65 (date VARCHAR, city_location VARCHAR)
SELECT region FROM table_name_29 WHERE label = "warner music canada"
What is the Region of the Warner Music Canada Label release?
CREATE TABLE table_name_29 (region VARCHAR, label VARCHAR)
SELECT record FROM table_name_68 WHERE visitor = "atlanta"
Atlanta was a visitor on December 8, what was their record?
CREATE TABLE table_name_68 (record VARCHAR, visitor VARCHAR)
SELECT SUM(lane) FROM table_name_58 WHERE nationality = "iceland"
How many lanes have a Nationality of iceland?
CREATE TABLE table_name_58 (lane INTEGER, nationality VARCHAR)
SELECT aspect_ratio FROM table_272313_1 WHERE vertical = 480 AND pixel_aspect_ratio = "1:1"
What was the aspect ratio if the vertical pixel is 480 and pixel aspect ratio is 1:1?
CREATE TABLE table_272313_1 (aspect_ratio VARCHAR, vertical VARCHAR, pixel_aspect_ratio VARCHAR)
SELECT MAX(to_par) FROM table_name_35 WHERE score = 72 - 73 = 145
What is the highest To Par, when Score is "72-73=145"?
CREATE TABLE table_name_35 (to_par INTEGER, score VARCHAR)
SELECT result FROM table_14966537_1 WHERE date = "October 4, 1970"
What was the final score of the game on October 4, 1970?
CREATE TABLE table_14966537_1 (result VARCHAR, date VARCHAR)
SELECT player FROM table_name_68 WHERE score = 71 - 69 - 71 = 211
What player scored 71-69-71=211?
CREATE TABLE table_name_68 (player VARCHAR, score VARCHAR)
SELECT SUM(appeared) FROM table_name_87 WHERE rr_w_rate < 0.33 AND player = "angelique kerber"
For Angelique Kerber who had an RR Rate of less than 0.33, what's the appeared?
CREATE TABLE table_name_87 (appeared INTEGER, rr_w_rate VARCHAR, player VARCHAR)
SELECT COUNT(population) FROM table_name_59 WHERE median_family_income = "$71,278"
What is the population of the area with a median family income of $71,278?
CREATE TABLE table_name_59 (population VARCHAR, median_family_income VARCHAR)
SELECT money___$__ FROM table_name_58 WHERE player = "ben crenshaw"
How much money did Ben Crenshaw earn?
CREATE TABLE table_name_58 (money___$__ VARCHAR, player VARCHAR)
SELECT MAX(pick__number) FROM table_name_36 WHERE cfl_team = "toronto argonauts"
What is the highest pick number of the CFL's Toronto Argonauts?
CREATE TABLE table_name_36 (pick__number INTEGER, cfl_team VARCHAR)
SELECT SUM(season) FROM table_name_31 WHERE team_1 = "bangkok university" AND score = "0-0" AND team_2 = "chunnam dragons"
What year did Bangkok University and Chunnam Dragons have a score of 0-0?
CREATE TABLE table_name_31 (season INTEGER, team_2 VARCHAR, team_1 VARCHAR, score VARCHAR)
SELECT driver FROM table_name_67 WHERE laps > 39 AND grid = 15
What driver has more than 39 laps on gird 15?
CREATE TABLE table_name_67 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT COUNT(team) FROM table_19905183_1 WHERE head_coach = "Waqar Younis"
In how many teams is Waqar Younis the head coach?
CREATE TABLE table_19905183_1 (team VARCHAR, head_coach VARCHAR)
SELECT COUNT(direction) FROM table_197286_4 WHERE further_cities = "Debrecen"
Name the number of direction for debrecen
CREATE TABLE table_197286_4 (direction VARCHAR, further_cities VARCHAR)
SELECT player FROM table_name_13 WHERE score > 70 AND to_par = "+1"
Who has more than 70 score with +1 to par?
CREATE TABLE table_name_13 (player VARCHAR, score VARCHAR, to_par VARCHAR)
SELECT original_air_date FROM table_26961951_6 WHERE written_by = "Abe Sylvia"
When did the episode written by Abe Sylvia originally air?
CREATE TABLE table_26961951_6 (original_air_date VARCHAR, written_by VARCHAR)
SELECT gtc_winning_team FROM table_24037660_2 WHERE lmp_winning_team = "#8 Drayson Racing"
What was the gtc winning team when lmp winning team was #8 drayson racing?
CREATE TABLE table_24037660_2 (gtc_winning_team VARCHAR, lmp_winning_team VARCHAR)
SELECT written_by FROM table_17355820_1 WHERE directed_by = "Nelson McCormick"
Which episodes did Nelson McCormick direct?
CREATE TABLE table_17355820_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT chassis FROM table_name_8 WHERE points = 8
What company made the chassis when there were 8 points?
CREATE TABLE table_name_8 (chassis VARCHAR, points VARCHAR)
SELECT cache FROM table_name_59 WHERE capacity = "600 gb"
What is the Cache with a Capacity that is 600 gb?
CREATE TABLE table_name_59 (cache VARCHAR, capacity VARCHAR)
SELECT iata FROM table_name_14 WHERE icao = "slk"
Which IATA has a ICAO of slk?
CREATE TABLE table_name_14 (iata VARCHAR, icao VARCHAR)
SELECT MAX(wins) FROM table_26222468_1
What is the maximum number of wins?
CREATE TABLE table_26222468_1 (wins INTEGER)
SELECT marriage FROM table_name_68 WHERE became_duchess = "12 december 1666"
Which Marriage has a Became Duchess of 12 december 1666?
CREATE TABLE table_name_68 (marriage VARCHAR, became_duchess VARCHAR)
SELECT * FROM employees WHERE hire_date < '2002-06-21'
display all the details from Employees table for those employees who was hired before 2002-06-21.
CREATE TABLE employees (hire_date INTEGER)
SELECT AVG(attendance) FROM table_name_14 WHERE date = "june 24"
What is the average attendance that has june 24 as the date?
CREATE TABLE table_name_14 (attendance INTEGER, date VARCHAR)
SELECT player FROM table_name_72 WHERE college = "texas southern"
Who was the player from texas southern?
CREATE TABLE table_name_72 (player VARCHAR, college VARCHAR)
SELECT owner FROM table_name_86 WHERE time = "2:02.20" AND year = "1957"
Which owner has the time of 2:02.20 and the year of 1957?
CREATE TABLE table_name_86 (owner VARCHAR, time VARCHAR, year VARCHAR)
SELECT COUNT(drawn) FROM table_name_95 WHERE goals_against = 81 AND lost > 23
How much Drawn has Goals Against of 81, and a Lost larger than 23?
CREATE TABLE table_name_95 (drawn VARCHAR, goals_against VARCHAR, lost VARCHAR)
SELECT player FROM table_28461589_2 WHERE passes = 223
Which player made exactly 223 passes?
CREATE TABLE table_28461589_2 (player VARCHAR, passes VARCHAR)
SELECT rounds FROM table_name_77 WHERE team = "walther"
Which rounds did the team Walther participate in?
CREATE TABLE table_name_77 (rounds VARCHAR, team VARCHAR)
SELECT date FROM table_name_90 WHERE result = "5–0" AND opponent = "tooting & mitcham"
Which date has a Result of 5–0, and an Opponent of tooting & mitcham?
CREATE TABLE table_name_90 (date VARCHAR, result VARCHAR, opponent VARCHAR)
SELECT extra FROM table_name_14 WHERE tournament = "olympic games"
Tell me the extra for tournament of olympic games
CREATE TABLE table_name_14 (extra VARCHAR, tournament VARCHAR)
SELECT 1976 FROM table_name_35 WHERE tournament = "australian open"
What is the 1976 value of the Australian Open?
CREATE TABLE table_name_35 (tournament VARCHAR)
SELECT outcome FROM table_name_12 WHERE event = "singles" AND venue = "london, england"
What is the Outcome of the Singles Event in London, England?
CREATE TABLE table_name_12 (outcome VARCHAR, event VARCHAR, venue VARCHAR)
SELECT strain FROM table_name_50 WHERE genes = "1,312"
Which strain has 1,312 genes?
CREATE TABLE table_name_50 (strain VARCHAR, genes VARCHAR)
SELECT date_became_customer FROM customers WHERE customer_id BETWEEN 10 AND 20
Find the "date became customers" of the customers whose ID is between 10 and 20.
CREATE TABLE customers (date_became_customer VARCHAR, customer_id INTEGER)
SELECT location FROM table_name_90 WHERE score = "2:3"
What was the location of the game with a score of 2:3?
CREATE TABLE table_name_90 (location VARCHAR, score VARCHAR)
SELECT MAX(losses) FROM table_name_59 WHERE position < 6 AND wins > 11 AND points = 36 AND played > 30
What was the highest number of losses for a position less than 6, with more than 11 wins and 36 points, with a played entry of more than 30?
CREATE TABLE table_name_59 (losses INTEGER, played VARCHAR, points VARCHAR, position VARCHAR, wins VARCHAR)
SELECT SUM(pick__number) FROM table_name_87 WHERE position = "ol"
What is the total number of picks for the position of OL?
CREATE TABLE table_name_87 (pick__number INTEGER, position VARCHAR)
SELECT 3 AS rd_day FROM table_1340667_3 WHERE finish_position = "16th"
what's the 3rd day with finbeingh position being 16th
CREATE TABLE table_1340667_3 (finish_position VARCHAR)
SELECT defending_forces FROM table_name_41 WHERE population = "120"
What is the Defending forces when the population was 120?
CREATE TABLE table_name_41 (defending_forces VARCHAR, population VARCHAR)
SELECT MIN(bronze) FROM table_name_72 WHERE silver = "13"
What is the lowest bronze total that has a silver total of 13 medals?
CREATE TABLE table_name_72 (bronze INTEGER, silver VARCHAR)
SELECT series_ep FROM table_name_55 WHERE netflix = "s03e16"
Which series episode has a Netflix episode of S03E16?
CREATE TABLE table_name_55 (series_ep VARCHAR, netflix VARCHAR)
SELECT COUNT(gdp_per_capita) FROM table_2248991_2 WHERE nation = "Burkina Faso"
How many items are listed under gdp per capita under the nation of Burkina Faso?
CREATE TABLE table_2248991_2 (gdp_per_capita VARCHAR, nation VARCHAR)
SELECT COUNT(park) FROM table_2665085_1 WHERE name = "Zippin Pippin"
How many parks is Zippin Pippin located in
CREATE TABLE table_2665085_1 (park VARCHAR, name VARCHAR)
SELECT fastest_lap FROM table_18303274_1 WHERE grand_prix = "Dutch TT"
Who had the fastest lap in the Dutch TT Grand Prix?
CREATE TABLE table_18303274_1 (fastest_lap VARCHAR, grand_prix VARCHAR)
SELECT result FROM table_name_59 WHERE competition = "1948 og"
What was the result of the 1948 og competition?
CREATE TABLE table_name_59 (result VARCHAR, competition VARCHAR)
SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name
Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.
CREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course VARCHAR, Course_ID VARCHAR)
SELECT COUNT(seat) FROM table_name_13 WHERE series_4 = "gavin duffy"
What is the total number of seats with gavin duffy in series 4?
CREATE TABLE table_name_13 (seat VARCHAR, series_4 VARCHAR)
SELECT finish FROM table_name_37 WHERE year = "1937"
In 1937, what was the finish?
CREATE TABLE table_name_37 (finish VARCHAR, year VARCHAR)
SELECT laps FROM table_name_3 WHERE time_retired = "+ 4 laps" AND driver = "graham hill"
How many laps have a Time/Retired of + 4 laps, and a Driver of graham hill?
CREATE TABLE table_name_3 (laps VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT 2005 FROM table_name_48 WHERE 2011 = "q2" AND 2012 = "q1" AND 2003 = "1r"
What is the 2005 value with a q2 in 2011, a q1 in 2012, and 1r in 2003?
CREATE TABLE table_name_48 (Id VARCHAR)
SELECT AVG(round) FROM table_name_37 WHERE winner = "rafael cavalcante"
What is the average number of rounds for winner Rafael Cavalcante?
CREATE TABLE table_name_37 (round INTEGER, winner VARCHAR)
SELECT engine_s_ FROM table_name_44 WHERE points = 0 AND year = 1988
Which engine received 0 points in 1988?
CREATE TABLE table_name_44 (engine_s_ VARCHAR, points VARCHAR, year VARCHAR)
SELECT MAX(round) FROM table_name_97 WHERE position = "cornerback"
Which cornerback has the highest round?
CREATE TABLE table_name_97 (round INTEGER, position VARCHAR)
SELECT august_21_22 FROM table_25287007_2 WHERE january_15_16 = "141"
How many solar eclipse during august 21-22 and January 15-16 is 141?
CREATE TABLE table_25287007_2 (august_21_22 VARCHAR, january_15_16 VARCHAR)
SELECT opponent FROM table_name_79 WHERE date = "august 6"
Name the opponent for august 6
CREATE TABLE table_name_79 (opponent VARCHAR, date VARCHAR)
SELECT meet FROM table_name_92 WHERE time = "2:15.93"
I want to meet that has a time 2:15.93
CREATE TABLE table_name_92 (meet VARCHAR, time VARCHAR)
SELECT venue FROM table_name_66 WHERE country = "england" AND champion = "alison nicholas"
Which Venue has a Country of england, and a Champion of alison nicholas?
CREATE TABLE table_name_66 (venue VARCHAR, country VARCHAR, champion VARCHAR)
SELECT run_4 FROM table_name_53 WHERE run_3 = "1:26.63"
Which Run 4 has a Run 3 of 1:26.63?
CREATE TABLE table_name_53 (run_4 VARCHAR, run_3 VARCHAR)
SELECT COUNT(gold) FROM table_name_79 WHERE bronze = 3 AND rank > 7 AND total < 5
How many golds for teams ranking below 7 with 3 bronze and less than 5 total medals?
CREATE TABLE table_name_79 (gold VARCHAR, total VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT COUNT(attendance) FROM table_name_50 WHERE home = "detroit" AND decision = "hasek"
What is the total attendance for Detroit on hasek?
CREATE TABLE table_name_50 (attendance VARCHAR, home VARCHAR, decision VARCHAR)
SELECT helium FROM table_name_54 WHERE argon = "−189.6"
which Helium has a Argon of −189.6?
CREATE TABLE table_name_54 (helium VARCHAR, argon VARCHAR)
SELECT quantity_made FROM table_name_36 WHERE quantity_preserved = "0" AND class = "e-22"
What is the quantity made of the e-22 class, which has a quantity preserved of 0?
CREATE TABLE table_name_36 (quantity_made VARCHAR, quantity_preserved VARCHAR, class VARCHAR)
SELECT partner FROM table_name_46 WHERE opponents_in_the_final = "františek čermák michal mertiňák"
Name the partner for opponents of františek čermák michal mertiňák
CREATE TABLE table_name_46 (partner VARCHAR, opponents_in_the_final VARCHAR)
SELECT COUNT(*) FROM Staff WHERE first_name = "Ludie"
How many staff have the first name Ludie?
CREATE TABLE Staff (first_name VARCHAR)
SELECT episode__number FROM table_name_23 WHERE original_airdate = "april 5, 1998"
What is the episode # of the episode that aired on April 5, 1998?
CREATE TABLE table_name_23 (episode__number VARCHAR, original_airdate VARCHAR)
SELECT time_retired FROM table_name_48 WHERE grid = 7
What is the time of the driver on grid 7?
CREATE TABLE table_name_48 (time_retired VARCHAR, grid VARCHAR)
SELECT place FROM table_name_28 WHERE score = 68 - 75 - 68 = 211
What was the place when the score was 68-75-68=211?
CREATE TABLE table_name_28 (place VARCHAR, score VARCHAR)
SELECT COUNT(intro_date) FROM table_29778616_1 WHERE price = "686€"
How many intro dates have the price of 686€?
CREATE TABLE table_29778616_1 (intro_date VARCHAR, price VARCHAR)
SELECT score FROM table_name_19 WHERE opponent = "@ athletics" AND record = "76-57"
Which score has an Opponent of @ athletics, and a Record of 76-57?
CREATE TABLE table_name_19 (score VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT government FROM table_name_56 WHERE seats = 57
Which Government has 57 seats?
CREATE TABLE table_name_56 (government VARCHAR, seats VARCHAR)
SELECT finish FROM table_name_80 WHERE total = 282
What was the finish of the player who had a total of 282?
CREATE TABLE table_name_80 (finish VARCHAR, total VARCHAR)
SELECT height_in_ft FROM table_name_78 WHERE years_for_rockets = "2005-06"
What is the Height for Years for Rockets of 2005-06?
CREATE TABLE table_name_78 (height_in_ft VARCHAR, years_for_rockets VARCHAR)
SELECT MAX(cpc_blend_kazakhstan) FROM table_name_48 WHERE barrow_island_australia < 12
What is the highest CPC blend Kazakhstan number when Barrow Island Australia is smaller than 12?
CREATE TABLE table_name_48 (cpc_blend_kazakhstan INTEGER, barrow_island_australia INTEGER)
SELECT MAX(Transit_Passengers), MIN(Transit_Passengers) FROM airport
What are the maximum and minimum number of transit passengers of all aiports.
CREATE TABLE airport (Transit_Passengers INTEGER)
SELECT MAX(founded) FROM table_27599216_6 WHERE football_stadium = "McMahon Stadium"
What year was mcmahon stadium founded?
CREATE TABLE table_27599216_6 (founded INTEGER, football_stadium VARCHAR)
SELECT channel FROM table_name_10 WHERE aspect = "4:3" AND programming = "me-tv"
Which Channel has an Aspect of 4:3 and a Programming of me-tv?
CREATE TABLE table_name_10 (channel VARCHAR, aspect VARCHAR, programming VARCHAR)
SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Appropriations" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Economic Matters"
What are the names of parties that have both delegates on "Appropriations" committee and
CREATE TABLE election (Party VARCHAR, Committee VARCHAR); CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR)
SELECT score FROM table_name_61 WHERE result = "3-2"
What is the score of the match with a 3-2 result?
CREATE TABLE table_name_61 (score VARCHAR, result VARCHAR)
SELECT MIN(position) FROM table_name_70 WHERE name = "ehc straubing ii" AND played < 10
What was the lowest postion of ehc straubing ii when they played less than 10 games?
CREATE TABLE table_name_70 (position INTEGER, name VARCHAR, played VARCHAR)
SELECT country FROM table_name_6 WHERE score = 73 - 73 - 65 = 211
What country did the player who scored 73-73-65=211 come from?
CREATE TABLE table_name_6 (country VARCHAR, score VARCHAR)
SELECT COUNT(quantity) FROM table_name_68 WHERE manufacturer = "fokker" AND retired > 1999
How many in the quantity section had Fokker as a manufacturer and retired later than 1999?
CREATE TABLE table_name_68 (quantity VARCHAR, manufacturer VARCHAR, retired VARCHAR)