answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MIN(gold) FROM table_name_63 WHERE nation = "canada" AND rank > 4
What is the lowest Gold, when Nation is Canada, and when Rank is greater than 4?
CREATE TABLE table_name_63 (gold INTEGER, nation VARCHAR, rank VARCHAR)
SELECT south_asians_2001 FROM table_1717824_1 WHERE province = "Nova Scotia"
What was the South Asian population in Nova Scotia in 2001?
CREATE TABLE table_1717824_1 (south_asians_2001 VARCHAR, province VARCHAR)
SELECT SUM(march) FROM table_name_56 WHERE score = "2 - 2" AND game > 67
What is the sum of March, when Score is "2 - 2", and when Game is greater than 67?
CREATE TABLE table_name_56 (march INTEGER, score VARCHAR, game VARCHAR)
SELECT MIN(wins) FROM table_name_15 WHERE byes < 0
What is the lowest number of wins where the byes are less than 0?
CREATE TABLE table_name_15 (wins INTEGER, byes INTEGER)
SELECT rank FROM table_name_81 WHERE time = "5:56.73"
Which Rank has a Time of 5:56.73?
CREATE TABLE table_name_81 (rank VARCHAR, time VARCHAR)
SELECT MIN(pocona_municipality___percentage_) FROM table_name_61 WHERE puerto_villarroel_municipality___percentage_ < 14.6 AND chimoré_municipality___percentage_ = 5.1 AND entre_ríos_municipality___percentage_ < 0.9
Which Pocona Municipality (%) is the lowest one that has a Puerto Villarroel Municipality (%) smaller than 14.6, and a Chimoré Municipality (%) of 5.1, and an Entre Ríos Municipality (%) smaller than 0.9?
CREATE TABLE table_name_61 (pocona_municipality___percentage_ INTEGER, entre_ríos_municipality___percentage_ VARCHAR, puerto_villarroel_municipality___percentage_ VARCHAR, chimoré_municipality___percentage_ VARCHAR)
SELECT а_а_[a] FROM table_202365_2 WHERE ҕь_ҕь_[ʁʲ_ɣʲ] = "Ш ш [ʂʃ]"
what is а а [a] when ҕь ҕь [ʁʲ/ɣʲ] is ш ш [ʂʃ]?
CREATE TABLE table_202365_2 (а_а_ VARCHAR, a VARCHAR, ҕь_ҕь_ VARCHAR, ʁʲ_ɣʲ VARCHAR)
SELECT builder FROM table_name_84 WHERE completed < 1890 AND launched = "9 june 1888"
Which builder completed before 1890 and launched on 9 june 1888?
CREATE TABLE table_name_84 (builder VARCHAR, completed VARCHAR, launched VARCHAR)
SELECT speed FROM table_name_3 WHERE construction_begun = "2010" AND expected_start_of_revenue_services = 2015
What is the Speed when Construction begun in 2010, and an Expected start of revenue services of 2015?
CREATE TABLE table_name_3 (speed VARCHAR, construction_begun VARCHAR, expected_start_of_revenue_services VARCHAR)
SELECT length FROM table_name_35 WHERE shoulder = "12.18 (.480)"
What is the length of the gun that has a shoulder measurement of 12.18 (.480)?
CREATE TABLE table_name_35 (length VARCHAR, shoulder VARCHAR)
SELECT publisher FROM table_name_67 WHERE character_s_ = "wolverine"
Who publishes Wolverine?
CREATE TABLE table_name_67 (publisher VARCHAR, character_s_ VARCHAR)
SELECT couple FROM table_28946565_2 WHERE week_2 = 23
Which couple had a week 2 score of exactly 23?
CREATE TABLE table_28946565_2 (couple VARCHAR, week_2 VARCHAR)
SELECT works_number FROM table_name_20 WHERE builder = "canadian engine & machinery company" AND number < 3
Which Works number has a Builder of canadian engine & machinery company, and a Number smaller than 3?
CREATE TABLE table_name_20 (works_number VARCHAR, builder VARCHAR, number VARCHAR)
SELECT institution FROM table_2589963_1 WHERE women = "Lady Saints"
What institution is represented by the lady saints?
CREATE TABLE table_2589963_1 (institution VARCHAR, women VARCHAR)
SELECT player FROM table_name_96 WHERE place = "t10" AND score = 74 - 73 - 68 = 215
What T10 Place Player has a Score of 74-73-68=215?
CREATE TABLE table_name_96 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT location FROM table_name_5 WHERE reason = "replaced"
Which venues were closed because they were replaced?
CREATE TABLE table_name_5 (location VARCHAR, reason VARCHAR)
SELECT high_rebounds FROM table_11960407_4 WHERE high_points = "Chris Bosh (16)"
Who had the high rebounds when Chris Bosh (16) had the high points?
CREATE TABLE table_11960407_4 (high_rebounds VARCHAR, high_points VARCHAR)
SELECT COUNT(*) FROM cinema
How many cinema do we have?
CREATE TABLE cinema (Id VARCHAR)
SELECT result FROM table_name_24 WHERE home_captain = "graham gooch" AND date = "3,4,5,6,7 june 1993"
For the matches with home captain Graham Gooch played on the dates 3,4,5,6,7 June 1993, what was the result?
CREATE TABLE table_name_24 (result VARCHAR, home_captain VARCHAR, date VARCHAR)
SELECT title FROM table_23242968_1 WHERE production_code = "3AJN20"
What was the name of the episode with a production code of 3ajn20?
CREATE TABLE table_23242968_1 (title VARCHAR, production_code VARCHAR)
SELECT MAX(league_apps__sub_) FROM table_1112176_1 WHERE total_goals = 11
When total goals is 11 what was the league apps (sub)?
CREATE TABLE table_1112176_1 (league_apps__sub_ INTEGER, total_goals VARCHAR)
SELECT AVG(opened) FROM table_name_40 WHERE line_name = "line e" AND last_extension < 2003
What is the average opened year of line e, which had their last extension before 2003?
CREATE TABLE table_name_40 (opened INTEGER, line_name VARCHAR, last_extension VARCHAR)
SELECT driver FROM table_name_87 WHERE chassis = "bugatti t51" AND entrant = "automobiles ettore bugatti"
Who was the Driver, when the Chassis was Bugatti T51, and when the Entrant was Automobiles Ettore Bugatti?
CREATE TABLE table_name_87 (driver VARCHAR, chassis VARCHAR, entrant VARCHAR)
SELECT COUNT(density) FROM table_1300525_1 WHERE english_name = "Yushan County"
What is the density of yushan county?
CREATE TABLE table_1300525_1 (density VARCHAR, english_name VARCHAR)
SELECT mailing_date FROM Documents_Mailed WHERE document_id = 7
What is the mail date of the document with id 7?
CREATE TABLE Documents_Mailed (mailing_date VARCHAR, document_id VARCHAR)
SELECT MIN(lost) FROM table_name_30 WHERE points_1 = "37" AND goals_against < 60
How many times did the team lose who had 1 of 37 points and less than 60 goals against?
CREATE TABLE table_name_30 (lost INTEGER, points_1 VARCHAR, goals_against VARCHAR)
SELECT MIN(attendance) FROM table_14102379_4 WHERE stadium = "Cotton Bowl"
what is the minimum attendance with stadium being cotton bowl
CREATE TABLE table_14102379_4 (attendance INTEGER, stadium VARCHAR)
SELECT womens_doubles FROM table_27753492_2 WHERE tour = "French Super Series"
Who is the womens doubles on the tour french super series?
CREATE TABLE table_27753492_2 (womens_doubles VARCHAR, tour VARCHAR)
SELECT MIN(chapter) FROM table_1216675_1 WHERE pinyin = "Shiqiu"
What chapter number is Shiqiu?
CREATE TABLE table_1216675_1 (chapter INTEGER, pinyin VARCHAR)
SELECT episode FROM table_name_67 WHERE segment_b = "s hacksaw"
Which episode's segment b is s hacksaw?
CREATE TABLE table_name_67 (episode VARCHAR, segment_b VARCHAR)
SELECT AVG(Champions) AS league FROM table_name_38 WHERE league < 4
What is the average Champions League assists for the players with League assists under 4?
CREATE TABLE table_name_38 (Champions INTEGER, league INTEGER)
SELECT COUNT(silver) FROM table_name_31 WHERE gold > 0 AND bronze > 1
Gold larger than 0, and a Bronze larger than 1 includes what total number of silver?
CREATE TABLE table_name_31 (silver VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT result FROM table_name_39 WHERE team = "giants"
I want the result for team of giants
CREATE TABLE table_name_39 (result VARCHAR, team VARCHAR)
SELECT AVG(laps) FROM table_name_72 WHERE time_retired = "+ 4 laps" AND grid > 18
Which Laps have a Time/Retired of + 4 laps, and a Grid larger than 18?
CREATE TABLE table_name_72 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT result FROM table_name_81 WHERE bowl_game = "1947 sun bowl"
What result has 1947 sun bowl as the bowl game?
CREATE TABLE table_name_81 (result VARCHAR, bowl_game VARCHAR)
SELECT 2009 FROM table_name_84 WHERE 2008 = "a" AND 2010 = "4r"
Which 2009 has a 2008 of A, and a 2010 of 4r?
CREATE TABLE table_name_84 (Id VARCHAR)
SELECT swimsuit FROM table_name_19 WHERE interview = "8.626 (5)"
what is the swimsuit score when the interview score is 8.626 (5)?
CREATE TABLE table_name_19 (swimsuit VARCHAR, interview VARCHAR)
SELECT translation FROM table_name_78 WHERE date = 1986
Which translation was published in 1986?
CREATE TABLE table_name_78 (translation VARCHAR, date VARCHAR)
SELECT T1.staff_name, COUNT(*) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id GROUP BY T1.staff_name
How many engineers did each staff contact? List both the contact staff name and number of engineers contacted.
CREATE TABLE Engineer_Visits (contact_staff_id VARCHAR); CREATE TABLE Staff (staff_name VARCHAR, staff_id VARCHAR)
SELECT cfl_team FROM table_name_12 WHERE college = "montreal" AND player = "marc trepanier"
Which CFL Team has a College of montreal, and a Player of marc trepanier?
CREATE TABLE table_name_12 (cfl_team VARCHAR, college VARCHAR, player VARCHAR)
SELECT MAX(week) FROM table_name_46 WHERE opponent = "san francisco 49ers"
Which Week has an Opponent of san francisco 49ers?
CREATE TABLE table_name_46 (week INTEGER, opponent VARCHAR)
SELECT djurgården_scorers FROM table_name_21 WHERE venue = "idrottsparken"
Who were the Djurgarden scorers when the venue was Idrottsparken?
CREATE TABLE table_name_21 (djurgården_scorers VARCHAR, venue VARCHAR)
SELECT episode FROM table_name_16 WHERE season < 25 AND directed_by = "bob anderson" AND production_code = "kabf16"
Which episode was directed by Bob Anderson with a production code of KABF16 and a season before than 25?
CREATE TABLE table_name_16 (episode VARCHAR, production_code VARCHAR, season VARCHAR, directed_by VARCHAR)
SELECT incumbent FROM table_name_34 WHERE first_elected = 1996 AND district = "oregon 5"
Who is the incumbent for the Oregon 5 District that was elected in 1996?
CREATE TABLE table_name_34 (incumbent VARCHAR, first_elected VARCHAR, district VARCHAR)
SELECT train_no FROM table_12095519_1 WHERE destination = "Amritsar"
What train number is heading to amritsar?
CREATE TABLE table_12095519_1 (train_no VARCHAR, destination VARCHAR)
SELECT loss FROM table_name_67 WHERE record = "38-33"
What is the loss when the record is 38-33?
CREATE TABLE table_name_67 (loss VARCHAR, record VARCHAR)
SELECT venue FROM table_name_2 WHERE result = "2–0"
Which Venue has a Result of 2–0?
CREATE TABLE table_name_2 (venue VARCHAR, result VARCHAR)
SELECT COUNT(womens_doubles) FROM table_13845918_3 WHERE year = "1986"
Name the number of women's doubles for 1986
CREATE TABLE table_13845918_3 (womens_doubles VARCHAR, year VARCHAR)
SELECT COUNT(tn_seshan__values_) FROM table_22897453_1 WHERE kr_narayanan__values_ = 478608
Name the number of tn seshan values for kr values is 478608
CREATE TABLE table_22897453_1 (tn_seshan__values_ VARCHAR, kr_narayanan__values_ VARCHAR)
SELECT lms_no FROM table_20236726_2 WHERE serial_no = 372
Name the lms number for serial number being 372
CREATE TABLE table_20236726_2 (lms_no VARCHAR, serial_no VARCHAR)
SELECT league FROM table_name_5 WHERE europe = "117 0 (8)"
The Europe listing of 117 0 (8) belongs to what league?
CREATE TABLE table_name_5 (league VARCHAR, europe VARCHAR)
SELECT name FROM table_name_8 WHERE pos = "cf" AND date_of_birth = "1973-08-21"
born on 1973-08-21, what is the cf's name?
CREATE TABLE table_name_8 (name VARCHAR, pos VARCHAR, date_of_birth VARCHAR)
SELECT t1.first_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id GROUP BY t2.staff_id ORDER BY COUNT(*) LIMIT 5
What is first names of the top 5 staff who have handled the greatest number of complaints?
CREATE TABLE complaints (staff_id VARCHAR); CREATE TABLE staff (first_name VARCHAR, staff_id VARCHAR)
SELECT SUM(sacks) FROM table_name_59 WHERE year = "2006" AND solo < 62
How many sacks have 2006 as the year, and a solo less than 62?
CREATE TABLE table_name_59 (sacks INTEGER, year VARCHAR, solo VARCHAR)
SELECT coombe_road FROM table_name_14 WHERE woodside = "07:23"
What is the Coombe Road with a Woodside time of 07:23?
CREATE TABLE table_name_14 (coombe_road VARCHAR, woodside VARCHAR)
SELECT home_team AS score FROM table_name_48 WHERE home_team = "melbourne"
What is melbourne's home team score?
CREATE TABLE table_name_48 (home_team VARCHAR)
SELECT status FROM table_name_75 WHERE authors = "varricchio"
What is varricchio's status?
CREATE TABLE table_name_75 (status VARCHAR, authors VARCHAR)
SELECT aircraft FROM table_name_39 WHERE type = "heavy transport"
Which aircraft has heavy transport?
CREATE TABLE table_name_39 (aircraft VARCHAR, type VARCHAR)
SELECT high_points FROM table_name_65 WHERE game = 42
What are the high points that have 42 as the game?
CREATE TABLE table_name_65 (high_points VARCHAR, game VARCHAR)
SELECT player FROM table_28498999_6 WHERE points = 2343
what is the person there the numbers is 2343
CREATE TABLE table_28498999_6 (player VARCHAR, points VARCHAR)
SELECT away_team FROM table_name_66 WHERE tie_no = "5"
What is the away team with a 5 tie no?
CREATE TABLE table_name_66 (away_team VARCHAR, tie_no VARCHAR)
SELECT years FROM table_name_64 WHERE engine_code = "m47d20" AND model = "318td (diesel)"
During which years was the Model 318td (diesel) with the Engine code of m47d20 manufactured?
CREATE TABLE table_name_64 (years VARCHAR, engine_code VARCHAR, model VARCHAR)
SELECT vfl_games FROM table_16527640_3 WHERE location = "off Goodenough Island Milne Bay"
How many VFL games were located off Goodenough Island Milne Bay?
CREATE TABLE table_16527640_3 (vfl_games VARCHAR, location VARCHAR)
SELECT gender FROM table_name_64 WHERE full_name = "chukwubuikem maduabuchi"
Chukwubuikem Maduabuchi is what gender?
CREATE TABLE table_name_64 (gender VARCHAR, full_name VARCHAR)
SELECT location_attendance FROM table_name_55 WHERE high_assists = "ben gordon (8)"
Where did Ben Gordon (8) have the high assists?
CREATE TABLE table_name_55 (location_attendance VARCHAR, high_assists VARCHAR)
SELECT competition FROM table_name_31 WHERE date = "1 march 1909"
What competition was held 1 March 1909?
CREATE TABLE table_name_31 (competition VARCHAR, date VARCHAR)
SELECT SUM(silver) FROM table_name_8 WHERE nation = "japan" AND total < 1
what is the silver when the nation is japan and the total is less than 1?
CREATE TABLE table_name_8 (silver INTEGER, nation VARCHAR, total VARCHAR)
SELECT T1.activity_name, COUNT(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID
Show all the activity names and the number of faculty involved in each activity.
CREATE TABLE Faculty_participates_in (actID VARCHAR); CREATE TABLE Activity (activity_name VARCHAR, actID VARCHAR)
SELECT hometown FROM table_27515452_3 WHERE contestant = "Marelissa Him"
where is the participant marelissa him from
CREATE TABLE table_27515452_3 (hometown VARCHAR, contestant VARCHAR)
SELECT nationality FROM table_name_34 WHERE player = "pat burke"
What is Pat Burke's Nationality?
CREATE TABLE table_name_34 (nationality VARCHAR, player VARCHAR)
SELECT COUNT(attendance) FROM table_name_59 WHERE record = "43-34"
How many attended the game with a record of 43-34?
CREATE TABLE table_name_59 (attendance VARCHAR, record VARCHAR)
SELECT name FROM instructor WHERE dept_name = 'Statistics' ORDER BY salary LIMIT 1
what is the name of the instructor who is in Statistics department and earns the lowest salary?
CREATE TABLE instructor (name VARCHAR, dept_name VARCHAR, salary VARCHAR)
SELECT COUNT(reporters) FROM table_22514845_3 WHERE year = 1993
How many reporters for the year 1993?
CREATE TABLE table_22514845_3 (reporters VARCHAR, year VARCHAR)
SELECT artist FROM table_name_16 WHERE butterfly = "tiger swallowtail"
Which artist's work is the butterfly Tiger Swallowtail?
CREATE TABLE table_name_16 (artist VARCHAR, butterfly VARCHAR)
SELECT Total_Points FROM gymnast ORDER BY Total_Points DESC
List the total points of gymnasts in descending order.
CREATE TABLE gymnast (Total_Points VARCHAR)
SELECT MIN(population__2011_) FROM table_2328113_1
What was the minimum population in 2011?
CREATE TABLE table_2328113_1 (population__2011_ INTEGER)
SELECT driver FROM table_name_37 WHERE grid > 2 AND constructor = "bmw sauber" AND time_retired = "+15.037"
Who drives a BMW Sauber with a Grid larger than 2 and a Time/Retired of +15.037?
CREATE TABLE table_name_37 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR, constructor VARCHAR)
SELECT nfl_team FROM table_20996923_25 WHERE pick__number = 28
What NFL team was the player with pick number 28 drafted to?
CREATE TABLE table_20996923_25 (nfl_team VARCHAR, pick__number VARCHAR)
SELECT COUNT(title) FROM table_23793770_2 WHERE total_viewers__in_millions_ = "12.46"
How many shows had 12.46 total viewers?
CREATE TABLE table_23793770_2 (title VARCHAR, total_viewers__in_millions_ VARCHAR)
SELECT score FROM table_name_70 WHERE tournament = "spain f32, gran canaria"
What was the Score of the Spain F32, Gran Canaria Tournament?
CREATE TABLE table_name_70 (score VARCHAR, tournament VARCHAR)
SELECT release_date FROM table WHERE code_name = "Aoba"
What is the release date if the code name is Aoba?
CREATE TABLE table (release_date VARCHAR, code_name VARCHAR)
SELECT district FROM table_1342292_4 WHERE first_elected = 1932
What district had someone first elected in 1932?
CREATE TABLE table_1342292_4 (district VARCHAR, first_elected VARCHAR)
SELECT COUNT(player) FROM table_27552095_27 WHERE date = "October 3, 2010"
How many times was the date october 3, 2010?
CREATE TABLE table_27552095_27 (player VARCHAR, date VARCHAR)
SELECT hk_viewers FROM table_11173827_1 WHERE chinese_title = "十兄弟"
What amount is the number of hk viewers where chinese title is 十兄弟?
CREATE TABLE table_11173827_1 (hk_viewers VARCHAR, chinese_title VARCHAR)
SELECT country FROM table_name_60 WHERE player = "tiger woods"
What country has the player Tiger Woods?
CREATE TABLE table_name_60 (country VARCHAR, player VARCHAR)
SELECT id FROM station WHERE city = "San Francisco" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING AVG(bikes_available) > 10
What are the ids of stations that are located in San Francisco and have average bike availability above 10.
CREATE TABLE status (id VARCHAR, station_id VARCHAR, city VARCHAR, bikes_available INTEGER); CREATE TABLE station (id VARCHAR, station_id VARCHAR, city VARCHAR, bikes_available INTEGER)
SELECT notes FROM table_name_59 WHERE rank < 2
what is the notes when the rank is less than 2?
CREATE TABLE table_name_59 (notes VARCHAR, rank INTEGER)
SELECT stadium FROM table_21436373_4 WHERE type_of_record = "Regular season game"
What was the stadium that had the regular season game?
CREATE TABLE table_21436373_4 (stadium VARCHAR, type_of_record VARCHAR)
SELECT date FROM table_27274566_2 WHERE home_team = "Kaizer Chiefs" AND division = "MTN 8 Semi-final"
What is the date where the home team was kaizer chiefs and the division was mtn 8 semi-final?
CREATE TABLE table_27274566_2 (date VARCHAR, home_team VARCHAR, division VARCHAR)
SELECT detriment FROM table_name_89 WHERE domicile = "mercury" AND sign = "virgo"
Which detriment has a domicile of mercury and Virgo as a sign?
CREATE TABLE table_name_89 (detriment VARCHAR, domicile VARCHAR, sign VARCHAR)
SELECT date FROM table_name_64 WHERE visitor = "chicago"
Name the date with chicago visiting
CREATE TABLE table_name_64 (date VARCHAR, visitor VARCHAR)
SELECT away_team FROM table_name_8 WHERE home_team = "south melbourne"
Who was South Melbourne's away team opponent?
CREATE TABLE table_name_8 (away_team VARCHAR, home_team VARCHAR)
SELECT rank FROM table_name_42 WHERE director_s_ = "satoko okita"
What Rank is the Director(s) of satoko okita?
CREATE TABLE table_name_42 (rank VARCHAR, director_s_ VARCHAR)
SELECT AVG(ansi_code) FROM table_name_39 WHERE township = "sherman" AND water__sqmi_ < 0.005
What is the average ANSI code for the town of Sherman and the smaller of the water area in square miles than 0.005?
CREATE TABLE table_name_39 (ansi_code INTEGER, township VARCHAR, water__sqmi_ VARCHAR)
SELECT player FROM table_name_2 WHERE country = "united states" AND place = "t10"
Which united states player finished with a place of t10?
CREATE TABLE table_name_2 (player VARCHAR, country VARCHAR, place VARCHAR)
SELECT country FROM table_name_20 WHERE to_par = 1 AND player = "seve ballesteros"
What is Country, when To par is "1", and when Player is "Seve Ballesteros"?
CREATE TABLE table_name_20 (country VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT series_ep FROM table_name_83 WHERE netflix = "s08e18"
Which Series Ep has a Netflix of s08e18?
CREATE TABLE table_name_83 (series_ep VARCHAR, netflix VARCHAR)
SELECT new_entries_this_round FROM table_19089486_1 WHERE round = "Third round"
Name the new entries this round for third round
CREATE TABLE table_19089486_1 (new_entries_this_round VARCHAR, round VARCHAR)
SELECT COUNT(swimsuit) FROM table_name_35 WHERE evening_gown > 9.48 AND country = "florida" AND interview > 8.94
What is the total swimsuit number with gowns larger than 9.48 with interviews larger than 8.94 in florida?
CREATE TABLE table_name_35 (swimsuit VARCHAR, interview VARCHAR, evening_gown VARCHAR, country VARCHAR)
SELECT competition FROM table_name_47 WHERE score = "1-3"
What competition has a score of 1-3?
CREATE TABLE table_name_47 (competition VARCHAR, score VARCHAR)