output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("channel") FROM "television_broadcasters" WHERE "broadcast_area"='Greater Tokyo';
## Task Generate a SQL query to answer the following question: `How many channels are there in the Greater Tokyo area?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television_broadcasters" ( "channel" real, "channel_name" text, "callsign" text, "signal_power" text, "broadcast_area" text ); ### SQL Given the database schema, here is the SQL query that answers `How many channels are there in the Greater Tokyo area?`: ```sql
SELECT "signal_power" FROM "television_broadcasters" WHERE "callsign"='JOAB-DTV';
## Task Generate a SQL query to answer the following question: `What is the signal power for JOAB-DTV?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television_broadcasters" ( "channel" real, "channel_name" text, "callsign" text, "signal_power" text, "broadcast_area" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the signal power for JOAB-DTV?`: ```sql
SELECT COUNT("rank") FROM "table1_26375386_20" WHERE "vote_percentage"='10.7%';
## Task Generate a SQL query to answer the following question: `How many times is the voting percentage 10.7%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26375386_20" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times is the voting percentage 10.7%`: ```sql
SELECT "vote_percentage" FROM "table1_26375386_20" WHERE "couple"='Gary and Maria';
## Task Generate a SQL query to answer the following question: `What is the vote percentage for the couple gary and maria?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26375386_20" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the vote percentage for the couple gary and maria?`: ```sql
SELECT "couple" FROM "table1_26375386_20" WHERE "vote_percentage"='5.8%';
## Task Generate a SQL query to answer the following question: `what couple had a vote percentage of 5.8%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26375386_20" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `what couple had a vote percentage of 5.8%?`: ```sql
SELECT "public" FROM "table1_26375386_20" WHERE "vote_percentage"='16.0%';
## Task Generate a SQL query to answer the following question: `What is the public when the vote percentage is 16.0%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26375386_20" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the public when the vote percentage is 16.0%`: ```sql
SELECT MIN("judges") FROM "table1_26375386_20" WHERE "result"='Safe' AND "vote_percentage"='10.7%';
## Task Generate a SQL query to answer the following question: `How many judges were there when the result is safe with a vote percentage of 10.7%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26375386_20" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How many judges were there when the result is safe with a vote percentage of 10.7%?`: ```sql
SELECT COUNT("total") FROM "table1_26375386_20" WHERE "vote_percentage"='15.0%';
## Task Generate a SQL query to answer the following question: `How many times was the vote percentage 15.0%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26375386_20" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times was the vote percentage 15.0%?`: ```sql
SELECT MIN("place") FROM "average_score_chart" WHERE "couple"='Keiron & Brianne';
## Task Generate a SQL query to answer the following question: `What is the least place when the couple is Keiron & Brianne?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" text, "number_of_dances" real, "average" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the least place when the couple is Keiron & Brianne?`: ```sql
SELECT COUNT("number_of_dances") FROM "average_score_chart" WHERE "place"=1;
## Task Generate a SQL query to answer the following question: `How many numbers of dances for place 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" text, "number_of_dances" real, "average" text ); ### SQL Given the database schema, here is the SQL query that answers `How many numbers of dances for place 1?`: ```sql
SELECT COUNT("rank_by_average") FROM "average_score_chart" WHERE "couple"='Keiron & Brianne';
## Task Generate a SQL query to answer the following question: `How many ranks by average when Keiron & Brianne are the couple?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" text, "number_of_dances" real, "average" text ); ### SQL Given the database schema, here is the SQL query that answers `How many ranks by average when Keiron & Brianne are the couple?`: ```sql
SELECT "average" FROM "average_score_chart" WHERE "number_of_dances"=1;
## Task Generate a SQL query to answer the following question: `What is every average when number of dances is 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" text, "number_of_dances" real, "average" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every average when number of dances is 1?`: ```sql
SELECT COUNT("rank_by_average") FROM "average_score_chart" WHERE "couple"='Tana and Stuart';
## Task Generate a SQL query to answer the following question: `How many ranks by average for the couple Tana and Stuart?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" text, "number_of_dances" real, "average" text ); ### SQL Given the database schema, here is the SQL query that answers `How many ranks by average for the couple Tana and Stuart?`: ```sql
SELECT "rank" FROM "table1_26375386_22" WHERE "couple"='Mikey and Melanie';
## Task Generate a SQL query to answer the following question: `Name the rank for mikey and melanie` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26375386_22" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the rank for mikey and melanie`: ```sql
SELECT "public" FROM "table1_26375386_22" WHERE "couple"='Mikey and Melanie';
## Task Generate a SQL query to answer the following question: `Name the public for mikey and melanie` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26375386_22" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the public for mikey and melanie`: ```sql
SELECT "judges" FROM "table1_26375386_22" WHERE "public"=4;
## Task Generate a SQL query to answer the following question: `Name the judges for 4 public` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26375386_22" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the judges for 4 public`: ```sql
SELECT COUNT("total") FROM "table1_26375386_22" WHERE "public"=3;
## Task Generate a SQL query to answer the following question: `Name the total number for 3 public` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26375386_22" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number for 3 public`: ```sql
SELECT COUNT("director") FROM "table1_26385848_1" WHERE "film_title"='Eldra';
## Task Generate a SQL query to answer the following question: `What is the number of directors for the film title Eldra?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26385848_1" ( "year_ceremony" text, "film_title" text, "main_language_s" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of directors for the film title Eldra?`: ```sql
SELECT "year_ceremony" FROM "table1_26385848_1" WHERE "film_title"='Eldra';
## Task Generate a SQL query to answer the following question: `What is the year (ceremony) for the film title Eldra?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26385848_1" ( "year_ceremony" text, "film_title" text, "main_language_s" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the year (ceremony) for the film title Eldra?`: ```sql
SELECT "director" FROM "table1_26385848_1" WHERE "film_title"='Eldra';
## Task Generate a SQL query to answer the following question: `Who is the director for the film title Eldra?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26385848_1" ( "year_ceremony" text, "film_title" text, "main_language_s" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the director for the film title Eldra?`: ```sql
SELECT "main_language_s" FROM "table1_26385848_1" WHERE "year_ceremony"='1998 (71st)';
## Task Generate a SQL query to answer the following question: `In the year (ceremony) 1998 (71st), what are all the main languages?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26385848_1" ( "year_ceremony" text, "film_title" text, "main_language_s" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `In the year (ceremony) 1998 (71st), what are all the main languages?`: ```sql
SELECT "director" FROM "table1_26385848_1" WHERE "year_ceremony"='2009 (82nd)';
## Task Generate a SQL query to answer the following question: `In the year (ceremony) 2009 (82nd), who are all the directors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26385848_1" ( "year_ceremony" text, "film_title" text, "main_language_s" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `In the year (ceremony) 2009 (82nd), who are all the directors?`: ```sql
SELECT "film_title" FROM "table1_26385848_1" WHERE "year_ceremony"='1995 (68th)';
## Task Generate a SQL query to answer the following question: `In the year (ceremony) 1995 (68th), what is the film title?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26385848_1" ( "year_ceremony" text, "film_title" text, "main_language_s" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `In the year (ceremony) 1995 (68th), what is the film title?`: ```sql
SELECT "primary_user" FROM "table1_26389588_1" WHERE "country_of_origin"='South Africa';
## Task Generate a SQL query to answer the following question: `If the country of Origin is South Africa, who is the primary user?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26389588_1" ( "name_designation" text, "year_of_introduction" text, "country_of_origin" text, "primary_cartridge" text, "primary_user" text ); ### SQL Given the database schema, here is the SQL query that answers `If the country of Origin is South Africa, who is the primary user?`: ```sql
SELECT "primary_cartridge" FROM "table1_26389588_1" WHERE "year_of_introduction"='1962' AND "country_of_origin"='Denmark';
## Task Generate a SQL query to answer the following question: `If the Country of Origin is Denmark and the year of introduction is 1962, what is the primary cartridge?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26389588_1" ( "name_designation" text, "year_of_introduction" text, "country_of_origin" text, "primary_cartridge" text, "primary_user" text ); ### SQL Given the database schema, here is the SQL query that answers `If the Country of Origin is Denmark and the year of introduction is 1962, what is the primary cartridge?`: ```sql
SELECT COUNT("year_of_introduction") FROM "table1_26389588_1" WHERE "name_designation"='CETME';
## Task Generate a SQL query to answer the following question: `How many different years was the name/designation cetme?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26389588_1" ( "name_designation" text, "year_of_introduction" text, "country_of_origin" text, "primary_cartridge" text, "primary_user" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different years was the name/designation cetme?`: ```sql
SELECT "name_designation" FROM "table1_26389588_1" WHERE "country_of_origin"='Switzerland';
## Task Generate a SQL query to answer the following question: `If the country of origin is switzerland, what is the name/ designation?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26389588_1" ( "name_designation" text, "year_of_introduction" text, "country_of_origin" text, "primary_cartridge" text, "primary_user" text ); ### SQL Given the database schema, here is the SQL query that answers `If the country of origin is switzerland, what is the name/ designation?`: ```sql
SELECT COUNT("single") FROM "table1_26400075_2" WHERE "artist"='Lisa Stansfield';
## Task Generate a SQL query to answer the following question: `How many singles does Lisa Stansfield have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26400075_2" ( "entered_a" text, "weeks_in_top_10" real, "single" text, "artist" text, "peak" real, "peak_reached_a" text, "weeks_at_peak" real ); ### SQL Given the database schema, here is the SQL query that answers `How many singles does Lisa Stansfield have?`: ```sql
SELECT "weeks_in_top_10" FROM "table1_26400075_2" WHERE "artist"='Beats International';
## Task Generate a SQL query to answer the following question: `How many weeks in the top-10 did Beats International have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26400075_2" ( "entered_a" text, "weeks_in_top_10" real, "single" text, "artist" text, "peak" real, "peak_reached_a" text, "weeks_at_peak" real ); ### SQL Given the database schema, here is the SQL query that answers `How many weeks in the top-10 did Beats International have?`: ```sql
SELECT "final_score" FROM "table1_26401898_2" WHERE "opponent"='Barcelona Dragons';
## Task Generate a SQL query to answer the following question: `Name the final score for barcelona dragons` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26401898_2" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the final score for barcelona dragons`: ```sql
SELECT MIN("week") FROM "table1_26401898_2" WHERE "final_score"='L 26–42';
## Task Generate a SQL query to answer the following question: `Name the least week for l 26–42` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26401898_2" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the least week for l 26–42`: ```sql
SELECT "game_site" FROM "table1_26401898_2" WHERE "final_score"='L 26–42';
## Task Generate a SQL query to answer the following question: `Name the game site for l 26–42` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26401898_2" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the game site for l 26–42`: ```sql
SELECT MIN("attendance") FROM "table1_26401898_2";
## Task Generate a SQL query to answer the following question: `Name the most attendance` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26401898_2" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most attendance`: ```sql
SELECT "elected" FROM "election_results" WHERE "2010_candidates"='Jesse Stone (R) 93.51 Diane Evans (I) 6.49%';
## Task Generate a SQL query to answer the following question: `What is the elected year when the 2010 candidates were jesse stone (r) 93.51 diane evans (i) 6.49%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "election_results" ( "district" real, "incumbent" text, "party" text, "elected" text, "status" text, "2010_candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the elected year when the 2010 candidates were jesse stone (r) 93.51 diane evans (i) 6.49%?`: ```sql
SELECT "party" FROM "election_results" WHERE "2010_candidates"='Gloria Butler (D) unopposed';
## Task Generate a SQL query to answer the following question: `What is the party when 2010 candidates is gloria butler (d) unopposed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "election_results" ( "district" real, "incumbent" text, "party" text, "elected" text, "status" text, "2010_candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the party when 2010 candidates is gloria butler (d) unopposed?`: ```sql
SELECT COUNT("elected") FROM "election_results" WHERE "2010_candidates"='Judson Hill (R) unopposed';
## Task Generate a SQL query to answer the following question: `How many times were the 2010 candidates Judson hill (r) unopposed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "election_results" ( "district" real, "incumbent" text, "party" text, "elected" text, "status" text, "2010_candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times were the 2010 candidates Judson hill (r) unopposed?`: ```sql
SELECT "elected" FROM "election_results" WHERE "party"='Democratic' AND "2010_candidates"='Jason Carter (D) unopposed';
## Task Generate a SQL query to answer the following question: `What is the elected year when the party is democratic and the 2010 candidates is jason carter (d) unopposed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "election_results" ( "district" real, "incumbent" text, "party" text, "elected" text, "status" text, "2010_candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the elected year when the party is democratic and the 2010 candidates is jason carter (d) unopposed?`: ```sql
SELECT "incumbent" FROM "election_results" WHERE "elected"='2004' AND "status"='Re-elected' AND "party"='Republican';
## Task Generate a SQL query to answer the following question: `Who is the incumbent when the elected year is 2004, the status is re-elected and the party is republican?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "election_results" ( "district" real, "incumbent" text, "party" text, "elected" text, "status" text, "2010_candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the incumbent when the elected year is 2004, the status is re-elected and the party is republican?`: ```sql
SELECT MIN("no_in_series") FROM "table1_26409328_1" WHERE "title"='\"There Will Be Bad Blood\"';
## Task Generate a SQL query to answer the following question: `what number is the episode "there will be bad blood" in the series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26409328_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 number is the episode "there will be bad blood" in the series?`: ```sql
SELECT "written_by" FROM "table1_26409328_1" WHERE "directed_by"='Joe Daniello' AND "production_code"='6AJN05';
## Task Generate a SQL query to answer the following question: `who wrote the episode having joe daniello as director with production code 6ajn05?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26409328_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 wrote the episode having joe daniello as director with production code 6ajn05?`: ```sql
SELECT "title" FROM "table1_26409328_1" WHERE "production_code"='6AJN08';
## Task Generate a SQL query to answer the following question: `what title was given to the episode with production code 6ajn08?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26409328_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 title was given to the episode with production code 6ajn08?`: ```sql
SELECT "production_code" FROM "table1_26409328_1" WHERE "u_s_viewers_millions"='5.36';
## Task Generate a SQL query to answer the following question: `what is the production code of the episode viewed by 5.36 million u.s. people? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26409328_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 is the production code of the episode viewed by 5.36 million u.s. people? `: ```sql
SELECT COUNT("hometown") FROM "cast" WHERE "fresh_meat_partner"='Sydney Walker';
## Task Generate a SQL query to answer the following question: `How many cast members had sydney walker as their fresh meat partner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cast" ( "alumni" text, "original_season" text, "fresh_meat_partner" text, "age" real, "hometown" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `How many cast members had sydney walker as their fresh meat partner?`: ```sql
SELECT "alumni" FROM "cast" WHERE "fresh_meat_partner"='Noor Jehangir';
## Task Generate a SQL query to answer the following question: `What alumni had noor jehangir as their fresh meat partner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cast" ( "alumni" text, "original_season" text, "fresh_meat_partner" text, "age" real, "hometown" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What alumni had noor jehangir as their fresh meat partner?`: ```sql
SELECT "alumni" FROM "cast" WHERE "original_season"='RW: Cancun';
## Task Generate a SQL query to answer the following question: `What alumni were in rw: cancun as their original season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cast" ( "alumni" text, "original_season" text, "fresh_meat_partner" text, "age" real, "hometown" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What alumni were in rw: cancun as their original season?`: ```sql
SELECT COUNT("age") FROM "cast" WHERE "hometown"='Portland, OR';
## Task Generate a SQL query to answer the following question: `How many people were from portland, or?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cast" ( "alumni" text, "original_season" text, "fresh_meat_partner" text, "age" real, "hometown" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people were from portland, or?`: ```sql
SELECT "conference" FROM "table1_26423157_2" WHERE "school"='Tennessee';
## Task Generate a SQL query to answer the following question: `What conference is Tennessee?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26423157_2" ( "school" text, "record" text, "conference" text, "conf_record" text, "last_app" real, "seed" text, "round_eliminated" text, "lost_to_seed" text ); ### SQL Given the database schema, here is the SQL query that answers `What conference is Tennessee?`: ```sql
SELECT "seed" FROM "table1_26423157_2" WHERE "school"='California';
## Task Generate a SQL query to answer the following question: `What seed was California?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26423157_2" ( "school" text, "record" text, "conference" text, "conf_record" text, "last_app" real, "seed" text, "round_eliminated" text, "lost_to_seed" text ); ### SQL Given the database schema, here is the SQL query that answers `What seed was California?`: ```sql
SELECT "m_1_cm_1" FROM "table1_26428602_1" WHERE "color"='red';
## Task Generate a SQL query to answer the following question: `What is the ε (m −1 cm −1 ) of the red dye?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26428602_1" ( "fluorescent_dye" text, "color" text, "mass_g_mol" real, "absorb_nm" real, "emit_nm" real, "m_1_cm_1" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the ε (m −1 cm −1 ) of the red dye?`: ```sql
SELECT MIN("absorb_nm") FROM "table1_26428602_1" WHERE "color"='orange';
## Task Generate a SQL query to answer the following question: `How much absorption in nm does the orange dye have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26428602_1" ( "fluorescent_dye" text, "color" text, "mass_g_mol" real, "absorb_nm" real, "emit_nm" real, "m_1_cm_1" text ); ### SQL Given the database schema, here is the SQL query that answers `How much absorption in nm does the orange dye have?`: ```sql
SELECT "m_1_cm_1" FROM "table1_26428602_1" WHERE "color"='orange';
## Task Generate a SQL query to answer the following question: `What is the ε (m −1 cm −1 ) of the orange flourescent dye?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26428602_1" ( "fluorescent_dye" text, "color" text, "mass_g_mol" real, "absorb_nm" real, "emit_nm" real, "m_1_cm_1" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the ε (m −1 cm −1 ) of the orange flourescent dye?`: ```sql
SELECT MIN("absorb_nm") FROM "table1_26428602_1";
## Task Generate a SQL query to answer the following question: `What is the lowest dye absoprtion in nm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26428602_1" ( "fluorescent_dye" text, "color" text, "mass_g_mol" real, "absorb_nm" real, "emit_nm" real, "m_1_cm_1" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest dye absoprtion in nm?`: ```sql
SELECT "title" FROM "table1_26429771_1" WHERE "no_in_season"=8;
## Task Generate a SQL query to answer the following question: `What is the name of chapter 8 of season 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26429771_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of chapter 8 of season 4?`: ```sql
SELECT COUNT("production_code") FROM "table1_26429771_1" WHERE "title"='\"High Top Fade-Out\"';
## Task Generate a SQL query to answer the following question: `What is the code of production in the chapter "high top fade-out"` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26429771_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the code of production in the chapter "high top fade-out"`: ```sql
SELECT "directed_by" FROM "table1_26429543_1" WHERE "title"='\"From the Earth to the Starbucks\"';
## Task Generate a SQL query to answer the following question: `Who directed the episode entitled "From the Earth to the Starbucks"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26429543_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode entitled "From the Earth to the Starbucks"?`: ```sql
SELECT COUNT("production_code") FROM "table1_26429543_1" WHERE "u_s_viewers_millions"='4.69';
## Task Generate a SQL query to answer the following question: `How many different production codes are there for the episode with 4.69 million US viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26429543_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different production codes are there for the episode with 4.69 million US viewers?`: ```sql
SELECT "2005_film" FROM "cast" WHERE "role"='Mark Cohen';
## Task Generate a SQL query to answer the following question: `Who was in the 2005 film with the role mark cohen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cast" ( "role" text, "original_broadway_cast" text, "2005_film" text, "2008_final_performance_film" text, "hollywood_bowl_cast" text, "2011_off_broadway_revival" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was in the 2005 film with the role mark cohen?`: ```sql
SELECT "2008_final_performance_film" FROM "cast" WHERE "2011_off_broadway_revival"='Annaleigh Ashford';
## Task Generate a SQL query to answer the following question: `Who had the 2008 final performance film when the 2011 off-broadway revival was annaleigh ashford?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cast" ( "role" text, "original_broadway_cast" text, "2005_film" text, "2008_final_performance_film" text, "hollywood_bowl_cast" text, "2011_off_broadway_revival" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had the 2008 final performance film when the 2011 off-broadway revival was annaleigh ashford?`: ```sql
SELECT "2005_film" FROM "cast" WHERE "original_broadway_cast"='Jesse L. Martin';
## Task Generate a SQL query to answer the following question: `who was in the 2005 role when the original broadway cast was played by jesse l. martin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cast" ( "role" text, "original_broadway_cast" text, "2005_film" text, "2008_final_performance_film" text, "hollywood_bowl_cast" text, "2011_off_broadway_revival" text ); ### SQL Given the database schema, here is the SQL query that answers `who was in the 2005 role when the original broadway cast was played by jesse l. martin?`: ```sql
SELECT COUNT("role") FROM "cast" WHERE "2011_off_broadway_revival"='MJ Rodriguez';
## Task Generate a SQL query to answer the following question: `How many times was mj rodriguez cast?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cast" ( "role" text, "original_broadway_cast" text, "2005_film" text, "2008_final_performance_film" text, "hollywood_bowl_cast" text, "2011_off_broadway_revival" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times was mj rodriguez cast?`: ```sql
SELECT "written_by" FROM "table1_26448179_3" WHERE "production_code"='202';
## Task Generate a SQL query to answer the following question: `Who wrote the episode that is production code 202?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26448179_3" ( "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 wrote the episode that is production code 202?`: ```sql
SELECT "u_s_viewers_millions" FROM "table1_26448179_3" WHERE "title"='\"Helen Back Again\"';
## Task Generate a SQL query to answer the following question: `How many millions of US viewers watched "Helen Back Again"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26448179_3" ( "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 `How many millions of US viewers watched "Helen Back Again"?`: ```sql
SELECT "title" FROM "table1_26448179_3" WHERE "u_s_viewers_millions"='3.8';
## Task Generate a SQL query to answer the following question: `What title was watched by 3.8 million US viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26448179_3" ( "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 title was watched by 3.8 million US viewers?`: ```sql
SELECT "original_air_date" FROM "table1_26448179_3" WHERE "title"='\"Helen Back Again\"';
## Task Generate a SQL query to answer the following question: `What is the original air date of "Helen Back Again"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26448179_3" ( "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 is the original air date of "Helen Back Again"?`: ```sql
SELECT MIN("no_in_season") FROM "table1_26448179_3" WHERE "production_code"='210';
## Task Generate a SQL query to answer the following question: `What season number in the season has production code 210?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26448179_3" ( "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 season number in the season has production code 210?`: ```sql
SELECT "written_by" FROM "table1_26448179_2" WHERE "production_code"='102';
## Task Generate a SQL query to answer the following question: ` He wrote production number 102? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26448179_2" ( "no_in_series" 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 ` He wrote production number 102? `: ```sql
SELECT "title" FROM "table1_26448179_4" WHERE "u_s_viewers_millions"='3.2';
## Task Generate a SQL query to answer the following question: `What is the title of the episode watched by 3.2 million viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26448179_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title of the episode watched by 3.2 million viewers?`: ```sql
SELECT "title" FROM "table1_26448179_4" WHERE "production_code"=305;
## Task Generate a SQL query to answer the following question: `What is the title of the episode with production code 305?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26448179_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title of the episode with production code 305?`: ```sql
SELECT COUNT("original_air_date") FROM "table1_26448179_4" WHERE "u_s_viewers_millions"='3.2';
## Task Generate a SQL query to answer the following question: `How many air dates had 3.2 million viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26448179_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many air dates had 3.2 million viewers?`: ```sql
SELECT MAX("production_code") FROM "table1_26448179_4";
## Task Generate a SQL query to answer the following question: `What is the highest production code?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26448179_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest production code?`: ```sql
SELECT "points" FROM "javelin_throw" WHERE "athlete"='Barney Berlinger';
## Task Generate a SQL query to answer the following question: `What are the point value(s) for when the athlete was Barney Berlinger?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "javelin_throw" ( "rank" real, "athlete" text, "country" text, "distance_metres" text, "points" text, "adjusted_points" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the point value(s) for when the athlete was Barney Berlinger?`: ```sql
SELECT COUNT("points") FROM "javelin_throw" WHERE "distance_metres"='41.05';
## Task Generate a SQL query to answer the following question: `What is the total number of times points were listed when the distance was 41.05 metres?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "javelin_throw" ( "rank" real, "athlete" text, "country" text, "distance_metres" text, "points" text, "adjusted_points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of times points were listed when the distance was 41.05 metres?`: ```sql
SELECT "athlete" FROM "javelin_throw" WHERE "adjusted_points"=691;
## Task Generate a SQL query to answer the following question: `Who is the athlete(s) who scored 691 adjusted points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "javelin_throw" ( "rank" real, "athlete" text, "country" text, "distance_metres" text, "points" text, "adjusted_points" real ); ### SQL Given the database schema, here is the SQL query that answers `Who is the athlete(s) who scored 691 adjusted points?`: ```sql
SELECT MAX("rank") FROM "javelin_throw" WHERE "distance_metres"='52.73';
## Task Generate a SQL query to answer the following question: `What is the highest rank where the distance is 52.73?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "javelin_throw" ( "rank" real, "athlete" text, "country" text, "distance_metres" text, "points" text, "adjusted_points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest rank where the distance is 52.73?`: ```sql
SELECT "country" FROM "javelin_throw" WHERE "points"='723.075';
## Task Generate a SQL query to answer the following question: `What is the country(s) where the points equal 723.075?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "javelin_throw" ( "rank" real, "athlete" text, "country" text, "distance_metres" text, "points" text, "adjusted_points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the country(s) where the points equal 723.075?`: ```sql
SELECT MAX("adjusted_points") FROM "high_jump" WHERE "country"='Great Britain';
## Task Generate a SQL query to answer the following question: `What is the most adjusted points for Great Britain?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "high_jump" ( "rank" real, "athlete" text, "country" text, "height" text, "points" real, "adjusted_points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the most adjusted points for Great Britain?`: ```sql
SELECT "country" FROM "high_jump" WHERE "athlete"='Paavo Yrjölä';
## Task Generate a SQL query to answer the following question: `What is the country of Paavo Yrjölä?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "high_jump" ( "rank" real, "athlete" text, "country" text, "height" text, "points" real, "adjusted_points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the country of Paavo Yrjölä?`: ```sql
SELECT "athlete" FROM "high_jump" WHERE "height"='1.87' AND "country"='Sweden';
## Task Generate a SQL query to answer the following question: `Which athlete has a height of 1.87 and is from Sweden?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "high_jump" ( "rank" real, "athlete" text, "country" text, "height" text, "points" real, "adjusted_points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which athlete has a height of 1.87 and is from Sweden?`: ```sql
SELECT "country" FROM "discus_throw" WHERE "athlete"='Ken Doherty';
## Task Generate a SQL query to answer the following question: `Name the country that has ken doherty` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "discus_throw" ( "rank" real, "athlete" text, "country" text, "distance_metres" text, "points" text, "adjusted_points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the country that has ken doherty`: ```sql
SELECT "athlete" FROM "discus_throw" WHERE "rank"=7;
## Task Generate a SQL query to answer the following question: `Name the athlete for 7 rank` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "discus_throw" ( "rank" real, "athlete" text, "country" text, "distance_metres" text, "points" text, "adjusted_points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the athlete for 7 rank`: ```sql
SELECT COUNT("rank") FROM "discus_throw" WHERE "athlete"='Tom Churchill';
## Task Generate a SQL query to answer the following question: `Name the total number of rank for tom churchill` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "discus_throw" ( "rank" real, "athlete" text, "country" text, "distance_metres" text, "points" text, "adjusted_points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of rank for tom churchill`: ```sql
SELECT "heir" FROM "list_of_heirs_to_the_burmese_thrones" WHERE "monarch"='Wareru';
## Task Generate a SQL query to answer the following question: `Who was the heir when the monarch was Wareru?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_heirs_to_the_burmese_thrones" ( "monarch" text, "heir" text, "status" text, "relationship_to_monarch" text, "became_heir_reason" text, "ceased_to_be_heir_reason" text, "next_in_succession" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the heir when the monarch was Wareru?`: ```sql
SELECT COUNT("monarch") FROM "list_of_heirs_to_the_burmese_thrones" WHERE "heir"='Yan Maw La Mon';
## Task Generate a SQL query to answer the following question: `What is the number of monarchs that had Yan Maw la Mon as the heir?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_heirs_to_the_burmese_thrones" ( "monarch" text, "heir" text, "status" text, "relationship_to_monarch" text, "became_heir_reason" text, "ceased_to_be_heir_reason" text, "next_in_succession" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of monarchs that had Yan Maw la Mon as the heir?`: ```sql
SELECT "monarch" FROM "list_of_heirs_to_the_burmese_thrones" WHERE "status"='Heir presumptive' AND "relationship_to_monarch"='son';
## Task Generate a SQL query to answer the following question: `Who was the monarch whose status was heir presumptive and a relationship to the monarch of son?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_heirs_to_the_burmese_thrones" ( "monarch" text, "heir" text, "status" text, "relationship_to_monarch" text, "became_heir_reason" text, "ceased_to_be_heir_reason" text, "next_in_succession" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the monarch whose status was heir presumptive and a relationship to the monarch of son?`: ```sql
SELECT "status" FROM "list_of_heirs_to_the_burmese_thrones" WHERE "monarch"='Mingyinyo';
## Task Generate a SQL query to answer the following question: `What is the status for the monarch Mingyinyo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_heirs_to_the_burmese_thrones" ( "monarch" text, "heir" text, "status" text, "relationship_to_monarch" text, "became_heir_reason" text, "ceased_to_be_heir_reason" text, "next_in_succession" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the status for the monarch Mingyinyo?`: ```sql
SELECT "status" FROM "list_of_heirs_to_the_burmese_thrones" WHERE "ceased_to_be_heir_reason"='18 February 1853 succeeded';
## Task Generate a SQL query to answer the following question: `What is the status when the ceased to be heir; reason is 18 february 1853 succeeded?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_heirs_to_the_burmese_thrones" ( "monarch" text, "heir" text, "status" text, "relationship_to_monarch" text, "became_heir_reason" text, "ceased_to_be_heir_reason" text, "next_in_succession" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the status when the ceased to be heir; reason is 18 february 1853 succeeded?`: ```sql
SELECT "became_heir_reason" FROM "list_of_heirs_to_the_burmese_thrones" WHERE "heir"='Hsinbyushin';
## Task Generate a SQL query to answer the following question: `When is the became heir; reason when heir is hsinbyushin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_heirs_to_the_burmese_thrones" ( "monarch" text, "heir" text, "status" text, "relationship_to_monarch" text, "became_heir_reason" text, "ceased_to_be_heir_reason" text, "next_in_succession" text ); ### SQL Given the database schema, here is the SQL query that answers `When is the became heir; reason when heir is hsinbyushin?`: ```sql
SELECT "monarch" FROM "list_of_heirs_to_the_burmese_thrones" WHERE "became_heir_reason"='13 July 1783 father succeeded';
## Task Generate a SQL query to answer the following question: `Who is the monarch when became heir; reason is 13 july 1783 father succeeded?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_heirs_to_the_burmese_thrones" ( "monarch" text, "heir" text, "status" text, "relationship_to_monarch" text, "became_heir_reason" text, "ceased_to_be_heir_reason" text, "next_in_succession" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the monarch when became heir; reason is 13 july 1783 father succeeded?`: ```sql
SELECT COUNT("relationship_to_monarch") FROM "list_of_heirs_to_the_burmese_thrones" WHERE "monarch"='Singu';
## Task Generate a SQL query to answer the following question: `How many times was the monarch singu?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_heirs_to_the_burmese_thrones" ( "monarch" text, "heir" text, "status" text, "relationship_to_monarch" text, "became_heir_reason" text, "ceased_to_be_heir_reason" text, "next_in_succession" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times was the monarch singu?`: ```sql
SELECT "monarch" FROM "list_of_heirs_to_the_burmese_thrones" WHERE "heir"='Thado Minsaw';
## Task Generate a SQL query to answer the following question: `Who is the monarch with the heir thado minsaw?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_heirs_to_the_burmese_thrones" ( "monarch" text, "heir" text, "status" text, "relationship_to_monarch" text, "became_heir_reason" text, "ceased_to_be_heir_reason" text, "next_in_succession" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the monarch with the heir thado minsaw?`: ```sql
SELECT "written_by" FROM "table1_26464364_1" WHERE "directed_by"='Justin Hartley';
## Task Generate a SQL query to answer the following question: `Who are the writers of the episodes directed by Justin Hartley?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26464364_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are the writers of the episodes directed by Justin Hartley?`: ```sql
SELECT "u_s_air_date" FROM "table1_26464364_1" WHERE "num"=18;
## Task Generate a SQL query to answer the following question: `On which date did episode # 18 air in the U.S.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26464364_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `On which date did episode # 18 air in the U.S.?`: ```sql
SELECT "u_s_viewers_million" FROM "table1_26464364_1" WHERE "production_code"='3X6004';
## Task Generate a SQL query to answer the following question: `How many million U.S. viewers watched the episode with the production code 3x6004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26464364_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `How many million U.S. viewers watched the episode with the production code 3x6004?`: ```sql
SELECT "title" FROM "table1_26464364_1" WHERE "written_by"='Anne Cofell Saunders';
## Task Generate a SQL query to answer the following question: `List the titles of episodes written by Anne Cofell Saunders.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26464364_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `List the titles of episodes written by Anne Cofell Saunders.`: ```sql
SELECT "title" FROM "table1_26464364_1" WHERE "directed_by"='Christopher Petry' AND "production_code"='3X6006';
## Task Generate a SQL query to answer the following question: `What is the title of the episode directed by Christopher Petry with the production cod 3x6006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26464364_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title of the episode directed by Christopher Petry with the production cod 3x6006?`: ```sql
SELECT "incumbent" FROM "ohio" WHERE "district"='Ohio 10';
## Task Generate a SQL query to answer the following question: `Who was the incumbent in the Ohio 10 district?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ohio" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the incumbent in the Ohio 10 district?`: ```sql
SELECT "incumbent" FROM "ohio" WHERE "district"='Ohio 5';
## Task Generate a SQL query to answer the following question: `Who was the incumbent in the Ohio 5 district?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ohio" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the incumbent in the Ohio 5 district?`: ```sql
SELECT "candidates" FROM "ohio" WHERE "result"='Retired Republican hold' AND "incumbent"='Philemon Bliss';
## Task Generate a SQL query to answer the following question: `Who were the candidates where the result was retired Republican hold and the incumbent was Philemon Bliss?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ohio" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the candidates where the result was retired Republican hold and the incumbent was Philemon Bliss?`: ```sql
SELECT COUNT("new_conference") FROM "former_members" WHERE "new_classification"='NCLL Deep South Conference';
## Task Generate a SQL query to answer the following question: `How many new conferences are in the NCLL deep south conference?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "team_nickname" text, "years" text, "new_conference" text, "new_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `How many new conferences are in the NCLL deep south conference?`: ```sql
SELECT "team_nickname" FROM "former_members" WHERE "institution"='University of Nebraska at Omaha';
## Task Generate a SQL query to answer the following question: `What is the nickname at the University of Nebraska at Omaha?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "team_nickname" text, "years" text, "new_conference" text, "new_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the nickname at the University of Nebraska at Omaha?`: ```sql