instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Who was the pilot of max altitude of 55.9 miles?
The relevant table was constructed using the following SQL : CREATE TABLE table_221315_3 (pilot VARCHAR, max_altitude__miles_ VARCHAR)
SELECT pilot FROM table_221315_3 WHERE max_altitude__miles_ = "55.9"
Write a SQL query that answers the following question: What is the highest number of fai space flights when max mach is 5.65?
The relevant table was constructed using the following SQL : CREATE TABLE table_221315_3 (fai_space_flights INTEGER, max_mach VARCHAR)
SELECT MAX(fai_space_flights) FROM table_221315_3 WHERE max_mach = "5.65"
Write a SQL query that answers the following question: What was the maximum altitude for Neil Armstrong?
The relevant table was constructed using the following SQL : CREATE TABLE table_221315_3 (max_altitude__miles_ VARCHAR, pilot VARCHAR)
SELECT max_altitude__miles_ FROM table_221315_3 WHERE pilot = "Neil Armstrong"
Write a SQL query that answers the following question: How many numbers were recorded under max speed for 1 USAF space flight and total flights 34?
The relevant table was constructed using the following SQL : CREATE TABLE table_221315_3 (max_speed__mph_ VARCHAR, usaf_space_flights VARCHAR, total_flights VARCHAR)
SELECT COUNT(max_speed__mph_) FROM table_221315_3 WHERE usaf_space_flights = 1 AND total_flights = 34
Write a SQL query that answers the following question: What were all USAF space flights when the aximum speed was 3822?
The relevant table was constructed using the following SQL : CREATE TABLE table_221315_3 (usaf_space_flights VARCHAR, max_speed__mph_ VARCHAR)
SELECT usaf_space_flights FROM table_221315_3 WHERE max_speed__mph_ = 3822
Write a SQL query that answers the following question: What was the max mach when the maximum speed was 3887?
The relevant table was constructed using the following SQL : CREATE TABLE table_221315_3 (max_mach VARCHAR, max_speed__mph_ VARCHAR)
SELECT max_mach FROM table_221315_3 WHERE max_speed__mph_ = 3887
Write a SQL query that answers the following question: What is the record for the away leg in round 1 and aggregate 2-0?
The relevant table was constructed using the following SQL : CREATE TABLE table_2214582_1 (away_leg VARCHAR, round VARCHAR, aggregate VARCHAR)
SELECT away_leg FROM table_2214582_1 WHERE round = 1 AND aggregate = "2-0"
Write a SQL query that answers the following question: Name the parishes for beira baixa province
The relevant table was constructed using the following SQL : CREATE TABLE table_221375_1 (parishes VARCHAR, province_of_1936 VARCHAR)
SELECT COUNT(parishes) FROM table_221375_1 WHERE province_of_1936 = "Beira Baixa Province"
Write a SQL query that answers the following question: Name the most municipalities for alto alentejo province (partly ribatejo)
The relevant table was constructed using the following SQL : CREATE TABLE table_221375_1 (municipalities INTEGER, province_of_1936 VARCHAR)
SELECT MAX(municipalities) FROM table_221375_1 WHERE province_of_1936 = "Alto Alentejo Province (partly Ribatejo)"
Write a SQL query that answers the following question: Name province of 1936 viana do castelo
The relevant table was constructed using the following SQL : CREATE TABLE table_221375_1 (province_of_1936 VARCHAR, district VARCHAR)
SELECT province_of_1936 FROM table_221375_1 WHERE district = "Viana do Castelo"
Write a SQL query that answers the following question: What was the score when the partner is Rafael Osuna?
The relevant table was constructed using the following SQL : CREATE TABLE table_2215159_2 (score VARCHAR, partner VARCHAR)
SELECT score FROM table_2215159_2 WHERE partner = "Rafael Osuna"
Write a SQL query that answers the following question: What was the outcome of the game when the partner is Rafael Osuna?
The relevant table was constructed using the following SQL : CREATE TABLE table_2215159_2 (outcome VARCHAR, partner VARCHAR)
SELECT outcome FROM table_2215159_2 WHERE partner = "Rafael Osuna"
Write a SQL query that answers the following question: What is the surface of the French Championships?
The relevant table was constructed using the following SQL : CREATE TABLE table_2215159_2 (surface VARCHAR, championship VARCHAR)
SELECT surface FROM table_2215159_2 WHERE championship = "French championships"
Write a SQL query that answers the following question: How many outcomes were there for matches played with Chuck McKinley on grass in 1962?
The relevant table was constructed using the following SQL : CREATE TABLE table_2215159_2 (outcome VARCHAR, year VARCHAR, surface VARCHAR, partner VARCHAR)
SELECT COUNT(outcome) FROM table_2215159_2 WHERE surface = "Grass" AND partner = "Chuck McKinley" AND year = 1962
Write a SQL query that answers the following question: What was the home leg score against partizani tirana?
The relevant table was constructed using the following SQL : CREATE TABLE table_2214582_3 (home_leg VARCHAR, opponents VARCHAR)
SELECT home_leg FROM table_2214582_3 WHERE opponents = "Partizani Tirana"
Write a SQL query that answers the following question: What round did they face fc st. gallen?
The relevant table was constructed using the following SQL : CREATE TABLE table_2214582_3 (round VARCHAR, opponents VARCHAR)
SELECT COUNT(round) FROM table_2214582_3 WHERE opponents = "FC St. Gallen"
Write a SQL query that answers the following question: What was the home leg score against fc schalke 04?
The relevant table was constructed using the following SQL : CREATE TABLE table_2214582_3 (home_leg VARCHAR, opponents VARCHAR)
SELECT home_leg FROM table_2214582_3 WHERE opponents = "FC Schalke 04"
Write a SQL query that answers the following question: How many dfb-pokal did kevin-prince boateng have?
The relevant table was constructed using the following SQL : CREATE TABLE table_22167196_1 (dfb_pokal VARCHAR, player VARCHAR)
SELECT COUNT(dfb_pokal) FROM table_22167196_1 WHERE player = "Kevin-Prince Boateng"
Write a SQL query that answers the following question: Who is the head coach when Miami University is the championship game opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_22165661_3 (head_coach VARCHAR, championship_game_opponent VARCHAR)
SELECT head_coach FROM table_22165661_3 WHERE championship_game_opponent = "Miami University"
Write a SQL query that answers the following question: What is the location when 2-1 is the score?
The relevant table was constructed using the following SQL : CREATE TABLE table_22165661_3 (location VARCHAR, score VARCHAR)
SELECT location FROM table_22165661_3 WHERE score = "2-1"
Write a SQL query that answers the following question: What is the conference when Ferris State is the championship game opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_22165661_3 (conference VARCHAR, championship_game_opponent VARCHAR)
SELECT conference FROM table_22165661_3 WHERE championship_game_opponent = "Ferris State"
Write a SQL query that answers the following question: What is the location of the 1999 tournament?
The relevant table was constructed using the following SQL : CREATE TABLE table_22165661_3 (location VARCHAR, tournament VARCHAR)
SELECT location FROM table_22165661_3 WHERE tournament = 1999
Write a SQL query that answers the following question: How many scores are there when the championship game opponent is Miami University?
The relevant table was constructed using the following SQL : CREATE TABLE table_22165661_3 (score VARCHAR, championship_game_opponent VARCHAR)
SELECT COUNT(score) FROM table_22165661_3 WHERE championship_game_opponent = "Miami University"
Write a SQL query that answers the following question: Who is the head coach for the score of 4-3?
The relevant table was constructed using the following SQL : CREATE TABLE table_22165661_3 (head_coach VARCHAR, score VARCHAR)
SELECT head_coach FROM table_22165661_3 WHERE score = "4-3"
Write a SQL query that answers the following question: What is the bleeding time when the platelet count is decreased or unaffected?
The relevant table was constructed using the following SQL : CREATE TABLE table_221653_1 (bleeding_time VARCHAR, platelet_count VARCHAR)
SELECT bleeding_time FROM table_221653_1 WHERE platelet_count = "Decreased or unaffected"
Write a SQL query that answers the following question: What is the partial thromboplastin time when the condition factor x deficiency as seen in amyloid purpura?
The relevant table was constructed using the following SQL : CREATE TABLE table_221653_1 (partial_thromboplastin_time VARCHAR, condition VARCHAR)
SELECT partial_thromboplastin_time FROM table_221653_1 WHERE condition = "Factor X deficiency as seen in amyloid purpura"
Write a SQL query that answers the following question: How many time does the platelet count occur when prothrombin time and bleeding time are prolonged?
The relevant table was constructed using the following SQL : CREATE TABLE table_221653_1 (platelet_count VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR)
SELECT COUNT(platelet_count) FROM table_221653_1 WHERE prothrombin_time = "Prolonged" AND bleeding_time = "Prolonged"
Write a SQL query that answers the following question: What is the bleeding time for the disseminated intravascular coagulation condition?
The relevant table was constructed using the following SQL : CREATE TABLE table_221653_1 (bleeding_time VARCHAR, condition VARCHAR)
SELECT COUNT(bleeding_time) FROM table_221653_1 WHERE condition = "Disseminated intravascular coagulation"
Write a SQL query that answers the following question: What is the result for partial thromboplastin time when prothrombin time and bleeding time are prolonged?
The relevant table was constructed using the following SQL : CREATE TABLE table_221653_1 (partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR)
SELECT partial_thromboplastin_time FROM table_221653_1 WHERE prothrombin_time = "Prolonged" AND bleeding_time = "Prolonged"
Write a SQL query that answers the following question: What is the platelet count when partial thromboplastin time and bleeding time are unaffected?
The relevant table was constructed using the following SQL : CREATE TABLE table_221653_1 (platelet_count VARCHAR, partial_thromboplastin_time VARCHAR, bleeding_time VARCHAR)
SELECT platelet_count FROM table_221653_1 WHERE partial_thromboplastin_time = "Unaffected" AND bleeding_time = "Unaffected"
Write a SQL query that answers the following question: What is the lowest top 50 ranking that the episode titled "the god-why-don't-you-love-me blues" received?
The relevant table was constructed using the following SQL : CREATE TABLE table_22170495_7 (top_50_ranking INTEGER, title VARCHAR)
SELECT MIN(top_50_ranking) FROM table_22170495_7 WHERE title = "The God-Why-Don't-You-Love-Me Blues"
Write a SQL query that answers the following question: Which episodes originally aired on April 19, 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_22170495_7 (title VARCHAR, original_airing VARCHAR)
SELECT title FROM table_22170495_7 WHERE original_airing = "April 19, 2010"
Write a SQL query that answers the following question: The episode titled "Epiphany" received what scripted show ranking?
The relevant table was constructed using the following SQL : CREATE TABLE table_22170495_7 (scripted_show_ranking INTEGER, title VARCHAR)
SELECT MIN(scripted_show_ranking) FROM table_22170495_7 WHERE title = "Epiphany"
Write a SQL query that answers the following question: How many of the episodes in the top 50 rankings were originally aired on June 28, 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_22170495_7 (top_50_ranking VARCHAR, original_airing VARCHAR)
SELECT COUNT(top_50_ranking) FROM table_22170495_7 WHERE original_airing = "June 28, 2010"
Write a SQL query that answers the following question: For the location of quezon city , metro manila what is the athletic nickname?
The relevant table was constructed using the following SQL : CREATE TABLE table_22171978_1 (athletic_nickname VARCHAR, location VARCHAR)
SELECT athletic_nickname FROM table_22171978_1 WHERE location = "Quezon City , Metro Manila"
Write a SQL query that answers the following question: How many locations are there for the athletic nickname is blue crusaders?
The relevant table was constructed using the following SQL : CREATE TABLE table_22171978_1 (location VARCHAR, athletic_nickname VARCHAR)
SELECT COUNT(location) FROM table_22171978_1 WHERE athletic_nickname = "Blue Crusaders"
Write a SQL query that answers the following question: How many entries are shown for school colors for the location of naga , camarines sur?
The relevant table was constructed using the following SQL : CREATE TABLE table_22171978_1 (school_colors VARCHAR, location VARCHAR)
SELECT COUNT(school_colors) FROM table_22171978_1 WHERE location = "Naga , Camarines Sur"
Write a SQL query that answers the following question: For the athletic nickname of golden knights how many entries are shown for enrollment?
The relevant table was constructed using the following SQL : CREATE TABLE table_22171978_1 (enrollment VARCHAR, athletic_nickname VARCHAR)
SELECT COUNT(enrollment) FROM table_22171978_1 WHERE athletic_nickname = "Golden Knights"
Write a SQL query that answers the following question: What year was the ateneo de manila university founded?
The relevant table was constructed using the following SQL : CREATE TABLE table_22171978_1 (founded VARCHAR, institution VARCHAR)
SELECT founded FROM table_22171978_1 WHERE institution = "Ateneo de Manila University"
Write a SQL query that answers the following question: What year was the athletic nickname blue crusaders founded?
The relevant table was constructed using the following SQL : CREATE TABLE table_22171978_1 (founded VARCHAR, athletic_nickname VARCHAR)
SELECT founded FROM table_22171978_1 WHERE athletic_nickname = "Blue Crusaders"
Write a SQL query that answers the following question: How many original airdates did season 20 have?
The relevant table was constructed using the following SQL : CREATE TABLE table_22181917_2 (original_air_date VARCHAR, season__number VARCHAR)
SELECT COUNT(original_air_date) FROM table_22181917_2 WHERE season__number = 20
Write a SQL query that answers the following question: Who directed the episode that was watched by 6.62 million U.S. viewers?
The relevant table was constructed using the following SQL : CREATE TABLE table_22181917_2 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT directed_by FROM table_22181917_2 WHERE us_viewers__millions_ = "6.62"
Write a SQL query that answers the following question: What is the production code for the episode with 8.56 million U.S. viewers?
The relevant table was constructed using the following SQL : CREATE TABLE table_22181917_2 (production_code VARCHAR, us_viewers__millions_ VARCHAR)
SELECT production_code FROM table_22181917_2 WHERE us_viewers__millions_ = "8.56"
Write a SQL query that answers the following question: What is the title of the episode that had 9.76 million U.S. viewers?
The relevant table was constructed using the following SQL : CREATE TABLE table_22181917_2 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT title FROM table_22181917_2 WHERE us_viewers__millions_ = "9.76"
Write a SQL query that answers the following question: What is the title of the original airing on e4 May 2, 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_22170495_6 (title VARCHAR, original_airing_on_e4 VARCHAR)
SELECT title FROM table_22170495_6 WHERE original_airing_on_e4 = "May 2, 2010"
Write a SQL query that answers the following question: How many total viewers have April 21, 2010 as the original airing on channel 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_22170495_6 (total_viewers VARCHAR, original_airing_on_channel_4 VARCHAR)
SELECT COUNT(total_viewers) FROM table_22170495_6 WHERE original_airing_on_channel_4 = "April 21, 2010"
Write a SQL query that answers the following question: What is the position in e4s ratings b when June 30, 2010 is the original airing on channel 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_22170495_6 (position_in_e4s_ratings_b VARCHAR, original_airing_on_channel_4 VARCHAR)
SELECT position_in_e4s_ratings_b FROM table_22170495_6 WHERE original_airing_on_channel_4 = "June 30, 2010"
Write a SQL query that answers the following question: When is the original airing on channel 4 with being alive as the title?
The relevant table was constructed using the following SQL : CREATE TABLE table_22170495_6 (original_airing_on_channel_4 VARCHAR, title VARCHAR)
SELECT original_airing_on_channel_4 FROM table_22170495_6 WHERE title = "Being Alive"
Write a SQL query that answers the following question: How many position in channel 4s ratings a have February 24, 2010 as the original airing on channel 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_22170495_6 (position_in_channel_4s_ratings_a VARCHAR, original_airing_on_channel_4 VARCHAR)
SELECT COUNT(position_in_channel_4s_ratings_a) FROM table_22170495_6 WHERE original_airing_on_channel_4 = "February 24, 2010"
Write a SQL query that answers the following question: What are all types where registration is HB-OPU?
The relevant table was constructed using the following SQL : CREATE TABLE table_22180353_1 (type VARCHAR, registration VARCHAR)
SELECT type FROM table_22180353_1 WHERE registration = "HB-OPU"
Write a SQL query that answers the following question: What is every registration for the type of T 6 G?
The relevant table was constructed using the following SQL : CREATE TABLE table_22180353_1 (registration VARCHAR, type VARCHAR)
SELECT registration FROM table_22180353_1 WHERE type = "T 6 G"
Write a SQL query that answers the following question: What is every construction date for the registration of HB-HOS?
The relevant table was constructed using the following SQL : CREATE TABLE table_22180353_1 (construction VARCHAR, registration VARCHAR)
SELECT construction AS date FROM table_22180353_1 WHERE registration = "HB-HOS"
Write a SQL query that answers the following question: What is every conformity to original design if registration is HB-DAI?
The relevant table was constructed using the following SQL : CREATE TABLE table_22180353_1 (conformity_to_original_design VARCHAR, registration VARCHAR)
SELECT conformity_to_original_design FROM table_22180353_1 WHERE registration = "HB-DAI"
Write a SQL query that answers the following question: What is the latest season number that Eric Tuchman directed?
The relevant table was constructed using the following SQL : CREATE TABLE table_2219961_2 (season__number INTEGER, director VARCHAR)
SELECT MAX(season__number) FROM table_2219961_2 WHERE director = "Eric Tuchman"
Write a SQL query that answers the following question: How man seasons have the air date of October 2, 2001?
The relevant table was constructed using the following SQL : CREATE TABLE table_2219961_2 (season__number VARCHAR, nbc_airdate VARCHAR)
SELECT COUNT(season__number) FROM table_2219961_2 WHERE nbc_airdate = "October 2, 2001"
Write a SQL query that answers the following question: What was the report in the race where the winning team was Roush Fenway Racing?
The relevant table was constructed using the following SQL : CREATE TABLE table_2220432_1 (report VARCHAR, team VARCHAR)
SELECT report FROM table_2220432_1 WHERE team = "Roush Fenway Racing"
Write a SQL query that answers the following question: What was the miles (km) for the race that had an average speed of 136.117 MPH?
The relevant table was constructed using the following SQL : CREATE TABLE table_2220432_1 (miles__km_ VARCHAR, average_speed__mph_ VARCHAR)
SELECT miles__km_ FROM table_2220432_1 WHERE average_speed__mph_ = "136.117"
Write a SQL query that answers the following question: What are the miles when February 25 is the date?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226343_1 (miles__km_ VARCHAR, date VARCHAR)
SELECT miles__km_ FROM table_2226343_1 WHERE date = "February 25"
Write a SQL query that answers the following question: How many laps have an average speed of 141.911?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226343_1 (laps VARCHAR, average_speed__mph_ VARCHAR)
SELECT laps FROM table_2226343_1 WHERE average_speed__mph_ = "141.911"
Write a SQL query that answers the following question: Who is the manufacturer when 150.088 is the average speed (mph)?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226343_1 (manufacturer VARCHAR, average_speed__mph_ VARCHAR)
SELECT manufacturer FROM table_2226343_1 WHERE average_speed__mph_ = "150.088"
Write a SQL query that answers the following question: Who is the manufacturer for the date of June 22?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226343_1 (manufacturer VARCHAR, date VARCHAR)
SELECT manufacturer FROM table_2226343_1 WHERE date = "June 22"
Write a SQL query that answers the following question: How many laps have a race time of 3:31:24?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226343_1 (laps VARCHAR, race_time VARCHAR)
SELECT laps FROM table_2226343_1 WHERE race_time = "3:31:24"
Write a SQL query that answers the following question: How many laps have an average speed (mph) of 140.22?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226343_1 (laps VARCHAR, average_speed__mph_ VARCHAR)
SELECT laps FROM table_2226343_1 WHERE average_speed__mph_ = "140.22"
Write a SQL query that answers the following question: Who directed the film with the original title of три летња дана?
The relevant table was constructed using the following SQL : CREATE TABLE table_22265716_1 (director VARCHAR, original_title VARCHAR)
SELECT director FROM table_22265716_1 WHERE original_title = "Три летња дана"
Write a SQL query that answers the following question: Who directed the film with the title three summer days?
The relevant table was constructed using the following SQL : CREATE TABLE table_22265716_1 (director VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT director FROM table_22265716_1 WHERE film_title_used_in_nomination = "Three Summer Days"
Write a SQL query that answers the following question: Who is the director of the film with the title лепа села лепо горе?
The relevant table was constructed using the following SQL : CREATE TABLE table_22265716_1 (director VARCHAR, original_title VARCHAR)
SELECT director FROM table_22265716_1 WHERE original_title = "Лепа села лепо горе"
Write a SQL query that answers the following question: How many viewers in millions watched the episode with the production code 6acx16?
The relevant table was constructed using the following SQL : CREATE TABLE table_22261877_1 (us_viewers__million_ VARCHAR, production_code VARCHAR)
SELECT us_viewers__million_ FROM table_22261877_1 WHERE production_code = "6ACX16"
Write a SQL query that answers the following question: What is the air date of the episode with the production code 6acx19?
The relevant table was constructed using the following SQL : CREATE TABLE table_22261877_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT original_air_date FROM table_22261877_1 WHERE production_code = "6ACX19"
Write a SQL query that answers the following question: What is the original air date for the production code of 1.12?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_2 (original_air_date VARCHAR, production_code VARCHAR)
SELECT original_air_date FROM table_2226817_2 WHERE production_code = "1.12"
Write a SQL query that answers the following question: How many number of series have a production code of 1.11?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_2 (no_in_series VARCHAR, production_code VARCHAR)
SELECT no_in_series FROM table_2226817_2 WHERE production_code = "1.11"
Write a SQL query that answers the following question: How many number of series have the production code of 1.11?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_2 (no_in_series INTEGER, production_code VARCHAR)
SELECT MAX(no_in_series) FROM table_2226817_2 WHERE production_code = "1.11"
Write a SQL query that answers the following question: Who wrote when the original airdate is April 5, 1987?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_2 (written_by VARCHAR, original_air_date VARCHAR)
SELECT written_by FROM table_2226817_2 WHERE original_air_date = "April 5, 1987"
Write a SQL query that answers the following question: Who directed when the production code is 1.02?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_2 (directed_by VARCHAR, production_code VARCHAR)
SELECT directed_by FROM table_2226817_2 WHERE production_code = "1.02"
Write a SQL query that answers the following question: Name the production code for november 27, 1988
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_4 (production_code VARCHAR, original_air_date VARCHAR)
SELECT production_code FROM table_2226817_4 WHERE original_air_date = "November 27, 1988"
Write a SQL query that answers the following question: Name the original air date for 3.04 production code
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_4 (original_air_date VARCHAR, production_code VARCHAR)
SELECT original_air_date FROM table_2226817_4 WHERE production_code = "3.04"
Write a SQL query that answers the following question: Name who wrote the episode that aired april 9, 1989
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_4 (written_by VARCHAR, original_air_date VARCHAR)
SELECT written_by FROM table_2226817_4 WHERE original_air_date = "April 9, 1989"
Write a SQL query that answers the following question: Name the number of number in season for 3.09
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_4 (no_in_season VARCHAR, production_code VARCHAR)
SELECT COUNT(no_in_season) FROM table_2226817_4 WHERE production_code = "3.09"
Write a SQL query that answers the following question: when was the episode premiere if the production code is 11.19?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_12 (original_air_date VARCHAR, production_code VARCHAR)
SELECT COUNT(original_air_date) FROM table_2226817_12 WHERE production_code = "11.19"
Write a SQL query that answers the following question: what is the name of the episode whose premiere was in march 2, 1997?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_12 (title VARCHAR, original_air_date VARCHAR)
SELECT title FROM table_2226817_12 WHERE original_air_date = "March 2, 1997"
Write a SQL query that answers the following question: what is the name of the episode when the production code is 11.01?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_12 (title VARCHAR, production_code VARCHAR)
SELECT title FROM table_2226817_12 WHERE production_code = "11.01"
Write a SQL query that answers the following question: what is the name of the episode if the production code is 11.12?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_12 (title VARCHAR, production_code VARCHAR)
SELECT title FROM table_2226817_12 WHERE production_code = "11.12"
Write a SQL query that answers the following question: how many episodes has been directed by Mark K. Samuels ?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_12 (no_in_series VARCHAR, directed_by VARCHAR)
SELECT COUNT(no_in_series) FROM table_2226817_12 WHERE directed_by = "Mark K. Samuels"
Write a SQL query that answers the following question: Who directed what was written by Michael G. Moye & Ron Leavitt & J. Stanford Parker?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_3 (directed_by VARCHAR, written_by VARCHAR)
SELECT directed_by FROM table_2226817_3 WHERE written_by = "Michael G. Moye & Ron Leavitt & J. Stanford Parker"
Write a SQL query that answers the following question: What are all the production codes of episodes written by Michael G. Moye?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_8 (production_code VARCHAR, written_by VARCHAR)
SELECT production_code FROM table_2226817_8 WHERE written_by = "Michael G. Moye"
Write a SQL query that answers the following question: Who is the writer of episode 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_8 (written_by VARCHAR, no_in_season VARCHAR)
SELECT COUNT(written_by) FROM table_2226817_8 WHERE no_in_season = 13
Write a SQL query that answers the following question: Which series number has the production code 7.07?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_8 (no_in_series VARCHAR, production_code VARCHAR)
SELECT COUNT(no_in_series) FROM table_2226817_8 WHERE production_code = "7.07"
Write a SQL query that answers the following question: How many seasons have the production code 7.01 for an episode?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_8 (no_in_season INTEGER, production_code VARCHAR)
SELECT MAX(no_in_season) FROM table_2226817_8 WHERE production_code = "7.01"
Write a SQL query that answers the following question: How many episodes in the series are from season 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_8 (no_in_series VARCHAR, no_in_season VARCHAR)
SELECT no_in_series FROM table_2226817_8 WHERE no_in_season = 12
Write a SQL query that answers the following question: How many seasons had episode 158?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_9 (no_in_season INTEGER, no_in_series VARCHAR)
SELECT MIN(no_in_season) FROM table_2226817_9 WHERE no_in_series = 158
Write a SQL query that answers the following question: What is the production code of the episode directed by Stacie Lipp?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_9 (production_code VARCHAR, written_by VARCHAR)
SELECT production_code FROM table_2226817_9 WHERE written_by = "Stacie Lipp"
Write a SQL query that answers the following question: What is the name of episode 165?
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_9 (title VARCHAR, no_in_series VARCHAR)
SELECT title FROM table_2226817_9 WHERE no_in_series = 165
Write a SQL query that answers the following question: How many episodes have the production code 8.04
The relevant table was constructed using the following SQL : CREATE TABLE table_2226817_9 (directed_by VARCHAR, production_code VARCHAR)
SELECT COUNT(directed_by) FROM table_2226817_9 WHERE production_code = "8.04"
Write a SQL query that answers the following question: What is the Alpha 2 code for the area also known as TCA?
The relevant table was constructed using the following SQL : CREATE TABLE table_222771_1 (alpha_2_code VARCHAR, alpha_3_code VARCHAR)
SELECT alpha_2_code FROM table_222771_1 WHERE alpha_3_code = "TCA"
Write a SQL query that answers the following question: What is the Alpha 3 code for the area also known as FO?
The relevant table was constructed using the following SQL : CREATE TABLE table_222771_1 (alpha_3_code VARCHAR, alpha_2_code VARCHAR)
SELECT alpha_3_code FROM table_222771_1 WHERE alpha_2_code = "FO"
Write a SQL query that answers the following question: What is the alpha 2 code for the area also known as NZL?
The relevant table was constructed using the following SQL : CREATE TABLE table_222771_1 (alpha_2_code VARCHAR, alpha_3_code VARCHAR)
SELECT alpha_2_code FROM table_222771_1 WHERE alpha_3_code = "NZL"
Write a SQL query that answers the following question: What is the ISO for South Sudan?
The relevant table was constructed using the following SQL : CREATE TABLE table_222771_1 (iso_3166_2_codes VARCHAR, english_short_name__upper_lower_case_ VARCHAR)
SELECT iso_3166_2_codes FROM table_222771_1 WHERE english_short_name__upper_lower_case_ = "South Sudan"
Write a SQL query that answers the following question: What is the Alpha 2 code for Papua New Guinea?
The relevant table was constructed using the following SQL : CREATE TABLE table_222771_1 (alpha_2_code VARCHAR, english_short_name__upper_lower_case_ VARCHAR)
SELECT alpha_2_code FROM table_222771_1 WHERE english_short_name__upper_lower_case_ = "Papua New Guinea"
Write a SQL query that answers the following question: What is the number reference for LIE?
The relevant table was constructed using the following SQL : CREATE TABLE table_222771_1 (numeric_code VARCHAR, alpha_3_code VARCHAR)
SELECT numeric_code FROM table_222771_1 WHERE alpha_3_code = "LIE"
Write a SQL query that answers the following question: How many launch dates are there for digital transmission?
The relevant table was constructed using the following SQL : CREATE TABLE table_22274142_1 (launch_date VARCHAR, transmission VARCHAR)
SELECT COUNT(launch_date) FROM table_22274142_1 WHERE transmission = "Digital"
Write a SQL query that answers the following question: Who wrote the title with production code 7acx14?
The relevant table was constructed using the following SQL : CREATE TABLE table_22269839_1 (written_by VARCHAR, production_code VARCHAR)
SELECT written_by FROM table_22269839_1 WHERE production_code = "7ACX14"