answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT region FROM table_25042332_26 WHERE none = "0.6%"
Which region has 0.6% none?
CREATE TABLE table_25042332_26 (region VARCHAR, none VARCHAR)
SELECT length FROM table_name_62 WHERE expected_start_of_revenue_services > 2017
What is the length when the expected start of revenue is more than 2017?
CREATE TABLE table_name_62 (length VARCHAR, expected_start_of_revenue_services INTEGER)
SELECT name FROM projects WHERE hours BETWEEN 100 AND 300
Find the name of projects that require between 100 and 300 hours of work.
CREATE TABLE projects (name VARCHAR, hours INTEGER)
SELECT high_points FROM table_17355408_5 WHERE location_attendance = "Pepsi Center 18,611"
Name the high points for pepsi center 18,611
CREATE TABLE table_17355408_5 (high_points VARCHAR, location_attendance VARCHAR)
SELECT opponent FROM table_name_93 WHERE game > 72 AND record = "39-27-9"
Who did the Rangers play in a game that was later than 72 when the team record was 39-27-9?
CREATE TABLE table_name_93 (opponent VARCHAR, game VARCHAR, record VARCHAR)
SELECT japanese_orthography FROM table_11390711_4 WHERE english_name = "National Farmers Academy"
What is the Japanese orthography for the English name National Farmers Academy?
CREATE TABLE table_11390711_4 (japanese_orthography VARCHAR, english_name VARCHAR)
SELECT COUNT(player) FROM table_name_72 WHERE event > 2011 AND NOT aces < 9
How many players were in the event after 2011 with less than 9 aces?
CREATE TABLE table_name_72 (player VARCHAR, event VARCHAR, aces VARCHAR)
SELECT COUNT(opponent) FROM table_11391448_2 WHERE week = 6
How many teams did they play week 6
CREATE TABLE table_11391448_2 (opponent VARCHAR, week VARCHAR)
SELECT COUNT(mccain_number) FROM table_20693870_1 WHERE obama_percentage = "27.2%"
How many numbers were recorded under McCain when Obama had 27.2% voters?
CREATE TABLE table_20693870_1 (mccain_number VARCHAR, obama_percentage VARCHAR)
SELECT website FROM table_name_11 WHERE founded = 1872
What are the websites of schools that were founded in 1872?
CREATE TABLE table_name_11 (website VARCHAR, founded VARCHAR)
SELECT MIN(gold) FROM table_name_45 WHERE bronze = 4 AND silver > 5
What is the lowest Gold count if the Bronze is 4 and Silver is greater than 5?
CREATE TABLE table_name_45 (gold INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT ticket_sold___available FROM table_18277458_2 WHERE venue = "Carver-Hawkeye Arena"
How many tickets are sold for the Carver-Hawkeye Arena?
CREATE TABLE table_18277458_2 (ticket_sold___available VARCHAR, venue VARCHAR)
SELECT MIN(attendance) FROM table_16729076_1 WHERE game_site = "Kingdome"
what is the attendance where the game site is kingdome?
CREATE TABLE table_16729076_1 (attendance INTEGER, game_site VARCHAR)
SELECT COUNT(to_par) FROM table_name_49 WHERE score = 76 - 71 - 78 - 67 = 292
What was the to par score in the match that had a score of 76-71-78-67=292?
CREATE TABLE table_name_49 (to_par VARCHAR, score VARCHAR)
SELECT MAX(extras) FROM table_name_79 WHERE name = "farveez maharoof" AND wickets > 4
What is the highest Extras for Farveez Maharoof, with more than 4 wickets?
CREATE TABLE table_name_79 (extras INTEGER, name VARCHAR, wickets VARCHAR)
SELECT COUNT(outgoing_manager) FROM table_27666856_3 WHERE replaced_by = "Esteban Vigo"
Name the outgoing manager for esteban vigo
CREATE TABLE table_27666856_3 (outgoing_manager VARCHAR, replaced_by VARCHAR)
SELECT driver FROM table_23385853_19 WHERE stage_wins = 65
What driver(s) had over 65 stag wins?
CREATE TABLE table_23385853_19 (driver VARCHAR, stage_wins VARCHAR)
SELECT written_by FROM table_27657925_1 WHERE no_in_series = "62"
When 62 is the number in series who is the writer?
CREATE TABLE table_27657925_1 (written_by VARCHAR, no_in_series VARCHAR)
SELECT team_1 FROM table_name_99 WHERE team_2 = "sloga jugomagnat"
What team 1 has sloga jugomagnat as team 2?
CREATE TABLE table_name_99 (team_1 VARCHAR, team_2 VARCHAR)
SELECT MIN(rank) FROM table_name_74 WHERE team = "honda 250cc" AND time = "31’ 03.093"
Team of honda 250cc, and a Time of 31’ 03.093 has what lowest rank?
CREATE TABLE table_name_74 (rank INTEGER, team VARCHAR, time VARCHAR)
SELECT AVG(attendance) FROM table_name_68 WHERE date = "october 3, 1976"
What was the average attendance on october 3, 1976?
CREATE TABLE table_name_68 (attendance INTEGER, date VARCHAR)
SELECT at_manhattan FROM table_15740666_4 WHERE kansas_state_vs = "TCU"
What is the at Manhattan record against TCU?
CREATE TABLE table_15740666_4 (at_manhattan VARCHAR, kansas_state_vs VARCHAR)
SELECT COUNT(winner) FROM table_22753439_1 WHERE runner_up_a = "A. Karthikeyan"
How many winners have a runner-up of A. Karthikeyan?
CREATE TABLE table_22753439_1 (winner VARCHAR, runner_up_a VARCHAR)
SELECT pilot FROM table_name_42 WHERE date = "september 27, 1972"
Who is the pilot on September 27, 1972?
CREATE TABLE table_name_42 (pilot VARCHAR, date VARCHAR)
SELECT week_1 FROM table_name_35 WHERE week_2 = "piia jarkko"
Who was the week 1 nomination when the week 2 nomination was Piia Jarkko?
CREATE TABLE table_name_35 (week_1 VARCHAR, week_2 VARCHAR)
SELECT event FROM table_22644589_4 WHERE compulsory_dance__cd_ = "23.75"
In what even was the compulsory dance scored 23.75?
CREATE TABLE table_22644589_4 (event VARCHAR, compulsory_dance__cd_ VARCHAR)
SELECT airport FROM table_name_77 WHERE country = "singapore"
What is the Airport in Singapore?
CREATE TABLE table_name_77 (airport VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_39 WHERE country = "argentina"
What is the To par of the Player from Argentina?
CREATE TABLE table_name_39 (to_par VARCHAR, country VARCHAR)
SELECT MAX(grid) FROM table_name_95 WHERE constructor = "toyota" AND driver = "jarno trulli"
I want the highest Grid for Toyota and jarno trulli
CREATE TABLE table_name_95 (grid INTEGER, constructor VARCHAR, driver VARCHAR)
SELECT date FROM table_name_28 WHERE decision = "dipietro" AND visitor = "carolina"
What is the date of the game where Dipietro earned a decision and Carolina was the visiting team?
CREATE TABLE table_name_28 (date VARCHAR, decision VARCHAR, visitor VARCHAR)
SELECT fate FROM table_name_7 WHERE name_of_ship = "proletarij"
How did the ship named proletarij finish its service?
CREATE TABLE table_name_7 (fate VARCHAR, name_of_ship VARCHAR)
SELECT year FROM table_name_81 WHERE points = 0 AND chassis = "ags jh23b"
Which year had 0 points and an AGS JH23B chassis?
CREATE TABLE table_name_81 (year VARCHAR, points VARCHAR, chassis VARCHAR)
SELECT d_42 FROM table_name_31 WHERE d_47 = "d 27"
What is the D42 associated with a D47 of d 27?
CREATE TABLE table_name_31 (d_42 VARCHAR, d_47 VARCHAR)
SELECT SUM(score) FROM table_name_29 WHERE venue = "halmstad" AND year < 2002
What was the sum of the scores before the year 2002, that had the venue of Halmstad?
CREATE TABLE table_name_29 (score INTEGER, venue VARCHAR, year VARCHAR)
SELECT 1994 FROM table_name_88 WHERE 1993 = "grand slam tournaments"
What is 1994 Grand Slam Tournament if 1993 is also grand slam tournaments?
CREATE TABLE table_name_88 (Id VARCHAR)
SELECT recipients_and_nominees FROM table_name_30 WHERE role_episode = "david duchovny" AND result = "won"
Who are the recipients that won for David Duchovny role/episode?
CREATE TABLE table_name_30 (recipients_and_nominees VARCHAR, role_episode VARCHAR, result VARCHAR)
SELECT MIN(overall) FROM table_11803648_17
HOW MUCH WAS THE OVERALL FOR ERIK KARLSSON?
CREATE TABLE table_11803648_17 (overall INTEGER)
SELECT front_side_bus FROM table_name_58 WHERE voltage = "1.4 v" AND frequency = "1333 mhz"
Which Front Side Bus has a Voltage of 1.4 v, and a Frequency of 1333 mhz?
CREATE TABLE table_name_58 (front_side_bus VARCHAR, voltage VARCHAR, frequency VARCHAR)
SELECT completed FROM table_13397394_1 WHERE address = "410 22nd St E"
what is the maximum completed for address on 410 22nd st e
CREATE TABLE table_13397394_1 (completed VARCHAR, address VARCHAR)
SELECT release_date FROM table_name_5 WHERE location = "us"
What is the US release date?
CREATE TABLE table_name_5 (release_date VARCHAR, location VARCHAR)
SELECT score_1 FROM table_name_23 WHERE away_team = "portsmouth"
What was the score of the match in which Portsmouth was the Away team?
CREATE TABLE table_name_23 (score_1 VARCHAR, away_team VARCHAR)
SELECT scorers FROM table_name_61 WHERE group_position = "2nd" AND opponents = "olympiacos"
Who were the 2nd group scorers that were opponents of olympiacos?
CREATE TABLE table_name_61 (scorers VARCHAR, group_position VARCHAR, opponents VARCHAR)
SELECT set_1 FROM table_name_12 WHERE set_2 = "25-19"
What is the Set 1 with a Set 2 that is 25-19?
CREATE TABLE table_name_12 (set_1 VARCHAR, set_2 VARCHAR)
SELECT playoffs FROM table_name_50 WHERE division = "2" AND regular_season = "4th, southeast"
Which Playoffs has a Division of 2 and a Regular Season of 4th, southeast?
CREATE TABLE table_name_50 (playoffs VARCHAR, division VARCHAR, regular_season VARCHAR)
SELECT finish FROM table_name_7 WHERE chassis = "mclaren"
What is the finish of Mclaren chassis?
CREATE TABLE table_name_7 (finish VARCHAR, chassis VARCHAR)
SELECT SUM(points) FROM table_name_14 WHERE drawn < 1
What is the whole of Points that has a Drawn smaller than 1?
CREATE TABLE table_name_14 (points INTEGER, drawn INTEGER)
SELECT SUM(money___) AS $__ FROM table_name_74 WHERE player = "ed oliver"
How much money did the player Ed Oliver win?
CREATE TABLE table_name_74 (money___ INTEGER, player VARCHAR)
SELECT SUM(average) FROM table_name_5 WHERE yards = 23
What is the sum of average values for 23 yards?
CREATE TABLE table_name_5 (average INTEGER, yards VARCHAR)
SELECT opponent FROM table_14941284_1 WHERE date = "October 25, 1981"
When it is October 25, 1981 who is the opponent?
CREATE TABLE table_14941284_1 (opponent VARCHAR, date VARCHAR)
SELECT directed_by FROM table_26736342_1 WHERE us_viewers__millions_ = "1.95"
Who directed the eposide that was watched by 1.95 million US viewers?
CREATE TABLE table_26736342_1 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT height_ft__m_ FROM table_name_5 WHERE rank = "13"
How tall is the building ranked #13?
CREATE TABLE table_name_5 (height_ft__m_ VARCHAR, rank VARCHAR)
SELECT COUNT(crowd) FROM table_name_44 WHERE venue = "lake oval"
What was the attendance when the VFL played Lake Oval?
CREATE TABLE table_name_44 (crowd VARCHAR, venue VARCHAR)
SELECT location_attendance FROM table_23286223_8 WHERE date = "March 24"
Where was the March 24 game played?
CREATE TABLE table_23286223_8 (location_attendance VARCHAR, date VARCHAR)
SELECT T2.address FROM store AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE store_id = 1
Where is store 1 located?
CREATE TABLE store (address_id VARCHAR); CREATE TABLE address (address VARCHAR, address_id VARCHAR)
SELECT COUNT(written_by) FROM table_11695215_1 WHERE directed_by = "David Jackson"
How many episodes did David Jackson write and direct?
CREATE TABLE table_11695215_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT time_retired FROM table_name_46 WHERE laps < 73 AND grid = 5
What is the time/retired associated with a grid of 5 and under 73 laps?
CREATE TABLE table_name_46 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT overall_record FROM table_22993636_2 WHERE team = "LSU"
What's LSU's overall record/
CREATE TABLE table_22993636_2 (overall_record VARCHAR, team VARCHAR)
SELECT home_team FROM table_name_7 WHERE score = "85-101"
Which home team had a score of 85-101?
CREATE TABLE table_name_7 (home_team VARCHAR, score VARCHAR)
SELECT viewers__millions_ FROM table_17901155_4 WHERE no_in_season = 6
How many million viewers watched episode 6?
CREATE TABLE table_17901155_4 (viewers__millions_ VARCHAR, no_in_season VARCHAR)
SELECT MIN(rank_by_average) FROM table_name_99 WHERE average = 23 AND total = 115
What was the lowest rank by average of a couple who had an average of 23 and a total of 115?
CREATE TABLE table_name_99 (rank_by_average INTEGER, average VARCHAR, total VARCHAR)
SELECT winner FROM table_name_98 WHERE prize = "€880,000"
Who is the Winner, when the Prize is €880,000?
CREATE TABLE table_name_98 (winner VARCHAR, prize VARCHAR)
SELECT Former AS name FROM table_name_79 WHERE rank = 49
Name the former name for 49 rank
CREATE TABLE table_name_79 (Former VARCHAR, rank VARCHAR)
SELECT fastest_lap FROM table_name_56 WHERE grand_prix = "dutch tt"
What was the fastest lap for Grand Prix dutch tt?
CREATE TABLE table_name_56 (fastest_lap VARCHAR, grand_prix VARCHAR)
SELECT MIN(games) AS ↑ FROM table_name_88 WHERE position = "wlb"
Which Games↑ is the lowest one that has a Position of wlb?
CREATE TABLE table_name_88 (games INTEGER, position VARCHAR)
SELECT COUNT(first_elected) FROM table_14009909_1 WHERE committee = "Economic Matters"
How many of the elected officials are on the Economic Matters committee?
CREATE TABLE table_14009909_1 (first_elected VARCHAR, committee VARCHAR)
SELECT AVG(age), MIN(age), CLASS FROM captain GROUP BY CLASS
What are the average and minimum age of captains in different class?
CREATE TABLE captain (CLASS VARCHAR, age INTEGER)
SELECT country FROM table_name_7 WHERE television_service = "fox"
What country has a Fox television service?
CREATE TABLE table_name_7 (country VARCHAR, television_service VARCHAR)
SELECT station_type FROM table_12547903_2 WHERE branding = "SMNI TV-26 Naga"
What is the station type of smni tv-26 naga
CREATE TABLE table_12547903_2 (station_type VARCHAR, branding VARCHAR)
SELECT date_sent FROM table_name_29 WHERE constellation = "cancer"
What date sent has cancer as the constellation?
CREATE TABLE table_name_29 (date_sent VARCHAR, constellation VARCHAR)
SELECT Name, birth_place FROM people EXCEPT SELECT T1.Name, T1.birth_place FROM people AS T1 JOIN body_builder AS T2 ON T1.people_id = T2.people_id
List the names and origins of people who are not body builders.
CREATE TABLE people (Name VARCHAR, birth_place VARCHAR, people_id VARCHAR); CREATE TABLE body_builder (people_id VARCHAR); CREATE TABLE people (Name VARCHAR, birth_place VARCHAR)
SELECT start FROM table_name_49 WHERE laps > 200
What was the starting position of Joie Chitwood when he finished more than 200 laps?
CREATE TABLE table_name_49 (start VARCHAR, laps INTEGER)
SELECT MAX(against) FROM table_name_14 WHERE difference = "12"
Which Against is the highest one that has a Difference of 12?
CREATE TABLE table_name_14 (against INTEGER, difference VARCHAR)
SELECT payment_date FROM payment WHERE amount > 10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = 'Elsa'
Find all the payment dates for the payments with an amount larger than 10 and the payments handled by a staff person with the first name Elsa.
CREATE TABLE payment (payment_date VARCHAR, staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, first_name VARCHAR); CREATE TABLE payment (payment_date VARCHAR, amount INTEGER)
SELECT entrant FROM table_name_27 WHERE chassis = "gh1"
Name the entrant for chassis of gh1
CREATE TABLE table_name_27 (entrant VARCHAR, chassis VARCHAR)
SELECT attendance FROM table_name_58 WHERE week > 3 AND opponent = "philadelphia eagles"
What was the attendance for a week larger than 3, and an opponent of philadelphia eagles?
CREATE TABLE table_name_58 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT MAX(game) FROM table_20745444_1 WHERE opponent = "Furman"
How many games were against Furman?
CREATE TABLE table_20745444_1 (game INTEGER, opponent VARCHAR)
SELECT class FROM table_name_4 WHERE position = "lg"
What is the class for the position of lg?
CREATE TABLE table_name_4 (class VARCHAR, position VARCHAR)
SELECT COUNT(avg_trips_per_mile__) AS ×1000_ FROM table_17839_1 WHERE map_colour = "Turquoise"
When turquoise is the map colour how many avg. trips per mile (×1000) are there?
CREATE TABLE table_17839_1 (avg_trips_per_mile__ VARCHAR, map_colour VARCHAR)
SELECT generation FROM table_name_33 WHERE birthday = "1996.04.17"
What generation is the member born on 1996.04.17 in?
CREATE TABLE table_name_33 (generation VARCHAR, birthday VARCHAR)
SELECT notes FROM table_name_88 WHERE year = 2004
What are 2004's notes?
CREATE TABLE table_name_88 (notes VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_61 WHERE entrant = "trivellato racing team"
Can you tell me the Chassis that has the Entrant of trivellato racing team?
CREATE TABLE table_name_61 (chassis VARCHAR, entrant VARCHAR)
SELECT result FROM table_name_34 WHERE round = "r3"
What is the result of round R3?
CREATE TABLE table_name_34 (result VARCHAR, round VARCHAR)
SELECT hc__g_kwh_ FROM table_2780146_6 WHERE standard = "Euro I"
What's the HC for the Euro I standard?
CREATE TABLE table_2780146_6 (hc__g_kwh_ VARCHAR, standard VARCHAR)
SELECT tie_no FROM table_name_56 WHERE away_team = "port vale"
What is the Tie no of the Port Vale Away game?
CREATE TABLE table_name_56 (tie_no VARCHAR, away_team VARCHAR)
SELECT MIN(pick) FROM table_name_57 WHERE round > 1 AND name = "joe day" AND overall < 150
WHAT IS THE PICK FOR JOE DAY, ROUND LARGER THAN 1, AND OVERALL SMALLER THAN 150?
CREATE TABLE table_name_57 (pick INTEGER, overall VARCHAR, round VARCHAR, name VARCHAR)
SELECT height FROM table_name_56 WHERE weight = 240
What is the height of the player that weighs 240?
CREATE TABLE table_name_56 (height VARCHAR, weight VARCHAR)
SELECT venue FROM table_name_10 WHERE result = "loss" AND date = "march 26, 2005"
During the loss on march 26, 2005, what was the venue where the match was played?
CREATE TABLE table_name_10 (venue VARCHAR, result VARCHAR, date VARCHAR)
SELECT DISTINCT name FROM instructor ORDER BY name
List in alphabetic order the names of all distinct instructors.
CREATE TABLE instructor (name VARCHAR)
SELECT pole_position FROM table_name_3 WHERE grand_prix = "german grand prix"
Name the pole position at the german grand prix
CREATE TABLE table_name_3 (pole_position VARCHAR, grand_prix VARCHAR)
SELECT co_champions FROM table_name_49 WHERE solo = 3 AND mrc_championships > 3
What was the co-champions value when solo was 3 and MRC Championships is greater than 3?
CREATE TABLE table_name_49 (co_champions VARCHAR, solo VARCHAR, mrc_championships VARCHAR)
SELECT branding FROM table_2610582_3 WHERE callsign = "DWBA-TV"
What is the branding of the callsign DWBA-TV?
CREATE TABLE table_2610582_3 (branding VARCHAR, callsign VARCHAR)
SELECT tries_for FROM table_name_49 WHERE try_bonus = "5"
How many tries for did the team with a try bonus of 5 score?
CREATE TABLE table_name_49 (tries_for VARCHAR, try_bonus VARCHAR)
SELECT player FROM table_name_55 WHERE to_par = "+11"
Which player had a To par of +11?
CREATE TABLE table_name_55 (player VARCHAR, to_par VARCHAR)
SELECT english_translation FROM table_name_12 WHERE language = "french" AND artist = "rachel"
What is the English Translation for the French song by the Artist Rachel?
CREATE TABLE table_name_12 (english_translation VARCHAR, language VARCHAR, artist VARCHAR)
SELECT T2.horsepower, T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1
What is the maximum horsepower and the make of the car models with 3 cylinders?
CREATE TABLE CAR_NAMES (Make VARCHAR, MakeId VARCHAR); CREATE TABLE CARS_DATA (horsepower VARCHAR, Id VARCHAR, cylinders VARCHAR)
SELECT leading_scorer FROM table_name_62 WHERE date = "november 2, 2007"
Who was the leading scorer on November 2, 2007?
CREATE TABLE table_name_62 (leading_scorer VARCHAR, date VARCHAR)
SELECT place FROM table_name_44 WHERE score = 71 - 66 - 64 = 201
What is the place of the player with a 71-66-64=201 score?
CREATE TABLE table_name_44 (place VARCHAR, score VARCHAR)
SELECT appliances FROM table_name_69 WHERE location = "st neots"
What is the appliance at the station in St Neots?
CREATE TABLE table_name_69 (appliances VARCHAR, location VARCHAR)
SELECT SUM(round) FROM table_name_15 WHERE res = "win" AND opponent = "demian maia"
Name the Round that has Res of win and an Opponent of demian maia?
CREATE TABLE table_name_15 (round INTEGER, res VARCHAR, opponent VARCHAR)
SELECT COUNT(grid) FROM table_name_69 WHERE laps = 24
What is the grid when the laps were 24?
CREATE TABLE table_name_69 (grid VARCHAR, laps VARCHAR)