context
stringlengths
27
489
question
stringlengths
12
244
answer
stringlengths
18
557
CREATE TABLE table_2226817_12 (title VARCHAR, production_code VARCHAR)
what is the name of the episode when the production code is 11.01?
SELECT title FROM table_2226817_12 WHERE production_code = "11.01"
CREATE TABLE table_2226817_12 (title VARCHAR, production_code VARCHAR)
what is the name of the episode if the production code is 11.12?
SELECT title FROM table_2226817_12 WHERE production_code = "11.12"
CREATE TABLE table_2226817_12 (no_in_series VARCHAR, directed_by VARCHAR)
how many episodes has been directed by Mark K. Samuels ?
SELECT COUNT(no_in_series) FROM table_2226817_12 WHERE directed_by = "Mark K. Samuels"
CREATE TABLE table_2226817_3 (directed_by VARCHAR, written_by VARCHAR)
Who directed what was written by Michael G. Moye & Ron Leavitt & J. Stanford Parker?
SELECT directed_by FROM table_2226817_3 WHERE written_by = "Michael G. Moye & Ron Leavitt & J. Stanford Parker"
CREATE TABLE table_2226817_8 (production_code VARCHAR, written_by VARCHAR)
What are all the production codes of episodes written by Michael G. Moye?
SELECT production_code FROM table_2226817_8 WHERE written_by = "Michael G. Moye"
CREATE TABLE table_2226817_8 (written_by VARCHAR, no_in_season VARCHAR)
Who is the writer of episode 13?
SELECT COUNT(written_by) FROM table_2226817_8 WHERE no_in_season = 13
CREATE TABLE table_2226817_8 (no_in_series VARCHAR, production_code VARCHAR)
Which series number has the production code 7.07?
SELECT COUNT(no_in_series) FROM table_2226817_8 WHERE production_code = "7.07"
CREATE TABLE table_2226817_8 (no_in_season INTEGER, production_code VARCHAR)
How many seasons have the production code 7.01 for an episode?
SELECT MAX(no_in_season) FROM table_2226817_8 WHERE production_code = "7.01"
CREATE TABLE table_2226817_8 (no_in_series VARCHAR, no_in_season VARCHAR)
How many episodes in the series are from season 12?
SELECT no_in_series FROM table_2226817_8 WHERE no_in_season = 12
CREATE TABLE table_2226817_9 (no_in_season INTEGER, no_in_series VARCHAR)
How many seasons had episode 158?
SELECT MIN(no_in_season) FROM table_2226817_9 WHERE no_in_series = 158
CREATE TABLE table_2226817_9 (production_code VARCHAR, written_by VARCHAR)
What is the production code of the episode directed by Stacie Lipp?
SELECT production_code FROM table_2226817_9 WHERE written_by = "Stacie Lipp"
CREATE TABLE table_2226817_9 (title VARCHAR, no_in_series VARCHAR)
What is the name of episode 165?
SELECT title FROM table_2226817_9 WHERE no_in_series = 165
CREATE TABLE table_2226817_9 (directed_by VARCHAR, production_code VARCHAR)
How many episodes have the production code 8.04
SELECT COUNT(directed_by) FROM table_2226817_9 WHERE production_code = "8.04"
CREATE TABLE table_222771_1 (alpha_2_code VARCHAR, alpha_3_code VARCHAR)
What is the Alpha 2 code for the area also known as TCA?
SELECT alpha_2_code FROM table_222771_1 WHERE alpha_3_code = "TCA"
CREATE TABLE table_222771_1 (alpha_3_code VARCHAR, alpha_2_code VARCHAR)
What is the Alpha 3 code for the area also known as FO?
SELECT alpha_3_code FROM table_222771_1 WHERE alpha_2_code = "FO"
CREATE TABLE table_222771_1 (alpha_2_code VARCHAR, alpha_3_code VARCHAR)
What is the alpha 2 code for the area also known as NZL?
SELECT alpha_2_code FROM table_222771_1 WHERE alpha_3_code = "NZL"
CREATE TABLE table_222771_1 (iso_3166_2_codes VARCHAR, english_short_name__upper_lower_case_ VARCHAR)
What is the ISO for South Sudan?
SELECT iso_3166_2_codes FROM table_222771_1 WHERE english_short_name__upper_lower_case_ = "South Sudan"
CREATE TABLE table_222771_1 (alpha_2_code VARCHAR, english_short_name__upper_lower_case_ VARCHAR)
What is the Alpha 2 code for Papua New Guinea?
SELECT alpha_2_code FROM table_222771_1 WHERE english_short_name__upper_lower_case_ = "Papua New Guinea"
CREATE TABLE table_222771_1 (numeric_code VARCHAR, alpha_3_code VARCHAR)
What is the number reference for LIE?
SELECT numeric_code FROM table_222771_1 WHERE alpha_3_code = "LIE"
CREATE TABLE table_22274142_1 (launch_date VARCHAR, transmission VARCHAR)
How many launch dates are there for digital transmission?
SELECT COUNT(launch_date) FROM table_22274142_1 WHERE transmission = "Digital"
CREATE TABLE table_22269839_1 (written_by VARCHAR, production_code VARCHAR)
Who wrote the title with production code 7acx14?
SELECT written_by FROM table_22269839_1 WHERE production_code = "7ACX14"
CREATE TABLE table_22269839_1 (directed_by VARCHAR, written_by VARCHAR)
Who directed the title written by cherry chevapravatdumrong?
SELECT directed_by FROM table_22269839_1 WHERE written_by = "Cherry Chevapravatdumrong"
CREATE TABLE table_22269839_1 (written_by VARCHAR, production_code VARCHAR)
Who wrote the title with the production code is 7acx08?
SELECT written_by FROM table_22269839_1 WHERE production_code = "7ACX08"
CREATE TABLE table_22269839_1 (directed_by VARCHAR, written_by VARCHAR)
Who directed the episode written by patrick meighan?
SELECT directed_by FROM table_22269839_1 WHERE written_by = "Patrick Meighan"
CREATE TABLE table_22282917_26 (dates VARCHAR, control_site_condition_owner VARCHAR)
When is every date that control site condition or owner is machine shop on Martin Dr.?
SELECT dates FROM table_22282917_26 WHERE control_site_condition_owner = "machine shop on Martin Dr."
CREATE TABLE table_22282917_26 (missile_type VARCHAR, code_ VARCHAR, _location VARCHAR)
What is every missile type with a code and location of M-20 Harbor Drive?
SELECT missile_type FROM table_22282917_26 WHERE code_ & _location = "M-20 Harbor Drive"
CREATE TABLE table_22282917_26 (code_ VARCHAR, _location VARCHAR, launch_site_condition_owner VARCHAR)
What is every code and location where the launch site condition and owner is obliterated?
SELECT code_ & _location FROM table_22282917_26 WHERE launch_site_condition_owner = "Obliterated"
CREATE TABLE table_22282917_26 (control_site_condition_owner VARCHAR, launch_site_condition_owner VARCHAR)
What is every control site condition and owner if launch site condition and owner is Lakefront Office Buildings?
SELECT control_site_condition_owner FROM table_22282917_26 WHERE launch_site_condition_owner = "lakefront office buildings"
CREATE TABLE table_22297140_3 (team VARCHAR, outgoing_manager VARCHAR)
Which team had an outgoing manager of Behtash Fariba?
SELECT team FROM table_22297140_3 WHERE outgoing_manager = "Behtash Fariba"
CREATE TABLE table_22297140_3 (team VARCHAR, replaced_by VARCHAR)
Which team had a manager who was replaced by Faraz Kamalvand?
SELECT team FROM table_22297140_3 WHERE replaced_by = "Faraz Kamalvand"
CREATE TABLE table_22297140_3 (outgoing_manager VARCHAR, replaced_by VARCHAR)
Which outgoing manager was replaced by Jafar Fatahi?
SELECT outgoing_manager FROM table_22297140_3 WHERE replaced_by = "Jafar Fatahi"
CREATE TABLE table_22297140_3 (team VARCHAR, replaced_by VARCHAR)
Which team had a manager replaced by Ebrahim Talebi?
SELECT team FROM table_22297140_3 WHERE replaced_by = "Ebrahim Talebi"
CREATE TABLE table_22297140_3 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
What was the date in which Behtash Fariba left his team?
SELECT date_of_vacancy FROM table_22297140_3 WHERE outgoing_manager = "Behtash Fariba"
CREATE TABLE table_22297140_3 (manner_of_departure VARCHAR, team VARCHAR)
What was the manner of leaving the team for the manager of Gostaresh Foolad?
SELECT manner_of_departure FROM table_22297140_3 WHERE team = "Gostaresh Foolad"
CREATE TABLE table_22308881_2 (in_county_tuition_per_credit_hour__fall_2009_ VARCHAR, college VARCHAR)
How much was the cost of in-county tuition per credit hour at the Gloucester College by the fall of 2009?
SELECT in_county_tuition_per_credit_hour__fall_2009_ FROM table_22308881_2 WHERE college = "Gloucester"
CREATE TABLE table_22308881_2 (in_county_tuition_per_credit_hour__fall_2009_ VARCHAR, college VARCHAR)
How much was the in-county tuition per credit hour at the Mercer College by the fall of 2009?
SELECT in_county_tuition_per_credit_hour__fall_2009_ FROM table_22308881_2 WHERE college = "Mercer"
CREATE TABLE table_22297198_3 (replaced_by VARCHAR, date_of_vacancy VARCHAR)
Who was the replacement manager for the vacancy of 12 Dec 2009?
SELECT replaced_by FROM table_22297198_3 WHERE date_of_vacancy = "12 Dec 2009"
CREATE TABLE table_22297198_3 (team VARCHAR, outgoing_manager VARCHAR)
What team did Alireza mansourian leave?
SELECT team FROM table_22297198_3 WHERE outgoing_manager = "Alireza Mansourian"
CREATE TABLE table_22297198_3 (manner_of_departure VARCHAR, outgoing_manager VARCHAR)
Why did Majid bagherinia leave?
SELECT manner_of_departure FROM table_22297198_3 WHERE outgoing_manager = "Majid Bagherinia"
CREATE TABLE table_22297198_3 (team VARCHAR, date_of_vacancy VARCHAR)
What team did a manager leave on 12 Dec 2009
SELECT team FROM table_22297198_3 WHERE date_of_vacancy = "12 Dec 2009"
CREATE TABLE table_22297198_3 (team VARCHAR, outgoing_manager VARCHAR)
How many teams did Farhad Kazemi leave?
SELECT COUNT(team) FROM table_22297198_3 WHERE outgoing_manager = "Farhad Kazemi"
CREATE TABLE table_22319599_1 (team_name VARCHAR, school VARCHAR)
If the school is Rend Lake College, what is the team name?
SELECT team_name FROM table_22319599_1 WHERE school = "Rend Lake College"
CREATE TABLE table_22319599_1 (njcaa_championships INTEGER)
What is the minimum possible for the NJCAA championships?
SELECT MIN(njcaa_championships) FROM table_22319599_1
CREATE TABLE table_22319599_1 (location VARCHAR, varsity_teams VARCHAR)
If the varsity team is 6, what is the location?
SELECT location FROM table_22319599_1 WHERE varsity_teams = 6
CREATE TABLE table_22319599_1 (colors VARCHAR, school VARCHAR)
If the school is John A. Logan College, what are the colors?
SELECT colors FROM table_22319599_1 WHERE school = "John A. Logan College"
CREATE TABLE table_22334183_3 (date VARCHAR, circuit VARCHAR)
On how many different dates was the race at the Silverstone circuit?
SELECT COUNT(date) FROM table_22334183_3 WHERE circuit = "Silverstone"
CREATE TABLE table_22334183_3 (date VARCHAR, circuit VARCHAR)
When was the circuit Donington Park?
SELECT date FROM table_22334183_3 WHERE circuit = "Donington Park"
CREATE TABLE table_22344463_2 (weight VARCHAR, name VARCHAR)
What is the weight is the name is Stuart Craig?
SELECT weight FROM table_22344463_2 WHERE name = "Stuart Craig"
CREATE TABLE table_22344463_2 (date_of_birth VARCHAR, name VARCHAR)
If the name is Timo Higgins, what is the total date of birth amount?
SELECT COUNT(date_of_birth) FROM table_22344463_2 WHERE name = "Timo Higgins"
CREATE TABLE table_22344463_2 (position VARCHAR, height VARCHAR)
If the height is 181cm, what was the position?
SELECT position FROM table_22344463_2 WHERE height = "181cm"
CREATE TABLE table_22344463_2 (name VARCHAR, weight VARCHAR, home_team VARCHAR)
If the home team is UMBC and the weight is 78kg, what the the name total number?
SELECT COUNT(name) FROM table_22344463_2 WHERE weight = "78kg" AND home_team = "UMBC"
CREATE TABLE table_22344463_2 (date_of_birth VARCHAR, height VARCHAR, home_team VARCHAR)
If the height is 185cm and the home team is Heaton Mersey, what is the date of birth?
SELECT date_of_birth FROM table_22344463_2 WHERE height = "185cm" AND home_team = "Heaton Mersey"
CREATE TABLE table_22347090_4 (us_viewers__million_ VARCHAR, no_in_season VARCHAR)
How many viewers tuned in for season 2?
SELECT us_viewers__million_ FROM table_22347090_4 WHERE no_in_season = 2
CREATE TABLE table_22347090_4 (directed_by VARCHAR, production_code VARCHAR)
Who directed the episode that has 3x6752 listed as the production code?
SELECT directed_by FROM table_22347090_4 WHERE production_code = "3X6752"
CREATE TABLE table_22347090_4 (no_in_series INTEGER, us_viewers__million_ VARCHAR)
Which series number had 1.98 million viewers?
SELECT MIN(no_in_series) FROM table_22347090_4 WHERE us_viewers__million_ = "1.98"
CREATE TABLE table_22347090_5 (us_viewers__million_ VARCHAR, production_code VARCHAR)
Name the viewers for production code for 3x6704
SELECT us_viewers__million_ FROM table_22347090_5 WHERE production_code = "3X6704"
CREATE TABLE table_22347090_5 (us_viewers__million_ VARCHAR, production_code VARCHAR)
Name the viewers for production code being 3x6706
SELECT us_viewers__million_ FROM table_22347090_5 WHERE production_code = "3X6706"
CREATE TABLE table_22347090_5 (title VARCHAR, us_viewers__million_ VARCHAR)
Name the title that got 1.54 viewers
SELECT title FROM table_22347090_5 WHERE us_viewers__million_ = "1.54"
CREATE TABLE table_22347090_5 (no_in_season VARCHAR, no_in_series VARCHAR)
Name the number of number in season for 26
SELECT COUNT(no_in_season) FROM table_22347090_5 WHERE no_in_series = 26
CREATE TABLE table_22347090_6 (written_by VARCHAR, production_code VARCHAR)
Who wrote the episode that has a production code 3x7557?
SELECT written_by FROM table_22347090_6 WHERE production_code = "3X7557"
CREATE TABLE table_22347090_6 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
How many directors are there for the episode that had 1.59 million U.S. viewers?
SELECT COUNT(directed_by) FROM table_22347090_6 WHERE us_viewers__million_ = "1.59"
CREATE TABLE table_22347090_6 (production_code VARCHAR, us_viewers__million_ VARCHAR)
What is the production code for the episode that had 1.32 million U.S. viewers?
SELECT production_code FROM table_22347090_6 WHERE us_viewers__million_ = "1.32"
CREATE TABLE table_22347090_6 (no_in_series INTEGER, production_code VARCHAR)
What episode number in the series had a production code of 3x7554?
SELECT MIN(no_in_series) FROM table_22347090_6 WHERE production_code = "3X7554"
CREATE TABLE table_22347090_6 (title VARCHAR, no_in_series VARCHAR)
What is the name of episode number 41 in the series?
SELECT title FROM table_22347090_6 WHERE no_in_series = 41
CREATE TABLE table_22355_20 (silver INTEGER)
Who has the minimum number of silver?
SELECT MIN(silver) FROM table_22355_20
CREATE TABLE table_22355_20 (athlete VARCHAR, rank VARCHAR, olympics VARCHAR)
Who is the athlete who's rank is 8 and competed in the olympics during 1948–1952?
SELECT athlete FROM table_22355_20 WHERE rank = 8 AND olympics = "1948–1952"
CREATE TABLE table_22355_20 (nation VARCHAR, olympics VARCHAR, bronze VARCHAR)
What is the nation who won 1 bronze in the Olympics during 1924–1928?
SELECT nation FROM table_22355_20 WHERE olympics = "1924–1928" AND bronze = 1
CREATE TABLE table_22355_20 (athlete VARCHAR, nation VARCHAR, rank VARCHAR)
Who is the athlete from the nation of Ethiopia (eth) who had a rank bigger than 7.0?
SELECT athlete FROM table_22355_20 WHERE nation = "Ethiopia (ETH)" AND rank > 7.0
CREATE TABLE table_22355_26 (gold INTEGER)
What is the maximum number of golds?
SELECT MAX(gold) FROM table_22355_26
CREATE TABLE table_22355_29 (silver INTEGER)
What is the smallest amount of silver?
SELECT MIN(silver) FROM table_22355_29
CREATE TABLE table_22355_44 (nation VARCHAR, athlete VARCHAR)
Name the nation for abdon pamich category:articles with hcards
SELECT nation FROM table_22355_44 WHERE athlete = "Abdon Pamich Category:Articles with hCards"
CREATE TABLE table_22355_44 (silver INTEGER, athlete VARCHAR)
Name the silver for ronald weigel category:articles with hcards
SELECT MAX(silver) FROM table_22355_44 WHERE athlete = "Ronald Weigel Category:Articles with hCards"
CREATE TABLE table_22355_5 (rank INTEGER)
What's the minimal rank of a athlete shown in the chart?
SELECT MIN(rank) FROM table_22355_5
CREATE TABLE table_22355_35 (gold INTEGER)
which is the minimun amount of gold medals?
SELECT MIN(gold) FROM table_22355_35
CREATE TABLE table_22355_35 (silver INTEGER)
which is the minimun amount of silver medals?
SELECT MIN(silver) FROM table_22355_35
CREATE TABLE table_22355_65 (total_min_2_medals_ INTEGER)
What is the lowest overall number for total(min. 2 medals)?
SELECT MIN(total_min_2_medals_) FROM table_22355_65
CREATE TABLE table_22355_62 (rank INTEGER, gold VARCHAR)
What is the maximum rank of the nation that won 4 gold medals?
SELECT MAX(rank) FROM table_22355_62 WHERE gold = 4
CREATE TABLE table_22355_68 (rank INTEGER)
Name the most rank
SELECT MAX(rank) FROM table_22355_68
CREATE TABLE table_22355_68 (rank INTEGER, gold VARCHAR)
Name the most rank for 2 gold
SELECT MIN(rank) FROM table_22355_68 WHERE gold = 2
CREATE TABLE table_22360_3 (total INTEGER)
Name the most total
SELECT MAX(total) FROM table_22360_3
CREATE TABLE table_22360_3 (silver INTEGER, discipline VARCHAR)
Name the silver for baseball
SELECT MIN(silver) FROM table_22360_3 WHERE discipline = "Baseball"
CREATE TABLE table_22360_3 (discipline VARCHAR, bronze VARCHAR)
Name the discipline for bronze being 0
SELECT discipline FROM table_22360_3 WHERE bronze = 0
CREATE TABLE table_22368322_2 (_€_million VARCHAR, tier_1_capital INTEGER, institution VARCHAR)
Name the most tier 1 capital for irish nationwide
SELECT MAX(tier_1_capital), _€_million FROM table_22368322_2 WHERE institution = "Irish Nationwide"
CREATE TABLE table_22368322_2 (tier_1_ratio VARCHAR, institution VARCHAR)
Name the tier 1 ratio for irish life and permanent
SELECT tier_1_ratio FROM table_22368322_2 WHERE institution = "Irish Life and Permanent"
CREATE TABLE table_22368322_2 (_€_million VARCHAR, tier_1_capital VARCHAR, institution VARCHAR)
Name the total number of tier 1 capital for allied irish banks
SELECT COUNT(tier_1_capital), _€_million FROM table_22368322_2 WHERE institution = "Allied Irish Banks"
CREATE TABLE table_22368322_2 (date_of_report VARCHAR, tier_1_ratio VARCHAR)
Name the date of report for tier 1 ratio being 3.9%
SELECT date_of_report FROM table_22368322_2 WHERE tier_1_ratio = "3.9%"
CREATE TABLE table_22383603_1 (season VARCHAR, finish__incl_championship_ VARCHAR)
What season ended on April 18?
SELECT season FROM table_22383603_1 WHERE finish__incl_championship_ = "April 18"
CREATE TABLE table_22383603_1 (start__reg_season_ VARCHAR, top_record VARCHAR)
When did the season start that ended with the top record of Lindenwood (20–0–0)?
SELECT start__reg_season_ FROM table_22383603_1 WHERE top_record = "Lindenwood (20–0–0)"
CREATE TABLE table_22383603_1 (season VARCHAR, no VARCHAR)
What is the year range of season 4?
SELECT season FROM table_22383603_1 WHERE no = 4
CREATE TABLE table_22383603_1 (finish__incl_championship_ VARCHAR, start__reg_season_ VARCHAR)
When is the finish of the season that started on September 25?
SELECT finish__incl_championship_ FROM table_22383603_1 WHERE start__reg_season_ = "September 25"
CREATE TABLE table_22380270_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
On what air date were there 2.15 million u.s. viewers?
SELECT original_air_date FROM table_22380270_1 WHERE us_viewers__millions_ = "2.15"
CREATE TABLE table_22380270_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
Who was the writer for the episode with 2.15 million u.s.viewers?
SELECT written_by FROM table_22380270_1 WHERE us_viewers__millions_ = "2.15"
CREATE TABLE table_22385461_1 (spacewalkers VARCHAR, spacecraft VARCHAR)
Who walked in space from STS-101 Eva 1?
SELECT spacewalkers FROM table_22385461_1 WHERE spacecraft = "STS-101 EVA 1"
CREATE TABLE table_22385461_8 (end__utc_ VARCHAR, duration VARCHAR)
What is the end (UTC) if the duration is 6 hours, 55 minutes?
SELECT end__utc_ FROM table_22385461_8 WHERE duration = "6 hours, 55 minutes"
CREATE TABLE table_22385461_8 (spacewalkers VARCHAR, end__utc_ VARCHAR)
If the end (UTC) is January 31, 2007 23:09, what is the name of the spacewalkers?
SELECT spacewalkers FROM table_22385461_8 WHERE end__utc_ = "January 31, 2007 23:09"
CREATE TABLE table_22385461_8 (spacewalkers VARCHAR, end__utc_ VARCHAR)
What are the names of the spacewalkers for end (UTC) October 30, 2007 15:53?
SELECT spacewalkers FROM table_22385461_8 WHERE end__utc_ = "October 30, 2007 15:53"
CREATE TABLE table_22402438_7 (position VARCHAR, player VARCHAR)
Which position is player bernie doan?
SELECT position FROM table_22402438_7 WHERE player = "Bernie Doan"
CREATE TABLE table_22402438_7 (pick__number INTEGER, position VARCHAR)
How many pick # are there for the goaltender position?
SELECT MIN(pick__number) FROM table_22402438_7 WHERE position = "Goaltender"
CREATE TABLE table_22402438_7 (college_junior_club_team VARCHAR, player VARCHAR)
How many college/junior/clubteams have John garrett as the player?
SELECT COUNT(college_junior_club_team) FROM table_22402438_7 WHERE player = "John Garrett"
CREATE TABLE table_22402438_7 (player VARCHAR, pick__number VARCHAR)
Who is the player with the pick# 80?
SELECT player FROM table_22402438_7 WHERE pick__number = 80