question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Where was the game played when the record was 16–11?
CREATE TABLE table_27723228_8 (location_attendance VARCHAR, record VARCHAR)
SELECT location_attendance FROM table_27723228_8 WHERE record = "16–11"
Which Format has a Catalog smaller than 61298?
CREATE TABLE table_name_11 (format VARCHAR, catalog INTEGER)
SELECT format FROM table_name_11 WHERE catalog < 61298
What time was the match played with a score of 3-2?
CREATE TABLE table_name_35 (time VARCHAR, score VARCHAR)
SELECT time FROM table_name_35 WHERE score = "3-2"
When the losing bonus was 2 what was drawn score?
CREATE TABLE table_name_97 (drawn VARCHAR, losing_bonus VARCHAR)
SELECT drawn FROM table_name_97 WHERE losing_bonus = "2"
What is the name of episode 5 in the season?
CREATE TABLE table_27988540_1 (title VARCHAR, no_in_season VARCHAR)
SELECT title FROM table_27988540_1 WHERE no_in_season = 5
Which Total Apps (sub) has 6 goals total?
CREATE TABLE table_name_39 (total_apps__sub_ VARCHAR, total_goals VARCHAR)
SELECT total_apps__sub_ FROM table_name_39 WHERE total_goals = "6"
Name who directed the episode by joe sachs and david zabel
CREATE TABLE table_17355743_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT directed_by FROM table_17355743_1 WHERE written_by = "Joe Sachs and David Zabel"
Name the score at mcg venue and footscray opponent
CREATE TABLE table_name_13 (score VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_13 WHERE venue = "mcg" AND opponent = "footscray"
What opponent in the final has rockford, Illinois as the tournament?
CREATE TABLE table_name_12 (opponent_in_the_final VARCHAR, tournament VARCHAR)
SELECT opponent_in_the_final FROM table_name_12 WHERE tournament = "rockford, illinois"
When 1992 is the year how many divisions are there?
CREATE TABLE table_1986692_1 (division VARCHAR, year VARCHAR)
SELECT COUNT(division) FROM table_1986692_1 WHERE year = "1992"
What was the original air date of the episode written by michael glassberg?
CREATE TABLE table_26866299_1 (original_airdate VARCHAR, writer VARCHAR)
SELECT original_airdate FROM table_26866299_1 WHERE writer = "Michael Glassberg"
Tell me the region for frank erwin center
CREATE TABLE table_name_10 (region VARCHAR, venue VARCHAR)
SELECT region FROM table_name_10 WHERE venue = "frank erwin center"
Who was the candidate in 1791?
CREATE TABLE table_2668420_12 (candidates VARCHAR, first_elected VARCHAR)
SELECT candidates FROM table_2668420_12 WHERE first_elected = 1791
Which letter has the British aɪ?
CREATE TABLE table_name_40 (letter VARCHAR, british VARCHAR)
SELECT letter FROM table_name_40 WHERE british = "aɪ"
What is the Standalone when Tron is the Arcade?
CREATE TABLE table_name_99 (standalone VARCHAR, arcade VARCHAR)
SELECT standalone FROM table_name_99 WHERE arcade = "tron"
how many match points did gran parma lost
CREATE TABLE table_27987767_2 (match_points VARCHAR, losers VARCHAR)
SELECT match_points FROM table_27987767_2 WHERE losers = "Gran Parma"
What is the Season Outcome for the Sussex Central School?
CREATE TABLE table_name_10 (season_outcome VARCHAR, school VARCHAR)
SELECT season_outcome FROM table_name_10 WHERE school = "sussex central"
What is the lowest amount of wins of someone who has 2 losses?
CREATE TABLE table_name_96 (wins INTEGER, losses VARCHAR)
SELECT MIN(wins) FROM table_name_96 WHERE losses = 2
when roberts 86' is the scorer what is the round?
CREATE TABLE table_28181401_4 (round VARCHAR, scorers VARCHAR)
SELECT round FROM table_28181401_4 WHERE scorers = "Roberts 86'"
When 9/07/1999 is the date of withdrawn what is the original number?
CREATE TABLE table_21795986_1 (original_number VARCHAR, withdrawn VARCHAR)
SELECT original_number FROM table_21795986_1 WHERE withdrawn = "9/07/1999"
How many years was he car number 92?
CREATE TABLE table_181892_4 (speed_rank VARCHAR, car_number VARCHAR)
SELECT COUNT(speed_rank) FROM table_181892_4 WHERE car_number = 92
What is the Magnitude on the Date May 28, 2004?
CREATE TABLE table_name_49 (magnitude VARCHAR, date VARCHAR)
SELECT magnitude FROM table_name_49 WHERE date = "may 28, 2004"
What is the most points for a vehicle with a lola thl1, chassis later than 1986?
CREATE TABLE table_name_54 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT MAX(points) FROM table_name_54 WHERE chassis = "lola thl1" AND year > 1986
How many engine b5234 t3?
CREATE TABLE table_1147705_1 (model VARCHAR, engine_type VARCHAR)
SELECT COUNT(model) FROM table_1147705_1 WHERE engine_type = "B5234 T3"
How may women doubles winner were there when Philippe Aulner was mens singles winner?
CREATE TABLE table_15001957_1 (womens_doubles VARCHAR, mens_singles VARCHAR)
SELECT COUNT(womens_doubles) FROM table_15001957_1 WHERE mens_singles = "Philippe Aulner"
How many laps for robin montgomerie-charrington, and a Grid smaller than 15?
CREATE TABLE table_name_18 (laps VARCHAR, driver VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_18 WHERE driver = "robin montgomerie-charrington" AND grid < 15
What genre has a station of Class 95FM?
CREATE TABLE table_name_53 (genre VARCHAR, station VARCHAR)
SELECT genre FROM table_name_53 WHERE station = "class 95fm"
Name the date for omni coliseum 10,330
CREATE TABLE table_27882867_4 (date VARCHAR, location_attendance VARCHAR)
SELECT date FROM table_27882867_4 WHERE location_attendance = "Omni Coliseum 10,330"
Who was the spokesperson for France in 1970?
CREATE TABLE table_1368649_9 (spokesperson VARCHAR, year_s_ VARCHAR)
SELECT spokesperson FROM table_1368649_9 WHERE year_s_ = 1970
What is the average Draws, when Losses is less than 2?
CREATE TABLE table_name_97 (draws INTEGER, losses INTEGER)
SELECT AVG(draws) FROM table_name_97 WHERE losses < 2
When did the team have a 10-8 record?
CREATE TABLE table_name_26 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_26 WHERE record = "10-8"
For each payment method, return how many customers use it.
CREATE TABLE customers (payment_method_code VARCHAR)
SELECT payment_method_code, COUNT(*) FROM customers GROUP BY payment_method_code
Tell me the category for 2012 and drama league award
CREATE TABLE table_name_92 (category VARCHAR, year VARCHAR, award VARCHAR)
SELECT category FROM table_name_92 WHERE year = 2012 AND award = "drama league award"
What shows for 2000 when 2013 shows 3rd?
CREATE TABLE table_name_19 (Id VARCHAR)
SELECT 2000 FROM table_name_19 WHERE 2013 = "3rd"
What is "house", when "four" is "opat"?
CREATE TABLE table_name_89 (house VARCHAR, four VARCHAR)
SELECT house FROM table_name_89 WHERE four = "opat"
What is the Position of the Pick 8 Player?
CREATE TABLE table_name_99 (position VARCHAR, pick VARCHAR)
SELECT position FROM table_name_99 WHERE pick = 8
who is the away team when played at junction oval?
CREATE TABLE table_name_41 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_41 WHERE venue = "junction oval"
What is 1994, when 1996 is "Grand Slams"?
CREATE TABLE table_name_65 (Id VARCHAR)
SELECT 1994 FROM table_name_65 WHERE 1996 = "grand slams"
What was the team classification where andré greipel was the winner and had the points classification?
CREATE TABLE table_25655781_17 (team_classification VARCHAR, winner VARCHAR, points_classification VARCHAR)
SELECT team_classification FROM table_25655781_17 WHERE winner = "André Greipel" AND points_classification = "André Greipel"
If the spacecraft is the Shenzhou 7 Eva 1, what is the start (utc) date and time?
CREATE TABLE table_22385461_9 (start___utc__ VARCHAR, spacecraft VARCHAR)
SELECT start___utc__ FROM table_22385461_9 WHERE spacecraft = "Shenzhou 7 EVA 1"
Which Third has a Champion of metalurh novomoskovsk?
CREATE TABLE table_name_20 (third VARCHAR, champion VARCHAR)
SELECT third FROM table_name_20 WHERE champion = "metalurh novomoskovsk"
Who held the Communications Rep position in 2011?
CREATE TABLE table_name_65 (position VARCHAR)
SELECT 2011 FROM table_name_65 WHERE position = "communications rep"
Who had the high rebounds, and how many, when they played Denver?
CREATE TABLE table_name_62 (high_rebounds VARCHAR, team VARCHAR)
SELECT high_rebounds FROM table_name_62 WHERE team = "denver"
What is the Points that has 61 - 15 Point difference and a Drawn larger than 1?
CREATE TABLE table_name_80 (points INTEGER, points_difference VARCHAR, drawn VARCHAR)
SELECT AVG(points) FROM table_name_80 WHERE points_difference = "61 - 15" AND drawn > 1
Show the id, name of each festival and the number of artworks it has nominated.
CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR)
SELECT T1.Festival_ID, T3.Festival_Name, COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID
What's the record in the game in which Brad Miller (7) did the high rebounds?
CREATE TABLE table_22669044_10 (record VARCHAR, high_rebounds VARCHAR)
SELECT record FROM table_22669044_10 WHERE high_rebounds = "Brad Miller (7)"
Irish name of an dún (contae an dúin) has what county town?
CREATE TABLE table_name_34 (county VARCHAR, irish_name VARCHAR)
SELECT county AS town FROM table_name_34 WHERE irish_name = "an dún (contae an dúin)"
With 42 as the match what are the runs?
CREATE TABLE table_name_42 (runs VARCHAR, match VARCHAR)
SELECT runs FROM table_name_42 WHERE match = "42"
What was the result when the opponent was fenerbahçe?
CREATE TABLE table_name_5 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_5 WHERE opponent = "fenerbahçe"
How many votes did Obama have at 32.12%
CREATE TABLE table_20722805_1 (obama_number INTEGER, obama_percentage VARCHAR)
SELECT MIN(obama_number) FROM table_20722805_1 WHERE obama_percentage = "32.12%"
Tell me the player for nationality of canada for pick of 43
CREATE TABLE table_name_85 (player VARCHAR, nationality VARCHAR, pick VARCHAR)
SELECT player FROM table_name_85 WHERE nationality = "canada" AND pick = "43"
Which category has a team of Cannondale Vredestein?
CREATE TABLE table_name_28 (category VARCHAR, team VARCHAR)
SELECT category FROM table_name_28 WHERE team = "cannondale vredestein"
What week was the December 24, 1994 game?
CREATE TABLE table_name_78 (week INTEGER, date VARCHAR)
SELECT SUM(week) FROM table_name_78 WHERE date = "december 24, 1994"
How many goals have more than 38 played and more than 9 draws?
CREATE TABLE table_name_5 (goals_for INTEGER, draws VARCHAR, played VARCHAR)
SELECT SUM(goals_for) FROM table_name_5 WHERE draws > 9 AND played > 38
what's the native american with es mulatto being 0.7%
CREATE TABLE table_1333612_1 (native_american VARCHAR, es_mulatto VARCHAR)
SELECT native_american FROM table_1333612_1 WHERE es_mulatto = "0.7%"
Name the number of wins for when points is 17
CREATE TABLE table_14889048_1 (wins VARCHAR, points VARCHAR)
SELECT COUNT(wins) FROM table_14889048_1 WHERE points = 17
Can you tell me the Out of that has the Source of united nations, and the Rank larger than 47, and the Year smaller than 2003?
CREATE TABLE table_name_31 (out_of VARCHAR, year VARCHAR, source VARCHAR, rank VARCHAR)
SELECT out_of FROM table_name_31 WHERE source = "united nations" AND rank > 47 AND year < 2003
When the Attendance was 4,516, what was the Record?
CREATE TABLE table_name_72 (record VARCHAR, attendance VARCHAR)
SELECT record FROM table_name_72 WHERE attendance = "4,516"
how many tries against with lost being 11
CREATE TABLE table_14058433_4 (tries_against VARCHAR, lost VARCHAR)
SELECT COUNT(tries_against) FROM table_14058433_4 WHERE lost = "11"
Name the date for faro
CREATE TABLE table_name_33 (date VARCHAR, location VARCHAR)
SELECT date FROM table_name_33 WHERE location = "faro"
Name the total number of attendance when the cavaliers visited
CREATE TABLE table_name_84 (attendance VARCHAR, visitor VARCHAR)
SELECT COUNT(attendance) FROM table_name_84 WHERE visitor = "cavaliers"
What year was the name mount roskill grammar school?
CREATE TABLE table_name_35 (years VARCHAR, name VARCHAR)
SELECT years FROM table_name_35 WHERE name = "mount roskill grammar school"
What is the type with a quantity of fewer than 6 and number(s) 5201?
CREATE TABLE table_name_88 (type VARCHAR, quantity VARCHAR, number_s_ VARCHAR)
SELECT type FROM table_name_88 WHERE quantity < 6 AND number_s_ = "5201"
What is the Place, when the Score is 68-70-71=209?
CREATE TABLE table_name_19 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_19 WHERE score = 68 - 70 - 71 = 209
What is the lowest score of all games for match 2?
CREATE TABLE table_24538140_2 (match2 INTEGER)
SELECT MIN(match2) FROM table_24538140_2
What is listed for the Lengtht that has a Version of Single Version?
CREATE TABLE table_name_32 (length VARCHAR, version VARCHAR)
SELECT length FROM table_name_32 WHERE version = "single version"
What was the report for the winton race?
CREATE TABLE table_20884163_2 (report VARCHAR, race_title VARCHAR)
SELECT report FROM table_20884163_2 WHERE race_title = "Winton"
What were the years of senior status for active service in 1972–1995?
CREATE TABLE table_name_53 (senior_status VARCHAR, active_service VARCHAR)
SELECT senior_status FROM table_name_53 WHERE active_service = "1972–1995"
Which Tournament has Pat Cash as a runner-up?
CREATE TABLE table_name_36 (tournament VARCHAR, runner_up VARCHAR)
SELECT tournament FROM table_name_36 WHERE runner_up = "pat cash"
What is the kr td when mfg lg is 64?
CREATE TABLE table_16912000_13 (kr_td VARCHAR, mfg_lg VARCHAR)
SELECT kr_td FROM table_16912000_13 WHERE mfg_lg = 64
What 1983 has a 1975 of career statistics?
CREATE TABLE table_name_44 (Id VARCHAR)
SELECT 1983 FROM table_name_44 WHERE 1975 = "career statistics"
What's percentage voted for Busg in the county where Kerry got 37.6%?
CREATE TABLE table_2401326_1 (bush_percentage VARCHAR, kerry_percentage VARCHAR)
SELECT bush_percentage FROM table_2401326_1 WHERE kerry_percentage = "37.6%"
What school had a team name of the Trojans?
CREATE TABLE table_name_54 (school VARCHAR, team_name VARCHAR)
SELECT school FROM table_name_54 WHERE team_name = "trojans"
What is the fewest number of top-25s for events with more than 13 cuts made?
CREATE TABLE table_name_31 (top_25 INTEGER, cuts_made INTEGER)
SELECT MIN(top_25) FROM table_name_31 WHERE cuts_made > 13
What kind of Surface has a Score of 6–4, 0–6, 6–2?
CREATE TABLE table_name_68 (surface VARCHAR, score VARCHAR)
SELECT surface FROM table_name_68 WHERE score = "6–4, 0–6, 6–2"
What is the latest Fiscal Year with Revenues of $4.3 billion, and more than 85,335 employees?
CREATE TABLE table_name_95 (fiscal_year INTEGER, revenues VARCHAR, employees VARCHAR)
SELECT MAX(fiscal_year) FROM table_name_95 WHERE revenues = "$4.3 billion" AND employees > 85 OFFSET 335
Which date has the tier of Itf $10k?
CREATE TABLE table_name_66 (date VARCHAR, tier VARCHAR)
SELECT date FROM table_name_66 WHERE tier = "itf $10k"
What is the total for the place when the singer is Mariza Ikonomi when points are larger than 20?
CREATE TABLE table_name_88 (place VARCHAR, singer VARCHAR, points VARCHAR)
SELECT COUNT(place) FROM table_name_88 WHERE singer = "mariza ikonomi" AND points > 20
Name the film title that is spanish from peru
CREATE TABLE table_name_78 (film_title_used_in_nomination VARCHAR, language VARCHAR, country VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_78 WHERE language = "spanish" AND country = "peru"
Where does Iceland rank with under 19 silvers?
CREATE TABLE table_name_12 (rank INTEGER, nation VARCHAR, silver VARCHAR)
SELECT MAX(rank) FROM table_name_12 WHERE nation = "iceland" AND silver < 19
What is the crowd size when the away team was South Melbourne?
CREATE TABLE table_name_15 (crowd INTEGER, away_team VARCHAR)
SELECT SUM(crowd) FROM table_name_15 WHERE away_team = "south melbourne"
What is the David Norris with a Michael D. Higgins that is 46.2%?
CREATE TABLE table_name_92 (david_norris VARCHAR, michael_d_higgins VARCHAR)
SELECT david_norris FROM table_name_92 WHERE michael_d_higgins = "46.2%"
What year was first-elected for the row of Texas 2?
CREATE TABLE table_1342218_43 (first_elected VARCHAR, district VARCHAR)
SELECT first_elected FROM table_1342218_43 WHERE district = "Texas 2"
Which Stations are in vancouver, bc?
CREATE TABLE table_name_64 (stations VARCHAR, city VARCHAR)
SELECT stations FROM table_name_64 WHERE city = "vancouver, bc"
What is the highest selection number for the saskatchewan roughriders team?
CREATE TABLE table_10960039_6 (pick__number INTEGER, cfl_team VARCHAR)
SELECT MAX(pick__number) FROM table_10960039_6 WHERE cfl_team = "Saskatchewan Roughriders"
What is silver when gold is 1 and the rank is less than 3 for japan?
CREATE TABLE table_name_77 (silver VARCHAR, nation VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT silver FROM table_name_77 WHERE gold = 1 AND rank < 3 AND nation = "japan"
Which Pick # is the lowest one that has a College of troy state, and a Name of reggie dwight, and an Overall smaller than 217?
CREATE TABLE table_name_92 (pick__number INTEGER, overall VARCHAR, college VARCHAR, name VARCHAR)
SELECT MIN(pick__number) FROM table_name_92 WHERE college = "troy state" AND name = "reggie dwight" AND overall < 217
What is the frequency for the city of Lamar, Colorado?
CREATE TABLE table_name_37 (frequency_mhz INTEGER, city_of_license VARCHAR)
SELECT AVG(frequency_mhz) FROM table_name_37 WHERE city_of_license = "lamar, colorado"
What week did the Jets play in the meadowlands with and attendance of 78,161?
CREATE TABLE table_name_13 (week INTEGER, game_site VARCHAR, attendance VARCHAR)
SELECT SUM(week) FROM table_name_13 WHERE game_site = "the meadowlands" AND attendance = "78,161"
What is the full name ( first name and last name ) for those employees who gets more salary than the employee whose id is 163?
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, salary INTEGER, employee_id VARCHAR)
SELECT first_name, last_name FROM employees WHERE salary > (SELECT salary FROM employees WHERE employee_id = 163)
What was the first week to have attendance of 65,866?
CREATE TABLE table_name_31 (week INTEGER, attendance VARCHAR)
SELECT MIN(week) FROM table_name_31 WHERE attendance = 65 OFFSET 866
What start has a ford cosworth dfx as the engine, a year later than 1981, and kraco enterprises as the entrant?
CREATE TABLE table_name_22 (start VARCHAR, entrant VARCHAR, engine VARCHAR, year VARCHAR)
SELECT start FROM table_name_22 WHERE engine = "ford cosworth dfx" AND year > 1981 AND entrant = "kraco enterprises"
List the count and id of each product in all the orders.
CREATE TABLE orders (order_id VARCHAR); CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR); CREATE TABLE products (product_id VARCHAR)
SELECT COUNT(*), T3.product_id FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id
Name the most female life expectancy for overall rank of 61
CREATE TABLE table_2701625_1 (female_life_expectancy INTEGER, overall_rank VARCHAR)
SELECT MAX(female_life_expectancy) FROM table_2701625_1 WHERE overall_rank = 61
What is the sum of Bronze when the total is more than 27?
CREATE TABLE table_name_91 (bronze INTEGER, total INTEGER)
SELECT SUM(bronze) FROM table_name_91 WHERE total > 27
What is the total number of areas that are called Nanqiao District?
CREATE TABLE table_1982739_2 (area VARCHAR, english_name VARCHAR)
SELECT COUNT(area) FROM table_1982739_2 WHERE english_name = "Nanqiao District"
What is the lowest GNIS Feature ID from County of sheridan?
CREATE TABLE table_name_39 (gnis_feature_id INTEGER, county VARCHAR)
SELECT MIN(gnis_feature_id) FROM table_name_39 WHERE county = "sheridan"
List the names and the locations that the enzymes can make an effect.
CREATE TABLE enzyme (name VARCHAR, LOCATION VARCHAR)
SELECT name, LOCATION FROM enzyme
what is the united fc wehre pifa colaba is maratha united?
CREATE TABLE table_28759261_5 (united_fc VARCHAR, pifa_colaba_fc_u_17 VARCHAR)
SELECT united_fc FROM table_28759261_5 WHERE pifa_colaba_fc_u_17 = "Maratha United"
Which nominee won the award for Fourth Best Indian Film?
CREATE TABLE table_name_7 (nominee VARCHAR, outcome VARCHAR, category VARCHAR)
SELECT nominee FROM table_name_7 WHERE outcome = "won" AND category = "fourth best indian film"