answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT record FROM table_23248940_7 WHERE date = "December 8"
Name the record for december 8
CREATE TABLE table_23248940_7 (record VARCHAR, date VARCHAR)
SELECT COUNT(year) FROM table_22597626_6 WHERE score_in_the_final = "6–3, 6–2, 6–4"
Name the number of year for score being 6–3, 6–2, 6–4
CREATE TABLE table_22597626_6 (year VARCHAR, score_in_the_final VARCHAR)
SELECT venue FROM table_name_47 WHERE conv = "0" AND player = "brian hightower"
Where did Brian Hightower play when he has the Conv of 0?
CREATE TABLE table_name_47 (venue VARCHAR, conv VARCHAR, player VARCHAR)
SELECT reader FROM table_20174050_23 WHERE title = "Department X"
who the reader of title department x?
CREATE TABLE table_20174050_23 (reader VARCHAR, title VARCHAR)
SELECT location_of_the_church FROM table_name_64 WHERE sub_parish__sokn_ = "rugsund"
Where is the Church that has a Sub-Parish (Sokn) of rugsund?
CREATE TABLE table_name_64 (location_of_the_church VARCHAR, sub_parish__sokn_ VARCHAR)
SELECT SUM(attendance) FROM table_name_4 WHERE game = 1
Game 1's sum of attendance is?
CREATE TABLE table_name_4 (attendance INTEGER, game VARCHAR)
SELECT partner FROM table_name_31 WHERE score = "6–3, 2–6, 6–3"
What Partner had a Score of 6–3, 2–6, 6–3?
CREATE TABLE table_name_31 (partner VARCHAR, score VARCHAR)
SELECT pa FROM table_29565541_2 WHERE w = 6
When 6 is the w what is the pa?
CREATE TABLE table_29565541_2 (pa VARCHAR, w VARCHAR)
SELECT category FROM table_name_60 WHERE film = "(a) torzija"
(A) Torzija was nominated in which category?
CREATE TABLE table_name_60 (category VARCHAR, film VARCHAR)
SELECT catalog FROM table_name_89 WHERE date = "may 27, 2009"
What is the catalog number of the May 27, 2009 release?
CREATE TABLE table_name_89 (catalog VARCHAR, date VARCHAR)
SELECT COUNT(director) FROM table_10798928_1 WHERE film_title_used_in_nomination = "Course Completed"
How many directors were there for the film Course Completed?
CREATE TABLE table_10798928_1 (director VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT AVG(week) FROM table_name_78 WHERE opponent = "denver broncos"
What is the average number of weeks that the opponent was the Denver Broncos?
CREATE TABLE table_name_78 (week INTEGER, opponent VARCHAR)
SELECT partner FROM table_name_80 WHERE score = "6–3, 6–2"
Name the partner with score of 6–3, 6–2
CREATE TABLE table_name_80 (partner VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_6 WHERE man_of_the_match = "stephen lee"
Who did the Flames play against when Stephen Lee was the man of the match?
CREATE TABLE table_name_6 (opponent VARCHAR, man_of_the_match VARCHAR)
SELECT chassis FROM table_name_33 WHERE entrant = "scuderia ferrari" AND points > 1
What chassis type does a scuderia ferrari with more than 1 point have?
CREATE TABLE table_name_33 (chassis VARCHAR, entrant VARCHAR, points VARCHAR)
SELECT AVG(total) FROM table_name_58 WHERE nation = "spain"
What is the average total value for Spain?
CREATE TABLE table_name_58 (total INTEGER, nation VARCHAR)
SELECT tournament FROM table_name_6 WHERE date = "jul 14, 2013"
Which Tournament has a Date of jul 14, 2013?
CREATE TABLE table_name_6 (tournament VARCHAR, date VARCHAR)
SELECT date FROM table_name_58 WHERE record = "9–8–1"
What was the date of the game when the Lightning had a record of 9–8–1?
CREATE TABLE table_name_58 (date VARCHAR, record VARCHAR)
SELECT entrant FROM table_name_7 WHERE chassis = "march 742" AND year > 1974
Can you tell me the Entrant that has the Chassis of march 742, and the Year larger than 1974?
CREATE TABLE table_name_7 (entrant VARCHAR, chassis VARCHAR, year VARCHAR)
SELECT home_team FROM table_name_46 WHERE tie_no = "27"
What is Home Team, when Tie no is "27"?
CREATE TABLE table_name_46 (home_team VARCHAR, tie_no VARCHAR)
SELECT interview_subject FROM table_name_89 WHERE pictorials = "christie brinkley"
Who was the Interview Subject on the Date when there were Pictorials of Christie Brinkley?
CREATE TABLE table_name_89 (interview_subject VARCHAR, pictorials VARCHAR)
SELECT to_par FROM table_name_61 WHERE player = "dick metz"
Name the To par for dick metz
CREATE TABLE table_name_61 (to_par VARCHAR, player VARCHAR)
SELECT score FROM table_name_52 WHERE game = 30
What was the score of game 30?
CREATE TABLE table_name_52 (score VARCHAR, game VARCHAR)
SELECT player FROM table_name_78 WHERE score = 69 - 74 = 143 AND country = "colombia"
Who scored 69-74=143 for Colombia?
CREATE TABLE table_name_78 (player VARCHAR, country VARCHAR, score VARCHAR)
SELECT COUNT(*) FROM club WHERE clublocation = "HHH"
How many clubs are located at "HHH"?
CREATE TABLE club (clublocation VARCHAR)
SELECT driver___passenger FROM table_16729457_16 WHERE position = 6
Name the driver/passenger for 6 position
CREATE TABLE table_16729457_16 (driver___passenger VARCHAR, position VARCHAR)
SELECT AVG(ddr3_speed) FROM table_name_15 WHERE model = "e-350"
Name the average DDR3 speed for model e-350
CREATE TABLE table_name_15 (ddr3_speed INTEGER, model VARCHAR)
SELECT AVG(points) FROM table_name_99 WHERE difference = "55" AND against < 47
What is the average number of points for a difference of 55 and an against less than 47?
CREATE TABLE table_name_99 (points INTEGER, difference VARCHAR, against VARCHAR)
SELECT rnd FROM table_14154271_2 WHERE lmp2_winning_team = "Jos Verstappen Jeroen Bleekemolen"
Jos verstappen jeroen bleekemolen is on Imp2 winning team where all are rnd.
CREATE TABLE table_14154271_2 (rnd VARCHAR, lmp2_winning_team VARCHAR)
SELECT original_nfl_team FROM table_name_31 WHERE pos = "cb"
What is the Original NFL team of the CB Player?
CREATE TABLE table_name_31 (original_nfl_team VARCHAR, pos VARCHAR)
SELECT AVG(laps) FROM table_name_64 WHERE driver = "patrick tambay"
What's the average of the amount of laps for the driver patrick tambay?
CREATE TABLE table_name_64 (laps INTEGER, driver VARCHAR)
SELECT competition FROM table_name_8 WHERE score = "3-0" AND result = "4-1"
What competition had a score of 3-0, and a result of 4-1?
CREATE TABLE table_name_8 (competition VARCHAR, score VARCHAR, result VARCHAR)
SELECT to_par FROM table_name_77 WHERE player = "tom watson"
Which To par has a Player of tom watson?
CREATE TABLE table_name_77 (to_par VARCHAR, player VARCHAR)
SELECT written_by FROM table_11111116_8 WHERE us_viewers__million_ = "2.12"
Who wrote the episodes that were viewed by 2.12 million viewers?
CREATE TABLE table_11111116_8 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT home_team AS score FROM table_name_55 WHERE home_team = "footscray"
In the match where footscray was the home team, how much did they score?
CREATE TABLE table_name_55 (home_team VARCHAR)
SELECT name FROM procedures ORDER BY cost LIMIT 3
Find the three most expensive procedures.
CREATE TABLE procedures (name VARCHAR, cost VARCHAR)
SELECT second FROM table_name_59 WHERE city = "regina" AND skip = "michelle englot"
WHAT IS TEH SECOND WITH REGINA AS CITY AND SKIP OF MICHELLE ENGLOT?
CREATE TABLE table_name_59 (second VARCHAR, city VARCHAR, skip VARCHAR)
SELECT player FROM table_name_32 WHERE country = "united states" AND total > 145
Who was the player from the United States, with a total larger than 145?
CREATE TABLE table_name_32 (player VARCHAR, country VARCHAR, total VARCHAR)
SELECT venue FROM table_name_57 WHERE attendance = "13,634"
Which venue has 13,634 people in attendance?
CREATE TABLE table_name_57 (venue VARCHAR, attendance VARCHAR)
SELECT MAX(attendance) FROM table_name_19 WHERE opponent = "atlanta falcons" AND week < 10
What was the highest attendance when the Atlanta Falcons played for a week smaller than 10?
CREATE TABLE table_name_19 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
SELECT COUNT(patient) FROM stay WHERE room = 112
How many patients stay in room 112?
CREATE TABLE stay (patient VARCHAR, room VARCHAR)
SELECT name FROM table_name_4 WHERE type = "pratt pony through truss"
What bridge is a pratt pony through truss tyoe bridge?
CREATE TABLE table_name_4 (name VARCHAR, type VARCHAR)
SELECT attendance FROM table_name_17 WHERE venue = "st andrew's"
What was the attendance for St Andrew's?
CREATE TABLE table_name_17 (attendance VARCHAR, venue VARCHAR)
SELECT SUM(longitude) FROM table_name_87 WHERE county = "nelson" AND latitude > 47.980183
How much Longitude has a County of nelson, and a Latitude larger than 47.980183?
CREATE TABLE table_name_87 (longitude INTEGER, county VARCHAR, latitude VARCHAR)
SELECT yarn_type__us_ FROM table_20297668_1 WHERE standard_yarn_weight_system = "3 or Light"
Name the yarn type for standard yarn weight system for 3 or light
CREATE TABLE table_20297668_1 (yarn_type__us_ VARCHAR, standard_yarn_weight_system VARCHAR)
SELECT COUNT(rank) FROM table_name_30 WHERE stadium = "mchale park"
What is the Gaelic Football Stadium at McHale Park's ranking in total capacity?
CREATE TABLE table_name_30 (rank VARCHAR, stadium VARCHAR)
SELECT T2.Hardware_Model_name, T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = "Graphics"
List the hardware model name and company name for the phone whose screen mode type is "Graphics."
CREATE TABLE phone (Hardware_Model_name VARCHAR, Company_name VARCHAR, screen_mode VARCHAR); CREATE TABLE screen_mode (Graphics_mode VARCHAR, Type VARCHAR)
SELECT league FROM table_name_20 WHERE nationality = "italy" AND points = "62"
Which league's nationality was Italy when there were 62 points?
CREATE TABLE table_name_20 (league VARCHAR, nationality VARCHAR, points VARCHAR)
SELECT broadcast_date FROM table_29135051_3 WHERE guest_s_ = "Michael McIntyre and Alex James"
when was the episode guest starring michael mcintyre and alex james broadcasted
CREATE TABLE table_29135051_3 (broadcast_date VARCHAR, guest_s_ VARCHAR)
SELECT AVG(attendance) FROM table_name_32 WHERE opponent = "kansas city chiefs" AND week < 13
What is the attendance for the game against the Kansas City Chiefs earlier than week 13?
CREATE TABLE table_name_32 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
SELECT area_served FROM table_name_94 WHERE frequency = "100.3" AND on_air_id = "yass fm"
what Area has the frequency of 100.3 and an On-air ID of yass fm?
CREATE TABLE table_name_94 (area_served VARCHAR, frequency VARCHAR, on_air_id VARCHAR)
SELECT wins FROM table_name_61 WHERE conference = "—" AND division = "western" AND season = "1967–68"
What shows for Wins when there was a Conference of —, western division, in the 1967–68 season?
CREATE TABLE table_name_61 (wins VARCHAR, season VARCHAR, conference VARCHAR, division VARCHAR)
SELECT winning_score FROM table_name_1 WHERE runner_s__up = "steve stricker"
What was the winning score when Steve Stricker was runner-up?
CREATE TABLE table_name_1 (winning_score VARCHAR, runner_s__up VARCHAR)
SELECT place FROM table_name_21 WHERE player = "ben hogan"
What is Ben Hogan's Place?
CREATE TABLE table_name_21 (place VARCHAR, player VARCHAR)
SELECT home_arena FROM table_name_59 WHERE joined_tschl = 2010 AND team_nickname = "bearcats"
what is the home arena that joined tschl in 2010 and the team nickname is bearcats?
CREATE TABLE table_name_59 (home_arena VARCHAR, joined_tschl VARCHAR, team_nickname VARCHAR)
SELECT MIN(series_episode) FROM table_23513241_5 WHERE prod_code = 406
What is the lowest series episode with a production code of 406?
CREATE TABLE table_23513241_5 (series_episode INTEGER, prod_code VARCHAR)
SELECT title FROM table_name_84 WHERE role = "molly o'day"
What is the title of the work where the role was Molly O'Day?
CREATE TABLE table_name_84 (title VARCHAR, role VARCHAR)
SELECT away_team AS score FROM table_name_88 WHERE home_team = "fitzroy"
What is the score of the away team with the home team Fitzroy?
CREATE TABLE table_name_88 (away_team VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_92 WHERE opponent = "woking"
When did woking compete?
CREATE TABLE table_name_92 (date VARCHAR, opponent VARCHAR)
SELECT SUM(games) FROM table_name_61 WHERE gold > 0 AND first < 2008
How many games are associated with over 0 golds and a first year before 2008?
CREATE TABLE table_name_61 (games INTEGER, gold VARCHAR, first VARCHAR)
SELECT akira FROM table_name_99 WHERE prince_devitt = "devitt (7:20)"
What is the Akira when Prince Devitt is Devitt (7:20)?
CREATE TABLE table_name_99 (akira VARCHAR, prince_devitt VARCHAR)
SELECT crowd FROM table_name_52 WHERE home_team = "st kilda"
In the game where the home team was St Kilda, what was the attendance?
CREATE TABLE table_name_52 (crowd VARCHAR, home_team VARCHAR)
SELECT nhl_team FROM table_2886617_8 WHERE player = "Sergei Luchinkin"
What NHL team picked Sergei Luchinkin?
CREATE TABLE table_2886617_8 (nhl_team VARCHAR, player VARCHAR)
SELECT tournament FROM table_name_83 WHERE 1990 = "0 / 4"
For what tournament is the 1990 0 / 4?
CREATE TABLE table_name_83 (tournament VARCHAR)
SELECT home FROM table_name_60 WHERE visitor = "montreal canadiens" AND date = "february 12"
Who was the home team when the vistor team was the Montreal Canadiens on February 12?
CREATE TABLE table_name_60 (home VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT scoreboard FROM table_19744915_3 WHERE karen = "4.5"
what is the scoreboard when karen was 4.5
CREATE TABLE table_19744915_3 (scoreboard VARCHAR, karen VARCHAR)
SELECT icao FROM table_name_74 WHERE airport = "lilongwe international airport"
Name the ICAO for lilongwe international airport
CREATE TABLE table_name_74 (icao VARCHAR, airport VARCHAR)
SELECT 2012 AS _club FROM table_name_85 WHERE pos = "cf"
What is the 2012 club of the cf pos. player?
CREATE TABLE table_name_85 (pos VARCHAR)
SELECT subjunctive FROM table_name_85 WHERE inverse_subjunctive = "måchadns"
What subjunctive also has an inverse subjunctive of måchadns?
CREATE TABLE table_name_85 (subjunctive VARCHAR, inverse_subjunctive VARCHAR)
SELECT losses FROM table_26200568_16 WHERE club = "Toronto Downtown Dingos"
How many losses does Toronto Downtown Dingos have?
CREATE TABLE table_26200568_16 (losses VARCHAR, club VARCHAR)
SELECT score FROM table_name_59 WHERE runners_up = "tsv siegen"
What is the score when TSV Siegen was the runner-up?
CREATE TABLE table_name_59 (score VARCHAR, runners_up VARCHAR)
SELECT SUM(crowd) FROM table_name_72 WHERE away_team = "north melbourne"
How many people in the crowd with north melbourne as an away team?
CREATE TABLE table_name_72 (crowd INTEGER, away_team VARCHAR)
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID
What are the names of poker players?
CREATE TABLE poker_player (People_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT COUNT(track) FROM table_11839306_2 WHERE rōmaji_title = "Mō Sukoshi Tōku"
How many tracks are titled Mō Sukoshi Tōku?
CREATE TABLE table_11839306_2 (track VARCHAR, rōmaji_title VARCHAR)
SELECT title FROM table_12226390_6 WHERE no_in_season = 25
What's the title of the episode with a season number 25?
CREATE TABLE table_12226390_6 (title VARCHAR, no_in_season VARCHAR)
SELECT circuit FROM table_25572068_1 WHERE series = "FR3.5 11"
What circuit was the FR3.5 11 series on?
CREATE TABLE table_25572068_1 (circuit VARCHAR, series VARCHAR)
SELECT MIN(against) FROM table_name_16 WHERE draws > 0
What was the lowest against when the draw was at least 0?
CREATE TABLE table_name_16 (against INTEGER, draws INTEGER)
SELECT AVG(money_requested__) AS £_ FROM table_name_96 WHERE first_aired = "18 january 2005" AND company_or_product_name = "iv cam"
What is the average money requested in the episode first aired on 18 January 2005 by the company/product name IV Cam
CREATE TABLE table_name_96 (money_requested__ INTEGER, first_aired VARCHAR, company_or_product_name VARCHAR)
SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1
List the most common type of Status across cities.
CREATE TABLE city (Status VARCHAR)
SELECT score FROM table_name_24 WHERE competition = "2005 fifa confederations cup" AND result = "draw"
What was the score of the draw in the 2005 FIFA Confederations Cup?
CREATE TABLE table_name_24 (score VARCHAR, competition VARCHAR, result VARCHAR)
SELECT record FROM table_name_83 WHERE loss = "mays (0-3)"
Which Record that has a Loss of mays (0-3)?
CREATE TABLE table_name_83 (record VARCHAR, loss VARCHAR)
SELECT season FROM table_name_13 WHERE winner = "stoke city"
What season did Stoke City win?
CREATE TABLE table_name_13 (season VARCHAR, winner VARCHAR)
SELECT AVG(gold) FROM table_name_82 WHERE bronze = 5
What is the average number of Gold medals when there are 5 bronze medals?
CREATE TABLE table_name_82 (gold INTEGER, bronze VARCHAR)
SELECT year_joined FROM table_name_46 WHERE enrollment = 413
Which year did the school with enrollment of 413 join?
CREATE TABLE table_name_46 (year_joined VARCHAR, enrollment VARCHAR)
SELECT COUNT(february) FROM table_name_95 WHERE game > 37 AND opponent = "chicago black hawks"
How much February has a Game larger than 37, and an Opponent of chicago black hawks?
CREATE TABLE table_name_95 (february VARCHAR, game VARCHAR, opponent VARCHAR)
SELECT instrument FROM instruments GROUP BY instrument ORDER BY COUNT(*) DESC LIMIT 1
What is the most used instrument?
CREATE TABLE instruments (instrument VARCHAR)
SELECT MAX(lost) FROM table_name_74 WHERE points = 32 AND difference < 86
What is the most lost games for the team with a difference smaller than 86 and points of 32?
CREATE TABLE table_name_74 (lost INTEGER, points VARCHAR, difference VARCHAR)
SELECT T1.first_name, T1.last_name, T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T1.first_name LIKE '%z%'
display those employees who contain a letter z to their first name and also display their last name, city.
CREATE TABLE locations (city VARCHAR, location_id VARCHAR); CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR)
SELECT director FROM table_name_15 WHERE title = "kung fu panda 2"
Who was the Director of Kung Fu Panda 2?
CREATE TABLE table_name_15 (director VARCHAR, title VARCHAR)
SELECT COUNT(jianshu) FROM table_name_76 WHERE total > 19.16 AND athlete = "nguyen huy thanh ( vie )" AND qiangshu > 9.66
What is the number of Jianshu when the total is more than 19.16, for Nguyen Huy Thanh ( vie ), and Qiangshu is more than 9.66?
CREATE TABLE table_name_76 (jianshu VARCHAR, qiangshu VARCHAR, total VARCHAR, athlete VARCHAR)
SELECT nation FROM table_name_63 WHERE bronze = "28"
What nation has 28 bronze medals?
CREATE TABLE table_name_63 (nation VARCHAR, bronze VARCHAR)
SELECT r__ω_km_ FROM table_261642_3 WHERE frequency__hz_ = "10k"
What is the r (ω/km) when the frequency is 10k?
CREATE TABLE table_261642_3 (r__ω_km_ VARCHAR, frequency__hz_ VARCHAR)
SELECT MAX(draws) FROM table_name_52 WHERE against < 2514 AND byes < 0
What is the maximum draws when less than 2514 is the against, and less than 0 byes?
CREATE TABLE table_name_52 (draws INTEGER, against VARCHAR, byes VARCHAR)
SELECT date FROM table_name_63 WHERE opponents = "sheffield wednesday"
Opponents of sheffield wednesday had what date?
CREATE TABLE table_name_63 (date VARCHAR, opponents VARCHAR)
SELECT score FROM table_name_46 WHERE attendance = "36,796"
Attendance of 36,796 had what score?
CREATE TABLE table_name_46 (score VARCHAR, attendance VARCHAR)
SELECT MAX(rank) FROM table_name_81 WHERE publication = "dagsavisen" AND year < 2005
What is the highest Rank, when Publication is Dagsavisen, and when Year is less than 2005?
CREATE TABLE table_name_81 (rank INTEGER, publication VARCHAR, year VARCHAR)
SELECT COUNT(bronze) FROM table_name_88 WHERE total = 64 AND silver > 16
What is the number of Bronze medals of the Nation with 64 total and silver greater than 16?
CREATE TABLE table_name_88 (bronze VARCHAR, total VARCHAR, silver VARCHAR)
SELECT rider FROM table_name_43 WHERE bike = "honda cbr1000rr" AND laps < 22 AND time = "+2 laps"
Who rode a Honda CBR1000rr, had fewer than 22 laps, and a time of +2 laps?
CREATE TABLE table_name_43 (rider VARCHAR, time VARCHAR, bike VARCHAR, laps VARCHAR)
SELECT score FROM table_name_97 WHERE team = "san antonio"
What was the score for the game against San Antonio?
CREATE TABLE table_name_97 (score VARCHAR, team VARCHAR)
SELECT playoffs FROM table_1243601_1 WHERE year = "2002"
What was the playoff result in 2002?
CREATE TABLE table_1243601_1 (playoffs VARCHAR, year VARCHAR)