answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT dimensions FROM table_name_96 WHERE output = "180w"
What are the dimensions of the amp with a 180W output?
CREATE TABLE table_name_96 (dimensions VARCHAR, output VARCHAR)
SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id JOIN customers AS t3 GROUP BY t3.customer_id ORDER BY COUNT(*) LIMIT 1
Which products has been complained by the customer who has filed least amount of complaints?
CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE complaints (product_id VARCHAR)
SELECT character FROM table_name_6 WHERE category = "favourite maa" AND year = 2004
In 2004 who was favourite maa?
CREATE TABLE table_name_6 (character VARCHAR, category VARCHAR, year VARCHAR)
SELECT opponent FROM table_name_39 WHERE date = "april 1"
Which opponent has april 1 as the date?
CREATE TABLE table_name_39 (opponent VARCHAR, date VARCHAR)
SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = "Binders Unbound"
What are the last names of the author of the paper titled "Binders Unbound"?
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE authors (lname VARCHAR, authid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR)
SELECT MIN(episode) FROM table_29135051_3 WHERE guest_s_ = "Sarah Millican and Grayson Perry"
which episode did sarah millican and grayson perry appear in
CREATE TABLE table_29135051_3 (episode INTEGER, guest_s_ VARCHAR)
SELECT away_team FROM table_name_15 WHERE home_team = "collingwood"
Who was the away team playing against collingwood?
CREATE TABLE table_name_15 (away_team VARCHAR, home_team VARCHAR)
SELECT MIN(runs) FROM table_name_83 WHERE name = "clem hill" AND inns > 126
Name of clem hill, and Inns larger than 126 has the lowest runs?
CREATE TABLE table_name_83 (runs INTEGER, name VARCHAR, inns VARCHAR)
SELECT chassis FROM table_name_38 WHERE year = 1967
What is was the Chassis in 1967?
CREATE TABLE table_name_38 (chassis VARCHAR, year VARCHAR)
SELECT score FROM table_name_79 WHERE home = "montreal canadiens" AND date = "may 16"
What is Score, when Home is "Montreal Canadiens", and when Date is "May 16"?
CREATE TABLE table_name_79 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT circuit FROM table_1140099_6 WHERE race_name = "II Cape South Easter Trophy"
What circuit has a race called ii cape south easter trophy.
CREATE TABLE table_1140099_6 (circuit VARCHAR, race_name VARCHAR)
SELECT MIN(total_min_2_medals_) FROM table_22355_65
What is the lowest overall number for total(min. 2 medals)?
CREATE TABLE table_22355_65 (total_min_2_medals_ INTEGER)
SELECT COUNT(pl_gp) FROM table_name_79 WHERE reg_gp > 3
What is the total PI GP that a Reg GP has larger than 3?
CREATE TABLE table_name_79 (pl_gp VARCHAR, reg_gp INTEGER)
SELECT MAX(crowd) FROM table_name_97 WHERE venue = "mcg"
What was the highest crowd at the venue MCG?
CREATE TABLE table_name_97 (crowd INTEGER, venue VARCHAR)
SELECT high_assists FROM table_17311759_7 WHERE date = "February 4"
who made high assists on february 4
CREATE TABLE table_17311759_7 (high_assists VARCHAR, date VARCHAR)
SELECT chassis FROM table_name_93 WHERE engine = "maserati straight-6" AND points > 0 AND year = 1955
What kind of Chassis supports a Maserati Straight-6 engine with Points greater than 0 and built in the year 1955?
CREATE TABLE table_name_93 (chassis VARCHAR, year VARCHAR, engine VARCHAR, points VARCHAR)
SELECT last_appearance FROM table_11240028_3 WHERE character = "Rikki Sandoval"
What episode was the last appearance of the character, rikki sandoval?
CREATE TABLE table_11240028_3 (last_appearance VARCHAR, character VARCHAR)
SELECT AVG(year) FROM table_name_47 WHERE result = "nominated"
Name the average year for result of nominated
CREATE TABLE table_name_47 (year INTEGER, result VARCHAR)
SELECT COUNT(week) FROM table_name_23 WHERE attendance = "61,603"
What is the total number of Week(s), when Attendance is 61,603?
CREATE TABLE table_name_23 (week VARCHAR, attendance VARCHAR)
SELECT COUNT(outgoing_manager) FROM table_27666856_3 WHERE team = "Villarreal B"
Name the total number of outgoing manager for villarreal b
CREATE TABLE table_27666856_3 (outgoing_manager VARCHAR, team VARCHAR)
SELECT MIN(stls) FROM table_name_27 WHERE rebs > 8.6
What is the lowest Stls, when Rebs is greater than 8.6?
CREATE TABLE table_name_27 (stls INTEGER, rebs INTEGER)
SELECT SUM(year) FROM table_name_56 WHERE partnering = "maikel scheffers" AND championship = "us open"
What year was the US Open that had a partnering of Maikel Scheffers?
CREATE TABLE table_name_56 (year INTEGER, partnering VARCHAR, championship VARCHAR)
SELECT tournament FROM table_name_70 WHERE score = "6–4, 4–6, 7–5"
Which tournament had a score of 6–4, 4–6, 7–5?
CREATE TABLE table_name_70 (tournament VARCHAR, score VARCHAR)
SELECT COUNT(attendance) FROM table_name_44 WHERE date = "31 january 1987"
What was the Attendance on 31 January 1987?
CREATE TABLE table_name_44 (attendance VARCHAR, date VARCHAR)
SELECT date FROM table_name_43 WHERE visitor = "cleveland" AND record = "34-26"
What day was the visitor Cleveland when the record was 34-26?
CREATE TABLE table_name_43 (date VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT score FROM table_name_29 WHERE opponent_in_the_final = "lenka novotná"
What was the final score of the game against Lenka Novotná?
CREATE TABLE table_name_29 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT SUM(time) FROM table_name_17 WHERE lane = 1 AND rank < 8
Name the sum of time for lane of 1 and rank less than 8
CREATE TABLE table_name_17 (time INTEGER, lane VARCHAR, rank VARCHAR)
SELECT clean_ & _jerk FROM table_name_82 WHERE snatch < 150 AND bodyweight = 76.18
What is the Clean & jerk for the snatch less than 150 and a Bodyweight of 76.18?
CREATE TABLE table_name_82 (clean_ VARCHAR, _jerk VARCHAR, snatch VARCHAR, bodyweight VARCHAR)
SELECT 2009 FROM table_name_77 WHERE 2012 = "2r" AND 2011 = "1r" AND 2007 = "a" AND 2008 = "a"
WHAT IS THE 2009 PERFORMANCE WITH A 2012 OF 2R, 2001 OF 1R, 2007 OF A, AND 2008 OF A?
CREATE TABLE table_name_77 (Id VARCHAR)
SELECT MIN(year) FROM table_name_52 WHERE tournament = "hypo-meeting" AND points = "8002"
What is the lowest year that has hypo-meeting as the tournament, with 8002 as the points?
CREATE TABLE table_name_52 (year INTEGER, tournament VARCHAR, points VARCHAR)
SELECT to_par FROM table_name_48 WHERE country = "australia"
What is Australia's to par?
CREATE TABLE table_name_48 (to_par VARCHAR, country VARCHAR)
SELECT score FROM table_name_39 WHERE team = "@ milwaukee"
What was the final score for the game played against @ Milwaukee?
CREATE TABLE table_name_39 (score VARCHAR, team VARCHAR)
SELECT club FROM table_12886178_5 WHERE tries_for = "19"
What club has a tries for count of 19?
CREATE TABLE table_12886178_5 (club VARCHAR, tries_for VARCHAR)
SELECT MAX(last_title) FROM table_10682862_68
In what year was the last last title received, by any of the countries?
CREATE TABLE table_10682862_68 (last_title INTEGER)
SELECT AVG(round) FROM table_name_26 WHERE res = "draw" AND record = "4-4-1"
What is the average round of the match with a draw result and a record of 4-4-1?
CREATE TABLE table_name_26 (round INTEGER, res VARCHAR, record VARCHAR)
SELECT championship FROM table_24638867_4 WHERE surface = "Clay" AND opponent = "Virginia Ruano Pascual Paola Suárez"
What championships were played on clay and the opponent was virginia ruano pascual paola suárez?
CREATE TABLE table_24638867_4 (championship VARCHAR, surface VARCHAR, opponent VARCHAR)
SELECT years_as_tallest FROM table_name_10 WHERE floors < 24 AND street_address = "05.0 210 north charles street"
WHAT IS THE YEAR'S TALLEST VALUE WITH FLOORS LESS THAN 24, AND 05.0 210 north charles street?
CREATE TABLE table_name_10 (years_as_tallest VARCHAR, floors VARCHAR, street_address VARCHAR)
SELECT place FROM table_name_39 WHERE country = "united states" AND to_par = "e"
What place in the United States has a To par of e?
CREATE TABLE table_name_39 (place VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT manufacturer FROM table_22298383_1 WHERE average_speed__mph_ = "126.259"
Who manufactured the car that won with an average speed of 126.259 mph?
CREATE TABLE table_22298383_1 (manufacturer VARCHAR, average_speed__mph_ VARCHAR)
SELECT home_team FROM table_name_14 WHERE venue = "junction oval"
What is the home team at the Junction Oval venue?
CREATE TABLE table_name_14 (home_team VARCHAR, venue VARCHAR)
SELECT overall_record FROM table_27862483_3 WHERE win = "D. Klein (2-0)"
What was the overall record in the game won by D. Klein (2-0)?
CREATE TABLE table_27862483_3 (overall_record VARCHAR, win VARCHAR)
SELECT COUNT(*) FROM roller_coaster
How many roller coasters are there?
CREATE TABLE roller_coaster (Id VARCHAR)
SELECT game FROM table_name_8 WHERE field_judge = "al jury"
What game had Al Jury as field judge?
CREATE TABLE table_name_8 (game VARCHAR, field_judge VARCHAR)
SELECT SUM(population__2005_) FROM table_name_14 WHERE literacy__2003_ = "90%" AND infant_mortality__2002_ = "18.3‰"
Which Population (2005) has a Literacy (2003) of 90%, and an Infant Mortality (2002) of 18.3‰?
CREATE TABLE table_name_14 (population__2005_ INTEGER, literacy__2003_ VARCHAR, infant_mortality__2002_ VARCHAR)
SELECT visitor FROM table_name_77 WHERE series = "2 – 3"
Who has Series of 2 – 3?
CREATE TABLE table_name_77 (visitor VARCHAR, series VARCHAR)
SELECT 1951 FROM table_name_26 WHERE 1948 = "dne"
What 1951 has dne for 1948?
CREATE TABLE table_name_26 (Id VARCHAR)
SELECT name FROM table_name_67 WHERE country = "malaysia, kuala lumpur" AND index = "f8"
What is the name of the player from Malaysia, Kuala Lumpur in Index f8?
CREATE TABLE table_name_67 (name VARCHAR, country VARCHAR, index VARCHAR)
SELECT opponent FROM table_name_18 WHERE loss = "weaver (9-9)"
Which Opponent has a Loss of weaver (9-9)?
CREATE TABLE table_name_18 (opponent VARCHAR, loss VARCHAR)
SELECT date FROM table_name_12 WHERE venue = "corio oval"
Which date was corio oval the venue?
CREATE TABLE table_name_12 (date VARCHAR, venue VARCHAR)
SELECT capital FROM table_19605700_1 WHERE population = 1339724852
What capital has a population of exactly 1339724852?
CREATE TABLE table_19605700_1 (capital VARCHAR, population VARCHAR)
SELECT MIN(crowd) FROM table_name_68 WHERE away_team = "st kilda"
In games where st kilda was the away team, what was the smallest crowd?
CREATE TABLE table_name_68 (crowd INTEGER, away_team VARCHAR)
SELECT MIN(prod_code) FROM table_23937219_3 WHERE series__number = 31
What is the production code for episode 31 in the series?
CREATE TABLE table_23937219_3 (prod_code INTEGER, series__number VARCHAR)
SELECT 2010 FROM table_name_83 WHERE 2008 = "2r" AND 2013 = "a"
What is the 2010 value with a 2r in 2008 and A in 2013?
CREATE TABLE table_name_83 (Id VARCHAR)
SELECT date FROM table_name_65 WHERE away_team = "fitzroy"
What date was fitzroy the away team?
CREATE TABLE table_name_65 (date VARCHAR, away_team VARCHAR)
SELECT visitor FROM table_name_54 WHERE record = "14–17–5"
Who is the visitor with a record of 14–17–5?
CREATE TABLE table_name_54 (visitor VARCHAR, record VARCHAR)
SELECT date FROM table_27882867_4 WHERE location_attendance = "Omni Coliseum 10,330"
Name the date for omni coliseum 10,330
CREATE TABLE table_27882867_4 (date VARCHAR, location_attendance VARCHAR)
SELECT traditional FROM table_2135222_2 WHERE density = 820
What is the traditional with density of 820?
CREATE TABLE table_2135222_2 (traditional VARCHAR, density VARCHAR)
SELECT player FROM table_name_55 WHERE college = "ohio state"
Which player is from Ohio State College?
CREATE TABLE table_name_55 (player VARCHAR, college VARCHAR)
SELECT fastest_lap FROM table_name_33 WHERE pole_position = "damon hill" AND location = "magny-cours"
Who did the fastest lap when pole position was damon hill and the location was magny-cours?
CREATE TABLE table_name_33 (fastest_lap VARCHAR, pole_position VARCHAR, location VARCHAR)
SELECT MONTH FROM happy_hour GROUP BY MONTH HAVING COUNT(*) > 2
Which months have more than 2 happy hours?
CREATE TABLE happy_hour (MONTH VARCHAR)
SELECT AVG(attendance) FROM table_name_45 WHERE venue = "a" AND date = "1 september 2007"
On 1 september 2007, at the Venue A, what was the average attendance?
CREATE TABLE table_name_45 (attendance INTEGER, venue VARCHAR, date VARCHAR)
SELECT position FROM table_name_32 WHERE college = "rutgers"
Rutgers college holds what position?
CREATE TABLE table_name_32 (position VARCHAR, college VARCHAR)
SELECT college FROM table_name_23 WHERE player = "delray brooks"
What college did delray brooks go to?
CREATE TABLE table_name_23 (college VARCHAR, player VARCHAR)
SELECT gauge FROM table_name_8 WHERE concessionaire = "ferrosur roca"
What was the guage of the concessionaire ferrosur roca?
CREATE TABLE table_name_8 (gauge VARCHAR, concessionaire VARCHAR)
SELECT vietnamese FROM table_name_35 WHERE chinese = "婆須密 / póxūmì"
Which VIETNAMESE has a CHINESE of 婆須密 / póxūmì?
CREATE TABLE table_name_35 (vietnamese VARCHAR, chinese VARCHAR)
SELECT MAX(mccain_number) FROM table_20350118_1 WHERE obama_percentage = "50.7%"
How many votes did McCain get in the county where Obama got 50.7% of the votes?
CREATE TABLE table_20350118_1 (mccain_number INTEGER, obama_percentage VARCHAR)
SELECT SUM(score) FROM table_name_63 WHERE event = "27 arrow match"
For the 27 arrow match event, what's the sum of all scores for that event?
CREATE TABLE table_name_63 (score INTEGER, event VARCHAR)
SELECT overall_rank FROM table_name_60 WHERE heat_rank = 8
Tell me the overall rank for heat rank of 8
CREATE TABLE table_name_60 (overall_rank VARCHAR, heat_rank VARCHAR)
SELECT college FROM table_name_9 WHERE pick > 4 AND overall = 21
What college has a pick greater than 4 and an overall of 21?
CREATE TABLE table_name_9 (college VARCHAR, pick VARCHAR, overall VARCHAR)
SELECT COUNT(losses) FROM table_name_59 WHERE ties < 0
What is the number of losses when the ties are lesser than 0?
CREATE TABLE table_name_59 (losses VARCHAR, ties INTEGER)
SELECT 445 FROM table_name_5 WHERE name = "yelena isinbayeva"
What is the 4.45 for Yelena Isinbayeva?
CREATE TABLE table_name_5 (name VARCHAR)
SELECT year_joined FROM table_name_65 WHERE _number___county = "09 cass"
what is the correct year for # / county of 09 cass?
CREATE TABLE table_name_65 (year_joined VARCHAR, _number___county VARCHAR)
SELECT conference AS Tournament FROM table_22779004_1 WHERE regular_season_winner = "Idaho State"
Who won the tournament when Idaho State won the regular season?
CREATE TABLE table_22779004_1 (conference VARCHAR, regular_season_winner VARCHAR)
SELECT SUM(scored) FROM table_name_41 WHERE played < 18
How many points are in the scored category for the team that played less than 18 games?
CREATE TABLE table_name_41 (scored INTEGER, played INTEGER)
SELECT COUNT(attendance) FROM table_name_85 WHERE date = "june 18"
How many people attended the game on June 18?
CREATE TABLE table_name_85 (attendance VARCHAR, date VARCHAR)
SELECT position FROM table_name_58 WHERE points > 4 AND tries < 12 AND squad_no > 1 AND player = "ali lauitiiti"
Which position has more than 4 points, less than 12 tries, a squad number of more than 1, and where Ali Lauitiiti is a player?
CREATE TABLE table_name_58 (position VARCHAR, player VARCHAR, squad_no VARCHAR, points VARCHAR, tries VARCHAR)
SELECT AVG(lost) FROM table_name_53 WHERE matches = 6
Name the average lost for matches of 6
CREATE TABLE table_name_53 (lost INTEGER, matches VARCHAR)
SELECT venue FROM table_name_12 WHERE nationality = "ukraine"
Which venue is with Ukraine?
CREATE TABLE table_name_12 (venue VARCHAR, nationality VARCHAR)
SELECT COUNT(runners) FROM table_name_34 WHERE placing > 8
How many runners had placings over 8?
CREATE TABLE table_name_34 (runners VARCHAR, placing INTEGER)
SELECT id FROM station WHERE lat > 37.4 EXCEPT SELECT station_id FROM status GROUP BY station_id HAVING MIN(bikes_available) < 7
What are the ids of stations that have latitude above 37.4 and never had bike availability below 7?
CREATE TABLE status (id VARCHAR, station_id VARCHAR, lat INTEGER, bikes_available INTEGER); CREATE TABLE station (id VARCHAR, station_id VARCHAR, lat INTEGER, bikes_available INTEGER)
SELECT type FROM table_11891841_2 WHERE country = "ESp"
What is the type where the country is esp?
CREATE TABLE table_11891841_2 (type VARCHAR, country VARCHAR)
SELECT result FROM table_1342218_17 WHERE incumbent = "Brent Spence"
What was the result of the election incumbent Brent Spence took place in?
CREATE TABLE table_1342218_17 (result VARCHAR, incumbent VARCHAR)
SELECT name FROM table_name_10 WHERE bonus > 1 AND only_point > 7 AND total_point < 21
What is Name, when Bonus is greater than 1, when Only Point is greater than 7, and when Total Point is less than 21?
CREATE TABLE table_name_10 (name VARCHAR, total_point VARCHAR, bonus VARCHAR, only_point VARCHAR)
SELECT xiii_season FROM table_name_82 WHERE viii_season = "4 780 743 (2 november 2008)"
What is XIII Season, when VIII Season is 4 780 743 (2 november 2008)?
CREATE TABLE table_name_82 (xiii_season VARCHAR, viii_season VARCHAR)
SELECT location FROM table_25572068_1 WHERE winning_driver = "Nathanaël Berthon"
What was the location when the winning driver was Nathanaël Berthon?
CREATE TABLE table_25572068_1 (location VARCHAR, winning_driver VARCHAR)
SELECT location FROM table_name_40 WHERE tournament = "buick-goodwrench open"
What is the Location for the buick-goodwrench open?
CREATE TABLE table_name_40 (location VARCHAR, tournament VARCHAR)
SELECT winning_party_2003 FROM table_name_62 WHERE constituency = "aberdeen north"
Can you tell me the Winning party of 2003 that has the Constituency of aberdeen north?
CREATE TABLE table_name_62 (winning_party_2003 VARCHAR, constituency VARCHAR)
SELECT AVG(pop__2010_) FROM table_name_21 WHERE ansi_code < 1036864 AND longitude > -98.46611 AND land___sqmi__ < 36.238 AND latitude < 48.144102
Which Pop (2010) has an ANSI code smaller than 1036864, and a Longitude larger than -98.46611, and a Land (sqmi) smaller than 36.238, and a Latitude smaller than 48.144102?
CREATE TABLE table_name_21 (pop__2010_ INTEGER, latitude VARCHAR, land___sqmi__ VARCHAR, ansi_code VARCHAR, longitude VARCHAR)
SELECT runner_up_a FROM table_22752982_5 WHERE winner = "K. P. Ramalingam"
Who was the runner-up (a) if K. P. Ramalingam won the election?
CREATE TABLE table_22752982_5 (runner_up_a VARCHAR, winner VARCHAR)
SELECT season FROM table_name_77 WHERE league = "bezirksliga"
Which Season has a League of bezirksliga?
CREATE TABLE table_name_77 (season VARCHAR, league VARCHAR)
SELECT percentage FROM table_26200568_16 WHERE points_for = 63
What is the percentage listed for the team who scored 63 points?
CREATE TABLE table_26200568_16 (percentage VARCHAR, points_for VARCHAR)
SELECT region FROM table_name_15 WHERE date = "early september 1999"
Which Region has a Date of early september 1999?
CREATE TABLE table_name_15 (region VARCHAR, date VARCHAR)
SELECT score FROM table_name_72 WHERE partner = "mardy fish"
What was the score of the match in which mardy fish was the partner?
CREATE TABLE table_name_72 (score VARCHAR, partner VARCHAR)
SELECT record FROM table_name_41 WHERE date = "october 24"
What was the record on October 24?
CREATE TABLE table_name_41 (record VARCHAR, date VARCHAR)
SELECT date FROM table_1140067_2 WHERE race = "Monaco Grand Prix"
What was the date for monaco grand prix?
CREATE TABLE table_1140067_2 (date VARCHAR, race VARCHAR)
SELECT COUNT(poverty__2009__hpi_1__percentage) FROM table_name_69 WHERE gdp__ppp___2012__us$_per_capita = "11,284"
What is the sum of poverty (2009) HPI-1 % when the GDP (PPP) (2012) US$ per capita of 11,284?
CREATE TABLE table_name_69 (poverty__2009__hpi_1__percentage VARCHAR, gdp__ppp___2012__us$_per_capita VARCHAR)
SELECT stadium FROM table_25794138_1 WHERE team = "San Juan Jabloteh"
What stadium(sO does san juan jabloteh play in?
CREATE TABLE table_25794138_1 (stadium VARCHAR, team VARCHAR)
SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY COUNT(*) DESC LIMIT 1
What is the name of the breed with the most dogs?
CREATE TABLE Dogs (breed_code VARCHAR); CREATE TABLE Breeds (breed_name VARCHAR, breed_code VARCHAR)
SELECT score FROM table_18904831_7 WHERE record = "25-8"
What was the score in the game that had a record of 25-8?
CREATE TABLE table_18904831_7 (score VARCHAR, record VARCHAR)
SELECT release_date FROM table_name_43 WHERE voltage = "1.65–1.7 v" AND mult = "4.5×" AND socket = "slot 1"
When was the microprocessor with 1.65–1.7 v, a mult of 4.5×, and a slot 1 socket released?
CREATE TABLE table_name_43 (release_date VARCHAR, socket VARCHAR, voltage VARCHAR, mult VARCHAR)