question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is Date, when Score is "80-79"?
CREATE TABLE table_name_8 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_8 WHERE score = "80-79"
What is the capacity at the nop aquatic centre, established after 1929?
CREATE TABLE table_name_8 (capacity VARCHAR, venue VARCHAR, established VARCHAR)
SELECT COUNT(capacity) FROM table_name_8 WHERE venue = "nop aquatic centre" AND established > 1929
How many points was before game 14?
CREATE TABLE table_name_82 (points INTEGER, game INTEGER)
SELECT SUM(points) FROM table_name_82 WHERE game < 14
What player is draft pick 17?
CREATE TABLE table_2850912_1 (player VARCHAR, pick__number VARCHAR)
SELECT player FROM table_2850912_1 WHERE pick__number = 17
How many tries against have a losing bonus of 9?
CREATE TABLE table_name_72 (tries_against VARCHAR, losing_bonus VARCHAR)
SELECT tries_against FROM table_name_72 WHERE losing_bonus = "9"
Which date has a Week larger than 5, and an Attendance of 54,803?
CREATE TABLE table_name_6 (date VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_6 WHERE week > 5 AND attendance = "54,803"
Nam the total number for bruce coulter award for 9th game
CREATE TABLE table_228149_1 (bruce_coulter_award VARCHAR, game VARCHAR)
SELECT COUNT(bruce_coulter_award) FROM table_228149_1 WHERE game = "9th"
Which home team has 44 ties?
CREATE TABLE table_name_12 (home_team VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_12 WHERE tie_no = "44"
Which rounds had the B195 chassis?
CREATE TABLE table_name_89 (rounds VARCHAR, chassis VARCHAR)
SELECT rounds FROM table_name_89 WHERE chassis = "b195"
What is the 2010 with a qf in 2011?
CREATE TABLE table_name_9 (Id VARCHAR)
SELECT 2010 FROM table_name_9 WHERE 2011 = "qf"
Release date of 2008 q3 has what release price?
CREATE TABLE table_name_69 (release_price___usd__ VARCHAR, release_date VARCHAR)
SELECT release_price___usd__ FROM table_name_69 WHERE release_date = "2008 q3"
Can you tell me the 2010 that has the 2008 of grand slam tournaments?
CREATE TABLE table_name_44 (Id VARCHAR)
SELECT 2010 FROM table_name_44 WHERE 2008 = "grand slam tournaments"
What was the score of Game 48?
CREATE TABLE table_name_33 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_33 WHERE game = 48
What is the latest year that Europe had 471895?
CREATE TABLE table_1914090_2 (year INTEGER, europe VARCHAR)
SELECT MAX(year) FROM table_1914090_2 WHERE europe = 471895
What was the original air date of the episode directed by frederick e. o. toye?
CREATE TABLE table_25923164_1 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT original_air_date FROM table_25923164_1 WHERE directed_by = "Frederick E. O. Toye"
What is the highest game with a 3-2 record?
CREATE TABLE table_name_79 (game INTEGER, record VARCHAR)
SELECT MAX(game) FROM table_name_79 WHERE record = "3-2"
What was the away team's score for the match played at Victoria Park?
CREATE TABLE table_name_89 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_89 WHERE venue = "victoria park"
Who was the republican candidate in the race with incumbent thelma drake?
CREATE TABLE table_17503169_1 (republican VARCHAR, incumbent VARCHAR)
SELECT republican FROM table_17503169_1 WHERE incumbent = "Thelma Drake"
What is the total Cores with a Clock Speed of 1.3ghz?
CREATE TABLE table_name_33 (cores VARCHAR, clock_speed VARCHAR)
SELECT COUNT(cores) FROM table_name_33 WHERE clock_speed = "1.3ghz"
What is the rank for Burghley?
CREATE TABLE table_name_72 (rank VARCHAR, place VARCHAR)
SELECT rank FROM table_name_72 WHERE place = "burghley"
List roles that have more than one employee. List the role description and number of employees.
CREATE TABLE ROLES (Id VARCHAR); CREATE TABLE Employees (Id VARCHAR)
SELECT Roles.role_description, COUNT(Employees.employee_id) FROM ROLES JOIN Employees ON Employees.role_code = Roles.role_code GROUP BY Employees.role_code HAVING COUNT(Employees.employee_id) > 1
What is Player, when Previous Team (League) is "Medicine Hat Tigers ( WHL )", and when Year is less than 2002?
CREATE TABLE table_name_90 (player VARCHAR, previous_team__league_ VARCHAR, year VARCHAR)
SELECT player FROM table_name_90 WHERE previous_team__league_ = "medicine hat tigers ( whl )" AND year < 2002
How many towns or cities are at milepost 71.1?
CREATE TABLE table_2572788_1 (town_city VARCHAR, milepost VARCHAR)
SELECT COUNT(town_city) FROM table_2572788_1 WHERE milepost = "71.1"
Which Points have a Game larger than 25, and an Opponent of dallas stars?
CREATE TABLE table_name_75 (points INTEGER, game VARCHAR, opponent VARCHAR)
SELECT AVG(points) FROM table_name_75 WHERE game > 25 AND opponent = "dallas stars"
What year was the bridge in Kent built?
CREATE TABLE table_name_63 (built VARCHAR, county VARCHAR)
SELECT built FROM table_name_63 WHERE county = "kent"
In which state can you find the Sandown circuit?
CREATE TABLE table_name_74 (state VARCHAR, circuit VARCHAR)
SELECT state FROM table_name_74 WHERE circuit = "sandown"
Who was the opponent at the Staples Center?
CREATE TABLE table_name_46 (opponent VARCHAR, arena VARCHAR)
SELECT opponent FROM table_name_46 WHERE arena = "staples center"
How many episodes are numbered 12x03?
CREATE TABLE table_23292220_13 (first_broadcast VARCHAR, episode VARCHAR)
SELECT COUNT(first_broadcast) FROM table_23292220_13 WHERE episode = "12x03"
What was the final score of the game against the Dallas Cowboys?
CREATE TABLE table_14959246_2 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_14959246_2 WHERE opponent = "Dallas Cowboys"
What is the real name of the Pick # that is greater than 9?
CREATE TABLE table_name_67 (employee__real_name_ VARCHAR, pick__number INTEGER)
SELECT employee__real_name_ FROM table_name_67 WHERE pick__number > 9
Which Competition has Opponents of pkns fc, and a Score of 0-0?
CREATE TABLE table_name_38 (competition VARCHAR, opponents VARCHAR, score VARCHAR)
SELECT competition FROM table_name_38 WHERE opponents = "pkns fc" AND score = "0-0"
How many are the total winners from South Korea?
CREATE TABLE table_182298_5 (total VARCHAR, country VARCHAR)
SELECT total FROM table_182298_5 WHERE country = "South Korea"
what is the c (nf/km) when the l (mh/km) is 0.6099?
CREATE TABLE table_261642_3 (c__nf_km_ VARCHAR, l__mh_km_ VARCHAR)
SELECT c__nf_km_ FROM table_261642_3 WHERE l__mh_km_ = "0.6099"
What was the round for Villa Park?
CREATE TABLE table_name_85 (round VARCHAR, venue VARCHAR)
SELECT round FROM table_name_85 WHERE venue = "villa park"
Which player won less than $335?
CREATE TABLE table_name_43 (player VARCHAR, money___$__ INTEGER)
SELECT player FROM table_name_43 WHERE money___$__ < 335
What is the highest number of matches with less than 2 draws that had an efficiency percent of 25%?
CREATE TABLE table_name_46 (matches INTEGER, draws VARCHAR, efficiency__percentage VARCHAR)
SELECT MAX(matches) FROM table_name_46 WHERE draws < 2 AND efficiency__percentage = "25%"
What is the couples name where the average is 15.9?
CREATE TABLE table_19744915_14 (couple VARCHAR, average VARCHAR)
SELECT couple FROM table_19744915_14 WHERE average = "15.9"
What is the sum of Wins, when Year is 1959?
CREATE TABLE table_name_2 (wins INTEGER, year VARCHAR)
SELECT SUM(wins) FROM table_name_2 WHERE year = 1959
What were the results of the womens u20 when the mens 45 was Sunwest Razorbacks def Northern Eagles?
CREATE TABLE table_16724844_1 (womens_u20 VARCHAR, mens_45 VARCHAR)
SELECT womens_u20 FROM table_16724844_1 WHERE mens_45 = "SunWest Razorbacks def Northern Eagles"
Which Info has an Album of romeo?
CREATE TABLE table_name_95 (info VARCHAR, album VARCHAR)
SELECT info FROM table_name_95 WHERE album = "romeo"
What team was the opponent when the time was 2:57, and a Score of 7–5?
CREATE TABLE table_name_59 (opponent VARCHAR, time VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_59 WHERE time = "2:57" AND score = "7–5"
What was the date of the game where Esteban Paredes scored 2 goals?
CREATE TABLE table_name_62 (date VARCHAR, goal VARCHAR)
SELECT date FROM table_name_62 WHERE goal = 2
What is Record, when Visitor is "Chicago Black Hawks", and when Date is "April 17"?
CREATE TABLE table_name_32 (record VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT record FROM table_name_32 WHERE visitor = "chicago black hawks" AND date = "april 17"
Which mixed doubles was featured in 2006?
CREATE TABLE table_name_93 (mixed_doubles VARCHAR, year VARCHAR)
SELECT mixed_doubles FROM table_name_93 WHERE year = 2006
What date has the format of CD and catalog of alca-274?
CREATE TABLE table_name_72 (date VARCHAR, format VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_72 WHERE format = "cd" AND catalog = "alca-274"
What is the total number of Races when there were more than 8 wins?
CREATE TABLE table_name_15 (races VARCHAR, wins INTEGER)
SELECT COUNT(races) FROM table_name_15 WHERE wins > 8
Which wood has stabilizing earth?
CREATE TABLE table_name_50 (wood VARCHAR, earth VARCHAR)
SELECT wood FROM table_name_50 WHERE earth = "stabilizing"
What is the area of the village with a census ranking of 1,442 of 5,008 and a population less than 1,778?
CREATE TABLE table_name_92 (area_km_2 INTEGER, population VARCHAR, status VARCHAR, census_ranking VARCHAR)
SELECT MAX(area_km_2) FROM table_name_92 WHERE status = "village" AND census_ranking = "1,442 of 5,008" AND population < 1 OFFSET 778
For the 1999 w210 e-class , 2000 w203 c-class, what is the stroke?
CREATE TABLE table_21021796_1 (stroke VARCHAR, applications VARCHAR)
SELECT stroke FROM table_21021796_1 WHERE applications = "1999 W210 E-Class , 2000 W203 C-Class"
Who is the voice actor (harmony gold ova dub) of the character with a voice actor (adv TV/sentai ova dub) Kim Prause?
CREATE TABLE table_name_10 (voice_actor__harmony_gold_ova_dub_ VARCHAR, voice_actor__adv_tv_sentai_ova_dub_ VARCHAR)
SELECT voice_actor__harmony_gold_ova_dub_ FROM table_name_10 WHERE voice_actor__adv_tv_sentai_ova_dub_ = "kim prause"
Which hanzi's launch is before 2009, when the language was tibetan, and the name was qinghai tibetian general channel?
CREATE TABLE table_name_71 (hanzi VARCHAR, name VARCHAR, launch VARCHAR, language VARCHAR)
SELECT hanzi FROM table_name_71 WHERE launch < 2009 AND language = "tibetan" AND name = "qinghai tibetian general channel"
What is the smallest number of seats in a retired vehicle that was started in service in 1981?
CREATE TABLE table_name_93 (number_of_seats INTEGER, current_status VARCHAR, year_placed_in_service VARCHAR)
SELECT MIN(number_of_seats) FROM table_name_93 WHERE current_status = "retired" AND year_placed_in_service = "1981"
Show the name of the teacher for the math course.
CREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course_ID VARCHAR, Course VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR)
SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = "Math"
What date has 37 points?
CREATE TABLE table_name_95 (date VARCHAR, points VARCHAR)
SELECT date FROM table_name_95 WHERE points = 37
What was the discipline for the euroboss championship?
CREATE TABLE table_name_59 (discipline VARCHAR, championship VARCHAR)
SELECT discipline FROM table_name_59 WHERE championship = "euroboss"
What is niurbi encarnación ynoa's height?
CREATE TABLE table_name_95 (height VARCHAR, contestant VARCHAR)
SELECT height FROM table_name_95 WHERE contestant = "niurbi encarnación ynoa"
What is the geo ID for the township with 0.771 square miles of water?
CREATE TABLE table_18600760_10 (geo_id INTEGER, water__sqmi_ VARCHAR)
SELECT MAX(geo_id) FROM table_18600760_10 WHERE water__sqmi_ = "0.771"
What's the title of the episode written by David Simon?
CREATE TABLE table_13755296_1 (title VARCHAR, teleplay_by VARCHAR)
SELECT title FROM table_13755296_1 WHERE teleplay_by = "David Simon"
Which Rank has a Silver of 1, and a Gold of 0, and a Nation of austria?
CREATE TABLE table_name_13 (rank VARCHAR, nation VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT rank FROM table_name_13 WHERE silver = 1 AND gold = 0 AND nation = "austria"
Show the party that has the most people.
CREATE TABLE people (Party VARCHAR)
SELECT Party FROM people GROUP BY Party ORDER BY COUNT(*) DESC LIMIT 1
What is the ERP for the Rockhampton region?
CREATE TABLE table_name_27 (erp__analog__digital_ VARCHAR, region_served VARCHAR)
SELECT erp__analog__digital_ FROM table_name_27 WHERE region_served = "rockhampton"
What country has area of 7,914 m²?
CREATE TABLE table_name_64 (country VARCHAR, area_in_m² VARCHAR)
SELECT country FROM table_name_64 WHERE area_in_m² = "7,914"
How many wins for bikes with under 54 points, team yamaha, a 250cc bike, and before 1977?
CREATE TABLE table_name_90 (wins VARCHAR, year VARCHAR, class VARCHAR, points VARCHAR, team VARCHAR)
SELECT COUNT(wins) FROM table_name_90 WHERE points < 54 AND team = "yamaha" AND class = "250cc" AND year < 1977
What championship had Francesca Schiavone in the finals?
CREATE TABLE table_name_81 (championship VARCHAR, opponent_in_the_final VARCHAR)
SELECT championship FROM table_name_81 WHERE opponent_in_the_final = "francesca schiavone"
Name the finish for patani
CREATE TABLE table_16976547_2 (finish VARCHAR, eliminated VARCHAR)
SELECT finish FROM table_16976547_2 WHERE eliminated = "Patani"
What is the average Lost when there are 57 against?
CREATE TABLE table_name_42 (lost INTEGER, against VARCHAR)
SELECT AVG(lost) FROM table_name_42 WHERE against = 57
Can you say what was the entrant of maserati built item with a Tyre of p with a chassis of 250f a6gcm that was driven by Luigi Villoresi?
CREATE TABLE table_name_86 (entrant VARCHAR, driver VARCHAR, chassis VARCHAR, constructor VARCHAR, tyre VARCHAR)
SELECT entrant FROM table_name_86 WHERE constructor = "maserati" AND tyre = "p" AND chassis = "250f a6gcm" AND driver = "luigi villoresi"
What's the Nationality of Round 8 Vancouver Canucks NHL Team of Swift Current Broncos (WHL)?
CREATE TABLE table_name_12 (nationality VARCHAR, round VARCHAR, nhl_team VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT nationality FROM table_name_12 WHERE nhl_team = "vancouver canucks" AND college_junior_club_team__league_ = "swift current broncos (whl)" AND round = 8
What is the position of the player for Washington school?
CREATE TABLE table_name_44 (position VARCHAR, school VARCHAR)
SELECT position FROM table_name_44 WHERE school = "washington"
What couple has an average of 17.2?
CREATE TABLE table_20424140_3 (couple VARCHAR, average VARCHAR)
SELECT couple FROM table_20424140_3 WHERE average = "17.2"
What year has the wild side of soccer! as the slogan?
CREATE TABLE table_name_89 (year VARCHAR, slogan VARCHAR)
SELECT year FROM table_name_89 WHERE slogan = "the wild side of soccer!"
What year was the downy woodpecker coin created?
CREATE TABLE table_name_46 (year INTEGER, animal VARCHAR)
SELECT SUM(year) FROM table_name_46 WHERE animal = "downy woodpecker"
Where was the 1400 m held?
CREATE TABLE table_14981555_1 (venue VARCHAR, distance VARCHAR)
SELECT venue FROM table_14981555_1 WHERE distance = "1400 m"
What is the total number of UEFA Cup(s), when Total is greater than 3?
CREATE TABLE table_name_44 (uefa_cup VARCHAR, total INTEGER)
SELECT COUNT(uefa_cup) FROM table_name_44 WHERE total > 3
What type of event had the wrestler with a reign of 2 and held the title for 35 days?
CREATE TABLE table_name_31 (event VARCHAR, reign VARCHAR, days_held VARCHAR)
SELECT event FROM table_name_31 WHERE reign = "2" AND days_held = "35"
What home team has june 22 as the date?
CREATE TABLE table_name_87 (home_team VARCHAR, date VARCHAR)
SELECT home_team FROM table_name_87 WHERE date = "june 22"
Find the names of patients who are not using the medication of Procrastin-X.
CREATE TABLE Prescribes (Patient VARCHAR, Medication VARCHAR); CREATE TABLE Medication (Code VARCHAR, name VARCHAR); CREATE TABLE patient (name VARCHAR, SSN VARCHAR); CREATE TABLE patient (name VARCHAR)
SELECT name FROM patient EXCEPT SELECT T1.name FROM patient AS T1 JOIN Prescribes AS T2 ON T2.Patient = T1.SSN JOIN Medication AS T3 ON T2.Medication = T3.Code WHERE T3.name = 'Procrastin-X'
Studio host of john ryder, and a Year of 2007-08 had what play by play?
CREATE TABLE table_name_38 (play_by_play VARCHAR, studio_host VARCHAR, year VARCHAR)
SELECT play_by_play FROM table_name_38 WHERE studio_host = "john ryder" AND year = "2007-08"
What is the lowest draft pick number for mark doak who had an overall pick smaller than 147?
CREATE TABLE table_name_30 (pick INTEGER, name VARCHAR, overall VARCHAR)
SELECT MIN(pick) FROM table_name_30 WHERE name = "mark doak" AND overall < 147
What is Tournament, when Week is November 23?
CREATE TABLE table_name_64 (tournament VARCHAR, week VARCHAR)
SELECT tournament FROM table_name_64 WHERE week = "november 23"
What are the years on the Jazz for the player who is a combo forward?
CREATE TABLE table_name_12 (years_for_jazz VARCHAR, position VARCHAR)
SELECT years_for_jazz FROM table_name_12 WHERE position = "combo forward"
Name the Player who has a Place of t7 in Country of united states?
CREATE TABLE table_name_45 (player VARCHAR, place VARCHAR, country VARCHAR)
SELECT player FROM table_name_45 WHERE place = "t7" AND country = "united states"
What was the lowest pick number for a united states player picked before round 7?
CREATE TABLE table_name_91 (pick INTEGER, round VARCHAR, nationality VARCHAR)
SELECT MIN(pick) FROM table_name_91 WHERE round > 7 AND nationality = "united states"
Who was the home team when the away team was Bristol Rovers?
CREATE TABLE table_name_1 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_1 WHERE away_team = "bristol rovers"
Which country has a prize smaller than $250 and the player Henry Picard?
CREATE TABLE table_name_27 (country VARCHAR, money___$__ VARCHAR, player VARCHAR)
SELECT country FROM table_name_27 WHERE money___$__ < 250 AND player = "henry picard"
How fast does the BMW with 6 points go?
CREATE TABLE table_name_43 (speed VARCHAR, machine VARCHAR, points VARCHAR)
SELECT speed FROM table_name_43 WHERE machine = "bmw" AND points = 6
During what Championship was the Opponent Jeff Borowiak?
CREATE TABLE table_name_53 (championship VARCHAR, opponent VARCHAR)
SELECT championship FROM table_name_53 WHERE opponent = "jeff borowiak"
In what League is the Reed School?
CREATE TABLE table_name_87 (league VARCHAR, school VARCHAR)
SELECT league FROM table_name_87 WHERE school = "reed"
what is the arrival time where the station code is awy?
CREATE TABLE table_14688744_2 (arrival VARCHAR, station_code VARCHAR)
SELECT arrival FROM table_14688744_2 WHERE station_code = "AWY"
Who directs before 1948 with linda darnell, titled blood and sand?
CREATE TABLE table_name_55 (director VARCHAR, title VARCHAR, year VARCHAR, leading_lady VARCHAR)
SELECT director FROM table_name_55 WHERE year < 1948 AND leading_lady = "linda darnell" AND title = "blood and sand"
Which tracking method has a latest stable release of 2.23-05?
CREATE TABLE table_name_14 (tracking_method VARCHAR, latest_stable_release VARCHAR)
SELECT tracking_method FROM table_name_14 WHERE latest_stable_release = "2.23-05"
Nagua has the area (km²) of?
CREATE TABLE table_1888051_1 (area__km²_ VARCHAR, capital VARCHAR)
SELECT area__km²_ FROM table_1888051_1 WHERE capital = "Nagua"
Can you tell me the Date that has the Game of 2?
CREATE TABLE table_name_51 (date VARCHAR, game VARCHAR)
SELECT date FROM table_name_51 WHERE game = 2
Name the points classification for quick step-innergetic with stage 7
CREATE TABLE table_name_66 (points_classification VARCHAR, team_classification VARCHAR, stage VARCHAR)
SELECT points_classification FROM table_name_66 WHERE team_classification = "quick step-innergetic" AND stage = "7"
What was the number of fatalities for the Viscount 700?
CREATE TABLE table_name_71 (fatalities VARCHAR, aircraft VARCHAR)
SELECT fatalities FROM table_name_71 WHERE aircraft = "viscount 700"
What is the Position of the player with a Height off 188cm?
CREATE TABLE table_name_7 (position VARCHAR, height VARCHAR)
SELECT position FROM table_name_7 WHERE height = "188cm"
Which Constructor has a Grid of 17?
CREATE TABLE table_name_87 (constructor VARCHAR, grid VARCHAR)
SELECT constructor FROM table_name_87 WHERE grid = 17
On September 7 what was the record?
CREATE TABLE table_name_63 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_63 WHERE date = "september 7"
What is the highest Game, when Opponents is less than 80, and when Record is "1-0"?
CREATE TABLE table_name_98 (game INTEGER, opponents VARCHAR, record VARCHAR)
SELECT MAX(game) FROM table_name_98 WHERE opponents < 80 AND record = "1-0"
Which country has its most recent year as being 2005 and has an Adult Men literacy rate of 96%?
CREATE TABLE table_name_62 (country VARCHAR, year__most_recent_ VARCHAR, adult_men VARCHAR)
SELECT country FROM table_name_62 WHERE year__most_recent_ = 2005 AND adult_men = "96%"