question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What Number of households have a Median family income of $58,491?
CREATE TABLE table_name_73 (number_of_households VARCHAR, median_family_income VARCHAR)
SELECT number_of_households FROM table_name_73 WHERE median_family_income = "$58,491"
What season has an away 2-0?
CREATE TABLE table_name_33 (season VARCHAR, away VARCHAR)
SELECT season FROM table_name_33 WHERE away = "2-0"
Which average draw has points greater than 12?
CREATE TABLE table_name_52 (draw INTEGER, points INTEGER)
SELECT AVG(draw) FROM table_name_52 WHERE points > 12
Which time has a Rider of anthony west?
CREATE TABLE table_name_66 (time VARCHAR, rider VARCHAR)
SELECT time FROM table_name_66 WHERE rider = "anthony west"
What is the name of the candidate where the incumbent is named James P. Buchanan?
CREATE TABLE table_1342331_43 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1342331_43 WHERE incumbent = "James P. Buchanan"
Who is the s color commentator when the pregame host is jon sciambi?
CREATE TABLE table_2941848_10 (s_color_commentator VARCHAR, pregame_hosts VARCHAR)
SELECT s_color_commentator FROM table_2941848_10 WHERE pregame_hosts = "Jon Sciambi"
What TV order is written by gail simone?
CREATE TABLE table_20360535_3 (television_order VARCHAR, written_by VARCHAR)
SELECT television_order FROM table_20360535_3 WHERE written_by = "Gail Simone"
What was the date when there were 26 golden tickets?
CREATE TABLE table_name_57 (date VARCHAR, golden_tickets VARCHAR)
SELECT date FROM table_name_57 WHERE golden_tickets = 26
Which team was in 1951?
CREATE TABLE table_name_40 (team VARCHAR, year VARCHAR)
SELECT team FROM table_name_40 WHERE year = 1951
Which First elected has a District of south carolina 2?
CREATE TABLE table_name_53 (first_elected INTEGER, district VARCHAR)
SELECT MIN(first_elected) FROM table_name_53 WHERE district = "south carolina 2"
In the country United Arab Emirates, what is the number of imports?
CREATE TABLE table_26160007_1 (imports VARCHAR, country VARCHAR)
SELECT imports FROM table_26160007_1 WHERE country = "United Arab Emirates"
In what district was the successor seated August 31, 1943?
CREATE TABLE table_2159537_3 (district VARCHAR, date_successor_seated VARCHAR)
SELECT district FROM table_2159537_3 WHERE date_successor_seated = "August 31, 1943"
What is the goals for when played is larger than 30?
CREATE TABLE table_name_72 (goals_for INTEGER, played INTEGER)
SELECT MIN(goals_for) FROM table_name_72 WHERE played > 30
What is the Home team score when away team is hawthorn?
CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_70 WHERE away_team = "hawthorn"
What is the average goals for that has +40 as the goals difference, with points 1 greater than 55?
CREATE TABLE table_name_62 (goals_for INTEGER, goal_difference VARCHAR, points_1 VARCHAR)
SELECT AVG(goals_for) FROM table_name_62 WHERE goal_difference = "+40" AND points_1 > 55
What is listed under try bonus when listed under Tries for is tries for?
CREATE TABLE table_13399573_3 (try_bonus VARCHAR)
SELECT try_bonus FROM table_13399573_3 WHERE "tries_for" = "tries_for"
What is Position in Table, when Replaced by is "José Pekerman"?
CREATE TABLE table_name_43 (position_in_table VARCHAR, replaced_by VARCHAR)
SELECT position_in_table FROM table_name_43 WHERE replaced_by = "josé pekerman"
What draft pick was Chris Brewer?
CREATE TABLE table_16729063_1 (pick__number INTEGER, player VARCHAR)
SELECT MIN(pick__number) FROM table_16729063_1 WHERE player = "Chris Brewer"
How much did Jerry Barber score to come in at T9?
CREATE TABLE table_name_79 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT score FROM table_name_79 WHERE place = "t9" AND player = "jerry barber"
Where was the post 1991 tournament where the Czech Republic received the bronze and Russia received the silver?
CREATE TABLE table_name_40 (venue VARCHAR, silver VARCHAR, year VARCHAR, bronze VARCHAR)
SELECT venue FROM table_name_40 WHERE year > 1991 AND bronze = "czech republic" AND silver = "russia"
What is the date settled for 40 years?
CREATE TABLE table_1174162_1 (date_first_settled_as_a_suburb VARCHAR, median_age__in_2006_ VARCHAR)
SELECT date_first_settled_as_a_suburb FROM table_1174162_1 WHERE median_age__in_2006_ = "40 years"
What is Player, when Pick is greater than 24, and when NBA years [a ] is "9"?
CREATE TABLE table_name_2 (player VARCHAR, pick VARCHAR, nba_years_ VARCHAR, a_ VARCHAR)
SELECT player FROM table_name_2 WHERE pick > 24 AND nba_years_[a_] = "9"
What are the title and maximum price of each film?
CREATE TABLE film (title VARCHAR, film_id VARCHAR); CREATE TABLE schedule (price INTEGER, film_id VARCHAR)
SELECT T2.title, MAX(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id
what is the total number of electorates (2009) when the name is govindpura?
CREATE TABLE table_name_97 (number_of_electorates__2009_ VARCHAR, name VARCHAR)
SELECT COUNT(number_of_electorates__2009_) FROM table_name_97 WHERE name = "govindpura"
How many Poles have Drivers of juan cruz álvarez, and FLaps larger than 0?
CREATE TABLE table_name_27 (poles INTEGER, drivers VARCHAR, flaps VARCHAR)
SELECT SUM(poles) FROM table_name_27 WHERE drivers = "juan cruz álvarez" AND flaps > 0
What is the weekly rank with an air date is november 12, 2007?
CREATE TABLE table_11178271_1 (weekly_rank VARCHAR, air_date VARCHAR)
SELECT weekly_rank FROM table_11178271_1 WHERE air_date = "November 12, 2007"
What is the total prominence in ft of the peak of kangchenjunga central, which has a prominence in m less than 32?
CREATE TABLE table_name_67 (prominence__ft_ VARCHAR, name_of_peak VARCHAR, prominence__m_ VARCHAR)
SELECT COUNT(prominence__ft_) FROM table_name_67 WHERE name_of_peak = "kangchenjunga central" AND prominence__m_ < 32
What is the year 2007 earnings per share?
CREATE TABLE table_name_47 (earnings_per_share__p_ VARCHAR, year_ended VARCHAR)
SELECT earnings_per_share__p_ FROM table_name_47 WHERE year_ended = "2007"
Which satellite was launched from Vandenberg?
CREATE TABLE table_name_5 (satellite VARCHAR, launch_site VARCHAR)
SELECT satellite FROM table_name_5 WHERE launch_site = "vandenberg"
What is the sum of car numbers with less than 126 points and 147 laps?
CREATE TABLE table_name_30 (car__number INTEGER, points VARCHAR, laps VARCHAR)
SELECT SUM(car__number) FROM table_name_30 WHERE points < 126 AND laps = 147
In what year was John Bell Williams first elected?
CREATE TABLE table_1341930_24 (first_elected VARCHAR, incumbent VARCHAR)
SELECT first_elected FROM table_1341930_24 WHERE incumbent = "John Bell Williams"
Find the id of instructors who didn't teach any courses?
CREATE TABLE teaches (id VARCHAR); CREATE TABLE instructor (id VARCHAR)
SELECT id FROM instructor EXCEPT SELECT id FROM teaches
What Issue number was released on August 17, 2011?
CREATE TABLE table_name_22 (issue VARCHAR, date VARCHAR)
SELECT issue FROM table_name_22 WHERE date = "august 17, 2011"
Name the number of writers for airdate of 15 july 1967
CREATE TABLE table_20345624_2 (writer VARCHAR, original_airdate VARCHAR)
SELECT COUNT(writer) FROM table_20345624_2 WHERE original_airdate = "15 July 1967"
Who holds the lead role when Aanders Brorson is third?
CREATE TABLE table_name_97 (lead VARCHAR, third VARCHAR)
SELECT lead FROM table_name_97 WHERE third = "aanders brorson"
What is the championsleague when the total was greater than 1, the coppa italia was more than 2, and the Serie A was 1?
CREATE TABLE table_name_40 (champions_league INTEGER, coppa_italia VARCHAR, serie_a VARCHAR, total VARCHAR)
SELECT SUM(champions_league) FROM table_name_40 WHERE serie_a = 1 AND total > 1 AND coppa_italia > 2
What is the fewest loses for the club that is below 8 in position, and had played less than 30 games?
CREATE TABLE table_name_83 (loses INTEGER, position VARCHAR, games_played VARCHAR)
SELECT MIN(loses) FROM table_name_83 WHERE position < 8 AND games_played < 30
What is the type of video game Call of Destiny.
CREATE TABLE Video_games (gtype VARCHAR, gname VARCHAR)
SELECT gtype FROM Video_games WHERE gname = "Call of Destiny"
What is the torque of the 5.8l v12 engine?
CREATE TABLE table_name_15 (torque VARCHAR, engine VARCHAR)
SELECT torque FROM table_name_15 WHERE engine = "5.8l v12"
For model volvo, how many cylinders does the car with the least accelerate have?
CREATE TABLE CARS_DATA (cylinders VARCHAR, Id VARCHAR, accelerate VARCHAR); CREATE TABLE CAR_NAMES (MakeId VARCHAR, Model VARCHAR)
SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate LIMIT 1
Tell me the total number of years for wins less than 2 and class of 50cc with points of 15
CREATE TABLE table_name_4 (year VARCHAR, points VARCHAR, wins VARCHAR, class VARCHAR)
SELECT COUNT(year) FROM table_name_4 WHERE wins < 2 AND class = "50cc" AND points = 15
WHAT IS THE SCORE WITH A RECORD OF 1-0?
CREATE TABLE table_name_94 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_94 WHERE record = "1-0"
What is the match report for July 10, 2005?
CREATE TABLE table_name_91 (match_report VARCHAR, date VARCHAR)
SELECT match_report FROM table_name_91 WHERE date = "july 10, 2005"
What is the tie when team 2 is koper?
CREATE TABLE table_19294812_2 (tie_no INTEGER, team_2 VARCHAR)
SELECT MIN(tie_no) FROM table_19294812_2 WHERE team_2 = "Koper"
How many years was Best Musical Revival nominated?
CREATE TABLE table_name_60 (year VARCHAR, nominee VARCHAR)
SELECT COUNT(year) FROM table_name_60 WHERE nominee = "best musical revival"
Who is the head coach for the team, arminia bielefeld?
CREATE TABLE table_name_94 (head_coach VARCHAR, team VARCHAR)
SELECT head_coach FROM table_name_94 WHERE team = "arminia bielefeld"
What's the production code of the episode originally aired on February 21, 1985?
CREATE TABLE table_2818164_2 (production_code INTEGER, original_air_date VARCHAR)
SELECT MIN(production_code) FROM table_2818164_2 WHERE original_air_date = "February 21, 1985"
What is the rating if the rating/share (18-49) is 3.6?
CREATE TABLE table_23799417_2 (rating VARCHAR)
SELECT rating FROM table_23799417_2 WHERE rating / SHARE(18 AS –49) = 3.6
Which week was the game held at Kingdome on October 13, 1991?
CREATE TABLE table_name_71 (week INTEGER, game_site VARCHAR, date VARCHAR)
SELECT MIN(week) FROM table_name_71 WHERE game_site = "kingdome" AND date = "october 13, 1991"
What is the date for proposed for revere textile prints corporation
CREATE TABLE table_name_40 (proposed VARCHAR, name VARCHAR)
SELECT proposed FROM table_name_40 WHERE name = "revere textile prints corporation"
How many championship titles for LRS Formula / Laurent Rédon Motorsport?
CREATE TABLE table_19312274_3 (championship_titles VARCHAR, name VARCHAR)
SELECT championship_titles FROM table_19312274_3 WHERE name = "LRS Formula / Laurent Rédon Motorsport"
Which Tuesday does big brother 12 air?
CREATE TABLE table_name_16 (tuesday VARCHAR, series VARCHAR)
SELECT tuesday FROM table_name_16 WHERE series = "big brother 12"
What is the fewest number of silvers for teams with more than 21 gold and more than 4 bronze?
CREATE TABLE table_name_56 (silver INTEGER, bronze VARCHAR, gold VARCHAR)
SELECT MIN(silver) FROM table_name_56 WHERE bronze > 4 AND gold > 21
How many locations have a median household income in 2011 of $71,479?
CREATE TABLE table_19283806_4 (location VARCHAR, median_household_income__2011_ VARCHAR)
SELECT COUNT(location) FROM table_19283806_4 WHERE median_household_income__2011_ = "$71,479"
What is Region, when Date is 2004?
CREATE TABLE table_name_61 (region VARCHAR, date VARCHAR)
SELECT region FROM table_name_61 WHERE date = 2004
What is the original air date of the episode that was number 31 in the series?
CREATE TABLE table_29584044_1 (original_air_date VARCHAR, no_in_series VARCHAR)
SELECT original_air_date FROM table_29584044_1 WHERE no_in_series = 31
In what year did Aslan receive a Lifetime Achievement Award and Snow Patrol perform?
CREATE TABLE table_name_56 (year VARCHAR, band VARCHAR, lifetime_achievement_award VARCHAR)
SELECT year FROM table_name_56 WHERE band = "snow patrol" AND lifetime_achievement_award = "aslan"
List the 1st air date for the episode with a iceb786e production code.
CREATE TABLE table_2501754_3 (original_airdate VARCHAR, prod_code VARCHAR)
SELECT original_airdate FROM table_2501754_3 WHERE prod_code = "ICEB786E"
Win % larger than 47.1, and a Matches smaller than 145 had what lowest lost?
CREATE TABLE table_name_47 (lost INTEGER, win__percentage VARCHAR, matches VARCHAR)
SELECT MIN(lost) FROM table_name_47 WHERE win__percentage > 47.1 AND matches < 145
How many wins did the team with 42 points get?
CREATE TABLE table_16034882_4 (wins VARCHAR, points VARCHAR)
SELECT wins FROM table_16034882_4 WHERE points = 42
What is Pronunciation Spelled Free, when Pronunciation Spelled Checked is "ɑ"?
CREATE TABLE table_name_24 (pronunciation_spelled_free VARCHAR, pronunciation_spelled_checked VARCHAR)
SELECT pronunciation_spelled_free FROM table_name_24 WHERE pronunciation_spelled_checked = "ɑ"
How many years have a position of 2nd?
CREATE TABLE table_name_86 (year VARCHAR, position VARCHAR)
SELECT COUNT(year) FROM table_name_86 WHERE position = "2nd"
What conference did the player with the position of rb play in?
CREATE TABLE table_name_44 (conf VARCHAR, pos VARCHAR)
SELECT conf FROM table_name_44 WHERE pos = "rb"
On what date was the I Dessau Autobahnspinne race?
CREATE TABLE table_name_66 (date VARCHAR, race_name VARCHAR)
SELECT date FROM table_name_66 WHERE race_name = "i dessau autobahnspinne"
Date of april 10, 2006 had what surface?
CREATE TABLE table_name_51 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_51 WHERE date = "april 10, 2006"
In what district is the incumbent Charles Fisher?
CREATE TABLE table_2668336_17 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_2668336_17 WHERE incumbent = "Charles Fisher"
what's the economics score with justice being 90.8
CREATE TABLE table_145439_1 (economics VARCHAR, justice VARCHAR)
SELECT economics FROM table_145439_1 WHERE justice = "90.8"
Name the most number for notre dame prep
CREATE TABLE table_25118909_3 (_number INTEGER, former_school VARCHAR)
SELECT MAX(_number) FROM table_25118909_3 WHERE former_school = "Notre Dame Prep"
During season 1935, what was the venue?
CREATE TABLE table_name_92 (venue VARCHAR, season VARCHAR)
SELECT venue FROM table_name_92 WHERE season = "1935"
What is the smallest crowd at princes park?
CREATE TABLE table_name_57 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_57 WHERE venue = "princes park"
What's the record in the game played against 42?
CREATE TABLE table_18207285_2 (record VARCHAR, opponents VARCHAR)
SELECT record FROM table_18207285_2 WHERE opponents = 42
If the country of Origin is South Africa, who is the primary user?
CREATE TABLE table_26389588_1 (primary_user VARCHAR, country_of_origin VARCHAR)
SELECT primary_user FROM table_26389588_1 WHERE country_of_origin = "South Africa"
What is Incumbent, when District is "Louisiana 4"?
CREATE TABLE table_name_7 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_name_7 WHERE district = "louisiana 4"
When was the last title of the team with a home ground of Sydney cricket ground?
CREATE TABLE table_name_9 (last_title VARCHAR, home_ground_ VARCHAR, a_ VARCHAR)
SELECT last_title FROM table_name_9 WHERE home_ground_[a_] = "sydney cricket ground"
How many overall in the year 2010-2011?
CREATE TABLE table_21756039_1 (overall VARCHAR, year VARCHAR)
SELECT COUNT(overall) FROM table_21756039_1 WHERE year = "2010-2011"
Team 2 of Yokohama F. Marinos in the n/a venue had what score?
CREATE TABLE table_name_90 (score VARCHAR, venue VARCHAR, team_2 VARCHAR)
SELECT score FROM table_name_90 WHERE venue = "n/a" AND team_2 = "yokohama f. marinos"
What is the Opponent before October 31 with a Record of 2-3-1 after Game 5?
CREATE TABLE table_name_52 (opponent VARCHAR, record VARCHAR, october VARCHAR, game VARCHAR)
SELECT opponent FROM table_name_52 WHERE october < 31 AND game > 5 AND record = "2-3-1"
Give the Finish for a Stage that is larger than 15
CREATE TABLE table_name_44 (finish VARCHAR, stage INTEGER)
SELECT finish FROM table_name_44 WHERE stage > 15
What was the association for Indonesian Idol after 2005 with a Nominated Result?
CREATE TABLE table_name_39 (association VARCHAR, result VARCHAR, nominee VARCHAR, year VARCHAR)
SELECT association FROM table_name_39 WHERE nominee = "indonesian idol" AND year > 2005 AND result = "nominated"
what's the name with first operational being march 1945
CREATE TABLE table_13636_1 (name VARCHAR, first_operational VARCHAR)
SELECT name FROM table_13636_1 WHERE first_operational = "March 1945"
What company is numbered larger than 5 and priced at $389M?
CREATE TABLE table_name_84 (company VARCHAR, number VARCHAR, price VARCHAR)
SELECT company FROM table_name_84 WHERE number > 5 AND price = "$389m"
On January 29, who had the decision of Mason?
CREATE TABLE table_name_17 (visitor VARCHAR, decision VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_17 WHERE decision = "mason" AND date = "january 29"
What is the week number that has Dolly Parton as the theme?
CREATE TABLE table_name_12 (week__number VARCHAR, theme VARCHAR)
SELECT week__number FROM table_name_12 WHERE theme = "dolly parton"
Where did Hawthorn have their away match against North Melbourne?
CREATE TABLE table_name_50 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_50 WHERE away_team = "hawthorn"
What happened in Mazar-i-sharif?
CREATE TABLE table_name_3 (circumstances VARCHAR, location VARCHAR)
SELECT circumstances FROM table_name_3 WHERE location = "mazar-i-sharif"
What was the away team score at Brunswick Street Oval?
CREATE TABLE table_name_82 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_82 WHERE venue = "brunswick street oval"
What company focuses on Engine Overhaul for their principal activity?
CREATE TABLE table_name_7 (company VARCHAR, principal_activities VARCHAR)
SELECT company FROM table_name_7 WHERE principal_activities = "engine overhaul"
In how many events was Puma 20 and abu dhabi 30?
CREATE TABLE table_26894949_2 (event VARCHAR, puma VARCHAR, abu_dhabi VARCHAR)
SELECT COUNT(event) FROM table_26894949_2 WHERE puma = "20" AND abu_dhabi = "30"
Who came in 3rd when Nicolai Klindt won?
CREATE TABLE table_name_2 (winners VARCHAR)
SELECT 3 AS rd_place FROM table_name_2 WHERE winners = "nicolai klindt"
What is the high grid with 27 laps?
CREATE TABLE table_name_89 (grid INTEGER, laps VARCHAR)
SELECT MAX(grid) FROM table_name_89 WHERE laps = 27
What was the lowest # of total votes?
CREATE TABLE table_123462_2 (_number_of_total_votes INTEGER)
SELECT MIN(_number_of_total_votes) FROM table_123462_2
what is the venue when the date is december 7, 1998?
CREATE TABLE table_name_6 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_6 WHERE date = "december 7, 1998"
College of boston college has what pick?
CREATE TABLE table_name_61 (pick VARCHAR, college VARCHAR)
SELECT pick FROM table_name_61 WHERE college = "boston college"
Which Played is the lowest one that has a Team of vasco da gama, and an Against smaller than 11?
CREATE TABLE table_name_54 (played INTEGER, team VARCHAR, against VARCHAR)
SELECT MIN(played) FROM table_name_54 WHERE team = "vasco da gama" AND against < 11
Which Date has a Catalog of 887 195-2, and a Format of cd maxi?
CREATE TABLE table_name_63 (date VARCHAR, catalog VARCHAR, format VARCHAR)
SELECT date FROM table_name_63 WHERE catalog = "887 195-2" AND format = "cd maxi"
What date did the Milton Keynes Dons appoint?
CREATE TABLE table_18788823_5 (date_of_appointment VARCHAR, team VARCHAR)
SELECT date_of_appointment FROM table_18788823_5 WHERE team = "Milton Keynes Dons"
What is the date for Orangeville?
CREATE TABLE table_name_56 (date VARCHAR, name VARCHAR)
SELECT date FROM table_name_56 WHERE name = "orangeville"
Find the names of procedures which physician John Wen was trained in.
CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR); CREATE TABLE procedures (name VARCHAR, code VARCHAR)
SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen"
What was the first elected year that featured incumbent andrew r. govan?
CREATE TABLE table_2668264_22 (first_elected VARCHAR, incumbent VARCHAR)
SELECT first_elected FROM table_2668264_22 WHERE incumbent = "Andrew R. Govan"
How many compound names list a chemical class of depsipeptide and a clinical trials β value of 1/7?
CREATE TABLE table_12715053_1 (compound_name VARCHAR, chemical_class VARCHAR, clinical_trials_β VARCHAR)
SELECT COUNT(compound_name) FROM table_12715053_1 WHERE chemical_class = "Depsipeptide" AND clinical_trials_β = "1/7"