question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What was the location for the team name of patriots?
CREATE TABLE table_24195232_1 (location VARCHAR, team_name VARCHAR)
SELECT location FROM table_24195232_1 WHERE team_name = "Patriots"
Who was the away team at the game held at Brunswick Street Oval?
CREATE TABLE table_name_45 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_45 WHERE venue = "brunswick street oval"
What grid for jacques villeneuve with over 36 laps?
CREATE TABLE table_name_8 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT MAX(grid) FROM table_name_8 WHERE driver = "jacques villeneuve" AND laps > 36
What is the total revenue of all companies whose main office is at Tokyo or Taiwan?
CREATE TABLE manufacturers (revenue INTEGER, Headquarter VARCHAR)
SELECT SUM(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan'
What Version has a Remixed by Perky Park with a Length of 6:38?
CREATE TABLE table_name_29 (version VARCHAR, remixed_by VARCHAR, length VARCHAR)
SELECT version FROM table_name_29 WHERE remixed_by = "perky park" AND length = "6:38"
Which position is most popular among players in the tryout?
CREATE TABLE tryout (pPos VARCHAR)
SELECT pPos FROM tryout GROUP BY pPos ORDER BY COUNT(*) DESC LIMIT 1
What is the quantity made of the locomotive with a Waterford class?
CREATE TABLE table_name_67 (quantity_made VARCHAR, class VARCHAR)
SELECT quantity_made FROM table_name_67 WHERE class = "waterford"
what's the county name for the republican river bridge listed on 1992-06-29?
CREATE TABLE table_name_36 (county VARCHAR, listed VARCHAR, name VARCHAR)
SELECT county FROM table_name_36 WHERE listed = "1992-06-29" AND name = "republican river bridge"
What was the average year during which the score was 270?
CREATE TABLE table_name_7 (year INTEGER, score VARCHAR)
SELECT AVG(year) FROM table_name_7 WHERE score = 270
Which Score has a Record of 9–8?
CREATE TABLE table_name_35 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_35 WHERE record = "9–8"
Who got 59.578 for Qual 1?
CREATE TABLE table_name_79 (name VARCHAR, qual_1 VARCHAR)
SELECT name FROM table_name_79 WHERE qual_1 = "59.578"
What round was Joe Sims picked?
CREATE TABLE table_name_24 (round INTEGER, player VARCHAR)
SELECT AVG(round) FROM table_name_24 WHERE player = "joe sims"
What is the number of Last Runners-up that has the club name of dempo sc?
CREATE TABLE table_name_63 (Last INTEGER, club VARCHAR)
SELECT SUM(Last) AS runners_up FROM table_name_63 WHERE club = "dempo sc"
What is the location that has a date of demolition of 1940 and has a church named Christ Church Greyfriars?
CREATE TABLE table_name_46 (location VARCHAR, date_of_demolition VARCHAR, church_name VARCHAR)
SELECT location FROM table_name_46 WHERE date_of_demolition = 1940 AND church_name = "christ church greyfriars"
What is the Position with a Year with freshman, and a Weight larger than 210?
CREATE TABLE table_name_79 (position VARCHAR, year VARCHAR, weight VARCHAR)
SELECT position FROM table_name_79 WHERE year = "freshman" AND weight > 210
How many steals did Kelly Miller have?
CREATE TABLE table_25353861_5 (steals INTEGER, player VARCHAR)
SELECT MIN(steals) FROM table_25353861_5 WHERE player = "Kelly Miller"
What is the Homeport that has a Laid down on 14 december 1985?
CREATE TABLE table_name_73 (homeport__as_of_july_2013_ VARCHAR, laid_down VARCHAR)
SELECT homeport__as_of_july_2013_ FROM table_name_73 WHERE laid_down = "14 december 1985"
Which team plays at Punt Road Oval?
CREATE TABLE table_name_75 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_75 WHERE venue = "punt road oval"
What's the pick number of the player from New Mexico?
CREATE TABLE table_10812938_5 (pick__number INTEGER, college VARCHAR)
SELECT MAX(pick__number) FROM table_10812938_5 WHERE college = "New Mexico"
How many dates had a final score of w 118-112?
CREATE TABLE table_17382360_9 (date VARCHAR, score VARCHAR)
SELECT COUNT(date) FROM table_17382360_9 WHERE score = "W 118-112"
What is the class for the position of lg?
CREATE TABLE table_name_4 (class VARCHAR, position VARCHAR)
SELECT class FROM table_name_4 WHERE position = "lg"
Name the circuit for 13 july
CREATE TABLE table_25322130_3 (circuit VARCHAR, date VARCHAR)
SELECT circuit FROM table_25322130_3 WHERE date = "13 July"
What was the attendance of the game on December 11, 2005?
CREATE TABLE table_name_82 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_82 WHERE date = "december 11, 2005"
What is the Doha, Qatar when the snatch is total?
CREATE TABLE table_name_17 (doha_ VARCHAR, _qatar VARCHAR, snatch VARCHAR)
SELECT doha_, _qatar FROM table_name_17 WHERE snatch = "total"
When 1927 is the founded year how many measurements of enrollment in 2012 are there?
CREATE TABLE table_2076516_1 (enrollment__2012_ VARCHAR, founded VARCHAR)
SELECT COUNT(enrollment__2012_) FROM table_2076516_1 WHERE founded = 1927
When has Score of 4–5, and a Record of 21–21–3?
CREATE TABLE table_name_94 (date VARCHAR, score VARCHAR, record VARCHAR)
SELECT date FROM table_name_94 WHERE score = "4–5" AND record = "21–21–3"
Which Country has a Score of 71-74-70=215?
CREATE TABLE table_name_37 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_37 WHERE score = 71 - 74 - 70 = 215
What is the points gained of the match where fans took 403 [sunday]?
CREATE TABLE table_name_36 (points_gained INTEGER, fans_took VARCHAR)
SELECT SUM(points_gained) FROM table_name_36 WHERE fans_took = "403 [sunday]"
What is the latest year when Call of Duty 4: Modern Warfare was the game?
CREATE TABLE table_name_63 (year INTEGER, game VARCHAR)
SELECT MAX(year) FROM table_name_63 WHERE game = "call of duty 4: modern warfare"
What is the time/retired with 60 laps and a grid 19?
CREATE TABLE table_name_19 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_19 WHERE laps = 60 AND grid = 19
How many conversions had 0 pens and 0 tries?
CREATE TABLE table_name_39 (conv VARCHAR, pens VARCHAR, tries VARCHAR)
SELECT conv FROM table_name_39 WHERE pens = "0" AND tries = "0"
there are in tobago species name helicops angulatus
CREATE TABLE table_1850282_5 (tobago VARCHAR, species VARCHAR)
SELECT tobago FROM table_1850282_5 WHERE species = "Helicops angulatus"
What date was the participant/recipient takakazu watanabe?
CREATE TABLE table_26282750_1 (date_of_ceremony VARCHAR, participants_recipients VARCHAR)
SELECT date_of_ceremony FROM table_26282750_1 WHERE participants_recipients = "Takakazu Watanabe"
Who is the director for diary for my loves?
CREATE TABLE table_14975415_1 (director VARCHAR, english_title VARCHAR)
SELECT director FROM table_14975415_1 WHERE english_title = "Diary for My Loves"
Which position has had 7 first-team appearances?
CREATE TABLE table_name_7 (position VARCHAR, first_team_appearances VARCHAR)
SELECT position FROM table_name_7 WHERE first_team_appearances = "7"
How many total rounds have the results of win, and n/a as the method?
CREATE TABLE table_name_12 (round VARCHAR, res VARCHAR, method VARCHAR)
SELECT COUNT(round) FROM table_name_12 WHERE res = "win" AND method = "n/a"
Which Second has a Nation of latvia?
CREATE TABLE table_name_16 (second VARCHAR, nation VARCHAR)
SELECT second FROM table_name_16 WHERE nation = "latvia"
What was Sherrick McManis's earliest round?
CREATE TABLE table_20996923_25 (round__number INTEGER, player VARCHAR)
SELECT MIN(round__number) FROM table_20996923_25 WHERE player = "Sherrick McManis"
What's the total silver medals having less than 2 gold and 2 bronze?
CREATE TABLE table_name_29 (silver VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT COUNT(silver) FROM table_name_29 WHERE bronze = 2 AND gold < 2
What resulted after 4 rounds with Ed Mahone?
CREATE TABLE table_name_19 (result VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_19 WHERE round > 4 AND opponent = "ed mahone"
Which College/Junior/Club Team (League) did the player in round 6 play for?
CREATE TABLE table_name_98 (college_junior_club_team__league_ VARCHAR, round VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_98 WHERE round = "6"
What is the average age of the visitors whose membership level is not higher than 4?
CREATE TABLE visitor (age INTEGER, Level_of_membership VARCHAR)
SELECT AVG(age) FROM visitor WHERE Level_of_membership <= 4
What is the entire inhabitants in Southeast Asia?
CREATE TABLE table_1389609_3 (total_population INTEGER, region VARCHAR)
SELECT MIN(total_population) FROM table_1389609_3 WHERE region = "Southeast Asia"
What was the overall draft pick for the player selected for the tight end position?
CREATE TABLE table_name_72 (overall VARCHAR, position VARCHAR)
SELECT overall FROM table_name_72 WHERE position = "tight end"
Which Tonnage is on 25 july 1942?
CREATE TABLE table_name_66 (tonnage VARCHAR, date VARCHAR)
SELECT tonnage FROM table_name_66 WHERE date = "25 july 1942"
Who is the alternate for Andy Brown, and Nick Grady?
CREATE TABLE table_name_7 (alternate__2_ VARCHAR, coach VARCHAR, captain VARCHAR)
SELECT alternate__2_ FROM table_name_7 WHERE coach = "andy brown" AND captain = "nick grady"
What is the deficit (-surplus) of France?
CREATE TABLE table_15624586_2 (deficit___surplus_ VARCHAR, country VARCHAR)
SELECT deficit___surplus_ FROM table_15624586_2 WHERE country = "France"
How many times was country considered when starky % was 20.96%
CREATE TABLE table_19681738_1 (county VARCHAR, starky__percentage VARCHAR)
SELECT COUNT(county) FROM table_19681738_1 WHERE starky__percentage = "20.96%"
What is the highest number of byes where the losses were 9 and the draws were less than 0?
CREATE TABLE table_name_93 (byes INTEGER, losses VARCHAR, draws VARCHAR)
SELECT MAX(byes) FROM table_name_93 WHERE losses = 9 AND draws < 0
What is the average number of top-10s for events under 57 and 0 top-5s?
CREATE TABLE table_name_6 (top_10 INTEGER, events VARCHAR, top_5 VARCHAR)
SELECT AVG(top_10) FROM table_name_6 WHERE events < 57 AND top_5 < 0
Which model possesses a transmission make/type/speed of eaton fs-6306 a manual synchromesh 6 speed?
CREATE TABLE table_11497980_1 (model VARCHAR, transmission_make_type_speed VARCHAR)
SELECT model FROM table_11497980_1 WHERE transmission_make_type_speed = "Eaton FS-6306 A Manual Synchromesh 6 Speed"
What team played on March 20?
CREATE TABLE table_17102076_9 (team VARCHAR, date VARCHAR)
SELECT team FROM table_17102076_9 WHERE date = "March 20"
Which 2nd leg has pamesa valencia for team #2?
CREATE TABLE table_name_52 (team__number2 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_52 WHERE team__number2 = "pamesa valencia"
Name the chassis for engine of brm v12
CREATE TABLE table_name_49 (chassis VARCHAR, engine VARCHAR)
SELECT chassis FROM table_name_49 WHERE engine = "brm v12"
What was the result when the partner was magdalena maleeva?
CREATE TABLE table_name_16 (result VARCHAR, partner VARCHAR)
SELECT result FROM table_name_16 WHERE partner = "magdalena maleeva"
When Fitzroy are the away team, what is the average crowd size?
CREATE TABLE table_name_65 (crowd INTEGER, away_team VARCHAR)
SELECT AVG(crowd) FROM table_name_65 WHERE away_team = "fitzroy"
How many villains were in episode 3 (13)?
CREATE TABLE table_23170118_2 (villains VARCHAR, episode_number VARCHAR)
SELECT COUNT(villains) FROM table_23170118_2 WHERE episode_number = "3 (13)"
Who won the tournament when Idaho State won the regular season?
CREATE TABLE table_22779004_1 (conference VARCHAR, regular_season_winner VARCHAR)
SELECT conference AS Tournament FROM table_22779004_1 WHERE regular_season_winner = "Idaho State"
What was the place when the score was 71-69-71=211?
CREATE TABLE table_name_22 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_22 WHERE score = 71 - 69 - 71 = 211
In what venue was the event held on 14 February 2009?
CREATE TABLE table_name_95 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_95 WHERE date = "14 february 2009"
What is the set 3 when the total is 78–92?
CREATE TABLE table_name_95 (set_3 VARCHAR, total VARCHAR)
SELECT set_3 FROM table_name_95 WHERE total = "78–92"
List all the distinct product names ordered by product id?
CREATE TABLE product (product_name VARCHAR, product_id VARCHAR)
SELECT DISTINCT product_name FROM product ORDER BY product_id
What are the names of customers using the most popular payment method?
CREATE TABLE customers (customer_name VARCHAR, payment_method VARCHAR)
SELECT customer_name FROM customers WHERE payment_method = (SELECT payment_method FROM customers GROUP BY payment_method ORDER BY COUNT(*) DESC LIMIT 1)
When the death is none what is the number of major hurricanes?
CREATE TABLE table_2930244_3 (number_of_major_hurricanes VARCHAR, deaths VARCHAR)
SELECT COUNT(number_of_major_hurricanes) FROM table_2930244_3 WHERE deaths = "None"
What was the method when the fight's time was 1:52?
CREATE TABLE table_name_31 (method VARCHAR, time VARCHAR)
SELECT method FROM table_name_31 WHERE time = "1:52"
The fighting knights has what type of nickname?
CREATE TABLE table_1183842_1 (type VARCHAR, nickname VARCHAR)
SELECT type FROM table_1183842_1 WHERE nickname = "Fighting Knights"
What's the English Title of Fanny Och Alexander?
CREATE TABLE table_name_20 (english_title VARCHAR, original_title VARCHAR)
SELECT english_title FROM table_name_20 WHERE original_title = "fanny och alexander"
What is the Format of the September 22, 2008 release with Catalog number RTRADCD491?
CREATE TABLE table_name_41 (format VARCHAR, catalog VARCHAR, date VARCHAR)
SELECT format FROM table_name_41 WHERE catalog = "rtradcd491" AND date = "september 22, 2008"
Who is the semi-final second television commentator with graham norton as the final television commentator and scott mills as the spokesperson before 2013?
CREATE TABLE table_name_51 (semi_final_second_television_commentator VARCHAR, year_s_ VARCHAR, final_television_commentator VARCHAR, spokesperson VARCHAR)
SELECT semi_final_second_television_commentator FROM table_name_51 WHERE final_television_commentator = "graham norton" AND spokesperson = "scott mills" AND year_s_ < 2013
What is the average number in attendance on September 16?
CREATE TABLE table_name_23 (attendance INTEGER, date VARCHAR)
SELECT AVG(attendance) FROM table_name_23 WHERE date = "september 16"
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 AVG(pop__2010_) FROM table_name_21 WHERE ansi_code < 1036864 AND longitude > -98.46611 AND land___sqmi__ < 36.238 AND latitude < 48.144102
When was the game that had a first prize of $161,480?
CREATE TABLE table_name_64 (date VARCHAR, first_prize VARCHAR)
SELECT date FROM table_name_64 WHERE first_prize = "$161,480"
Which Representative has a Termination of Mission as May 24, 1905?
CREATE TABLE table_name_10 (representative VARCHAR, termination_of_mission VARCHAR)
SELECT representative FROM table_name_10 WHERE termination_of_mission = "may 24, 1905"
how many verbs have the yo form as sienta?
CREATE TABLE table_1977630_2 (verbs VARCHAR, yo VARCHAR)
SELECT COUNT(verbs) FROM table_1977630_2 WHERE yo = "sienta"
Where did Essendon play as the away team?
CREATE TABLE table_name_9 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_9 WHERE away_team = "essendon"
what's the drawn with lost being 4
CREATE TABLE table_14058433_4 (drawn VARCHAR, lost VARCHAR)
SELECT drawn FROM table_14058433_4 WHERE lost = "4"
What is the type of the gps iif-10 satellite?
CREATE TABLE table_name_38 (type VARCHAR, satellite VARCHAR)
SELECT type FROM table_name_38 WHERE satellite = "gps iif-10"
Who had the high rebound total on january 6?
CREATE TABLE table_17140608_7 (high_rebounds VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_17140608_7 WHERE date = "January 6"
How many point totals are there that rank higher than 9 and have a PPG avg higher than 13.4?
CREATE TABLE table_name_48 (total_points VARCHAR, rank VARCHAR, ppg_avg VARCHAR)
SELECT COUNT(total_points) FROM table_name_48 WHERE rank > 9 AND ppg_avg > 13.4
What is the ergative for the dative chven?
CREATE TABLE table_name_33 (ergative VARCHAR, dative VARCHAR)
SELECT ergative FROM table_name_33 WHERE dative = "chven"
How many games have a Score of 3–0, and a January larger than 12?
CREATE TABLE table_name_16 (game VARCHAR, score VARCHAR, january VARCHAR)
SELECT COUNT(game) FROM table_name_16 WHERE score = "3–0" AND january > 12
Show the location name and code with the least documents.
CREATE TABLE Document_locations (location_code VARCHAR); CREATE TABLE Ref_locations (location_name VARCHAR, location_code VARCHAR)
SELECT T2.location_name, T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY COUNT(*) LIMIT 1
What is the 2010 entry for the row that has a 2009 entry of 270?
CREATE TABLE table_name_35 (Id VARCHAR)
SELECT 2010 FROM table_name_35 WHERE 2009 = "270"
How many rounds did Nil Montserrat drive in?
CREATE TABLE table_name_94 (rounds VARCHAR, driver VARCHAR)
SELECT rounds FROM table_name_94 WHERE driver = "nil montserrat"
Which Venue has a Competition of european championships, and a Position of 7th?
CREATE TABLE table_name_22 (venue VARCHAR, competition VARCHAR, position VARCHAR)
SELECT venue FROM table_name_22 WHERE competition = "european championships" AND position = "7th"
What to Footscray score at home?
CREATE TABLE table_16387653_1 (home_team VARCHAR)
SELECT home_team AS score FROM table_16387653_1 WHERE home_team = "Footscray"
On what date was the result w 28–7?
CREATE TABLE table_name_85 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_85 WHERE result = "w 28–7"
What is Current Rank, when Ring Name is Tamaasuka Daisuke?
CREATE TABLE table_name_4 (current_rank VARCHAR, ring_name VARCHAR)
SELECT current_rank FROM table_name_4 WHERE ring_name = "tamaasuka daisuke"
What was the original airdate of the episode with production number 2x03?
CREATE TABLE table_26293875_3 (original_airdate VARCHAR, prod_no VARCHAR)
SELECT original_airdate FROM table_26293875_3 WHERE prod_no = "2x03"
What is the earliest first elected date of incumbent howard mckeon?
CREATE TABLE table_name_26 (first_elected INTEGER, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_name_26 WHERE incumbent = "howard mckeon"
Where was the location of the Mong Kok Stadium?
CREATE TABLE table_name_12 (location VARCHAR, home_ground VARCHAR)
SELECT location FROM table_name_12 WHERE home_ground = "mong kok stadium"
What was the second qualification time with a first qualification time of 1:02.813?
CREATE TABLE table_name_29 (qual_2 VARCHAR, qual_1 VARCHAR)
SELECT qual_2 FROM table_name_29 WHERE qual_1 = "1:02.813"
Who is the second member ewarlier than 1804 when Tory Henry Isherwood is the first member?
CREATE TABLE table_name_15 (second_member VARCHAR, first_member VARCHAR, first_party VARCHAR, year VARCHAR)
SELECT second_member FROM table_name_15 WHERE first_party = "tory" AND year < 1804 AND first_member = "henry isherwood"
What is the score for april 29?
CREATE TABLE table_11964263_13 (score VARCHAR, date VARCHAR)
SELECT score FROM table_11964263_13 WHERE date = "April 29"
If skeletal system is the subject when was it first aired?
CREATE TABLE table_191105_3 (first_aired VARCHAR, subject VARCHAR)
SELECT first_aired FROM table_191105_3 WHERE subject = "Skeletal system"
What is the traditional Chinese character set for the location that has an area of 181?
CREATE TABLE table_1982739_2 (traditional_chinese VARCHAR, area VARCHAR)
SELECT traditional_chinese FROM table_1982739_2 WHERE area = 181
What is the function of 1.4 version of Windows live messenger?
CREATE TABLE table_18138132_2 (function VARCHAR, version VARCHAR, title VARCHAR)
SELECT function FROM table_18138132_2 WHERE version = "1.4" AND title = "Windows Live Messenger"
When Republican ticket was John P. Lomenzo who ran for the Socialist Workers ticket?
CREATE TABLE table_name_99 (socialist_workers_ticket VARCHAR, republican_ticket VARCHAR)
SELECT socialist_workers_ticket FROM table_name_99 WHERE republican_ticket = "john p. lomenzo"
What was the language of "Mein Name Ist Bach"?
CREATE TABLE table_22034853_1 (language_s_ VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT language_s_ FROM table_22034853_1 WHERE film_title_used_in_nomination = "Mein Name Ist Bach"
What year was the cormorant built in?
CREATE TABLE table_name_46 (year_built VARCHAR, name VARCHAR)
SELECT year_built FROM table_name_46 WHERE name = "cormorant"