answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT 1953 FROM table_name_52 WHERE 1947 = "2" AND 1938 = "dne"
What 1953 has 2 for 1947, and dne as 1938?
CREATE TABLE table_name_52 (Id VARCHAR)
SELECT date FROM table_name_84 WHERE visitor = "florida"
Can you tell me the Date that has the Visitor of florida?
CREATE TABLE table_name_84 (date VARCHAR, visitor VARCHAR)
SELECT COUNT(*) FROM WINE WHERE Winery = "Robert Biale"
How many wines are produced at Robert Biale winery?
CREATE TABLE WINE (Winery VARCHAR)
SELECT to_par FROM table_name_4 WHERE player = "payne stewart"
Name the To par of payne stewart?
CREATE TABLE table_name_4 (to_par VARCHAR, player VARCHAR)
SELECT score FROM table_name_98 WHERE game = "4"
What is the Score of Game 4?
CREATE TABLE table_name_98 (score VARCHAR, game VARCHAR)
SELECT wickets FROM table_15700367_2 WHERE overs_bowled = "15"
Name the wickets for overs bowled being 15
CREATE TABLE table_15700367_2 (wickets VARCHAR, overs_bowled VARCHAR)
SELECT to_par FROM table_name_25 WHERE score = 71 - 74 - 72 - 72 = 289
What is the To par of the Player with a Score of 71-74-72-72=289?
CREATE TABLE table_name_25 (to_par VARCHAR, score VARCHAR)
SELECT school FROM table_name_36 WHERE pick = 29
What school had the draft pick of 29?
CREATE TABLE table_name_36 (school VARCHAR, pick VARCHAR)
SELECT score FROM table_27722408_11 WHERE team = "Washington"
What was the score when the Celtics played Washington at home?
CREATE TABLE table_27722408_11 (score VARCHAR, team VARCHAR)
SELECT venue FROM table_name_73 WHERE city = "long beach"
What venue is in Long Beach?
CREATE TABLE table_name_73 (venue VARCHAR, city VARCHAR)
SELECT college FROM table_10975034_5 WHERE player = "Craig Zimmer"
What college did Craig Zimmer go to?
CREATE TABLE table_10975034_5 (college VARCHAR, player VARCHAR)
SELECT player FROM table_name_55 WHERE round = 1
Who was the player in round 1?
CREATE TABLE table_name_55 (player VARCHAR, round VARCHAR)
SELECT COUNT(field_goals) FROM table_24906653_5 WHERE points = 171
List the number of long range shors where the score is 171.
CREATE TABLE table_24906653_5 (field_goals VARCHAR, points VARCHAR)
SELECT country FROM table_name_22 WHERE player = "tiger woods"
What country is Tiger Woods from?
CREATE TABLE table_name_22 (country VARCHAR, player VARCHAR)
SELECT destination FROM table_name_47 WHERE stopping_pattern = "[2777] mciver station platforms"
Which Destination has a Stopping pattern of [2777] mciver station platforms?
CREATE TABLE table_name_47 (destination VARCHAR, stopping_pattern VARCHAR)
SELECT forward_assist FROM table_12834315_4 WHERE barrel_profile = "A2"
Name the forward assist for a2 barrel profile
CREATE TABLE table_12834315_4 (forward_assist VARCHAR, barrel_profile VARCHAR)
SELECT MAX(silver) FROM table_name_1 WHERE nation = "total" AND bronze < 18
Which Silver has a Nation of total, and a Bronze smaller than 18?
CREATE TABLE table_name_1 (silver INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT score FROM table_name_8 WHERE country = "united states" AND to_par = "+1" AND player = "wally armstrong"
What was the score of united states player wally armstrong when he had a To par of +1
CREATE TABLE table_name_8 (score VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT place FROM table_name_91 WHERE score < 70 AND country = "united states" AND player = "hubert green"
In what place did hubert green score below 70 in the united states?
CREATE TABLE table_name_91 (place VARCHAR, player VARCHAR, score VARCHAR, country VARCHAR)
SELECT MIN(react) FROM table_name_94 WHERE name = "bryan clay"
What was Bryan Clay's react time?
CREATE TABLE table_name_94 (react INTEGER, name VARCHAR)
SELECT MIN(european_parliament_seats) FROM table_158282_1 WHERE international_affiliation = "Global Greens, EGP"
What is the smallest number of European Parliament sets when the international affiliation is global greens, egp?
CREATE TABLE table_158282_1 (european_parliament_seats INTEGER, international_affiliation VARCHAR)
SELECT COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini"
How many orders does Lucas Mancini has?
CREATE TABLE invoices (customer_id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT budget_type_description FROM Ref_budget_codes WHERE budget_type_code = "ORG"
What is the description for the budget type with code ORG?
CREATE TABLE Ref_budget_codes (budget_type_description VARCHAR, budget_type_code VARCHAR)
SELECT rank FROM table_name_8 WHERE team = "yamaha" AND points = 3
What is team Yamaha with 3 points ranked?
CREATE TABLE table_name_8 (rank VARCHAR, team VARCHAR, points VARCHAR)
SELECT h___a FROM table_name_53 WHERE opponents = "cork city"
What is the H/A when Cork City is the opponent?
CREATE TABLE table_name_53 (h___a VARCHAR, opponents VARCHAR)
SELECT country FROM table_name_67 WHERE event = "rip curl women's pro"
What is Country, when Event is Rip Curl Women's Pro?
CREATE TABLE table_name_67 (country VARCHAR, event VARCHAR)
SELECT method FROM table_name_44 WHERE res = "win" AND round = 1 AND record = "3-2"
What is the method of the match with a win res., 1 round, and a 3-2 record?
CREATE TABLE table_name_44 (method VARCHAR, record VARCHAR, res VARCHAR, round VARCHAR)
SELECT MIN(week) FROM table_name_4 WHERE attendance = 48 OFFSET 102
Which week has the lowest attendance of 48,102?
CREATE TABLE table_name_4 (week INTEGER, attendance VARCHAR)
SELECT avg_speed FROM table_name_23 WHERE distance = "18.00km" AND winning_driver = "jean-claude andruet"
What was the average speed over 18.00km for winning driver Jean-Claude Andruet?
CREATE TABLE table_name_23 (avg_speed VARCHAR, distance VARCHAR, winning_driver VARCHAR)
SELECT original_air_date FROM table_29584044_1 WHERE directed_by = "Bruce Seth Green"
What is the original air date of the episode that was directed by Bruce Seth Green?
CREATE TABLE table_29584044_1 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT engine_configuration FROM table_name_80 WHERE engine_name = "1.2 mpi"
What is the engine configuration of the 1.2 mpi engine?
CREATE TABLE table_name_80 (engine_configuration VARCHAR, engine_name VARCHAR)
SELECT party FROM table_1341453_40 WHERE incumbent = "Tim Holden"
Incumbent Tim Holden belonged to what party?
CREATE TABLE table_1341453_40 (party VARCHAR, incumbent VARCHAR)
SELECT SUM(total) FROM table_name_24 WHERE to_par = "–13"
What is the Total of the Player with a To par of –13?
CREATE TABLE table_name_24 (total INTEGER, to_par VARCHAR)
SELECT AVG(week) FROM table_name_53 WHERE date = "november 22, 1964" AND attendance > 48 OFFSET 065
What is the average week of the game on November 22, 1964 attended by 48,065?
CREATE TABLE table_name_53 (week INTEGER, date VARCHAR, attendance VARCHAR)
SELECT tournament FROM table_name_78 WHERE surface = "hard" AND date = "february 25, 1996"
What tournament had a hard surface on February 25, 1996?
CREATE TABLE table_name_78 (tournament VARCHAR, surface VARCHAR, date VARCHAR)
SELECT term_start FROM table_name_47 WHERE title = "minister for agriculture, fisheries and forestry" AND order = "25"
What was the starting date for the Minister for agriculture, fisheries and forestry that is in order number 25??
CREATE TABLE table_name_47 (term_start VARCHAR, title VARCHAR, order VARCHAR)
SELECT opponent FROM table_name_7 WHERE week = 15
Which team was the opponent on week 15?
CREATE TABLE table_name_7 (opponent VARCHAR, week VARCHAR)
SELECT total_tenure_time FROM table_name_3 WHERE total_tenure_rank = 49
What was the total tenure time with a rank of 49?
CREATE TABLE table_name_3 (total_tenure_time VARCHAR, total_tenure_rank VARCHAR)
SELECT COUNT(party) FROM table_1341423_32 WHERE district = "New York 29"
Name the number of party for new york 29
CREATE TABLE table_1341423_32 (party VARCHAR, district VARCHAR)
SELECT SUM(televote) FROM table_name_44 WHERE artist = "pokeris" AND place < 10
What is the total of televote for the artist Pokeris when the place was less than 10?
CREATE TABLE table_name_44 (televote INTEGER, artist VARCHAR, place VARCHAR)
SELECT played_in FROM table_name_55 WHERE points_for = "119"
Where was the match that had 119 points for played?
CREATE TABLE table_name_55 (played_in VARCHAR, points_for VARCHAR)
SELECT COUNT(semi_final__week_) FROM table_27529608_21 WHERE hometown = "Pittsburgh, Pennsylvania"
How many semi-final weeks are there for acts from Pittsburgh, Pennsylvania?
CREATE TABLE table_27529608_21 (semi_final__week_ VARCHAR, hometown VARCHAR)
SELECT record FROM table_name_95 WHERE home = "anaheim"
What was the record while at home in Anaheim?
CREATE TABLE table_name_95 (record VARCHAR, home VARCHAR)
SELECT MIN(against) FROM table_name_84 WHERE wins < 9 AND draws < 0
What is the lowest against that has less than 9 wins, and draws smaller than 0?
CREATE TABLE table_name_84 (against INTEGER, wins VARCHAR, draws VARCHAR)
SELECT starter FROM table_25711913_8 WHERE player = "Magoffin"
Was Magoffin a starting player?
CREATE TABLE table_25711913_8 (starter VARCHAR, player VARCHAR)
SELECT hometown FROM table_name_51 WHERE college = "lsu"
What's the hometown of the player with a college of lsu?
CREATE TABLE table_name_51 (hometown VARCHAR, college VARCHAR)
SELECT MIN(january) FROM table_name_13 WHERE opponent = "florida panthers" AND points < 59
Which January is the lowest one that has an Opponent of florida panthers, and Points smaller than 59?
CREATE TABLE table_name_13 (january INTEGER, opponent VARCHAR, points VARCHAR)
SELECT 2012 FROM table_name_13 WHERE 2010 = "a" AND tournament = "wimbledon"
What is the 2012 value with A in 2010 at the Tournament of Wimbledon?
CREATE TABLE table_name_13 (tournament VARCHAR)
SELECT AVG(rank) FROM table_name_50 WHERE total < 5 AND bronze = 1 AND silver < 1
What is the rank for total less than 5, 1 bronze and less than 1 silver?
CREATE TABLE table_name_50 (rank INTEGER, silver VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT MAX(decile) FROM table_name_94 WHERE roll = 428
Name the most decile for roll of 428
CREATE TABLE table_name_94 (decile INTEGER, roll VARCHAR)
SELECT goals_l_c_e_ FROM table_name_18 WHERE nat = "arg" AND name = "pelletieri"
What are the goals for Pelletieri in ARG?
CREATE TABLE table_name_18 (goals_l_c_e_ VARCHAR, nat VARCHAR, name VARCHAR)
SELECT type FROM table_name_99 WHERE name = "bo qin"
What type of state is bo qin?
CREATE TABLE table_name_99 (type VARCHAR, name VARCHAR)
SELECT home_team AS score FROM table_name_86 WHERE home_team = "footscray"
How many points does footscray score as the home side?
CREATE TABLE table_name_86 (home_team VARCHAR)
SELECT MIN(ave_attendance) FROM table_2970978_1 WHERE ___ave_on_prev_season = "-459"
What is the lowest value of average attendance when average on previous season is -459?
CREATE TABLE table_2970978_1 (ave_attendance INTEGER, ___ave_on_prev_season VARCHAR)
SELECT T1.Name, T2.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING COUNT(*) >= 2
Show the names and ids of tourist attractions that are visited at least two times.
CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR)
SELECT MIN(goals) FROM table_name_33 WHERE apps < 22
When the Apps were smaller than 22, what's the lowest amount of goals scored in a game?
CREATE TABLE table_name_33 (goals INTEGER, apps INTEGER)
SELECT l1_cache FROM table_name_35 WHERE fsb_speed = "800mhz" AND clock_speed = "1.2ghz"
Which L1 Cache has an FSB speed of 800mhz and a clock speed of 1.2ghz?
CREATE TABLE table_name_35 (l1_cache VARCHAR, fsb_speed VARCHAR, clock_speed VARCHAR)
SELECT county FROM table_20799905_1 WHERE mccain_percentage = "57.8%"
In what county did McCain get 57.8%?
CREATE TABLE table_20799905_1 (county VARCHAR, mccain_percentage VARCHAR)
SELECT date FROM table_23286112_6 WHERE game = 3
When was the game number 3 played?
CREATE TABLE table_23286112_6 (date VARCHAR, game VARCHAR)
SELECT total FROM table_name_99 WHERE year_s__won = "1977"
What is the total for the year (s) won in 1977?
CREATE TABLE table_name_99 (total VARCHAR, year_s__won VARCHAR)
SELECT original_broadway_production FROM table_name_52 WHERE first_us_national_tour = "roger bart"
Which Original Broadway production has a First US National Tour of roger bart?
CREATE TABLE table_name_52 (original_broadway_production VARCHAR, first_us_national_tour VARCHAR)
SELECT COUNT(season) FROM table_name_85 WHERE engine = "cosworth" AND team = "kraco racing"
What is the total number of Seasons, when the Engine is Cosworth, and when the Team is Kraco Racing?
CREATE TABLE table_name_85 (season VARCHAR, engine VARCHAR, team VARCHAR)
SELECT SUM(crowd) FROM table_name_39 WHERE venue = "glenferrie oval"
What is the total number of people that attended the glenferrie oval venue?
CREATE TABLE table_name_39 (crowd INTEGER, venue VARCHAR)
SELECT lms_spr FROM table_name_60 WHERE car_no = "15"
Which is the LMS SPR when the car number was 15?
CREATE TABLE table_name_60 (lms_spr VARCHAR, car_no VARCHAR)
SELECT notes FROM table_name_64 WHERE year > 1983 AND position = "18th"
What Notes after 1983 have a Position of 18th?
CREATE TABLE table_name_64 (notes VARCHAR, year VARCHAR, position VARCHAR)
SELECT AVG(gold) FROM table_name_56 WHERE bronze > 0 AND silver > 0 AND rank > 2 AND total > 3
What is the average gold medals for countries with more than 0 bronze, more than 0 silver, rank over 2 and total over 3?
CREATE TABLE table_name_56 (gold INTEGER, total VARCHAR, rank VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT original_us_air_date FROM table_21831229_3 WHERE prod_code = 213
What was the date that the episode with a production code of 213 was originally aired?
CREATE TABLE table_21831229_3 (original_us_air_date VARCHAR, prod_code VARCHAR)
SELECT SUM(game) FROM table_name_56 WHERE location = "staples center"
What was the total games played at the Staples Center?
CREATE TABLE table_name_56 (game INTEGER, location VARCHAR)
SELECT ethnic_group FROM table_name_98 WHERE other = "5%"
Which ethnic group has 5% of people categorizing religion as other?
CREATE TABLE table_name_98 (ethnic_group VARCHAR, other VARCHAR)
SELECT AVG(score) FROM table_name_71 WHERE player = "søren kjeldsen"
what is the average score for søren kjeldsen?
CREATE TABLE table_name_71 (score INTEGER, player VARCHAR)
SELECT release_date FROM table_name_93 WHERE production_number < 1495 AND director = "robert mckimson" AND title = "mouse-placed kitten"
What is the release date of the episode named Mouse-Placed Kitten with an episode number less than 1495 directed by Robert McKimson?
CREATE TABLE table_name_93 (release_date VARCHAR, title VARCHAR, production_number VARCHAR, director VARCHAR)
SELECT DISTINCT instrument FROM Instruments
What are all the instruments used?
CREATE TABLE Instruments (instrument VARCHAR)
SELECT AVG(total) FROM table_name_26 WHERE player = "tim sills"
Which mean total had Tim Sills as a player?
CREATE TABLE table_name_26 (total INTEGER, player VARCHAR)
SELECT points FROM table_25730326_2 WHERE player = "William Wasmund"
How many points did William Wasmund have?
CREATE TABLE table_25730326_2 (points VARCHAR, player VARCHAR)
SELECT MAX(points) FROM table_name_12 WHERE second = "4"
What was the highest points when the second was 4?
CREATE TABLE table_name_12 (points INTEGER, second VARCHAR)
SELECT kaine__d_ FROM table_name_7 WHERE date = "september 19, 2005"
What was Kaine's (D) percentage in the poll on september 19, 2005?
CREATE TABLE table_name_7 (kaine__d_ VARCHAR, date VARCHAR)
SELECT location FROM table_name_6 WHERE name = "newington international airport"
What is the Location for the newington international airport?
CREATE TABLE table_name_6 (location VARCHAR, name VARCHAR)
SELECT 2012 FROM table_name_16 WHERE 2011 = "1r" AND 2007 = "a" AND 2010 = "1r" AND 2009 = "a"
What is the 2012 value with 1r in 2011, 2007 of A, 2010 of 1r, and 2009 of A?
CREATE TABLE table_name_16 (Id VARCHAR)
SELECT race_title FROM table_name_53 WHERE winner = "dick johnson" AND circuit = "sandown raceway"
what is the race title when the winner is dick johnson and the circuit is sandown raceway?
CREATE TABLE table_name_53 (race_title VARCHAR, winner VARCHAR, circuit VARCHAR)
SELECT MIN(year) FROM table_name_87 WHERE co_singer = "solo" AND film_name = "bhagya debata"
Which year has the Co-singer solo and a Film name of bhagya debata?
CREATE TABLE table_name_87 (year INTEGER, co_singer VARCHAR, film_name VARCHAR)
SELECT location FROM table_name_20 WHERE loser = "new york jets" AND year < 1997 AND result = "31–28"
What is the location when the new york jets lost earlier than 1997 and a Result of 31–28?
CREATE TABLE table_name_20 (location VARCHAR, result VARCHAR, loser VARCHAR, year VARCHAR)
SELECT player FROM table_28628309_9 WHERE category = "Steals per game"
Who is the player when the category is steals per game?
CREATE TABLE table_28628309_9 (player VARCHAR, category VARCHAR)
SELECT MAX(games) FROM table_28693349_2 WHERE player = "Robert Peare"
How many games did Robert Peare play?
CREATE TABLE table_28693349_2 (games INTEGER, player VARCHAR)
SELECT score FROM table_name_66 WHERE date = "april 28"
Name the score for april 28
CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR)
SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY COUNT(*) DESC LIMIT 1
What is the id and last name of the driver who participated in the most races after 2010?
CREATE TABLE drivers (driverid VARCHAR, surname VARCHAR); CREATE TABLE races (raceid VARCHAR, year INTEGER); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR)
SELECT death FROM table_name_96 WHERE birth = "2 august 1424"
WHAT IS THE DEATH WHEN BIRTH DATE IS 2 AUGUST 1424?
CREATE TABLE table_name_96 (death VARCHAR, birth VARCHAR)
SELECT nation FROM table_name_82 WHERE bronze < 1 AND total > 1 AND silver = 1
Which Nation has a Bronze smaller than 1, and a Total larger than 1, and a Silver of 1?
CREATE TABLE table_name_82 (nation VARCHAR, silver VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT date FROM table_name_70 WHERE region = "europe" AND catalog = "28765 22392 8"
What's the Date for the Region of Europe and has the Catalog of 28765 22392 8?
CREATE TABLE table_name_70 (date VARCHAR, region VARCHAR, catalog VARCHAR)
SELECT high_rebounds FROM table_17432028_1 WHERE date = "March 15"
Name the high rebounds for march 15
CREATE TABLE table_17432028_1 (high_rebounds VARCHAR, date VARCHAR)
SELECT * FROM basketball_match
List all information regarding the basketball match.
CREATE TABLE basketball_match (Id VARCHAR)
SELECT t3.address_content FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t1.customer_name = "Maudie Kertzmann"
What is the address content of the customer named "Maudie Kertzmann"?
CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE addresses (address_content VARCHAR, address_id VARCHAR)
SELECT MIN(laps) FROM table_name_22 WHERE time_retired = "engine" AND driver = "charles de tornaco"
I want the lowest Laps for time/retired of engine and driver of charles de tornaco
CREATE TABLE table_name_22 (laps INTEGER, time_retired VARCHAR, driver VARCHAR)
SELECT aspect FROM table_name_23 WHERE channel = 26.5
What is the Aspect of Channel 26.5?
CREATE TABLE table_name_23 (aspect VARCHAR, channel VARCHAR)
SELECT MIN(year) FROM table_name_48 WHERE category = "favorite male replacement" AND nominee = "ben vereen"
What is the first year that the Favorite Male Replacement category had Ben Vereen as a nominee?
CREATE TABLE table_name_48 (year INTEGER, category VARCHAR, nominee VARCHAR)
SELECT date FROM table_name_37 WHERE visitor = "toronto"
What is Date, when Visitor is Toronto?
CREATE TABLE table_name_37 (date VARCHAR, visitor VARCHAR)
SELECT castilian FROM table_name_95 WHERE italian = "auto(mobile)"
What word would a Castilian speaker use for the Italian word auto(mobile)?
CREATE TABLE table_name_95 (castilian VARCHAR, italian VARCHAR)
SELECT place FROM table_name_92 WHERE to_par = "–4"
What Place has a To par of –4?
CREATE TABLE table_name_92 (place VARCHAR, to_par VARCHAR)
SELECT school_club_team FROM table_10015132_16 WHERE years_in_toronto = "1995-96"
What clu was in toronto 1995-96
CREATE TABLE table_10015132_16 (school_club_team VARCHAR, years_in_toronto VARCHAR)
SELECT chassis FROM table_name_94 WHERE year = 1993
Which chassis was made in 1993?
CREATE TABLE table_name_94 (chassis VARCHAR, year VARCHAR)
SELECT date FROM table_23612439_2 WHERE location = "Taylor Field"
On which date is Taylor Field the location?
CREATE TABLE table_23612439_2 (date VARCHAR, location VARCHAR)