answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT venue FROM table_name_93 WHERE home_team = "essendon"
Where did Essendon play as the home team?
CREATE TABLE table_name_93 (venue VARCHAR, home_team VARCHAR)
SELECT team FROM table_28884858_1 WHERE stadium = "Edward Jones Dome"
What is the name of the team when the stadium is listed as Edward Jones Dome?
CREATE TABLE table_28884858_1 (team VARCHAR, stadium VARCHAR)
SELECT club_s_ FROM table_28286776_50 WHERE player = "Winston Reid Category:Articles with hCards"
When winston reid category:articles with hcards is the player what is the club?
CREATE TABLE table_28286776_50 (club_s_ VARCHAR, player VARCHAR)
SELECT alpha_2_code FROM table_222771_1 WHERE alpha_3_code = "NZL"
What is the alpha 2 code for the area also known as NZL?
CREATE TABLE table_222771_1 (alpha_2_code VARCHAR, alpha_3_code VARCHAR)
SELECT first_elected FROM table_1341604_22 WHERE incumbent = "Joseph D. Early"
what's the first elected with incumbent being joseph d. early
CREATE TABLE table_1341604_22 (first_elected VARCHAR, incumbent VARCHAR)
SELECT COUNT(largest_ethnic_group__2002_) FROM table_2562572_44 WHERE population__2011_ = 5082
What is the largest ethnic group in the settlement with a 2011 population of 5082?
CREATE TABLE table_2562572_44 (largest_ethnic_group__2002_ VARCHAR, population__2011_ VARCHAR)
SELECT league FROM table_21602734_1 WHERE year = 2008
What league was involved in 2008?
CREATE TABLE table_21602734_1 (league VARCHAR, year VARCHAR)
SELECT attendance FROM table_name_1 WHERE home_team = "southend united"
What was the attendance when the Southend United was the home team?
CREATE TABLE table_name_1 (attendance VARCHAR, home_team VARCHAR)
SELECT a330 FROM table_name_62 WHERE a310 = "wide"
What is the A330 and the A310 wide?
CREATE TABLE table_name_62 (a330 VARCHAR, a310 VARCHAR)
SELECT COUNT(attendance) FROM table_name_17 WHERE record = "17-7"
What was total attendance on the day they went 17-7?
CREATE TABLE table_name_17 (attendance VARCHAR, record VARCHAR)
SELECT team_name FROM table_name_80 WHERE schools = "goreville vienna"
What is the name of the team from goreville vienna school?
CREATE TABLE table_name_80 (team_name VARCHAR, schools VARCHAR)
SELECT best_finish FROM table_29504351_2 WHERE player = "Sean O'Hair"
What is the best finish record for Sean O'hair?
CREATE TABLE table_29504351_2 (best_finish VARCHAR, player VARCHAR)
SELECT Draft_Pick_Number, Draft_Class FROM match_season WHERE POSITION = "Defender"
Show the draft pick numbers and draft classes of players whose positions are defenders.
CREATE TABLE match_season (Draft_Pick_Number VARCHAR, Draft_Class VARCHAR, POSITION VARCHAR)
SELECT COUNT(total_goals) FROM table_name_20 WHERE fa_cup_apps > 1 AND total_apps = 37 AND league_apps < 30
The total goals have a FA Cup Apps larger than 1, and a Total Apps of 37, and a League Apps smaller than 30?, what is the total number?
CREATE TABLE table_name_20 (total_goals VARCHAR, league_apps VARCHAR, fa_cup_apps VARCHAR, total_apps VARCHAR)
SELECT german FROM table_name_10 WHERE icelandic = "efja"
What word in German translates into the Icelandic word efja?
CREATE TABLE table_name_10 (german VARCHAR, icelandic VARCHAR)
SELECT winner FROM table_name_71 WHERE location = "north carolina" AND tournament = "greater greensboro open"
What is the name of the Winner in north carolina at the greater greensboro open?
CREATE TABLE table_name_71 (winner VARCHAR, location VARCHAR, tournament VARCHAR)
SELECT MIN(wins) FROM table_19864214_3 WHERE seasons = "1986"
stae the least number of wins in 1986
CREATE TABLE table_19864214_3 (wins INTEGER, seasons VARCHAR)
SELECT score FROM table_name_28 WHERE game = 1
What was the final score of Game 1?
CREATE TABLE table_name_28 (score VARCHAR, game VARCHAR)
SELECT listed FROM table_name_77 WHERE county = "washington" AND name = "b & o bridge"
What is the date Listed of the B & O Bridge in Washington?
CREATE TABLE table_name_77 (listed VARCHAR, county VARCHAR, name VARCHAR)
SELECT record FROM table_name_42 WHERE date = "23 january 2010" AND time__seconds_ < 42.679
What is the Record for 23 january 2010, with a time smaller than 42.679 seconds?
CREATE TABLE table_name_42 (record VARCHAR, date VARCHAR, time__seconds_ VARCHAR)
SELECT MAX(founded) FROM table_16168849_1 WHERE nickname = "Blue Hose"
Name the maximum founded for blue hose
CREATE TABLE table_16168849_1 (founded INTEGER, nickname VARCHAR)
SELECT date FROM table_name_42 WHERE away_team = "south melbourne"
Which Date has an Away team of south melbourne?
CREATE TABLE table_name_42 (date VARCHAR, away_team VARCHAR)
SELECT COUNT(score) FROM table_23308178_9 WHERE date = "March 6"
How many scores had a date of March 6?
CREATE TABLE table_23308178_9 (score VARCHAR, date VARCHAR)
SELECT emit__nm_ FROM table_name_86 WHERE mass__g_mol_ = "1078"
Which Emission (in nanometers) that has a molar mass of 1078 g/mol?
CREATE TABLE table_name_86 (emit__nm_ VARCHAR, mass__g_mol_ VARCHAR)
SELECT opponent FROM table_20745754_1 WHERE _number = "7"
Who did they play against in game 7?
CREATE TABLE table_20745754_1 (opponent VARCHAR, _number VARCHAR)
SELECT game_site FROM table_name_27 WHERE result = "l 21–13"
What game site had a result at l 21–13?
CREATE TABLE table_name_27 (game_site VARCHAR, result VARCHAR)
SELECT genre FROM table_name_87 WHERE type = "3d" AND release_date = "2008-2011"
What type of 3D game was released between 2008-2011?
CREATE TABLE table_name_87 (genre VARCHAR, type VARCHAR, release_date VARCHAR)
SELECT surface FROM table_name_30 WHERE date = "july 17, 1983"
What surface was used on July 17, 1983?
CREATE TABLE table_name_30 (surface VARCHAR, date VARCHAR)
SELECT AVG(goals_for) FROM table_name_81 WHERE points > 9 AND goals_against < 14 AND goal_difference < 17
What is the average number of goals with more than 9 points, less than 14 goals against, and a goal difference less than 17?
CREATE TABLE table_name_81 (goals_for INTEGER, goal_difference VARCHAR, points VARCHAR, goals_against VARCHAR)
SELECT departure_date, arrival_date FROM Flight WHERE origin = "Los Angeles" AND destination = "Honolulu"
Show me the departure date and arrival date for all flights from Los Angeles to Honolulu.
CREATE TABLE Flight (departure_date VARCHAR, arrival_date VARCHAR, origin VARCHAR, destination VARCHAR)
SELECT conmebol_1995 FROM table_name_61 WHERE team = "river plate"
Which CONMEBOL 1995 has river plate team?
CREATE TABLE table_name_61 (conmebol_1995 VARCHAR, team VARCHAR)
SELECT AVG(top_5) FROM table_name_89 WHERE cuts_made = 5 AND tournament = "the open championship" AND events < 6
What is the average value for Top-5, when the value Cuts is 5, and when the tournament is the Open Championship, and when the value Events is less than 6?
CREATE TABLE table_name_89 (top_5 INTEGER, events VARCHAR, cuts_made VARCHAR, tournament VARCHAR)
SELECT MAX(wins) FROM table_name_95 WHERE cuts_made > 17 AND starts > 25 AND top_10 < 8
What is the highest number of wins when more than 17 cuts and more than 25 starts were made, and the top 10 ranking is less than 8?
CREATE TABLE table_name_95 (wins INTEGER, top_10 VARCHAR, cuts_made VARCHAR, starts VARCHAR)
SELECT COUNT(played) FROM table_name_42 WHERE position < 4 AND team = "witton albion"
What is the number of played when the position is less than 4, and the team is Witton Albion?
CREATE TABLE table_name_42 (played VARCHAR, position VARCHAR, team VARCHAR)
SELECT COUNT(season) FROM table_22998777_1 WHERE position = "26th"
If the position of 26th what is the season total number?
CREATE TABLE table_22998777_1 (season VARCHAR, position VARCHAR)
SELECT MIN(attendance) FROM table_24786958_2 WHERE game_site = "Jahn-Sportpark"
How many people attended the game at Jahn-sportpark?
CREATE TABLE table_24786958_2 (attendance INTEGER, game_site VARCHAR)
SELECT coach FROM table_name_82 WHERE runner_up = "northeastern" AND score = "6–3"
Which Coach has a Runner-up of northeastern and a Score of 6–3?
CREATE TABLE table_name_82 (coach VARCHAR, runner_up VARCHAR, score VARCHAR)
SELECT home_team FROM table_name_66 WHERE away_team = "hawthorn"
Who is the home team when hawthorn is the away side?
CREATE TABLE table_name_66 (home_team VARCHAR, away_team VARCHAR)
SELECT record FROM table_name_26 WHERE location_attendance = "air canada centre 19,800"
What was the season record when the location attendance was Air Canada Centre 19,800?
CREATE TABLE table_name_26 (record VARCHAR, location_attendance VARCHAR)
SELECT source FROM table_name_94 WHERE clinton = "39%" AND undecided = "7%"
Which Source has a Clinton of 39% and a Undecided of 7%?
CREATE TABLE table_name_94 (source VARCHAR, clinton VARCHAR, undecided VARCHAR)
SELECT away_team AS score FROM table_name_58 WHERE home_team = "richmond"
Which Away team score has a Home team of richmond?
CREATE TABLE table_name_58 (away_team VARCHAR, home_team VARCHAR)
SELECT party FROM table_2668243_20 WHERE incumbent = "Richard Coulter"
What party was represented by incumbent Richard Coulter ?
CREATE TABLE table_2668243_20 (party VARCHAR, incumbent VARCHAR)
SELECT race_name FROM table_1140116_5 WHERE circuit = "Monza"
What is the race name in the Monza circuit?
CREATE TABLE table_1140116_5 (race_name VARCHAR, circuit VARCHAR)
SELECT pilot FROM table_name_98 WHERE position > 5 AND speed = "118.8km/h"
Which pilot has a position above 5 and a speed of 118.8km/h?
CREATE TABLE table_name_98 (pilot VARCHAR, position VARCHAR, speed VARCHAR)
SELECT engine_configuration_ & _notes_0_100km_h FROM table_name_49 WHERE engine_type = "b5252 fs"
What is the engine configuration & notes 0-100km/h with an engine type with b5252 fs?
CREATE TABLE table_name_49 (engine_configuration_ VARCHAR, _notes_0_100km_h VARCHAR, engine_type VARCHAR)
SELECT MAX(rank) FROM table_name_87 WHERE singapore_cup = "0 (1)"
What rank does the Singapore Cup of 0 (1) have?
CREATE TABLE table_name_87 (rank INTEGER, singapore_cup VARCHAR)
SELECT result FROM table_name_41 WHERE nfl_recap = "recap" AND game_site = "bank of america stadium"
What is the Result with an NFL Recap, played at bank of america stadium?
CREATE TABLE table_name_41 (result VARCHAR, nfl_recap VARCHAR, game_site VARCHAR)
SELECT MIN(fumrec) FROM table_25773915_11
What is the fumrec minimum?
CREATE TABLE table_25773915_11 (fumrec INTEGER)
SELECT MAX(season__number) FROM table_29102612_1 WHERE us_viewers__millions_ = "5.3"
What is the season # when ther are 5.3 million U.S viewers?
CREATE TABLE table_29102612_1 (season__number INTEGER, us_viewers__millions_ VARCHAR)
SELECT 1 AS st_leg FROM table_name_24 WHERE team_1 = "liverpool"
What is the 1st leg of team 1 Liverpool?
CREATE TABLE table_name_24 (team_1 VARCHAR)
SELECT MAX(week) FROM table_name_57 WHERE attendance > 65 OFFSET 070
Which Week has an Attendance larger than 65,070?
CREATE TABLE table_name_57 (week INTEGER, attendance INTEGER)
SELECT SUM(points) FROM table_name_40 WHERE lost = 3 AND played > 12
What is the total number of points where there were 3 losses and a played number bigger than 12?
CREATE TABLE table_name_40 (points INTEGER, lost VARCHAR, played VARCHAR)
SELECT district FROM table_name_20 WHERE name = "mahidpur"
What district has an assembly segment named mahidpur?
CREATE TABLE table_name_20 (district VARCHAR, name VARCHAR)
SELECT SUM(round) FROM table_name_37 WHERE pick = 109
What is the total round with pick of 109?
CREATE TABLE table_name_37 (round INTEGER, pick VARCHAR)
SELECT registered_voters FROM table_27003223_4 WHERE d_r_spread = "+14.3%"
What is the percentage of registered voters in which the d-r spread is +14.3%?
CREATE TABLE table_27003223_4 (registered_voters VARCHAR, d_r_spread VARCHAR)
SELECT 1976 FROM table_name_96 WHERE 1977 = "3.5"
what is 1976 when 1977 is 3.5?
CREATE TABLE table_name_96 (Id VARCHAR)
SELECT DISTINCT date_moved_in FROM residents
What are the distinct move in dates of the residents?
CREATE TABLE residents (date_moved_in VARCHAR)
SELECT rank FROM table_name_76 WHERE time = "7:16.13"
What was the rank of the team who raced at a time of 7:16.13?
CREATE TABLE table_name_76 (rank VARCHAR, time VARCHAR)
SELECT name, operating_system FROM web_client_accelerator EXCEPT SELECT T1.name, T1.operating_system FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T3.name = 'Opera'
Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'.
CREATE TABLE browser (id VARCHAR, name VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, operating_system VARCHAR); CREATE TABLE accelerator_compatible_browser (accelerator_id VARCHAR, browser_id VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, operating_system VARCHAR, id VARCHAR)
SELECT name_designation FROM table_name_85 WHERE status = "operational" AND range__varies_with_payload_weight_ = "1,930km"
What is the name/designation for Operational Status and a range of 1,930km?
CREATE TABLE table_name_85 (name_designation VARCHAR, status VARCHAR, range__varies_with_payload_weight_ VARCHAR)
SELECT class AS pos FROM table_name_71 WHERE team = "jml team panoz"
Which class Pos has a Team of jml team panoz?
CREATE TABLE table_name_71 (class VARCHAR, team VARCHAR)
SELECT major FROM Student GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1
Which major has most number of students?
CREATE TABLE Student (major VARCHAR)
SELECT away_team AS score FROM table_name_20 WHERE away_team = "melbourne"
What was Melbourne's away team score?
CREATE TABLE table_name_20 (away_team VARCHAR)
SELECT MIN(spike) FROM table_name_69 WHERE weight = 83 AND height > 190
What is the smallest number of spikes for players with a weight of 83 and height over 190?
CREATE TABLE table_name_69 (spike INTEGER, weight VARCHAR, height VARCHAR)
SELECT county, COUNT(*), SUM(enrollment) FROM school GROUP BY county
Show each county along with the number of schools and total enrollment in each county.
CREATE TABLE school (county VARCHAR, enrollment INTEGER)
SELECT engine FROM table_name_42 WHERE year > 1955 AND points > 0 AND entrant = "hoover motor express"
What was the engine of the Hoover Motor Express after 1955 with greater than 0 points?
CREATE TABLE table_name_42 (engine VARCHAR, entrant VARCHAR, year VARCHAR, points VARCHAR)
SELECT team FROM table_name_31 WHERE grid > 8 AND points < 4
If a team has a grid of over 8 with less than 4 points, what's the team name?
CREATE TABLE table_name_31 (team VARCHAR, grid VARCHAR, points VARCHAR)
SELECT T2.address, T1.email FROM customer AS T1 JOIN address AS T2 ON T2.address_id = T1.address_id WHERE T1.first_name = 'LINDA'
Where does the customer with the first name Linda live? And what is her email?
CREATE TABLE customer (email VARCHAR, address_id VARCHAR, first_name VARCHAR); CREATE TABLE address (address VARCHAR, address_id VARCHAR)
SELECT operator FROM table_1603807_2 WHERE line = "Mamariga Shuttle"
Which operator runs the Mamariga shuttle line?
CREATE TABLE table_1603807_2 (operator VARCHAR, line VARCHAR)
SELECT venue FROM table_name_89 WHERE date = "15 august 2006"
Name the venue for 15 august 2006
CREATE TABLE table_name_89 (venue VARCHAR, date VARCHAR)
SELECT candidates FROM table_1342249_13 WHERE incumbent = "Noah M. Mason"
Who were the candidates when Noah M. Mason was incumbent?
CREATE TABLE table_1342249_13 (candidates VARCHAR, incumbent VARCHAR)
SELECT MAX(points) FROM table_name_33 WHERE chassis = "alfa romeo 177" AND year < 1979
Name the most points for years before 1979 and chassis of alfa romeo 177
CREATE TABLE table_name_33 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT COUNT(score) FROM table_27721131_2 WHERE high_points = "Andray Blatche (17)"
What's the score in andray blatche (17) high points?
CREATE TABLE table_27721131_2 (score VARCHAR, high_points VARCHAR)
SELECT title FROM table_name_33 WHERE role = "richard kolner"
Which title did richard kolner play?
CREATE TABLE table_name_33 (title VARCHAR, role VARCHAR)
SELECT transfer_window FROM table_name_15 WHERE name = "giuly"
Name the transfer wind for giuly
CREATE TABLE table_name_15 (transfer_window VARCHAR, name VARCHAR)
SELECT week__number FROM table_name_44 WHERE theme = "1960s"
In which week was the Theme 1960s?
CREATE TABLE table_name_44 (week__number VARCHAR, theme VARCHAR)
SELECT AVG(goals) / games FROM table_name_66 WHERE name = "rummenigge, karl-heinz" AND goals < 162
What is the average Goals/Games for Rummenigge, Karl-Heinz, with Goals less than 162?
CREATE TABLE table_name_66 (games VARCHAR, goals INTEGER, name VARCHAR)
SELECT change__2011_to_2012_ FROM table_14752049_6 WHERE change__2010_to_2011_ = "+1.0%"
When the change (2010 to 2011) is +1.0% what is the change (2011 to 2012)?
CREATE TABLE table_14752049_6 (change__2011_to_2012_ VARCHAR, change__2010_to_2011_ VARCHAR)
SELECT novick FROM table_name_59 WHERE source = "surveyusa" AND neville = "8%"
Which Novick has a Source of surveyusa, and a Neville of 8%?
CREATE TABLE table_name_59 (novick VARCHAR, source VARCHAR, neville VARCHAR)
SELECT years FROM table_name_71 WHERE position = "mf"
In what Years was the Player in MF Position?
CREATE TABLE table_name_71 (years VARCHAR, position VARCHAR)
SELECT MIN(year) FROM table_name_93 WHERE playoffs = "did not qualify"
Which year is the lowest one when the playoffs did not qualify?
CREATE TABLE table_name_93 (year INTEGER, playoffs VARCHAR)
SELECT boiling_point FROM table_name_46 WHERE density = "1.092 g/ml"
What's the boiling point when the density is 1.092 g/ml?
CREATE TABLE table_name_46 (boiling_point VARCHAR, density VARCHAR)
SELECT winner FROM table_1672976_5 WHERE attendance = 16597
Who was the winner when the total attendance was 16597?
CREATE TABLE table_1672976_5 (winner VARCHAR, attendance VARCHAR)
SELECT gross_revenue__2011_ FROM table_name_6 WHERE gross_revenue__1982_ = "$156,315"
What was the 2011 gross revenue for the venue that had a gross revenue of $156,315 in 1982?
CREATE TABLE table_name_6 (gross_revenue__2011_ VARCHAR, gross_revenue__1982_ VARCHAR)
SELECT gross FROM table_name_25 WHERE studio = "mgm"
Which Gross has a Studio of mgm?
CREATE TABLE table_name_25 (gross VARCHAR, studio VARCHAR)
SELECT speed FROM table_name_52 WHERE time = "1:14.15.64"
What was the speed for the rider with a time of 1:14.15.64?
CREATE TABLE table_name_52 (speed VARCHAR, time VARCHAR)
SELECT T1.id, T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING COUNT(*) >= 3
What are the ids and names of the architects who built at least 3 bridges ?
CREATE TABLE architect (id VARCHAR, name VARCHAR); CREATE TABLE bridge (architect_id VARCHAR)
SELECT MAX(year_of_disaffiliation) FROM table_name_31 WHERE station = "chch-tv" AND year_of_affiliation > 2001
What is the most recent year of disaffiliation of a CHCH-TV station that affiliated after 2001?
CREATE TABLE table_name_31 (year_of_disaffiliation INTEGER, station VARCHAR, year_of_affiliation VARCHAR)
SELECT rank FROM table_name_25 WHERE gold < 1 AND silver > 0
What Rank has a gold smaller than 1, and a silver larger than 0?
CREATE TABLE table_name_25 (rank VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT frequency FROM table_name_74 WHERE branding = "cbc radio 2"
What is the branding frequency of cbc radio 2?
CREATE TABLE table_name_74 (frequency VARCHAR, branding VARCHAR)
SELECT customer_details FROM customers ORDER BY customer_details
List the names of all the customers in alphabetical order.
CREATE TABLE customers (customer_details VARCHAR)
SELECT points FROM table_name_56 WHERE driver = "paul tracy"
Which points has the driver Paul Tracy?
CREATE TABLE table_name_56 (points VARCHAR, driver VARCHAR)
SELECT loss FROM table_name_44 WHERE opponent = "@cle" AND record = "67-29"
Name the less for opponent of @cle and record of 67-29
CREATE TABLE table_name_44 (loss VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT date FROM table_26842217_6 WHERE visiting_team = "South Florida"
List all dates where South Florida was a visiting team.
CREATE TABLE table_26842217_6 (date VARCHAR, visiting_team VARCHAR)
SELECT MAX(channel_number) FROM table_27871460_2
What is the highest channel number?
CREATE TABLE table_27871460_2 (channel_number INTEGER)
SELECT win_loss FROM table_26847237_1 WHERE round__number = "Round 3"
Was it a win or loss for Wanganui in round 3?
CREATE TABLE table_26847237_1 (win_loss VARCHAR, round__number VARCHAR)
SELECT result FROM table_16710742_3 WHERE opponent = "New Orleans Saints"
In 1984, Did the Falcons have a win or loss against the New Orleans Saints?
CREATE TABLE table_16710742_3 (result VARCHAR, opponent VARCHAR)
SELECT nation FROM table_name_87 WHERE gold > 1 AND silver = 4
Which nations have more than 1 gold medal and 4 silver medals?
CREATE TABLE table_name_87 (nation VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT MAX(year) FROM table_name_7 WHERE winning_constructor = "ferrari 166 fl"
What is the latest year that has ferrari 166 fl as the winning constructor?
CREATE TABLE table_name_7 (year INTEGER, winning_constructor VARCHAR)
SELECT event FROM table_name_61 WHERE tournament = "european championships" AND year = 2006
What event has european championships as the tournament, with 2006 as the year?
CREATE TABLE table_name_61 (event VARCHAR, tournament VARCHAR, year VARCHAR)