answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(written_by) FROM table_18268826_1 WHERE us_viewers__million_ = "3.24"
How many episodes by different writers were seen by 3.24 million people in the US?
CREATE TABLE table_18268826_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT winning_driver FROM table_name_12 WHERE pole_position = "jackie stewart" AND fastest_lap = "carlos pace"
When the fastest lap was carlos pace and jackie stewart was the pole position, who was the winning driver?
CREATE TABLE table_name_12 (winning_driver VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)
SELECT COUNT(attendance) FROM table_name_98 WHERE week = 11
What was the total number who attended during week 11?
CREATE TABLE table_name_98 (attendance VARCHAR, week VARCHAR)
SELECT spokesperson FROM table_1368649_9 WHERE year_s_ = 1970
Who was the spokesperson for France in 1970?
CREATE TABLE table_1368649_9 (spokesperson VARCHAR, year_s_ VARCHAR)
SELECT MAX(drawn) FROM table_name_80 WHERE team = "corinthians" AND lost > 15
Team of corinthians, and a Lost larger than 15 has which highest drawn?
CREATE TABLE table_name_80 (drawn INTEGER, team VARCHAR, lost VARCHAR)
SELECT team FROM table_name_70 WHERE year = 2006
what is the team that played in 2006?
CREATE TABLE table_name_70 (team VARCHAR, year VARCHAR)
SELECT record FROM table_name_56 WHERE game = 61
Which Record has a Game of 61?
CREATE TABLE table_name_56 (record VARCHAR, game VARCHAR)
SELECT league_cup_apps FROM table_name_13 WHERE position = "mf" AND league_goals > 3 AND total_apps = "30 (2)"
What is the league cup apps when the league goals are greater than 3, there are 30 (2) total apps, and has a position of mf?
CREATE TABLE table_name_13 (league_cup_apps VARCHAR, total_apps VARCHAR, position VARCHAR, league_goals VARCHAR)
SELECT release_type FROM table_name_81 WHERE album = "napisten hava"
What type of release was Napisten Hava?
CREATE TABLE table_name_81 (release_type VARCHAR, album VARCHAR)
SELECT COUNT(record) FROM table_14966537_1 WHERE opponent = "Chicago Bears"
How many games were played against the Chicago Bears?
CREATE TABLE table_14966537_1 (record VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_73 WHERE offer_team = "philadelphia flyers" AND player = "chris gratton"
What is the result of Chris Gratton and Philadelphia Flyers as the Offer Team?
CREATE TABLE table_name_73 (result VARCHAR, offer_team VARCHAR, player VARCHAR)
SELECT MAX(_percentage_identity_to_c7orf38) FROM table_26957063_3 WHERE genus_ & _species = "Mus musculus"
What is the % identity to C7orf38 of the animal whose genus & species is Mus Musculus?
CREATE TABLE table_26957063_3 (_percentage_identity_to_c7orf38 INTEGER, genus_ VARCHAR, _species VARCHAR)
SELECT college FROM table_name_64 WHERE position = "ol" AND pick__number < 32
Which College has a Position of ol, and a Pick # smaller than 32?
CREATE TABLE table_name_64 (college VARCHAR, position VARCHAR, pick__number VARCHAR)
SELECT team FROM table_22848931_3 WHERE replaced_by = "Arif Asadov"
Name the team for arif asadov
CREATE TABLE table_22848931_3 (team VARCHAR, replaced_by VARCHAR)
SELECT MAX(pick) FROM table_name_61 WHERE college = "saginaw valley state"
What is the highest pick when the college is saginaw valley state?
CREATE TABLE table_name_61 (pick INTEGER, college VARCHAR)
SELECT affiliation FROM table_name_53 WHERE nickname = "ramblers"
Who is affiliated with the nickname Ramblers?
CREATE TABLE table_name_53 (affiliation VARCHAR, nickname VARCHAR)
SELECT title FROM table_name_67 WHERE share = "19,9%"
Which title has a share of 19,9%
CREATE TABLE table_name_67 (title VARCHAR, share VARCHAR)
SELECT COUNT(result) FROM table_15647838_3 WHERE attendance = "74,111"
How many values for result correspond to attendance of 74,111?
CREATE TABLE table_15647838_3 (result VARCHAR, attendance VARCHAR)
SELECT venue FROM table_name_73 WHERE home_team = "footscray"
Which Venue is the one for the footscray Home team?
CREATE TABLE table_name_73 (venue VARCHAR, home_team VARCHAR)
SELECT COUNT(peak) FROM table_29633639_1 WHERE chinese_title = "萬凰之王"
how many peaks where for the chinese episode named 萬凰之王
CREATE TABLE table_29633639_1 (peak VARCHAR, chinese_title VARCHAR)
SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = "Aruba"
What is the total number of languages used in Aruba?
CREATE TABLE country (Code VARCHAR, Name VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR)
SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY COUNT(*) LIMIT 1
With which kind of payment method were the least number of payments processed?
CREATE TABLE Payments (Payment_Method_Code VARCHAR)
SELECT name FROM table_name_9 WHERE moving_to = "metalurh donetsk"
Who is moving to Metalurh Donetsk?
CREATE TABLE table_name_9 (name VARCHAR, moving_to VARCHAR)
SELECT COUNT(q1_order) FROM table_1706942_1 WHERE driver = "Alexander Wurz"
How many Q1 figures are given for Alexander Wurz?
CREATE TABLE table_1706942_1 (q1_order VARCHAR, driver VARCHAR)
SELECT visitor FROM table_name_20 WHERE record = "3–18"
Whose Visitor has a Record of 3–18?
CREATE TABLE table_name_20 (visitor VARCHAR, record VARCHAR)
SELECT to_par FROM table_name_15 WHERE player = "ernie els"
What did Ernie Els par?
CREATE TABLE table_name_15 (to_par VARCHAR, player VARCHAR)
SELECT round FROM table_name_83 WHERE venue = "h" AND date = "29 january 1949"
Which round was played in the H Venue on 29 january 1949?
CREATE TABLE table_name_83 (round VARCHAR, venue VARCHAR, date VARCHAR)
SELECT adelaide FROM table_24291077_4 WHERE week = 5
How many Adelaide viewers were there in Week 5?
CREATE TABLE table_24291077_4 (adelaide VARCHAR, week VARCHAR)
SELECT AVG(goals_against_average) FROM table_name_33 WHERE games_played > 78
What is the average goals against average for those playing more than 78 games?
CREATE TABLE table_name_33 (goals_against_average INTEGER, games_played INTEGER)
SELECT MIN(sheep_and_goats) FROM table_name_42 WHERE year > 1931 AND cows < 2518 AND total_horses > 2604.8
What is the lowest number of sheep and goats after 1931, with fewer than 2518 cows and more than 2604.8 horses?
CREATE TABLE table_name_42 (sheep_and_goats INTEGER, total_horses VARCHAR, year VARCHAR, cows VARCHAR)
SELECT against FROM table_18042031_16 WHERE date = "21–23 September 2007"
What country did Gil play against on 21–23 september 2007?
CREATE TABLE table_18042031_16 (against VARCHAR, date VARCHAR)
SELECT MAX(matches) FROM table_name_22 WHERE round = "third round"
What is the highest number of matches that has a round of Third Round?
CREATE TABLE table_name_22 (matches INTEGER, round VARCHAR)
SELECT AVG(goals) FROM table_name_13 WHERE apps = 234 AND rank < 8
What is the average number of goals of the player with 234 apps and a rank above 8?
CREATE TABLE table_name_13 (goals INTEGER, apps VARCHAR, rank VARCHAR)
SELECT score FROM table_name_51 WHERE date = "january 23"
What was the score on January 23?
CREATE TABLE table_name_51 (score VARCHAR, date VARCHAR)
SELECT AVG(rank) FROM table_name_97 WHERE lane > 4 AND name = "dominik meichtry"
what is the average rank when the lane is more than 4 and the name is dominik meichtry?
CREATE TABLE table_name_97 (rank INTEGER, lane VARCHAR, name VARCHAR)
SELECT winning_time__km_rate_ FROM table_21676617_1 WHERE odds_of_winner = "2.94"
What was the winning time in the year when the odds of the winner were 2.94?
CREATE TABLE table_21676617_1 (winning_time__km_rate_ VARCHAR, odds_of_winner VARCHAR)
SELECT home_team FROM table_name_70 WHERE tie_no = "12"
Who is the home team with a tie no. 12?
CREATE TABLE table_name_70 (home_team VARCHAR, tie_no VARCHAR)
SELECT MIN(rank) FROM table_name_22 WHERE time = "1:47.70"
Who placed highest with a time of 1:47.70?
CREATE TABLE table_name_22 (rank INTEGER, time VARCHAR)
SELECT rank FROM table_name_71 WHERE run_2 = "1:20.8" AND run_4 = "1:23.0"
What was the rank of the team with a run 2 of 1:20.8 and a run 4 of 1:23.0?
CREATE TABLE table_name_71 (rank VARCHAR, run_2 VARCHAR, run_4 VARCHAR)
SELECT total FROM table_name_9 WHERE score = "1–3" AND set_1 = "29–31"
Which Total has a Score of 1–3, and a Set 1 of 29–31?
CREATE TABLE table_name_9 (total VARCHAR, score VARCHAR, set_1 VARCHAR)
SELECT date FROM table_name_49 WHERE visiting_team = "st. louis rams" AND result = "26-0"
When was the game that had the St. Louis Rams as visiting team and resulted in a score of 26-0?
CREATE TABLE table_name_49 (date VARCHAR, visiting_team VARCHAR, result VARCHAR)
SELECT english_title FROM table_26555737_1 WHERE arabic_title = "ملح هذا البحر"
When ملح هذا البحر is the arabic title what is the english title?
CREATE TABLE table_26555737_1 (english_title VARCHAR, arabic_title VARCHAR)
SELECT tuesday FROM table_name_77 WHERE monday = "fox sports primetime"
What is shown on Tuesday when Monday is showing Fox Sports Primetime?
CREATE TABLE table_name_77 (tuesday VARCHAR, monday VARCHAR)
SELECT school_club_team FROM table_name_3 WHERE player = "mark eaton"
Who did mark eaton play for?
CREATE TABLE table_name_3 (school_club_team VARCHAR, player VARCHAR)
SELECT AVG(lost) FROM table_name_64 WHERE points = 14 AND position > 1
what is the average number lost when points is 14 and position is more than 1?
CREATE TABLE table_name_64 (lost INTEGER, points VARCHAR, position VARCHAR)
SELECT MAX(sf_round) FROM table_23293785_3 WHERE driver = "Duncan Tappy"
What round does Duncan Tappy drive in?
CREATE TABLE table_23293785_3 (sf_round INTEGER, driver VARCHAR)
SELECT singapore_gross FROM table_name_3 WHERE title = "1997"
For the film titled 1997, what was the gross in Singapore?
CREATE TABLE table_name_3 (singapore_gross VARCHAR, title VARCHAR)
SELECT eurozone FROM table_name_24 WHERE population_m__luz_ = 3.08
What is the Eurozone result for Population M (LUZ) of 3.08?
CREATE TABLE table_name_24 (eurozone VARCHAR, population_m__luz_ VARCHAR)
SELECT COUNT(lost) FROM table_name_36 WHERE drawn < 1
How many losses have draw values under 1?
CREATE TABLE table_name_36 (lost VARCHAR, drawn INTEGER)
SELECT COUNT(winning_driver) FROM table_22379931_2 WHERE circuit = "Suzuka circuit" AND pole_position = "Loïc Duval"
How many drivers drove on Suzuka Circuit where Loïc Duval took pole position?
CREATE TABLE table_22379931_2 (winning_driver VARCHAR, circuit VARCHAR, pole_position VARCHAR)
SELECT points_classification FROM table_14395920_2 WHERE young_rider_classification = "Roman Kreuziger"
Who led the points classification when Roman Kreuziger led the young rider classification?
CREATE TABLE table_14395920_2 (points_classification VARCHAR, young_rider_classification VARCHAR)
SELECT title FROM table_2791668_1 WHERE written_by = "Philippe Browning"
what is the name of the episode whose writer is philippe browning?
CREATE TABLE table_2791668_1 (title VARCHAR, written_by VARCHAR)
SELECT gamecenter FROM table_name_17 WHERE attendance = "65,212"
Name the gamecenter that has attendance of 65,212
CREATE TABLE table_name_17 (gamecenter VARCHAR, attendance VARCHAR)
SELECT position FROM table_2679061_12 WHERE nhl_team = "Boston Bruins"
List the position for the boston bruins.
CREATE TABLE table_2679061_12 (position VARCHAR, nhl_team VARCHAR)
SELECT region_name FROM region WHERE region_name <> 'Denmark'
Show names for all regions except for Denmark.
CREATE TABLE region (region_name VARCHAR)
SELECT access_using_a_croatian_identity_card FROM table_25965003_3 WHERE countries_and_territories = "Faroe Islands"
Can one access the Faroe Islands using a Croatian identity card?
CREATE TABLE table_25965003_3 (access_using_a_croatian_identity_card VARCHAR, countries_and_territories VARCHAR)
SELECT surface FROM table_name_13 WHERE score = "2009 wta tour"
Which Surface has a Score of 2009 wta tour?
CREATE TABLE table_name_13 (surface VARCHAR, score VARCHAR)
SELECT d_48_o FROM table_name_47 WHERE d_41_√ = "d 41 √"
Name the D 48 O with D 41 √ of d 41 √
CREATE TABLE table_name_47 (d_48_o VARCHAR, d_41_√ VARCHAR)
SELECT constituency_number FROM table_name_87 WHERE name = "amritpur"
Amritpur has what constituency number?
CREATE TABLE table_name_87 (constituency_number VARCHAR, name VARCHAR)
SELECT high_rebounds FROM table_23248910_5 WHERE record = "5-2"
Who had the most rebounds in the game against the team with a 5-2 record against the Hawks?
CREATE TABLE table_23248910_5 (high_rebounds VARCHAR, record VARCHAR)
SELECT mintage__bu_[_clarification_needed_] FROM table_11916083_1 WHERE artist = "Royal Canadian Mint Staff" AND issue_price__proof_ = "$54.95"
What is the mintage (bu) with the artist Royal Canadian Mint Staff and has an issue price (proof) of $54.95?
CREATE TABLE table_11916083_1 (mintage__bu_ VARCHAR, _clarification_needed_ VARCHAR, artist VARCHAR, issue_price__proof_ VARCHAR)
SELECT COUNT(date_of_successors_formal_installation) FROM table_224840_3 WHERE successor = "Aaron Ogden (F)"
how many times has Aaron Ogden (f), been a successor and has had a formal installation?
CREATE TABLE table_224840_3 (date_of_successors_formal_installation VARCHAR, successor VARCHAR)
SELECT crowd FROM table_name_76 WHERE venue = "lake oval"
How many people attended the game at Lake Oval?
CREATE TABLE table_name_76 (crowd VARCHAR, venue VARCHAR)
SELECT loss FROM table_name_87 WHERE date = "april 18"
Which loss happened april 18?
CREATE TABLE table_name_87 (loss VARCHAR, date VARCHAR)
SELECT game FROM table_name_9 WHERE result = "136-112"
What Game had a Result of 136-112?
CREATE TABLE table_name_9 (game VARCHAR, result VARCHAR)
SELECT MAX(silver) FROM table_name_50 WHERE nation = "japan (jpn)" AND total > 37
What is the highest number of Silver, when the Nation is Japan (JPN), and when the Total is greater than 37?
CREATE TABLE table_name_50 (silver INTEGER, nation VARCHAR, total VARCHAR)
SELECT score FROM table_name_81 WHERE venue = "jalan besar, singapore"
Name the score for venue of jalan besar, singapore
CREATE TABLE table_name_81 (score VARCHAR, venue VARCHAR)
SELECT MIN(draws) FROM table_name_17 WHERE scored < 25 AND points = 20 AND position > 8
Out of the teams that have scored lower than 25 points, have a total of points less than 20, and a position larger than 8, which has the lowest amount of draws?
CREATE TABLE table_name_17 (draws INTEGER, position VARCHAR, scored VARCHAR, points VARCHAR)
SELECT city___state FROM table_name_16 WHERE circuit = "hidden valley raceway"
What's the city/state of Hidden Valley Raceway?
CREATE TABLE table_name_16 (city___state VARCHAR, circuit VARCHAR)
SELECT position FROM table_name_95 WHERE school_club_team = "arizona state"
Which position has a player at Arizona state?
CREATE TABLE table_name_95 (position VARCHAR, school_club_team VARCHAR)
SELECT investment_income FROM table_name_67 WHERE state_pensions = "7%" AND self_employed = "7%" AND other_income_sources = "2%"
State pensions of 7%, and a Self employed of 7%, and a Other income sources of 2% has what investment income?
CREATE TABLE table_name_67 (investment_income VARCHAR, other_income_sources VARCHAR, state_pensions VARCHAR, self_employed VARCHAR)
SELECT away_team AS score FROM table_name_24 WHERE venue = "moorabbin oval"
What did the away team score at Moorabbin Oval?
CREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR)
SELECT date FROM table_name_5 WHERE round = "2r"
What was the date for Round 2r?
CREATE TABLE table_name_5 (date VARCHAR, round VARCHAR)
SELECT AVG(pick) FROM table_name_78 WHERE name = "jerry hackenbruck" AND overall < 282
What is the average pick number for jerry hackenbruck who was overall pick less than 282?
CREATE TABLE table_name_78 (pick INTEGER, name VARCHAR, overall VARCHAR)
SELECT podiums FROM table_name_16 WHERE wins = "0" AND points = "6"
What is the number of podiums with 0 wins and 6 points?
CREATE TABLE table_name_16 (podiums VARCHAR, wins VARCHAR, points VARCHAR)
SELECT COUNT(*) FROM Customers_cards
Show the number of customer cards.
CREATE TABLE Customers_cards (Id VARCHAR)
SELECT team FROM table_24231638_3 WHERE position_in_table = "19th"
What is the team for the position in table 19th?
CREATE TABLE table_24231638_3 (team VARCHAR, position_in_table VARCHAR)
SELECT semi_finalists FROM table_name_55 WHERE runner_up = "katrina adams zina garrison-jackson"
What is the Semi finalists when the Runner-up was katrina adams zina garrison-jackson?
CREATE TABLE table_name_55 (semi_finalists VARCHAR, runner_up VARCHAR)
SELECT tournament FROM table_name_66 WHERE 2004 = "q2"
What tournament has q2 as the 2004?
CREATE TABLE table_name_66 (tournament VARCHAR)
SELECT player FROM table_name_79 WHERE score = 71 - 69 - 71 - 69 = 280
What is the name of the player with a 71-69-71-69=280 score?
CREATE TABLE table_name_79 (player VARCHAR, score VARCHAR)
SELECT COUNT(prod_code) FROM table_2602958_4 WHERE no = 45
How many production codes are there for episode number 45?
CREATE TABLE table_2602958_4 (prod_code VARCHAR, no VARCHAR)
SELECT interview_subject FROM table_name_3 WHERE centerfold_model = "melissa deanne holliday"
Who was the Interview Subject when the Centerfold Model was Melissa Deanne Holliday?
CREATE TABLE table_name_3 (interview_subject VARCHAR, centerfold_model VARCHAR)
SELECT COUNT(english_name) FROM table_1982739_2 WHERE traditional_chinese = "全椒縣"
What is the number of English names that have a Traditional Chinese name of 全椒縣?
CREATE TABLE table_1982739_2 (english_name VARCHAR, traditional_chinese VARCHAR)
SELECT 10 AS _rebounds FROM table_25696729_8 WHERE season = "1991–92"
List all rebounds equal to 10 for Dennis Rodman 's 1991–92 season
CREATE TABLE table_25696729_8 (season VARCHAR)
SELECT years FROM table_name_58 WHERE authority = "state" AND roll > 333 AND name = "bayview school"
What are the years available at Bayview School, which has state authority and a roll number larger than 333?
CREATE TABLE table_name_58 (years VARCHAR, name VARCHAR, authority VARCHAR, roll VARCHAR)
SELECT college FROM table_name_86 WHERE pick = 11
What college has a pick of 11?
CREATE TABLE table_name_86 (college VARCHAR, pick VARCHAR)
SELECT away_team FROM table_name_73 WHERE home_team = "west ham united"
What is the away team with West Ham United as the home team?
CREATE TABLE table_name_73 (away_team VARCHAR, home_team VARCHAR)
SELECT poles FROM table_1708050_1 WHERE position = "25th"
Name the poles for 25th position
CREATE TABLE table_1708050_1 (poles VARCHAR, position VARCHAR)
SELECT name FROM table_name_49 WHERE saturday = "yes" AND evening = "yes"
Which Name has a Yes Saturday and a Yes Evening?
CREATE TABLE table_name_49 (name VARCHAR, saturday VARCHAR, evening VARCHAR)
SELECT total FROM table_name_5 WHERE set_1 = "15–11"
What is the total when the score of set 1 is 15–11?
CREATE TABLE table_name_5 (total VARCHAR, set_1 VARCHAR)
SELECT second_party FROM table_name_88 WHERE first_party = "tory" AND year = 1820
What is the second party where the first party is Tory and the year is 1820?
CREATE TABLE table_name_88 (second_party VARCHAR, first_party VARCHAR, year VARCHAR)
SELECT town_city FROM table_2572788_1 WHERE station = "Stratford (Limited service)"
In what city or town is Stratford (limited service)?
CREATE TABLE table_2572788_1 (town_city VARCHAR, station VARCHAR)
SELECT composer_s_ FROM table_name_44 WHERE arranger_s_ = "banana boat" AND length = "4:25"
Who is/are the Composer(s), when the Arranger(s) is Banana Boat, and when the Length is 4:25?
CREATE TABLE table_name_44 (composer_s_ VARCHAR, arranger_s_ VARCHAR, length VARCHAR)
SELECT MIN(silver) FROM table_name_75 WHERE bronze = 0 AND rank = 14 AND gold > 0
What is the smallest Silver value associated with teams having more than 0 gold, 0 bronze, and a rank of 14?
CREATE TABLE table_name_75 (silver INTEGER, gold VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT player FROM table_name_78 WHERE to_par = 13
Which player had a To par of 13?
CREATE TABLE table_name_78 (player VARCHAR, to_par VARCHAR)
SELECT building FROM table_name_22 WHERE status = "proposed" AND floors = 32
what is a building that is proposed and will have 32 floors?
CREATE TABLE table_name_22 (building VARCHAR, status VARCHAR, floors VARCHAR)
SELECT COUNT(Neu) - vehlefanz FROM table_11680175_1 WHERE schwante = "2.043"
How many times did Neu-Vehlefanz occur when Schwante had 2.043?
CREATE TABLE table_11680175_1 (vehlefanz VARCHAR, Neu VARCHAR, schwante VARCHAR)
SELECT COUNT(played) FROM table_name_57 WHERE against > 11 AND team = "botafogo" AND position < 2
How much Played has an Against larger than 11, and a Team of botafogo, and a Position smaller than 2?
CREATE TABLE table_name_57 (played VARCHAR, position VARCHAR, against VARCHAR, team VARCHAR)
SELECT location FROM table_name_60 WHERE listed = "1977-09-15"
What location was listed on 1977-09-15?
CREATE TABLE table_name_60 (location VARCHAR, listed VARCHAR)
SELECT player FROM table_name_91 WHERE country = "united states" AND score = 70
What player has The United States as the country with 70 as the score?
CREATE TABLE table_name_91 (player VARCHAR, country VARCHAR, score VARCHAR)