question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Name the region for december 7, 2004
CREATE TABLE table_name_33 (region VARCHAR, date VARCHAR)
SELECT region FROM table_name_33 WHERE date = "december 7, 2004"
Name the least silver when gold is less than 0
CREATE TABLE table_name_41 (silver INTEGER, gold INTEGER)
SELECT MIN(silver) FROM table_name_41 WHERE gold < 0
What was the year when West Manila has a tariff increase of 6.5?
CREATE TABLE table_17302440_1 (year VARCHAR, west_manila VARCHAR)
SELECT year FROM table_17302440_1 WHERE west_manila = "6.5"
Which Year(s) won has a To par of +8?
CREATE TABLE table_name_65 (year_s__won VARCHAR, to_par VARCHAR)
SELECT year_s__won FROM table_name_65 WHERE to_par = "+8"
What is the episode on NHK with average ratings of 9.2%?
CREATE TABLE table_name_39 (episodes VARCHAR, tv_station VARCHAR, average_ratings VARCHAR)
SELECT COUNT(episodes) FROM table_name_39 WHERE tv_station = "nhk" AND average_ratings = "9.2%"
With a Primary military speciality of astral assault tactics, what is the Secondary military speciality?
CREATE TABLE table_name_58 (secondary_military_speciality VARCHAR, primary_military_speciality VARCHAR)
SELECT secondary_military_speciality FROM table_name_58 WHERE primary_military_speciality = "astral assault tactics"
Which race has a distance of 201.44 miles?
CREATE TABLE table_name_71 (race VARCHAR, distance VARCHAR)
SELECT race FROM table_name_71 WHERE distance = "201.44 miles"
What is the latest year that has an engine of cosworth v8, with a chassis of hesketh 308e?
CREATE TABLE table_name_81 (year INTEGER, engine VARCHAR, chassis VARCHAR)
SELECT MAX(year) FROM table_name_81 WHERE engine = "cosworth v8" AND chassis = "hesketh 308e"
Name the won for played being 22 and points against 511 and lost being 15
CREATE TABLE table_27293285_4 (won VARCHAR, points_against VARCHAR, played VARCHAR, lost VARCHAR)
SELECT won FROM table_27293285_4 WHERE played = "22" AND lost = "15" AND points_against = "511"
What is the total number of losses of the player that has drawn 1 and played smaller than 12?
CREATE TABLE table_name_73 (lost VARCHAR, drawn VARCHAR, played VARCHAR)
SELECT COUNT(lost) FROM table_name_73 WHERE drawn = 1 AND played < 12
What university did Steve Hoar attend.
CREATE TABLE table_18042409_1 (alma_mater VARCHAR, player VARCHAR)
SELECT alma_mater FROM table_18042409_1 WHERE player = "Steve Hoar"
On 10/20/1979*, who was the Opponent?
CREATE TABLE table_name_59 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_59 WHERE date = "10/20/1979*"
WHAT IS THE RESULT FOR best urban/alternative performance, IN 2003 OR GREATER?
CREATE TABLE table_name_1 (result VARCHAR, category VARCHAR, year VARCHAR)
SELECT result FROM table_name_1 WHERE category = "best urban/alternative performance" AND year > 2003
what is the birth date when the weight (kg) is 100 and the world rank is 2?
CREATE TABLE table_name_3 (birth_date VARCHAR, weight__kg_ VARCHAR, world_rank VARCHAR)
SELECT birth_date FROM table_name_3 WHERE weight__kg_ = "100" AND world_rank = "2"
Whats the processor for p9xxx?
CREATE TABLE table_24100843_1 (processor VARCHAR, model__list_ VARCHAR)
SELECT processor FROM table_24100843_1 WHERE model__list_ = "P9xxx"
If the player is Hashan Tillakaratne, what is the catches minimum?
CREATE TABLE table_26041144_16 (catches INTEGER, player VARCHAR)
SELECT MIN(catches) FROM table_26041144_16 WHERE player = "Hashan Tillakaratne"
What is the lowest rank of Hungary where there was a total of 8 medals, including 2 silver?
CREATE TABLE table_name_37 (rank INTEGER, silver VARCHAR, total VARCHAR, nation VARCHAR)
SELECT MIN(rank) FROM table_name_37 WHERE total = 8 AND nation = "hungary" AND silver > 2
What club has a tries for count of 19?
CREATE TABLE table_12886178_5 (club VARCHAR, tries_for VARCHAR)
SELECT club FROM table_12886178_5 WHERE tries_for = "19"
Which team played in game 20?
CREATE TABLE table_13464416_5 (team VARCHAR, game VARCHAR)
SELECT team FROM table_13464416_5 WHERE game = 20
What is the lowest match that has a lost greater than 3, and kolejarz rawicz as the team?
CREATE TABLE table_name_99 (match INTEGER, lost VARCHAR, team VARCHAR)
SELECT MIN(match) FROM table_name_99 WHERE lost > 3 AND team = "kolejarz rawicz"
What year did the term end for the office elected in 1984
CREATE TABLE table_1602620_1 (term_ended VARCHAR, elected VARCHAR)
SELECT term_ended FROM table_1602620_1 WHERE elected = 1984
What is the mean number of events where the rank is 1 and there are more than 3 wins?
CREATE TABLE table_name_50 (events INTEGER, rank VARCHAR, wins VARCHAR)
SELECT AVG(events) FROM table_name_50 WHERE rank = 1 AND wins > 3
Which Player has a Nationality of united states, and an Overall of 61 (from boston)?
CREATE TABLE table_name_79 (player VARCHAR, nationality VARCHAR, overall VARCHAR)
SELECT player FROM table_name_79 WHERE nationality = "united states" AND overall = "61 (from boston)"
Name the film for award of £3,740
CREATE TABLE table_name_98 (film VARCHAR, award VARCHAR)
SELECT film FROM table_name_98 WHERE award = "£3,740"
When platense is the home (2nd leg) what is the 2nd leg?
CREATE TABLE table_14219514_2 (home__2nd_leg_ VARCHAR)
SELECT 2 AS nd_leg FROM table_14219514_2 WHERE home__2nd_leg_ = "Platense"
What is Record, when Team is "@ Atlanta"?
CREATE TABLE table_name_78 (record VARCHAR, team VARCHAR)
SELECT record FROM table_name_78 WHERE team = "@ atlanta"
What year did the Ingots, who left after 2007, join?
CREATE TABLE table_name_48 (year_joined VARCHAR, mascot VARCHAR, year_left VARCHAR)
SELECT COUNT(year_joined) FROM table_name_48 WHERE mascot = "ingots" AND year_left > 2007
What is the service of the network Set Max from India?
CREATE TABLE table_name_22 (service VARCHAR, origin_of_programming VARCHAR, network VARCHAR)
SELECT service FROM table_name_22 WHERE origin_of_programming = "india" AND network = "set max"
what is the division north in 2007–08
CREATE TABLE table_17881033_1 (division_north VARCHAR, season VARCHAR)
SELECT division_north FROM table_17881033_1 WHERE season = "2007–08"
Which Date has a Tie no of 11?
CREATE TABLE table_name_86 (date VARCHAR, tie_no VARCHAR)
SELECT date FROM table_name_86 WHERE tie_no = "11"
Where has a cause of gas explosion, a Death toll larger than 38 on 10 june?
CREATE TABLE table_name_97 (location VARCHAR, date VARCHAR, cause VARCHAR, death_toll VARCHAR)
SELECT location FROM table_name_97 WHERE cause = "gas explosion" AND death_toll > 38 AND date = "10 june"
Which To par has a Year of 1994?
CREATE TABLE table_name_24 (to_par VARCHAR, year VARCHAR)
SELECT to_par FROM table_name_24 WHERE year = 1994
What is the average grid when the laps are smaller than 14 and Reine Wisell is the driver?
CREATE TABLE table_name_69 (grid INTEGER, laps VARCHAR, driver VARCHAR)
SELECT AVG(grid) FROM table_name_69 WHERE laps < 14 AND driver = "reine wisell"
what is the type of vehicle driven by mark higgins
CREATE TABLE table_28046929_2 (car VARCHAR, driver VARCHAR)
SELECT car FROM table_28046929_2 WHERE driver = "Mark Higgins"
What is the score when the tie number is 8?
CREATE TABLE table_name_84 (score VARCHAR, tie_no VARCHAR)
SELECT score FROM table_name_84 WHERE tie_no = "8"
What was the attendance for the game at groves stadium • winston-salem, nc with a result of L 0-14?
CREATE TABLE table_name_86 (attendance VARCHAR, location VARCHAR, result VARCHAR)
SELECT COUNT(attendance) FROM table_name_86 WHERE location = "groves stadium • winston-salem, nc" AND result = "l 0-14"
What was the average attendance when the New York Mets were opponents with a record of 51-33?
CREATE TABLE table_name_81 (attendance INTEGER, opponent VARCHAR, record VARCHAR)
SELECT AVG(attendance) FROM table_name_81 WHERE opponent = "new york mets" AND record = "51-33"
Name the most appearances for bernard allou
CREATE TABLE table_24565004_2 (appearances¹ INTEGER, name VARCHAR)
SELECT MAX(appearances¹) FROM table_24565004_2 WHERE name = "Bernard Allou"
When the year is year what was the film?
CREATE TABLE table_name_31 (film VARCHAR)
SELECT film FROM table_name_31 WHERE "year" = "year"
Which Tracking Method has a Latest stable release of n/a, and a Price in USD of from $202/month?
CREATE TABLE table_name_25 (tracking_method VARCHAR, latest_stable_release VARCHAR, price_in_usd VARCHAR)
SELECT tracking_method FROM table_name_25 WHERE latest_stable_release = "n/a" AND price_in_usd = "from $202/month"
Which School/Club Team has a Round smaller than 5, a Pick larger than 1, and a Player of reggie mckenzie?
CREATE TABLE table_name_97 (school_club_team VARCHAR, player VARCHAR, round VARCHAR, pick VARCHAR)
SELECT school_club_team FROM table_name_97 WHERE round < 5 AND pick > 1 AND player = "reggie mckenzie"
What date was the winning driver Antonio Ascari?
CREATE TABLE table_name_27 (date VARCHAR, winning_driver VARCHAR)
SELECT date FROM table_name_27 WHERE winning_driver = "antonio ascari"
Which race was in round 6?
CREATE TABLE table_name_10 (race_name VARCHAR, round VARCHAR)
SELECT race_name FROM table_name_10 WHERE round = 6
What is the largest value for lost with a position greater than 10?
CREATE TABLE table_name_89 (lost INTEGER, position INTEGER)
SELECT MAX(lost) FROM table_name_89 WHERE position > 10
What is the result for the match that was only 2:48 long?
CREATE TABLE table_name_63 (res VARCHAR, time VARCHAR)
SELECT res FROM table_name_63 WHERE time = "2:48"
Which AFC cup does Kenji Arai have?
CREATE TABLE table_name_43 (afc_cup VARCHAR, name VARCHAR)
SELECT afc_cup FROM table_name_43 WHERE name = "kenji arai"
Who are the opponents for games on Sunday, June 9?
CREATE TABLE table_24918268_2 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_24918268_2 WHERE date = "Sunday, June 9"
On what date was the format of ed remaster cd?
CREATE TABLE table_name_97 (date VARCHAR, format VARCHAR)
SELECT date FROM table_name_97 WHERE format = "ed remaster cd"
List in alphabetic order the names of all distinct instructors.
CREATE TABLE instructor (name VARCHAR)
SELECT DISTINCT name FROM instructor ORDER BY name
How many gold medals does the country ranked higher than 2 with more than 8 bronze have?
CREATE TABLE table_name_56 (gold INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT SUM(gold) FROM table_name_56 WHERE rank < 2 AND bronze > 8
Which silver has a Gold larger than 4, and a Rank of 1?
CREATE TABLE table_name_74 (silver VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT silver FROM table_name_74 WHERE gold > 4 AND rank = 1
Name the tv time for week 10
CREATE TABLE table_name_49 (tv_time VARCHAR, week VARCHAR)
SELECT tv_time FROM table_name_49 WHERE week = 10
When luz mcclinton is the name what is the season?
CREATE TABLE table_19061741_1 (season VARCHAR, name VARCHAR)
SELECT season FROM table_19061741_1 WHERE name = "Luz McClinton"
Who is the coach located in Oakden?
CREATE TABLE table_name_69 (coach VARCHAR, location VARCHAR)
SELECT coach FROM table_name_69 WHERE location = "oakden"
Name the driver/passenger for position 8
CREATE TABLE table_16729457_16 (driver___passenger VARCHAR, position VARCHAR)
SELECT driver___passenger FROM table_16729457_16 WHERE position = 8
Who was the Partner in the Algiers 2, Algeria Tournament?
CREATE TABLE table_name_2 (partner VARCHAR, tournament VARCHAR)
SELECT partner FROM table_name_2 WHERE tournament = "algiers 2, algeria"
Which home team has the Brunswick Street Oval venue?
CREATE TABLE table_name_99 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_99 WHERE venue = "brunswick street oval"
How many times is the incoming head coach abdollah veysi?
CREATE TABLE table_27383390_4 (team VARCHAR, incoming_head_coach VARCHAR)
SELECT COUNT(team) FROM table_27383390_4 WHERE incoming_head_coach = "Abdollah Veysi"
What is the score on March 17?
CREATE TABLE table_name_10 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_10 WHERE date = "march 17"
Which Elimination move is listed against Team Orton, Eliminated by Batista against Elimination number 7?
CREATE TABLE table_name_25 (elimination VARCHAR, team VARCHAR, eliminated_by VARCHAR)
SELECT elimination AS Move FROM table_name_25 WHERE team = "team orton" AND eliminated_by = "batista" AND elimination = "7"
What is the Week with a Date of Bye?
CREATE TABLE table_name_87 (week VARCHAR, date VARCHAR)
SELECT COUNT(week) FROM table_name_87 WHERE date = "bye"
What was the series record at after game 3?
CREATE TABLE table_27700530_15 (series VARCHAR, game VARCHAR)
SELECT series FROM table_27700530_15 WHERE game = 3
How many goals did sture mårtensson score?
CREATE TABLE table_name_98 (goals VARCHAR, name VARCHAR)
SELECT goals FROM table_name_98 WHERE name = "sture mårtensson"
Which leader born on December 17, 1874 started their term before 1984?
CREATE TABLE table_name_50 (name VARCHAR, term_start VARCHAR, date_of_birth VARCHAR)
SELECT name FROM table_name_50 WHERE term_start < 1984 AND date_of_birth = "december 17, 1874"
What is the lowest Bronze, when Total is greater than 10, when Silver is greater than 0, and when Rank is "Total"?
CREATE TABLE table_name_83 (bronze INTEGER, rank VARCHAR, silver VARCHAR)
SELECT MIN(bronze) FROM table_name_83 WHERE "total" > 10 AND silver > 0 AND rank = "total"
What is the Opponent of the game after Week 3 with a Result of L 10–6?
CREATE TABLE table_name_86 (opponent VARCHAR, week VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_86 WHERE week > 3 AND result = "l 10–6"
Which Giro di Lombardia has a Paris–Roubaix of servais knaven ( ned )?
CREATE TABLE table_name_38 (giro_di_lombardia VARCHAR, paris_roubaix VARCHAR)
SELECT giro_di_lombardia FROM table_name_38 WHERE paris_roubaix = "servais knaven ( ned )"
How many customers do we have?
CREATE TABLE Customers (Id VARCHAR)
SELECT COUNT(*) FROM Customers
I want the total number of matches for draw less than 7 and lost point of 16 with lose more than 4
CREATE TABLE table_name_14 (matches VARCHAR, lose VARCHAR, draw VARCHAR, lost_point VARCHAR)
SELECT COUNT(matches) FROM table_name_14 WHERE draw < 7 AND lost_point = 16 AND lose > 4
Name the sum of Hull number with portugal destination
CREATE TABLE table_name_84 (hull_no INTEGER, destination VARCHAR)
SELECT SUM(hull_no) FROM table_name_84 WHERE destination = "portugal"
Show names for all employees who have certificates on both Boeing 737-800 and Airbus A340-300.
CREATE TABLE Employee (name VARCHAR, eid VARCHAR); CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR); CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = "Boeing 737-800" INTERSECT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = "Airbus A340-300"
Which Distance has a Date of 1930-01-11?
CREATE TABLE table_name_69 (distance VARCHAR, date VARCHAR)
SELECT distance FROM table_name_69 WHERE date = "1930-01-11"
What was the sum of January values with a record of 27-12-3 for a game less than 42?
CREATE TABLE table_name_36 (january INTEGER, record VARCHAR, game VARCHAR)
SELECT SUM(january) FROM table_name_36 WHERE record = "27-12-3" AND game < 42
What's the event that had a performance of 14:11.15 by Ethiopia?
CREATE TABLE table_name_51 (event VARCHAR, nation VARCHAR, performance VARCHAR)
SELECT event FROM table_name_51 WHERE nation = "ethiopia" AND performance = "14:11.15"
What week was stefan edberg anders järryd was semifinalist and champion is john mcenroe 7–6, 6–3?
CREATE TABLE table_21584646_10 (week_of VARCHAR, semifinalists VARCHAR, champion VARCHAR)
SELECT week_of FROM table_21584646_10 WHERE semifinalists = "Stefan Edberg Anders Järryd" AND champion = "John McEnroe 7–6, 6–3"
What is the T4 Place Player with a Score of more than 66?
CREATE TABLE table_name_1 (player VARCHAR, score VARCHAR, place VARCHAR)
SELECT player FROM table_name_1 WHERE score > 66 AND place = "t4"
What was the lowest election result for President Leonardo Marras with an area smaller than 227,063 people?
CREATE TABLE table_name_29 (election INTEGER, president VARCHAR, inhabitants VARCHAR)
SELECT MIN(election) FROM table_name_29 WHERE president = "leonardo marras" AND inhabitants < 227 OFFSET 063
What is the total number of Since with a Goals larger than 6, and a Name with deco?
CREATE TABLE table_name_57 (since VARCHAR, goals VARCHAR, name VARCHAR)
SELECT COUNT(since) FROM table_name_57 WHERE goals > 6 AND name = "deco"
Name the truck for eric phillips
CREATE TABLE table_24535095_2 (truck_s_ VARCHAR, crew_chief VARCHAR)
SELECT truck_s_ FROM table_24535095_2 WHERE crew_chief = "Eric Phillips"
What is the period for the DET Team with a time of 11:27?
CREATE TABLE table_name_52 (period VARCHAR, team VARCHAR, time VARCHAR)
SELECT period FROM table_name_52 WHERE team = "det" AND time = "11:27"
Who came in third in England?
CREATE TABLE table_name_60 (third VARCHAR, nation VARCHAR)
SELECT third FROM table_name_60 WHERE nation = "england"
What is the name of the player when the category is listed as field goal percentage?
CREATE TABLE table_28628309_8 (player VARCHAR, category VARCHAR)
SELECT player FROM table_28628309_8 WHERE category = "Field goal percentage"
Name the least points for number 6
CREATE TABLE table_24108789_6 (points INTEGER, _number VARCHAR)
SELECT MIN(points) FROM table_24108789_6 WHERE _number = 6
What is the score of the floor when the position is less than 21, and less than 81.2 total, and the pommel horse score is 13.925?
CREATE TABLE table_name_1 (floor VARCHAR, pommel_horse VARCHAR, position VARCHAR, total VARCHAR)
SELECT floor FROM table_name_1 WHERE position < 21 AND total < 81.2 AND pommel_horse = "13.925"
Find the three most expensive procedures.
CREATE TABLE procedures (name VARCHAR, cost VARCHAR)
SELECT name FROM procedures ORDER BY cost LIMIT 3
What is the highest against when the lost is 3 with less than 30 points?
CREATE TABLE table_name_73 (against INTEGER, lost VARCHAR, points VARCHAR)
SELECT MAX(against) FROM table_name_73 WHERE lost = 3 AND points < 30
What is the majority when the clone independence is no?
CREATE TABLE table_name_8 (majority VARCHAR, clone_independence VARCHAR)
SELECT majority FROM table_name_8 WHERE clone_independence = "no"
What is the GDP for the region with an area of 7,263 sq. mi.?
CREATE TABLE table_name_74 (gdp___bn__ VARCHAR, area__sq_mi_ VARCHAR)
SELECT gdp___bn__ FROM table_name_74 WHERE area__sq_mi_ = "7,263"
What is the home team of the game on February 4?
CREATE TABLE table_name_74 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_74 WHERE date = "february 4"
What is the Winning team on january 28, 2006?
CREATE TABLE table_name_35 (winning_team VARCHAR, date VARCHAR)
SELECT winning_team FROM table_name_35 WHERE date = "january 28, 2006"
what is the score in february 12 of the boston celtics team
CREATE TABLE table_17382360_7 (score VARCHAR, team VARCHAR)
SELECT score FROM table_17382360_7 WHERE team = "Boston Celtics"
What position did the BMW vehicle made in 2006 hold?
CREATE TABLE table_name_89 (position VARCHAR, vehicle VARCHAR, year VARCHAR)
SELECT position FROM table_name_89 WHERE vehicle = "bmw" AND year = 2006
Name the three for william prewett for four and five being richard ellis with seven being nicholas king on 5 november 1693
CREATE TABLE table_name_83 (three VARCHAR, date VARCHAR, seven VARCHAR, four VARCHAR, five VARCHAR)
SELECT three FROM table_name_83 WHERE four = "william prewett" AND five = "richard ellis" AND seven = "nicholas king" AND date = "5 november 1693"
Which Country has a Network of channel 1?
CREATE TABLE table_name_97 (country VARCHAR, network VARCHAR)
SELECT country FROM table_name_97 WHERE network = "channel 1"
What were the circumstances of the Hostile incident on the road to Jalalabad?
CREATE TABLE table_name_18 (circumstances VARCHAR, nature_of_incident VARCHAR, location VARCHAR)
SELECT circumstances FROM table_name_18 WHERE nature_of_incident = "hostile" AND location = "road to jalalabad"
Find the location of the club "Pen and Paper Gaming".
CREATE TABLE club (clublocation VARCHAR, clubname VARCHAR)
SELECT clublocation FROM club WHERE clubname = "Pen and Paper Gaming"
Who wrote the episode that was watched by 2.97 million U.S. viewers?
CREATE TABLE table_29920800_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT written_by FROM table_29920800_1 WHERE us_viewers__million_ = "2.97"
What venue had collingwood as the away team?
CREATE TABLE table_name_14 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_14 WHERE away_team = "collingwood"
How many dogs have an age below the average?
CREATE TABLE Dogs (age INTEGER)
SELECT COUNT(*) FROM Dogs WHERE age < (SELECT AVG(age) FROM Dogs)
What was the name for the locomotive with a type of 2-8-0 and a number of 20?
CREATE TABLE table_name_23 (name VARCHAR, type VARCHAR, number VARCHAR)
SELECT name FROM table_name_23 WHERE type = "2-8-0" AND number = 20