output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "province" FROM "population_area_and_density_sortable_on_" WHERE "gdp_2003_pps_in_mil"=38355;
## Task Generate a SQL query to answer the following question: `Which province has a gdp of 38355€ million euros?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population_area_and_density_sortable_on_" ( "province" text, "population_2004_estimate" real, "area_km" real, "density" text, "gdp_2003_pps_in_mil" real, "gdp_per_cap_2003_in" real ); ### SQL Given the database schema, here is the SQL query that answers `Which province has a gdp of 38355€ million euros?`: ```sql
SELECT "population_2004_estimate" FROM "population_area_and_density_sortable_on_" WHERE "gdp_2003_pps_in_mil"=18496;
## Task Generate a SQL query to answer the following question: `What is the population estimate for the place that gad a 18496€ million euro gdp?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population_area_and_density_sortable_on_" ( "province" text, "population_2004_estimate" real, "area_km" real, "density" text, "gdp_2003_pps_in_mil" real, "gdp_per_cap_2003_in" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the population estimate for the place that gad a 18496€ million euro gdp?`: ```sql
SELECT "title" FROM "table1_10701133_1" WHERE "original_air_date"='May15,2008';
## Task Generate a SQL query to answer the following question: `What is the title when original air date is may15,2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10701133_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "featured_character_s" text, "original_air_date" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title when original air date is may15,2008?`: ```sql
SELECT MAX("no_in_season") FROM "table1_10701133_1";
## Task Generate a SQL query to answer the following question: `What is the highest no. in season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10701133_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "featured_character_s" text, "original_air_date" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest no. in season?`: ```sql
SELECT "directed_by" FROM "table1_10701133_1" WHERE "u_s_viewers_million"='12.90';
## Task Generate a SQL query to answer the following question: `Who directed the episode where u.s. viewers (million) is 12.90?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10701133_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "featured_character_s" text, "original_air_date" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode where u.s. viewers (million) is 12.90?`: ```sql
SELECT MIN("num_of_ep") FROM "table1_1067134_1" WHERE "region_2"='May 26, 2008';
## Task Generate a SQL query to answer the following question: `How many episodes aired in Region 2 beginning May 26, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1067134_1" ( "dvd_name" text, "num_of_ep" real, "region_1" text, "region_2" text, "region_4" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes aired in Region 2 beginning May 26, 2008?`: ```sql
SELECT "region_2" FROM "table1_1067134_1" WHERE "dvd_name"='Season Six';
## Task Generate a SQL query to answer the following question: `What date did the DVD for season six come out in region 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1067134_1" ( "dvd_name" text, "num_of_ep" real, "region_1" text, "region_2" text, "region_4" text ); ### SQL Given the database schema, here is the SQL query that answers `What date did the DVD for season six come out in region 2?`: ```sql
SELECT MIN("num_of_ep") FROM "table1_1067134_1";
## Task Generate a SQL query to answer the following question: `What is the least amount of season epidsodes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1067134_1" ( "dvd_name" text, "num_of_ep" real, "region_1" text, "region_2" text, "region_4" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the least amount of season epidsodes?`: ```sql
SELECT "dvd_name" FROM "table1_1067134_1" WHERE "region_2"='August 22, 2010';
## Task Generate a SQL query to answer the following question: `What DVD season/name for region 2 was released August 22, 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1067134_1" ( "dvd_name" text, "num_of_ep" real, "region_1" text, "region_2" text, "region_4" text ); ### SQL Given the database schema, here is the SQL query that answers `What DVD season/name for region 2 was released August 22, 2010?`: ```sql
SELECT COUNT("points") FROM "career_summary" WHERE "season"='2005';
## Task Generate a SQL query to answer the following question: `How many points for 2005?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "poles" real, "wins" real, "points" real, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points for 2005?`: ```sql
SELECT "points" FROM "career_summary" WHERE "team_name"='DAMS';
## Task Generate a SQL query to answer the following question: `what is the score for the dams?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "poles" real, "wins" real, "points" real, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the score for the dams?`: ```sql
SELECT COUNT("position") FROM "career_summary" WHERE "season"='2009';
## Task Generate a SQL query to answer the following question: `how many positions in 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "poles" real, "wins" real, "points" real, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `how many positions in 2009?`: ```sql
SELECT MIN("poles") FROM "career_summary";
## Task Generate a SQL query to answer the following question: `what is the least number of poles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "poles" real, "wins" real, "points" real, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the least number of poles?`: ```sql
SELECT "series" FROM "career_summary" WHERE "points"=62;
## Task Generate a SQL query to answer the following question: `Which series with 62 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "poles" real, "wins" real, "points" real, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `Which series with 62 points?`: ```sql
SELECT COUNT("points") FROM "career_summary" WHERE "position"='10th';
## Task Generate a SQL query to answer the following question: `What is the total for 10th position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "poles" real, "wins" real, "points" real, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total for 10th position?`: ```sql
SELECT COUNT("report") FROM "races" WHERE "date"='October 16';
## Task Generate a SQL query to answer the following question: `how many reports of races took place on october 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `how many reports of races took place on october 16?`: ```sql
SELECT "report" FROM "races" WHERE "race_name"='Long Beach Grand Prix';
## Task Generate a SQL query to answer the following question: `what is the name of the report that lists the race name as long beach grand prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the name of the report that lists the race name as long beach grand prix?`: ```sql
SELECT "report" FROM "races" WHERE "circuit"='Nazareth Speedway';
## Task Generate a SQL query to answer the following question: `what is the report called where the circuit took place at the nazareth speedway?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the report called where the circuit took place at the nazareth speedway?`: ```sql
SELECT "race_name" FROM "races" WHERE "winning_team"='Newman/Haas Racing' AND "pole_position"='Rick Mears';
## Task Generate a SQL query to answer the following question: `what is the name of the race where newman/haas racing is the winning team and rick mears is at the pole position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the name of the race where newman/haas racing is the winning team and rick mears is at the pole position?`: ```sql
SELECT "city_location" FROM "races" WHERE "circuit"='Meadowlands Sports Complex';
## Task Generate a SQL query to answer the following question: `meadowlands sports complex is the circuit at which city/location?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `meadowlands sports complex is the circuit at which city/location?`: ```sql
SELECT "literacy_pct" FROM "statistics" WHERE "growth_1991_2001"='103.1%';
## Task Generate a SQL query to answer the following question: `What is the literacy rate for groups that grew 103.1% between 1991 and 2001?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "statistics" ( "religious_group" text, "population_pct" text, "growth_1991_2001" text, "sex_ratio_total" real, "literacy_pct" text, "work_participation_pct" text, "sex_ratio_rural" real, "sex_ratio_urban" real, "sex_ratio_child" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the literacy rate for groups that grew 103.1% between 1991 and 2001?`: ```sql
SELECT MIN("sex_ratio_rural") FROM "statistics";
## Task Generate a SQL query to answer the following question: `What is the lowest sex ratio in rural areas?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "statistics" ( "religious_group" text, "population_pct" text, "growth_1991_2001" text, "sex_ratio_total" real, "literacy_pct" text, "work_participation_pct" text, "sex_ratio_rural" real, "sex_ratio_urban" real, "sex_ratio_child" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest sex ratio in rural areas?`: ```sql
SELECT MIN("sex_ratio_child") FROM "statistics" WHERE "work_participation_pct"='31.3%';
## Task Generate a SQL query to answer the following question: `What is the lowest child sex ratio in groups where employment is 31.3%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "statistics" ( "religious_group" text, "population_pct" text, "growth_1991_2001" text, "sex_ratio_total" real, "literacy_pct" text, "work_participation_pct" text, "sex_ratio_rural" real, "sex_ratio_urban" real, "sex_ratio_child" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest child sex ratio in groups where employment is 31.3%?`: ```sql
SELECT "population_pct" FROM "statistics" WHERE "sex_ratio_rural"=953;
## Task Generate a SQL query to answer the following question: `What is the population percentage of the group where the rural sex ratio is 953?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "statistics" ( "religious_group" text, "population_pct" text, "growth_1991_2001" text, "sex_ratio_total" real, "literacy_pct" text, "work_participation_pct" text, "sex_ratio_rural" real, "sex_ratio_urban" real, "sex_ratio_child" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the population percentage of the group where the rural sex ratio is 953?`: ```sql
SELECT "original_air_date" FROM "table1_10715317_2" WHERE "title"='\"Felonious Monk\"';
## Task Generate a SQL query to answer the following question: `What is the original air date for the title "felonious monk"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10715317_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the original air date for the title "felonious monk"?`: ```sql
SELECT "title" FROM "table1_10715317_2" WHERE "directed_by"='Peter Markle' AND "written_by"='Jerry Stahl';
## Task Generate a SQL query to answer the following question: `What is the title of the episode directed by Peter Markle and written by Jerry Stahl?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10715317_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title of the episode directed by Peter Markle and written by Jerry Stahl?`: ```sql
SELECT COUNT("directed_by") FROM "table1_10715317_2" WHERE "title"='\"Identity Crisis\"';
## Task Generate a SQL query to answer the following question: `How many episodes were titled "identity crisis"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10715317_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes were titled "identity crisis"?`: ```sql
SELECT "lap_by_lap" FROM "television_broadcasters" WHERE "year"=2011;
## Task Generate a SQL query to answer the following question: `Who does the lap-by-lap in 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television_broadcasters" ( "year" real, "network" text, "host" text, "pre_race_analyst" text, "lap_by_lap" text, "color_commentator_s" text, "pit_reporters" text ); ### SQL Given the database schema, here is the SQL query that answers `Who does the lap-by-lap in 2011?`: ```sql
SELECT "network" FROM "television_broadcasters" WHERE "lap_by_lap"='Marty Reid' AND "host"='Marty Reid';
## Task Generate a SQL query to answer the following question: `Which network has Marty Reid as host and lap-by-lap broadcaster?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television_broadcasters" ( "year" real, "network" text, "host" text, "pre_race_analyst" text, "lap_by_lap" text, "color_commentator_s" text, "pit_reporters" text ); ### SQL Given the database schema, here is the SQL query that answers `Which network has Marty Reid as host and lap-by-lap broadcaster?`: ```sql
SELECT COUNT("pre_race_analyst") FROM "television_broadcasters" WHERE "lap_by_lap"='Allen Bestwick';
## Task Generate a SQL query to answer the following question: `How many pre-race analysis occur when Allen Bestwick does the lap-by-lap?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television_broadcasters" ( "year" real, "network" text, "host" text, "pre_race_analyst" text, "lap_by_lap" text, "color_commentator_s" text, "pit_reporters" text ); ### SQL Given the database schema, here is the SQL query that answers `How many pre-race analysis occur when Allen Bestwick does the lap-by-lap?`: ```sql
SELECT MAX("no_in_season") FROM "table1_10718192_2";
## Task Generate a SQL query to answer the following question: `What's the highest season number of an episode in the series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10718192_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the highest season number of an episode in the series?`: ```sql
SELECT "original_air_date" FROM "table1_10718192_2" WHERE "title"='\"Lucky Strike\"';
## Task Generate a SQL query to answer the following question: `When did the episode titled "Lucky Strike" air for the first time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10718192_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the episode titled "Lucky Strike" air for the first time?`: ```sql
SELECT "written_by" FROM "table1_10718192_2" WHERE "title"='\"One Hit Wonder\"';
## Task Generate a SQL query to answer the following question: `Who was the writer of the episode titled "One Hit Wonder"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10718192_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the writer of the episode titled "One Hit Wonder"?`: ```sql
SELECT "original_air_date" FROM "table1_10718192_2" WHERE "no_in_series"=63;
## Task Generate a SQL query to answer the following question: `What's the date of the first airing of the episode with series number 63?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10718192_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the date of the first airing of the episode with series number 63?`: ```sql
SELECT COUNT("title") FROM "table1_10718525_2" WHERE "u_s_viewers_millions"='26.53';
## Task Generate a SQL query to answer the following question: `How many titles got a viewership of 26.53 million?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10718525_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many titles got a viewership of 26.53 million?`: ```sql
SELECT "u_s_viewers_millions" FROM "table1_10718525_2" WHERE "directed_by"='Matt Earl Beesley';
## Task Generate a SQL query to answer the following question: `How many viewers tuned into the show directed by Matt Earl Beesley?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10718525_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many viewers tuned into the show directed by Matt Earl Beesley?`: ```sql
SELECT "written_by" FROM "table1_10718631_2" WHERE "no_in_series"=94;
## Task Generate a SQL query to answer the following question: `Who wrote episode 94?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10718631_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote episode 94?`: ```sql
SELECT "no_in_series" FROM "table1_10718631_2" WHERE "no_in_season"=10;
## Task Generate a SQL query to answer the following question: `Which episode was the number in the season where the number in the season is 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10718631_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Which episode was the number in the season where the number in the season is 10?`: ```sql
SELECT "no_in_season" FROM "table1_10718631_2" WHERE "title"='\"Crow''s Feet\"';
## Task Generate a SQL query to answer the following question: `How many episodes were in the season that had the epiosde of "crow's feet"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10718631_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes were in the season that had the epiosde of "crow's feet"?`: ```sql
SELECT "original_air_date" FROM "table1_10718631_2" WHERE "no_in_series"=113;
## Task Generate a SQL query to answer the following question: `When did the 113 episode air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10718631_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the 113 episode air?`: ```sql
SELECT COUNT("title") FROM "table1_10718631_2" WHERE "no_in_series"=113;
## Task Generate a SQL query to answer the following question: `How many titles were there for the 113 episode?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10718631_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many titles were there for the 113 episode?`: ```sql
SELECT MAX("no_in_season") FROM "table1_10718984_2" WHERE "written_by"='Marlene Meyer' AND "u_s_viewers_millions"='20.49';
## Task Generate a SQL query to answer the following question: `What is the number in the season that Marlene Meyer wrote and 20.49 million people watched?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10718984_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number in the season that Marlene Meyer wrote and 20.49 million people watched?`: ```sql
SELECT "original_air_date" FROM "table1_10718984_2" WHERE "no_in_season"=23;
## Task Generate a SQL query to answer the following question: `When did the no. 23 show originally air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10718984_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the no. 23 show originally air?`: ```sql
SELECT "circuit" FROM "races" WHERE "date"='October 4';
## Task Generate a SQL query to answer the following question: `Which circuits had a race on October 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Which circuits had a race on October 4?`: ```sql
SELECT "report" FROM "races" WHERE "pole_position"='Michael Andretti' AND "winning_team"='Galles-Kraco Racing';
## Task Generate a SQL query to answer the following question: `In which reports does Michael Andretti have the pole position and Galles-Kraco Racing is the winning team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `In which reports does Michael Andretti have the pole position and Galles-Kraco Racing is the winning team?`: ```sql
SELECT COUNT("rnd") FROM "races" WHERE "race_name"='Bosch Spark Plug Grand Prix';
## Task Generate a SQL query to answer the following question: `How many rounds were there of the Bosch Spark Plug Grand Prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `How many rounds were there of the Bosch Spark Plug Grand Prix?`: ```sql
SELECT "rnd" FROM "races" WHERE "date"='August 9';
## Task Generate a SQL query to answer the following question: `Which rounds were held on August 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Which rounds were held on August 9?`: ```sql
SELECT COUNT("date") FROM "races" WHERE "circuit"='Michigan International Speedway';
## Task Generate a SQL query to answer the following question: `On how many dates did the Michigan International Speedway hold a round?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `On how many dates did the Michigan International Speedway hold a round?`: ```sql
SELECT COUNT("num_of_bids") FROM "record_by_conference" WHERE "conference"='Sun Belt';
## Task Generate a SQL query to answer the following question: `Name the total number of bids of the sun belt conference` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" text, "round_of_32" real, "sweet_sixteen" real, "elite_eight" real, "final_four" real, "championship_game" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of bids of the sun belt conference`: ```sql
SELECT "round_of_32" FROM "record_by_conference" WHERE "conference"='Conference USA';
## Task Generate a SQL query to answer the following question: `Name the round of 32 in conference usa` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" text, "round_of_32" real, "sweet_sixteen" real, "elite_eight" real, "final_four" real, "championship_game" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the round of 32 in conference usa`: ```sql
SELECT "record" FROM "record_by_conference" WHERE "round_of_32"=0 AND "conference"='Metro Atlantic';
## Task Generate a SQL query to answer the following question: `What is the record when round of 32 is 0 and metro atlantic conference?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" text, "round_of_32" real, "sweet_sixteen" real, "elite_eight" real, "final_four" real, "championship_game" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the record when round of 32 is 0 and metro atlantic conference?`: ```sql
SELECT COUNT("num_of_bids") FROM "record_by_conference" WHERE "elite_eight">1.0;
## Task Generate a SQL query to answer the following question: `What is the number of bids with elite eight larger than 1.0` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" text, "round_of_32" real, "sweet_sixteen" real, "elite_eight" real, "final_four" real, "championship_game" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of bids with elite eight larger than 1.0`: ```sql
SELECT "directed_by" FROM "table1_10749143_2" WHERE "production_code"='7AFF03';
## Task Generate a SQL query to answer the following question: `Who directed the episode with production code 7aff03?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10749143_2" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode with production code 7aff03?`: ```sql
SELECT "title" FROM "table1_10749143_2" WHERE "u_s_viewers_millions"='10.34';
## Task Generate a SQL query to answer the following question: `What is the title of the episode wtih 10.34 million U.S viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10749143_2" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title of the episode wtih 10.34 million U.S viewers?`: ```sql
SELECT "position" FROM "career_summary" WHERE "races"=6;
## Task Generate a SQL query to answer the following question: `What place is the team that completed 6 races?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `What place is the team that completed 6 races?`: ```sql
SELECT "points" FROM "career_summary" WHERE "series"='British Formula Three' AND "team_name"='Fortec Motorsport';
## Task Generate a SQL query to answer the following question: `how much did the british formula three called "fortec motorsport" score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `how much did the british formula three called "fortec motorsport" score?`: ```sql
SELECT "races" FROM "career_summary" WHERE "season"='2009' AND "wins"=0;
## Task Generate a SQL query to answer the following question: `how many races were in 2009 with 0 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `how many races were in 2009 with 0 wins?`: ```sql
SELECT "season" FROM "career_summary" WHERE "team_name"='ART Grand Prix';
## Task Generate a SQL query to answer the following question: `What years did art grand prix compete?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `What years did art grand prix compete?`: ```sql
SELECT "season" FROM "career_summary" WHERE "points"='9';
## Task Generate a SQL query to answer the following question: `What year had a score of 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `What year had a score of 9?`: ```sql
SELECT MAX("wins") FROM "career_summary" WHERE "series"='Japanese Formula Three';
## Task Generate a SQL query to answer the following question: `what is the greatest number of wins by japanese formula three?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the greatest number of wins by japanese formula three?`: ```sql
SELECT "test_taker" FROM "episodes" WHERE "num"=4;
## Task Generate a SQL query to answer the following question: `Who took test #4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "episodes" ( "num" real, "air_date" text, "challenge" text, "winner" text, "test_taker" text, "passed" text ); ### SQL Given the database schema, here is the SQL query that answers `Who took test #4?`: ```sql
SELECT MIN("num") FROM "episodes" WHERE "air_date"='18 April 2007';
## Task Generate a SQL query to answer the following question: `What episode aired on 18 April 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "episodes" ( "num" real, "air_date" text, "challenge" text, "winner" text, "test_taker" text, "passed" text ); ### SQL Given the database schema, here is the SQL query that answers `What episode aired on 18 April 2007?`: ```sql
SELECT "test_taker" FROM "episodes" WHERE "challenge"='Night Driving';
## Task Generate a SQL query to answer the following question: `Who had the challenge of night driving?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "episodes" ( "num" real, "air_date" text, "challenge" text, "winner" text, "test_taker" text, "passed" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had the challenge of night driving?`: ```sql
SELECT COUNT("director") FROM "table1_10798928_1" WHERE "film_title_used_in_nomination"='Course Completed';
## Task Generate a SQL query to answer the following question: `How many directors were there for the film Course Completed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10798928_1" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How many directors were there for the film Course Completed?`: ```sql
SELECT "director" FROM "table1_10798928_1" WHERE "original_title"='El nido';
## Task Generate a SQL query to answer the following question: `Who directed El Nido?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10798928_1" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed El Nido?`: ```sql
SELECT "director" FROM "table1_10798928_1" WHERE "original_title"='Dulcinea';
## Task Generate a SQL query to answer the following question: `Who directed Dulcinea?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10798928_1" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed Dulcinea?`: ```sql
SELECT "village_slovenian" FROM "references" WHERE "percent_of_slovenes_1951"='65.9%';
## Task Generate a SQL query to answer the following question: `What are the slovenian names of the villages that had 65.9% of slovenes in 1951?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "village_german" text, "village_slovenian" text, "number_of_people_1991" real, "percent_of_slovenes_1991" text, "percent_of_slovenes_1951" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the slovenian names of the villages that had 65.9% of slovenes in 1951?`: ```sql
SELECT "village_slovenian" FROM "references" WHERE "percent_of_slovenes_1991"='16.7%';
## Task Generate a SQL query to answer the following question: `What are the slovenian names of the villages that had 16.7% of slovenes in 1991?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "village_german" text, "village_slovenian" text, "number_of_people_1991" real, "percent_of_slovenes_1991" text, "percent_of_slovenes_1951" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the slovenian names of the villages that had 16.7% of slovenes in 1991?`: ```sql
SELECT COUNT("village_german") FROM "references" WHERE "percent_of_slovenes_1991"='21.7%';
## Task Generate a SQL query to answer the following question: `How many villages had 21.7% of slovenes in 1991?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "village_german" text, "village_slovenian" text, "number_of_people_1991" real, "percent_of_slovenes_1991" text, "percent_of_slovenes_1951" text ); ### SQL Given the database schema, here is the SQL query that answers `How many villages had 21.7% of slovenes in 1991?`: ```sql
SELECT "percent_of_slovenes_1991" FROM "references" WHERE "village_slovenian"='Čahorče';
## Task Generate a SQL query to answer the following question: `what percent of slovenes did the village called čahorče in slovenian have in 1991?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "village_german" text, "village_slovenian" text, "number_of_people_1991" real, "percent_of_slovenes_1991" text, "percent_of_slovenes_1951" text ); ### SQL Given the database schema, here is the SQL query that answers `what percent of slovenes did the village called čahorče in slovenian have in 1991?`: ```sql
SELECT "village_slovenian" FROM "references" WHERE "village_german"='St.Margarethen';
## Task Generate a SQL query to answer the following question: `What is the slovenian name for the village that in german is known as st.margarethen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "village_german" text, "village_slovenian" text, "number_of_people_1991" real, "percent_of_slovenes_1991" text, "percent_of_slovenes_1951" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the slovenian name for the village that in german is known as st.margarethen?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "date"='December 20';
## Task Generate a SQL query to answer the following question: `For games on December 20, how many points did the scoring leaders get?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `For games on December 20, how many points did the scoring leaders get?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "date"='December 23';
## Task Generate a SQL query to answer the following question: `Who was the scoring leader and how many points did he get in games on December 23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the scoring leader and how many points did he get in games on December 23?`: ```sql
SELECT "pick_num" FROM "round_three" WHERE "position"='DE';
## Task Generate a SQL query to answer the following question: `What is the pick # for the position de?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the pick # for the position de?`: ```sql
SELECT "player" FROM "round_three" WHERE "college"='Saint Mary''s';
## Task Generate a SQL query to answer the following question: `Which player went to college at Saint Mary's?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player went to college at Saint Mary's?`: ```sql
SELECT "position" FROM "round_three" WHERE "cfl_team"='Winnipeg Blue Bombers';
## Task Generate a SQL query to answer the following question: `What is the position for the player with cfl team Winnipeg blue bombers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the position for the player with cfl team Winnipeg blue bombers?`: ```sql
SELECT "player" FROM "round_three" WHERE "college"='Laval';
## Task Generate a SQL query to answer the following question: `Which player went to college at Laval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player went to college at Laval?`: ```sql
SELECT "college" FROM "round_three" WHERE "cfl_team"='Edmonton Eskimos (via Calgary)';
## Task Generate a SQL query to answer the following question: `What was the college for the player with the cfl team of Edmonton Eskimos (via calgary)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the college for the player with the cfl team of Edmonton Eskimos (via calgary)?`: ```sql
SELECT "cfl_team" FROM "round_five" WHERE "college"='St. Francis Xavier';
## Task Generate a SQL query to answer the following question: `What's the team of the player from St. Francis Xavier College?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the team of the player from St. Francis Xavier College?`: ```sql
SELECT "player" FROM "round_five" WHERE "cfl_team"='Montreal Alouettes';
## Task Generate a SQL query to answer the following question: `What player is on the Montreal Alouettes CFl team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What player is on the Montreal Alouettes CFl team?`: ```sql
SELECT MIN("pick_num") FROM "round_five" WHERE "cfl_team"='Toronto Argonauts';
## Task Generate a SQL query to answer the following question: `What's the pick number of the player from Toronto Argonauts?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the pick number of the player from Toronto Argonauts?`: ```sql
SELECT "pick_num" FROM "round_five" WHERE "position"='CB';
## Task Generate a SQL query to answer the following question: `What's the pick number of the player whose position is CB?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the pick number of the player whose position is CB?`: ```sql
SELECT MAX("pick_num") FROM "round_five" WHERE "college"='New Mexico';
## Task Generate a SQL query to answer the following question: `What's the pick number of the player from New Mexico?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the pick number of the player from New Mexico?`: ```sql
SELECT "player" FROM "round_five" WHERE "college"='Ohio State';
## Task Generate a SQL query to answer the following question: `What player went to Ohio State College?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What player went to Ohio State College?`: ```sql
SELECT MIN("introduced") FROM "br_railbuses" WHERE "region"='Departmental';
## Task Generate a SQL query to answer the following question: `What is the minimum introduced value for the Departmental region?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "br_railbuses" ( "number_range" text, "builder" text, "introduced" real, "no_built" real, "region" text, "withdrawn" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the minimum introduced value for the Departmental region?`: ```sql
SELECT MIN("introduced") FROM "br_railbuses";
## Task Generate a SQL query to answer the following question: `What is the smallest introduced value?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "br_railbuses" ( "number_range" text, "builder" text, "introduced" real, "no_built" real, "region" text, "withdrawn" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest introduced value?`: ```sql
SELECT "cfl_team" FROM "round_four" WHERE "position"='OL';
## Task Generate a SQL query to answer the following question: `Which CFL Teams drafted an OL in 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which CFL Teams drafted an OL in 2006?`: ```sql
SELECT "college" FROM "round_four" WHERE "cfl_team"='Saskatchewan Roughriders';
## Task Generate a SQL query to answer the following question: `Which college is aligned to the Saskatchewan Roughriders?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which college is aligned to the Saskatchewan Roughriders?`: ```sql
SELECT "position" FROM "round_four" WHERE "cfl_team"='Hamilton Tiger-Cats (via Ottawa)';
## Task Generate a SQL query to answer the following question: `What Position did the Hamilton Tiger-Cats (via Ottawa) pick in the 2006 Draft.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What Position did the Hamilton Tiger-Cats (via Ottawa) pick in the 2006 Draft.`: ```sql
SELECT MIN("pick_num") FROM "round_four";
## Task Generate a SQL query to answer the following question: `What is the earliest pick listed in the table.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the earliest pick listed in the table.`: ```sql
SELECT MAX("no_in_season") FROM "table1_10842344_1" WHERE "production_code"='E4423';
## Task Generate a SQL query to answer the following question: `What episode number had production code e4423?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10842344_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What episode number had production code e4423?`: ```sql
SELECT MAX("no_in_season") FROM "table1_10842344_1" WHERE "u_s_viewers_millions"='14.37';
## Task Generate a SQL query to answer the following question: `What's the latest episode in a season where the U.S. viewers totaled 14.37 million?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10842344_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the latest episode in a season where the U.S. viewers totaled 14.37 million?`: ```sql
SELECT "directed_by" FROM "table1_10842344_1" WHERE "title"='\"Escape\"';
## Task Generate a SQL query to answer the following question: `Who directed the episode "Escape"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10842344_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode "Escape"?`: ```sql
SELECT COUNT("season") FROM "table1_10819266_8" WHERE "season_finale"='May 26, 2010';
## Task Generate a SQL query to answer the following question: `How many seasons is the season finale on May 26, 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10819266_8" ( "season" real, "episodes" real, "time_slot_est" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many seasons is the season finale on May 26, 2010?`: ```sql
SELECT "episodes" FROM "table1_10819266_8" WHERE "season_premiere"='September 23, 2009';
## Task Generate a SQL query to answer the following question: `What episodes are there where the season premier is September 23, 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10819266_8" ( "season" real, "episodes" real, "time_slot_est" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What episodes are there where the season premier is September 23, 2009?`: ```sql
SELECT "season_finale" FROM "table1_10819266_8" WHERE "season"=4;
## Task Generate a SQL query to answer the following question: `What is the season finale for season 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10819266_8" ( "season" real, "episodes" real, "time_slot_est" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the season finale for season 4?`: ```sql
SELECT "season_premiere" FROM "table1_10819266_8" WHERE "rank"='#21';
## Task Generate a SQL query to answer the following question: `How many season premiers have a rank of #21?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10819266_8" ( "season" real, "episodes" real, "time_slot_est" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many season premiers have a rank of #21?`: ```sql
SELECT "tv_season" FROM "table1_10819266_8" WHERE "season_premiere"='September 26, 2007';
## Task Generate a SQL query to answer the following question: `What are the seasons where September 26, 2007 is the season premier?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10819266_8" ( "season" real, "episodes" real, "time_slot_est" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the seasons where September 26, 2007 is the season premier?`: ```sql
SELECT "max_processors" FROM "table1_10818465_1" WHERE "max_memory"='256 GB';
## Task Generate a SQL query to answer the following question: `What max processor has a maximum memory of 256 gb?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10818465_1" ( "model" text, "ru" real, "max_processors" text, "processor_frequency" text, "max_memory" text, "max_disk_capacity" text, "ga_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What max processor has a maximum memory of 256 gb?`: ```sql
SELECT "max_memory" FROM "table1_10818465_1" WHERE "model"='T5120';
## Task Generate a SQL query to answer the following question: `What is the max memory of the t5120 model?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10818465_1" ( "model" text, "ru" real, "max_processors" text, "processor_frequency" text, "max_memory" text, "max_disk_capacity" text, "ga_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the max memory of the t5120 model?`: ```sql