question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What pick was used to select a Defensive End in round 8?
CREATE TABLE table_name_70 (pick INTEGER, position VARCHAR, round VARCHAR)
SELECT SUM(pick) FROM table_name_70 WHERE position = "defensive end" AND round = 8
Which circuits had a race on October 4?
CREATE TABLE table_10725629_2 (circuit VARCHAR, date VARCHAR)
SELECT circuit FROM table_10725629_2 WHERE date = "October 4"
what's the condition with bleeding time being unaffected and prothrombin time being prolonged
CREATE TABLE table_14006_1 (condition VARCHAR, bleeding_time VARCHAR, prothrombin_time VARCHAR)
SELECT condition FROM table_14006_1 WHERE bleeding_time = "Unaffected" AND prothrombin_time = "Prolonged"
What is average ratings for Japanese title of ホタルノヒカリ, with episodes larger than 9?
CREATE TABLE table_name_38 (average_ratings VARCHAR, episodes VARCHAR, japanese_title VARCHAR)
SELECT average_ratings FROM table_name_38 WHERE episodes > 9 AND japanese_title = "ホタルノヒカリ"
What is the xDSL in 2010 when the other was 0.6%?
CREATE TABLE table_name_55 (xdsl VARCHAR, other VARCHAR, year VARCHAR)
SELECT xdsl FROM table_name_55 WHERE other = "0.6%" AND year = "2010"
Which Torque has a Volume of 1896 cc, and a CO 2 of 140 g/km?
CREATE TABLE table_name_21 (torque VARCHAR, volume VARCHAR, co_2 VARCHAR)
SELECT torque FROM table_name_21 WHERE volume = "1896 cc" AND co_2 = "140 g/km"
How many tackle assists for the player who averages 23.7?
CREATE TABLE table_18064020_21 (ast VARCHAR, avg VARCHAR)
SELECT ast FROM table_18064020_21 WHERE avg = "23.7"
What was the county with a latitude of 46.770977?
CREATE TABLE table_18600760_3 (county VARCHAR, latitude VARCHAR)
SELECT county FROM table_18600760_3 WHERE latitude = "46.770977"
Which of the private colleges is the oldest, and whose nickname is the Mountaineers?
CREATE TABLE table_name_83 (founded INTEGER, type VARCHAR, nickname VARCHAR)
SELECT MIN(founded) FROM table_name_83 WHERE type = "private" AND nickname = "mountaineers"
What was the away team's score against Hawthorn?
CREATE TABLE table_name_23 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_23 WHERE away_team = "hawthorn"
What is the game that the location attendance is pepsi center 19,894?
CREATE TABLE table_11959669_6 (game INTEGER, location_attendance VARCHAR)
SELECT MAX(game) FROM table_11959669_6 WHERE location_attendance = "Pepsi Center 19,894"
What is the least number of tropical cyclones when the strongest storm was Tiffany and less than 10 tropical lows.
CREATE TABLE table_name_88 (Severe INTEGER, strongest_storm VARCHAR, tropical_lows VARCHAR)
SELECT MIN(Severe) AS tropical_cyclones FROM table_name_88 WHERE strongest_storm = "tiffany" AND tropical_lows > 10
WHich Tournament has a Partnering of diego pérez and a Opponents in the final of christer allgardh carl limberger?
CREATE TABLE table_name_39 (tournament VARCHAR, partnering VARCHAR, opponents_in_the_final VARCHAR)
SELECT tournament FROM table_name_39 WHERE partnering = "diego pérez" AND opponents_in_the_final = "christer allgardh carl limberger"
What year did player steve jones, who had a t60 finish, win?
CREATE TABLE table_name_53 (year_s__won VARCHAR, finish VARCHAR, player VARCHAR)
SELECT year_s__won FROM table_name_53 WHERE finish = "t60" AND player = "steve jones"
Which order year has a Fleet Series (Quantity) of 12081-12090 (10)?
CREATE TABLE table_name_73 (order_year VARCHAR, fleet_series__quantity_ VARCHAR)
SELECT order_year FROM table_name_73 WHERE fleet_series__quantity_ = "12081-12090 (10)"
how many millions of north american viewers had the episode whose director was Michael Lembeck?
CREATE TABLE table_27714573_1 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)
SELECT us_viewers__millions_ FROM table_27714573_1 WHERE directed_by = "Michael Lembeck"
Name the episode for vic reeves and claudia winkleman
CREATE TABLE table_23292220_7 (episode VARCHAR, seans_team VARCHAR)
SELECT episode FROM table_23292220_7 WHERE seans_team = "Vic Reeves and Claudia Winkleman"
What is the average longitude of stations that never had bike availability more than 10?
CREATE TABLE station (long INTEGER, id VARCHAR, station_id VARCHAR, bikes_available INTEGER); CREATE TABLE status (long INTEGER, id VARCHAR, station_id VARCHAR, bikes_available INTEGER)
SELECT AVG(long) FROM station WHERE NOT id IN (SELECT station_id FROM status GROUP BY station_id HAVING MAX(bikes_available) > 10)
What title was used in the nomination of Matrimonio All'Italiana?
CREATE TABLE table_name_5 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_5 WHERE original_title = "matrimonio all'italiana"
Find the number of users who did not write any review.
CREATE TABLE review (u_id VARCHAR); CREATE TABLE useracct (u_id VARCHAR)
SELECT COUNT(*) FROM useracct WHERE NOT u_id IN (SELECT u_id FROM review)
What was the date of the game at Junction Oval?
CREATE TABLE table_name_3 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_3 WHERE venue = "junction oval"
In what season was Kilmarnock a finalist and Hibernian the winner?
CREATE TABLE table_name_75 (season VARCHAR, winners VARCHAR, finalists VARCHAR)
SELECT season FROM table_name_75 WHERE winners = "hibernian" AND finalists = "kilmarnock"
Which 2013 has a 2010 of 1r?
CREATE TABLE table_name_98 (Id VARCHAR)
SELECT 2013 FROM table_name_98 WHERE 2010 = "1r"
Which venue has Tickets Sold/ Available with a Gross Revenue (1979) of $665,232?
CREATE TABLE table_name_26 (tickets_sold___available VARCHAR, gross_revenue__1979_ VARCHAR)
SELECT tickets_sold___available FROM table_name_26 WHERE gross_revenue__1979_ = "$665,232"
Which person is in the tronto/broadway and has a uk tour of n/a
CREATE TABLE table_10402018_1 (toronto___broadway VARCHAR, uk_tour VARCHAR)
SELECT toronto___broadway FROM table_10402018_1 WHERE uk_tour = "n/a"
What are the possible multipliers for 1900MHz processors?
CREATE TABLE table_27277284_27 (mult_1 VARCHAR, frequency VARCHAR)
SELECT mult_1 FROM table_27277284_27 WHERE frequency = "1900MHz"
Who was the opponent for the game played with 54,136 people in attendance?
CREATE TABLE table_name_38 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_38 WHERE attendance = "54,136"
What is the total number of events with a top-25 less than 0?
CREATE TABLE table_name_44 (events VARCHAR, top_25 INTEGER)
SELECT COUNT(events) FROM table_name_44 WHERE top_25 < 0
How many points did player 7 score in the challenge cup?
CREATE TABLE table_22683369_8 (challenge_cup VARCHAR, p VARCHAR)
SELECT COUNT(challenge_cup) FROM table_22683369_8 WHERE p = 7
What is the lowest round for an overall pick of 349 with a pick number in the round over 11?
CREATE TABLE table_name_28 (round INTEGER, overall VARCHAR, pick VARCHAR)
SELECT MIN(round) FROM table_name_28 WHERE overall = 349 AND pick > 11
What was the result of the game that was played on 3,4,5 Jul 1902?
CREATE TABLE table_name_61 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_61 WHERE date = "3,4,5 jul 1902"
on august 16, 1963, what is the velocity?
CREATE TABLE table_name_56 (velocity__km_h_ INTEGER, date VARCHAR)
SELECT SUM(velocity__km_h_) FROM table_name_56 WHERE date = "august 16, 1963"
Who was the entrant for Gary Brabham?
CREATE TABLE table_name_5 (entrant VARCHAR, driver VARCHAR)
SELECT entrant FROM table_name_5 WHERE driver = "gary brabham"
Which couple danced a jive and received a score of 21 (6, 7, 8)?
CREATE TABLE table_name_98 (couple VARCHAR, dance VARCHAR, score VARCHAR)
SELECT couple FROM table_name_98 WHERE dance = "jive" AND score = "21 (6, 7, 8)"
Name the points for paulistano
CREATE TABLE table_15418319_1 (points VARCHAR, team VARCHAR)
SELECT points FROM table_15418319_1 WHERE team = "Paulistano"
On February 26, who was the leading scorer?
CREATE TABLE table_name_30 (leading_scorer VARCHAR, date VARCHAR)
SELECT leading_scorer FROM table_name_30 WHERE date = "february 26"
What is the original air date for the episode written by Bob Goodman?
CREATE TABLE table_16581695_2 (original_airdate VARCHAR, written_by VARCHAR)
SELECT original_airdate FROM table_16581695_2 WHERE written_by = "Bob Goodman"
Which Station has a Zone 2008 of 8, and a Zone 2007 of outside zones, and Services of london overground?
CREATE TABLE table_name_73 (station VARCHAR, services VARCHAR, zone_2008 VARCHAR, zone_2007 VARCHAR)
SELECT station FROM table_name_73 WHERE zone_2008 = "8" AND zone_2007 = "outside zones" AND services = "london overground"
How many goals were scored by the player who played 17 matches?
CREATE TABLE table_12321870_32 (goals VARCHAR, matches VARCHAR)
SELECT goals FROM table_12321870_32 WHERE matches = "17"
What is the home team score for St Kilda's home team?
CREATE TABLE table_name_27 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_27 WHERE home_team = "st kilda"
What is the average points that have a December less than 6, with a game greater than 26?
CREATE TABLE table_name_17 (points INTEGER, december VARCHAR, game VARCHAR)
SELECT AVG(points) FROM table_name_17 WHERE december < 6 AND game > 26
what amount of try bonus where the game was won by 11?
CREATE TABLE table_13564637_3 (try_bonus VARCHAR, won VARCHAR)
SELECT COUNT(try_bonus) FROM table_13564637_3 WHERE won = "11"
Name the catalog with cd format
CREATE TABLE table_name_93 (catalog VARCHAR, format VARCHAR)
SELECT catalog FROM table_name_93 WHERE format = "cd"
What is Original title, when Director is Veljko Bulajić category:articles with hcards, and when Film title used in nomination is Train Without A Timetable?
CREATE TABLE table_name_35 (original_title VARCHAR, director VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT original_title FROM table_name_35 WHERE director = "veljko bulajić category:articles with hcards" AND film_title_used_in_nomination = "train without a timetable"
List all ship names in the order of built year and class.
CREATE TABLE ship (name VARCHAR, built_year VARCHAR, CLASS VARCHAR)
SELECT name FROM ship ORDER BY built_year, CLASS
What was the final score of the game with 7523 in attendance?
CREATE TABLE table_25331766_3 (final_score VARCHAR, attendance VARCHAR)
SELECT final_score FROM table_25331766_3 WHERE attendance = 7523
What is the least total when there are more than 2 golds and fewer than 0 silver?
CREATE TABLE table_name_6 (total INTEGER, gold VARCHAR, silver VARCHAR)
SELECT MIN(total) FROM table_name_6 WHERE gold > 2 AND silver < 0
Which opponent has a Score of 6–4, 3–6, 6–3?
CREATE TABLE table_name_7 (opponent VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_7 WHERE score = "6–4, 3–6, 6–3"
For driver Mark Skaife what is the result for race 1?
CREATE TABLE table_11581984_2 (race_1 VARCHAR, driver VARCHAR)
SELECT race_1 FROM table_11581984_2 WHERE driver = "Mark Skaife"
What did the team score when playing against home in geelong?
CREATE TABLE table_name_72 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_72 WHERE away_team = "geelong"
Name the team for w 125-115 score
CREATE TABLE table_22871239_8 (team VARCHAR, score VARCHAR)
SELECT team FROM table_22871239_8 WHERE score = "W 125-115"
How many years did Paul Griffin play for the Jazz?
CREATE TABLE table_11545282_7 (years_for_jazz VARCHAR, player VARCHAR)
SELECT COUNT(years_for_jazz) FROM table_11545282_7 WHERE player = "Paul Griffin"
What Team had the first round of 1:00?
CREATE TABLE table_name_53 (team VARCHAR, first_round VARCHAR)
SELECT team FROM table_name_53 WHERE first_round = "1:00"
Where is rory loy moving to?
CREATE TABLE table_name_17 (moving_to VARCHAR, name VARCHAR)
SELECT moving_to FROM table_name_17 WHERE name = "rory loy"
Who was the opponent during the second round?
CREATE TABLE table_name_64 (opponent VARCHAR, round VARCHAR)
SELECT opponent FROM table_name_64 WHERE round = "second round"
What was Ernie Els's score?
CREATE TABLE table_name_86 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_86 WHERE player = "ernie els"
Which title had 20 episodes and aired on 11 jun- 6 jul?
CREATE TABLE table_name_20 (english_title__chinese_title_ VARCHAR, number_of_episodes VARCHAR, airing_date VARCHAR)
SELECT english_title__chinese_title_ FROM table_name_20 WHERE number_of_episodes = 20 AND airing_date = "11 jun- 6 jul"
What To par was won in 1982?
CREATE TABLE table_name_15 (to_par VARCHAR, year_s__won VARCHAR)
SELECT to_par FROM table_name_15 WHERE year_s__won = "1982"
what is the work when the result is won and the year is before 2003?
CREATE TABLE table_name_36 (work VARCHAR, result VARCHAR, year VARCHAR)
SELECT work FROM table_name_36 WHERE result = "won" AND year < 2003
What was the score for set 3 when set 1 was 14–25?
CREATE TABLE table_name_1 (set_3 VARCHAR, set_1 VARCHAR)
SELECT set_3 FROM table_name_1 WHERE set_1 = "14–25"
Which Country has a Year(s) won of 1977?
CREATE TABLE table_name_60 (country VARCHAR, year_s__won VARCHAR)
SELECT country FROM table_name_60 WHERE year_s__won = "1977"
What is the total average for the England team when the wickets are less than 18, the best bowling is 4/138, and there are less than 3 matches?
CREATE TABLE table_name_57 (average VARCHAR, matches VARCHAR, best_bowling VARCHAR, team VARCHAR, wickets VARCHAR)
SELECT COUNT(average) FROM table_name_57 WHERE team = "england" AND wickets < 18 AND best_bowling = "4/138" AND matches < 3
What was the score with the opponent being New Zealand Warriors?
CREATE TABLE table_name_67 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_67 WHERE opponent = "new zealand warriors"
Which Score that has a Winning team of wei chuan dragons?
CREATE TABLE table_name_35 (score VARCHAR, winning_team VARCHAR)
SELECT score FROM table_name_35 WHERE winning_team = "wei chuan dragons"
what is the least silver when overall is less than 67, team is saami and gold is less than 5?
CREATE TABLE table_name_2 (silver INTEGER, gold VARCHAR, overall VARCHAR, team VARCHAR)
SELECT MIN(silver) FROM table_name_2 WHERE overall < 67 AND team = "saami" AND gold < 5
Who is the position for the 2009-2010 season, number 1?
CREATE TABLE table_name_26 (position VARCHAR, season VARCHAR, number VARCHAR)
SELECT position FROM table_name_26 WHERE season = "2009-2010" AND number = "1"
What is every pregame analyst with Chris Rose as trophy presenter?
CREATE TABLE table_2941848_2 (pregame_analysts VARCHAR, trophy_presentation VARCHAR)
SELECT pregame_analysts FROM table_2941848_2 WHERE trophy_presentation = "Chris Rose"
Who was the home team when Carlton was the away team?
CREATE TABLE table_name_97 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_97 WHERE away_team = "carlton"
What is the rank of the film, Amelia and Michael?
CREATE TABLE table_name_30 (rank VARCHAR, film VARCHAR)
SELECT rank FROM table_name_30 WHERE film = "amelia and michael"
List the names of the customers who have once bought product "food".
CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE orders (customer_id VARCHAR, order_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE order_items (product_id VARCHAR, order_id VARCHAR)
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = "food" GROUP BY T1.customer_id HAVING COUNT(*) >= 1
What is the 2011 entry for the row with a 2007 entry of 558?
CREATE TABLE table_name_36 (Id VARCHAR)
SELECT 2011 FROM table_name_36 WHERE 2007 = "558"
Date of 23 september 1961, and a Pilot of b.v. zemskov had what record description?
CREATE TABLE table_name_38 (record_description VARCHAR, date VARCHAR, pilot VARCHAR)
SELECT record_description FROM table_name_38 WHERE date = "23 september 1961" AND pilot = "b.v. zemskov"
What is Rice's collage score?
CREATE TABLE table_10361625_1 (overall VARCHAR, college VARCHAR)
SELECT overall FROM table_10361625_1 WHERE college = "Rice"
What is Score, when Attendance is 3,416?
CREATE TABLE table_name_29 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_29 WHERE attendance = "3,416"
What's the total number of picks for mckinney high school?
CREATE TABLE table_name_72 (pick INTEGER, school VARCHAR)
SELECT SUM(pick) FROM table_name_72 WHERE school = "mckinney high school"
What is the lowest altitude of the flight with a mach bigger than 0.905 and a duration of 00:06:17?
CREATE TABLE table_name_80 (altitude__ft_ INTEGER, mach VARCHAR, duration VARCHAR)
SELECT MIN(altitude__ft_) FROM table_name_80 WHERE mach > 0.905 AND duration = "00:06:17"
What is the Location of the Mill Built in the Early 19th Century?
CREATE TABLE table_name_50 (location VARCHAR, built VARCHAR)
SELECT location FROM table_name_50 WHERE built = "early 19th century"
How many winners scored exactly 202 (-11)?
CREATE TABLE table_21260421_1 (winner VARCHAR, score VARCHAR)
SELECT COUNT(winner) FROM table_21260421_1 WHERE score = "202 (-11)"
Name the highest roll for coed and authority of state integrated with sacred heart school
CREATE TABLE table_name_96 (roll INTEGER, name VARCHAR, gender VARCHAR, authority VARCHAR)
SELECT MAX(roll) FROM table_name_96 WHERE gender = "coed" AND authority = "state integrated" AND name = "sacred heart school"
When 318676 is the population of 2010 and 1st class is the income classification what is the area in kilometers squared?
CREATE TABLE table_29289372_1 (area__km²_ VARCHAR, income_classification VARCHAR, population__2010_ VARCHAR)
SELECT area__km²_ FROM table_29289372_1 WHERE income_classification = "1st Class" AND population__2010_ = 318676
What is Date, when Runner(s)-Up is Oliver Wilson?
CREATE TABLE table_name_71 (date VARCHAR, runner_s__up VARCHAR)
SELECT date FROM table_name_71 WHERE runner_s__up = "oliver wilson"
Where was the match held when the result was win, and tko as the method?
CREATE TABLE table_name_32 (location VARCHAR, res VARCHAR, method VARCHAR)
SELECT location FROM table_name_32 WHERE res = "win" AND method = "tko"
What percentage of users were using mobile browsers during the period in which 9.00% were using Chrome?
CREATE TABLE table_name_28 (mobile VARCHAR, chrome VARCHAR)
SELECT mobile FROM table_name_28 WHERE chrome = "9.00%"
what is the date for traction type electric with calgary location?
CREATE TABLE table_name_18 (date__from_ VARCHAR, traction_type VARCHAR, location VARCHAR)
SELECT date__from_ FROM table_name_18 WHERE traction_type = "electric" AND location = "calgary"
In the Central region, where the land area (km 2) is 8,543.2, what was the rainfall by depth (mm/year)?
CREATE TABLE table_25983027_1 (rainfall_by_depth__mm_year_ VARCHAR, land_area__km_2__ VARCHAR)
SELECT rainfall_by_depth__mm_year_ FROM table_25983027_1 WHERE land_area__km_2__ = "8,543.2"
Name the report for philip fotheringham-parker
CREATE TABLE table_name_74 (report VARCHAR, winning_driver VARCHAR)
SELECT report FROM table_name_74 WHERE winning_driver = "philip fotheringham-parker"
What are the titles for episodes prior to episode 4?
CREATE TABLE table_name_29 (title VARCHAR, no_in_series INTEGER)
SELECT title FROM table_name_29 WHERE no_in_series < 4
Name the constructor for the belgian grand prix
CREATE TABLE table_name_69 (constructor VARCHAR, race VARCHAR)
SELECT constructor FROM table_name_69 WHERE race = "belgian grand prix"
Name the opponent for may 12
CREATE TABLE table_name_73 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_73 WHERE date = "may 12"
Player than won in 2003?
CREATE TABLE table_name_94 (player VARCHAR, year_s__won VARCHAR)
SELECT player FROM table_name_94 WHERE year_s__won = "2003"
Which 250cc winner has a Round larger than 6, and a Date of 26 july?
CREATE TABLE table_name_5 (round VARCHAR, date VARCHAR)
SELECT 250 AS cc_winner FROM table_name_5 WHERE round > 6 AND date = "26 july"
What was the result on 10/08/1988?
CREATE TABLE table_name_52 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_52 WHERE date = "10/08/1988"
How many teams have channing frye, jason richardson (8) as high rebounds?
CREATE TABLE table_23285761_11 (team VARCHAR, high_rebounds VARCHAR)
SELECT COUNT(team) FROM table_23285761_11 WHERE high_rebounds = "Channing Frye, Jason Richardson (8)"
What is the lowest number of points for game 32?
CREATE TABLE table_27539808_5 (points INTEGER, game VARCHAR)
SELECT MIN(points) FROM table_27539808_5 WHERE game = 32
Name the episode for jenny bicks and cindy chupack nominees in 2004
CREATE TABLE table_name_16 (episode VARCHAR, year VARCHAR, nominee_s_ VARCHAR)
SELECT episode FROM table_name_16 WHERE year = 2004 AND nominee_s_ = "jenny bicks and cindy chupack"
Which couple has 295 as a total score?
CREATE TABLE table_23465011_5 (couple VARCHAR, total_score VARCHAR)
SELECT couple FROM table_23465011_5 WHERE total_score = 295
How many different scores are there for the game with 10-3-4 record?
CREATE TABLE table_23308178_5 (score VARCHAR, record VARCHAR)
SELECT COUNT(score) FROM table_23308178_5 WHERE record = "10-3-4"
What is the highest Rank of Karen Pickering when she had a time of less than 55.71?
CREATE TABLE table_name_59 (rank INTEGER, name VARCHAR, time VARCHAR)
SELECT MAX(rank) FROM table_name_59 WHERE name = "karen pickering" AND time < 55.71
Which state has the venue Tsukisamu dome?
CREATE TABLE table_name_30 (state VARCHAR, venue VARCHAR)
SELECT state FROM table_name_30 WHERE venue = "tsukisamu dome"
Which Party has a Office of majority floor leader
CREATE TABLE table_name_46 (party VARCHAR, office VARCHAR)
SELECT party FROM table_name_46 WHERE office = "majority floor leader"