question
stringlengths
12
243
answer
stringlengths
18
557
context
stringlengths
27
489
What nation did the speed skater that set a record in the 1000 metres event represent?
SELECT nation FROM table_name_23 WHERE event = "1000 metres"
CREATE TABLE table_name_23 (nation VARCHAR, event VARCHAR)
What was the pick number for the WR position?
SELECT pick__number FROM table_name_59 WHERE position = "wr"
CREATE TABLE table_name_59 (pick__number VARCHAR, position VARCHAR)
What was the category in 2008?
SELECT category FROM table_name_72 WHERE year = 2008
CREATE TABLE table_name_72 (category VARCHAR, year VARCHAR)
What is the name of the player picked before round 2?
SELECT player FROM table_name_75 WHERE round < 2
CREATE TABLE table_name_75 (player VARCHAR, round INTEGER)
Find the name of the shops that do not hire any employee.
SELECT name FROM shop WHERE NOT shop_id IN (SELECT shop_id FROM hiring)
CREATE TABLE shop (name VARCHAR, shop_id VARCHAR); CREATE TABLE hiring (name VARCHAR, shop_id VARCHAR)
Which Country has a Score of 69-66=135?
SELECT country FROM table_name_76 WHERE score = 69 - 66 = 135
CREATE TABLE table_name_76 (country VARCHAR, score VARCHAR)
what is the address of history department?
SELECT dept_address FROM department WHERE dept_name = 'History'
CREATE TABLE department (dept_address VARCHAR, dept_name VARCHAR)
Which school has yes for soccer, tennis and indoor track.
SELECT school FROM table_name_73 WHERE soccer = "yes" AND tennis = "yes" AND indoor_track = "yes"
CREATE TABLE table_name_73 (school VARCHAR, indoor_track VARCHAR, soccer VARCHAR, tennis VARCHAR)
What was the record on September 26?
SELECT record FROM table_name_79 WHERE date = "september 26"
CREATE TABLE table_name_79 (record VARCHAR, date VARCHAR)
Who was Choong Tan Fook's opponent in 1999?
SELECT opponent FROM table_name_42 WHERE year = 1999 AND partner = "choong tan fook"
CREATE TABLE table_name_42 (opponent VARCHAR, year VARCHAR, partner VARCHAR)
What is the position when lost is less than 7?
SELECT AVG(position) FROM table_name_60 WHERE lost < 7
CREATE TABLE table_name_60 (position INTEGER, lost INTEGER)
Which Draws have a Position of 16, and less than 58 Goals against?
SELECT MIN(draws) FROM table_name_63 WHERE position = 16 AND goals_against < 58
CREATE TABLE table_name_63 (draws INTEGER, position VARCHAR, goals_against VARCHAR)
Where was the game played on 30 May 2004?
SELECT venue FROM table_name_6 WHERE date = "30 may 2004"
CREATE TABLE table_name_6 (venue VARCHAR, date VARCHAR)
What is the Team for the Milford School?
SELECT team FROM table_name_68 WHERE school = "milford"
CREATE TABLE table_name_68 (team VARCHAR, school VARCHAR)
List the grape, appelation and name of wines whose score is higher than 93 ordered by Name.
SELECT Grape, Appelation, Name FROM WINE WHERE Score > 93 ORDER BY Name
CREATE TABLE WINE (Grape VARCHAR, Appelation VARCHAR, Name VARCHAR, Score INTEGER)
How many total gold are less than 4?
SELECT COUNT(gold) FROM table_name_14 WHERE total < 4
CREATE TABLE table_name_14 (gold VARCHAR, total INTEGER)
Show all donor names.
SELECT DISTINCT donator_name FROM endowment
CREATE TABLE endowment (donator_name VARCHAR)
What date did the red wings play against the visitors, buffalo?
SELECT date FROM table_name_62 WHERE visitor = "buffalo"
CREATE TABLE table_name_62 (date VARCHAR, visitor VARCHAR)
What is the maximum rank when there is 0 gold, and the bronze is less than 4, and the silver is greater than 1, and 2 as the total?
SELECT MAX(rank) FROM table_name_76 WHERE gold = 0 AND bronze < 4 AND total = 2 AND silver > 1
CREATE TABLE table_name_76 (rank INTEGER, silver VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR)
How many wins for team with 1800 Against and more than 0 byes?
SELECT MAX(wins) FROM table_name_64 WHERE against = 1800 AND draws > 0
CREATE TABLE table_name_64 (wins INTEGER, against VARCHAR, draws VARCHAR)
Which network has a play-by-play announcer of John Wells?
SELECT network FROM table_name_36 WHERE play_by_play = "john wells"
CREATE TABLE table_name_36 (network VARCHAR, play_by_play VARCHAR)
What is the minimum pick that drafted Pat Shires, with a round greater than 29 and an overall greater than 328?
SELECT MIN(pick) FROM table_name_87 WHERE overall > 328 AND name = "pat shires" AND round > 29
CREATE TABLE table_name_87 (pick INTEGER, round VARCHAR, overall VARCHAR, name VARCHAR)
How many times did episode 1.8 air?
SELECT COUNT(original_airdate) FROM table_14937957_1 WHERE episode__number = "1.8"
CREATE TABLE table_14937957_1 (original_airdate VARCHAR, episode__number VARCHAR)
What percentage did Obama get when McCain got 52.8%?
SELECT obama_percentage FROM table_20799905_1 WHERE mccain_percentage = "52.8%"
CREATE TABLE table_20799905_1 (obama_percentage VARCHAR, mccain_percentage VARCHAR)
Which season received 10.2 million viewers?
SELECT COUNT(tv_season) FROM table_217785_2 WHERE viewers__in_millions_of_households_ = "10.2"
CREATE TABLE table_217785_2 (tv_season VARCHAR, viewers__in_millions_of_households_ VARCHAR)
When was the person(s) who were canonised before 1988 beatified?
SELECT beatified FROM table_name_17 WHERE canonised < 1988
CREATE TABLE table_name_17 (beatified VARCHAR, canonised INTEGER)
What is the date of game 9?
SELECT date FROM table_name_61 WHERE game = 9
CREATE TABLE table_name_61 (date VARCHAR, game VARCHAR)
What is the River Mile with a RDB lock side and a pool length of 55.4?
SELECT river_mile FROM table_name_32 WHERE lock_side = "rdb" AND pool_length__miles_ = "55.4"
CREATE TABLE table_name_32 (river_mile VARCHAR, lock_side VARCHAR, pool_length__miles_ VARCHAR)
What is the highest round in which a player was picked for the Center position?
SELECT MAX(round) FROM table_name_24 WHERE position = "center"
CREATE TABLE table_name_24 (round INTEGER, position VARCHAR)
Who lost with a time of 0:58?
SELECT loser FROM table_name_44 WHERE time = "0:58"
CREATE TABLE table_name_44 (loser VARCHAR, time VARCHAR)
In what district was incumbent first elected in 1938?
SELECT district FROM table_1342013_42 WHERE first_elected = 1938
CREATE TABLE table_1342013_42 (district VARCHAR, first_elected VARCHAR)
Which Season originally aired on September 17, 1955
SELECT season__number FROM table_15824796_4 WHERE original_air_date = "September 17, 1955"
CREATE TABLE table_15824796_4 (season__number VARCHAR, original_air_date VARCHAR)
How many gold medals has the club with the most coaches won?
SELECT T1.club_id, T1.gold FROM match_result AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE match_result (club_id VARCHAR, gold VARCHAR); CREATE TABLE coach (club_id VARCHAR)
What is listed for the Week 9 Oct 20 that has a Week 17 (Final) Jan 4 of Michigan (10-3)?
SELECT week_9_oct_20 FROM table_name_99 WHERE week_17__final__jan_4 = "michigan (10-3)"
CREATE TABLE table_name_99 (week_9_oct_20 VARCHAR, week_17__final__jan_4 VARCHAR)
What's the airing date of Armed Reaction 陀槍師姐 with 20 episodes in the Modern Action genre having an official website?
SELECT airing_date FROM table_name_50 WHERE official_website = "official website" AND number_of_episodes = 20 AND genre = "modern action" AND english_title__chinese_title_ = "armed reaction 陀槍師姐"
CREATE TABLE table_name_50 (airing_date VARCHAR, english_title__chinese_title_ VARCHAR, genre VARCHAR, official_website VARCHAR, number_of_episodes VARCHAR)
What is the name of the airport located in Russia with an IATA of AER?
SELECT airport FROM table_name_34 WHERE country = "russia" AND iata = "aer"
CREATE TABLE table_name_34 (airport VARCHAR, country VARCHAR, iata VARCHAR)
Name the date for circuit of interlagos
SELECT date FROM table_name_50 WHERE circuit = "interlagos"
CREATE TABLE table_name_50 (date VARCHAR, circuit VARCHAR)
Name the realization for phoneme of /i/ and example of /idːa/
SELECT realization FROM table_name_5 WHERE phoneme = "/i/" AND example = "/idːa/"
CREATE TABLE table_name_5 (realization VARCHAR, phoneme VARCHAR, example VARCHAR)
What is the average number of top-25s for events with less than 2 top-10s?
SELECT AVG(top_25) FROM table_name_93 WHERE top_10 < 2
CREATE TABLE table_name_93 (top_25 INTEGER, top_10 INTEGER)
what's the introduced where notes is 9 withdrawn in 1946 after fire
SELECT introduced FROM table_1181375_1 WHERE notes = "9 withdrawn in 1946 after fire"
CREATE TABLE table_1181375_1 (introduced VARCHAR, notes VARCHAR)
How many games were recorded when the team was @ Memphis?
SELECT COUNT(game) FROM table_17326036_6 WHERE team = "@ Memphis"
CREATE TABLE table_17326036_6 (game VARCHAR, team VARCHAR)
What is the content of the television service ewtn in the United Kingdom?
SELECT content FROM table_name_94 WHERE country = "united kingdom" AND television_service = "ewtn"
CREATE TABLE table_name_94 (content VARCHAR, country VARCHAR, television_service VARCHAR)
What is the minimum of 25 to 29?
SELECT MIN(25 AS _to_29) FROM table_16457934_5
CREATE TABLE table_16457934_5 (Id VARCHAR)
Which tribunal had a total of 4167?
SELECT tribunal FROM table_name_34 WHERE total = "4167"
CREATE TABLE table_name_34 (tribunal VARCHAR, total VARCHAR)
What is the customer first, last name and id with least number of accounts.
SELECT T2.customer_first_name, T2.customer_last_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) LIMIT 1
CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)
Show the id, the date of account opened, the account name, and other account detail for all accounts.
SELECT account_id, date_account_opened, account_name, other_account_details FROM Accounts
CREATE TABLE Accounts (account_id VARCHAR, date_account_opened VARCHAR, account_name VARCHAR, other_account_details VARCHAR)
What is the earliest game with a position of Re and a smaller number than 95?
SELECT MIN(games) AS ↑ FROM table_name_2 WHERE position = "re" AND number < 95
CREATE TABLE table_name_2 (games INTEGER, position VARCHAR, number VARCHAR)
Name the polyunsaturated fat with total fat of 100g and saturated fat of 7g
SELECT polyunsaturated_fat FROM table_name_39 WHERE total_fat = "100g" AND saturated_fat = "7g"
CREATE TABLE table_name_39 (polyunsaturated_fat VARCHAR, total_fat VARCHAR, saturated_fat VARCHAR)
What was the team they played when the series was 2-1?
SELECT team FROM table_name_76 WHERE series = "2-1"
CREATE TABLE table_name_76 (team VARCHAR, series VARCHAR)
Who was the opponent when the record was 31-24?
SELECT opponent FROM table_name_40 WHERE record = "31-24"
CREATE TABLE table_name_40 (opponent VARCHAR, record VARCHAR)
How many goals against have 64 for games, a loss less than 12, with points greater than 107?
SELECT SUM(goals_against) FROM table_name_37 WHERE games = 64 AND lost < 12 AND points > 107
CREATE TABLE table_name_37 (goals_against INTEGER, points VARCHAR, games VARCHAR, lost VARCHAR)
Which college is aligned to the Saskatchewan Roughriders?
SELECT college FROM table_10812938_4 WHERE cfl_team = "Saskatchewan Roughriders"
CREATE TABLE table_10812938_4 (college VARCHAR, cfl_team VARCHAR)
Which Year has a Competition of european indoor championships, and a Venue of budapest , hungary?
SELECT SUM(year) FROM table_name_80 WHERE competition = "european indoor championships" AND venue = "budapest , hungary"
CREATE TABLE table_name_80 (year INTEGER, competition VARCHAR, venue VARCHAR)
What is the average Total Freshwater Withdrawal (km 3 /yr), when Industrial Use (m 3 /p/yr)(in %) is 337(63%), and when Per Capita Withdrawal (m 3 /p/yr) is greater than 535?
SELECT AVG(total_freshwater_withdrawal__km_3__yr_) FROM table_name_5 WHERE industrial_use__m_3__p_yr__in__percentage_ = "337(63%)" AND per_capita_withdrawal__m_3__p_yr_ > 535
CREATE TABLE table_name_5 (total_freshwater_withdrawal__km_3__yr_ INTEGER, industrial_use__m_3__p_yr__in__percentage_ VARCHAR, per_capita_withdrawal__m_3__p_yr_ VARCHAR)
Which Week has a Result of w 20-13?
SELECT AVG(week) FROM table_name_20 WHERE result = "w 20-13"
CREATE TABLE table_name_20 (week INTEGER, result VARCHAR)
What was the greatest Took Office dates that Left Office in 1998?
SELECT MAX(took_office) FROM table_name_22 WHERE left_office = "1998"
CREATE TABLE table_name_22 (took_office INTEGER, left_office VARCHAR)
Which venue has 2:04.22 notes?
SELECT venue FROM table_name_19 WHERE notes = "2:04.22"
CREATE TABLE table_name_19 (venue VARCHAR, notes VARCHAR)
What is the average attendnace for seasons before 1986, a margin of 6, and a Score of 13.16 (94) – 13.10 (88)?
SELECT AVG(attendance) FROM table_name_10 WHERE season < 1986 AND margin = 6 AND score = "13.16 (94) – 13.10 (88)"
CREATE TABLE table_name_10 (attendance INTEGER, score VARCHAR, season VARCHAR, margin VARCHAR)
What was the score for the golfer from the country of fiji?
SELECT COUNT(score) FROM table_name_88 WHERE country = "fiji"
CREATE TABLE table_name_88 (score VARCHAR, country VARCHAR)
Which awards happened more recently than 2005?
SELECT awards FROM table_name_33 WHERE year > 2005
CREATE TABLE table_name_33 (awards VARCHAR, year INTEGER)
Which city is Lawrenceburg school, with an IHSAA football class of aaa and less than 676 enrollments, located in?
SELECT city FROM table_name_84 WHERE ihsaa_football_class = "aaa" AND enrollment < 676 AND school = "lawrenceburg"
CREATE TABLE table_name_84 (city VARCHAR, school VARCHAR, ihsaa_football_class VARCHAR, enrollment VARCHAR)
Where was the match with a method of submission (standing guillotine choke)?
SELECT location FROM table_name_92 WHERE method = "submission (standing guillotine choke)"
CREATE TABLE table_name_92 (location VARCHAR, method VARCHAR)
What rowers have FA as the notes?
SELECT rowers FROM table_name_41 WHERE notes = "fa"
CREATE TABLE table_name_41 (rowers VARCHAR, notes VARCHAR)
What is the losing bonus for the team that has 33 tries against and 5 lost?
SELECT losing_bonus FROM table_name_35 WHERE tries_against = "33" AND lost = "5"
CREATE TABLE table_name_35 (losing_bonus VARCHAR, tries_against VARCHAR, lost VARCHAR)
What was the record when the method of resolution was KO?
SELECT record FROM table_name_16 WHERE method = "ko"
CREATE TABLE table_name_16 (record VARCHAR, method VARCHAR)
Which fuel system has a displacement of 1490cc?
SELECT fuel_system FROM table_name_68 WHERE displacement = "1490cc"
CREATE TABLE table_name_68 (fuel_system VARCHAR, displacement VARCHAR)
What is the total for Canada during round 2?
SELECT overall FROM table_name_12 WHERE nationality = "canada" AND round = 2
CREATE TABLE table_name_12 (overall VARCHAR, nationality VARCHAR, round VARCHAR)
Can you tell me the Record that has the Score of 100-105?
SELECT record FROM table_name_99 WHERE score = "100-105"
CREATE TABLE table_name_99 (record VARCHAR, score VARCHAR)
What is the high point total associated with a difference of 1 and 0 draws?
SELECT MAX(points) FROM table_name_88 WHERE difference = "1" AND drawn = 0
CREATE TABLE table_name_88 (points INTEGER, difference VARCHAR, drawn VARCHAR)
what is the name of the role that has co-protagonist in the notes field and the years of 2008-2009?
SELECT role FROM table_name_8 WHERE notes = "co-protagonist" AND year = "2008-2009"
CREATE TABLE table_name_8 (role VARCHAR, notes VARCHAR, year VARCHAR)
How many households are in Ottawa?
SELECT SUM(number_of_households) FROM table_name_58 WHERE county = "ottawa"
CREATE TABLE table_name_58 (number_of_households INTEGER, county VARCHAR)
In what Round was Tommy Norman picked?
SELECT MAX(round) FROM table_name_19 WHERE player = "tommy norman"
CREATE TABLE table_name_19 (round INTEGER, player VARCHAR)
What is the Magnitude on the Date May 28, 2004?
SELECT magnitude FROM table_name_49 WHERE date = "may 28, 2004"
CREATE TABLE table_name_49 (magnitude VARCHAR, date VARCHAR)
How many Points have a Rank of 17th, and Wins larger than 0?
SELECT COUNT(points) FROM table_name_29 WHERE rank = "17th" AND wins > 0
CREATE TABLE table_name_29 (points VARCHAR, rank VARCHAR, wins VARCHAR)
What was the largest ethnic group in 2002 of the settlement with the cyrillic name of ватин?
SELECT largest_ethnic_group__2002_ FROM table_2562572_46 WHERE cyrillic_name_other_names = "Ватин"
CREATE TABLE table_2562572_46 (largest_ethnic_group__2002_ VARCHAR, cyrillic_name_other_names VARCHAR)
What is the lowest ERP W of w223bp?
SELECT MIN(erp_w) FROM table_name_6 WHERE call_sign = "w223bp"
CREATE TABLE table_name_6 (erp_w INTEGER, call_sign VARCHAR)
Who is the winner in the city of lima?
SELECT winner FROM table_name_16 WHERE city = "lima"
CREATE TABLE table_name_16 (winner VARCHAR, city VARCHAR)
Which team was the away team when home team was essendon?
SELECT away_team FROM table_29090919_1 WHERE home_team = "Essendon"
CREATE TABLE table_29090919_1 (away_team VARCHAR, home_team VARCHAR)
What was the time on September 1?
SELECT local_time FROM table_name_46 WHERE date = "september 1"
CREATE TABLE table_name_46 (local_time VARCHAR, date VARCHAR)
what's the title where original air date is january18,2009
SELECT title FROM table_11589522_3 WHERE original_air_date = "January18,2009"
CREATE TABLE table_11589522_3 (title VARCHAR, original_air_date VARCHAR)
WHO WAS THE STAGE WINNER IN THE STAGE WHERE MICHAEL ALBASINI WON THE METAS VOLANTES CLASSIFICATION?
SELECT stage__winner_ FROM table_21804557_18 WHERE metas_volantes_classification = "Michael Albasini"
CREATE TABLE table_21804557_18 (stage__winner_ VARCHAR, metas_volantes_classification VARCHAR)
How many lanes have a Nationality of united states, and a Name of aaron peirsol?
SELECT COUNT(lane) FROM table_name_28 WHERE nationality = "united states" AND name = "aaron peirsol"
CREATE TABLE table_name_28 (lane VARCHAR, nationality VARCHAR, name VARCHAR)
When did they play against West Virginia?
SELECT date FROM table_20850339_1 WHERE opponent = "West Virginia"
CREATE TABLE table_20850339_1 (date VARCHAR, opponent VARCHAR)
Which average rank has an Earning amount that is less than $224,589?
SELECT AVG(rank) FROM table_name_82 WHERE earnings__$__ < 224 OFFSET 589
CREATE TABLE table_name_82 (rank INTEGER, earnings__$__ INTEGER)
How many regions have 0.5% solar panels?
SELECT COUNT(public_network) FROM table_25042332_26 WHERE solar_panel = "0.5%"
CREATE TABLE table_25042332_26 (public_network VARCHAR, solar_panel VARCHAR)
Who were the candidates in districk Pennsylvania 12?
SELECT candidates FROM table_2668199_2 WHERE district = "Pennsylvania 12"
CREATE TABLE table_2668199_2 (candidates VARCHAR, district VARCHAR)
When curtis strange had a to par +1, what was his score?
SELECT score FROM table_name_42 WHERE to_par = "+1" AND player = "curtis strange"
CREATE TABLE table_name_42 (score VARCHAR, to_par VARCHAR, player VARCHAR)
What T9 Place Player had a Score of 73-67-74-71=285?
SELECT player FROM table_name_92 WHERE place = "t9" AND score = 73 - 67 - 74 - 71 = 285
CREATE TABLE table_name_92 (player VARCHAR, place VARCHAR, score VARCHAR)
What US Country released an album of singles only in 1967?
SELECT us_country FROM table_name_30 WHERE album = "singles only" AND year = 1967
CREATE TABLE table_name_30 (us_country VARCHAR, album VARCHAR, year VARCHAR)
What year was remark #104 us?
SELECT year FROM table_name_58 WHERE remark = "#104 us"
CREATE TABLE table_name_58 (year VARCHAR, remark VARCHAR)
What is the lowest game number that has a Record of 3–33?
SELECT MIN(game) FROM table_name_93 WHERE record = "3–33"
CREATE TABLE table_name_93 (game INTEGER, record VARCHAR)
Which average Round has a Pick # larger than 20, and a College of virginia, and an Overall larger than 127?
SELECT AVG(round) FROM table_name_43 WHERE pick__number > 20 AND college = "virginia" AND overall > 127
CREATE TABLE table_name_43 (round INTEGER, overall VARCHAR, pick__number VARCHAR, college VARCHAR)
WHAT IS THE VISITOR FOR FEBRUARY 9?
SELECT visitor FROM table_name_27 WHERE date = "february 9"
CREATE TABLE table_name_27 (visitor VARCHAR, date VARCHAR)
Which Name has a Position smaller than 2?
SELECT name FROM table_name_72 WHERE position < 2
CREATE TABLE table_name_72 (name VARCHAR, position INTEGER)
What were the results when the incumbent was John Breaux?
SELECT result FROM table_1341690_18 WHERE incumbent = "John Breaux"
CREATE TABLE table_1341690_18 (result VARCHAR, incumbent VARCHAR)
When did the fourth episode of the season (4 1-04) first air?
SELECT original_airdate FROM table_24222929_3 WHERE episode_number_production_number = "4 1-04"
CREATE TABLE table_24222929_3 (original_airdate VARCHAR, episode_number_production_number VARCHAR)
Which Position has a Years in Orlando of 2003–2004?
SELECT position FROM table_name_55 WHERE years_in_orlando = "2003–2004"
CREATE TABLE table_name_55 (position VARCHAR, years_in_orlando VARCHAR)
Which governor took office on January 8, 1877?
SELECT governor FROM table_name_88 WHERE took_office = "january 8, 1877"
CREATE TABLE table_name_88 (governor VARCHAR, took_office VARCHAR)
What is the Date of the game with a Score of 3–1 and Record of 1–1–0?
SELECT date FROM table_name_70 WHERE score = "3–1" AND record = "1–1–0"
CREATE TABLE table_name_70 (date VARCHAR, score VARCHAR, record VARCHAR)
What is the % of same-sex marriages for the year of 2011?
SELECT _percentage_same_sex_marriages FROM table_19614212_1 WHERE year = "2011"
CREATE TABLE table_19614212_1 (_percentage_same_sex_marriages VARCHAR, year VARCHAR)