output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "title" FROM "table1_18054886_1" WHERE "viewers_millions"='3.7' AND "directed_by"='David Kendall';
## Task Generate a SQL query to answer the following question: `Which title, directed by David Kendall, had 3.7 million viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18054886_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" real, "viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Which title, directed by David Kendall, had 3.7 million viewers?`: ```sql
SELECT "directed_by" FROM "table1_18054886_1" WHERE "title"='\"People Who Use People\"';
## Task Generate a SQL query to answer the following question: `Who directed "People who use people"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18054886_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" real, "viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed "People who use people"?`: ```sql
SELECT COUNT("first_elected") FROM "california" WHERE "incumbent"='Diane Watson';
## Task Generate a SQL query to answer the following question: `How many people were first elected with an incument of diane watson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people were first elected with an incument of diane watson?`: ```sql
SELECT "party" FROM "california" WHERE "incumbent"='Hilda Solis';
## Task Generate a SQL query to answer the following question: `What party did hilda solis represent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What party did hilda solis represent?`: ```sql
SELECT "results" FROM "california" WHERE "incumbent"='Grace Napolitano';
## Task Generate a SQL query to answer the following question: `What were the result(s) of the election featuring grace napolitano as the incumbent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text ); ### SQL Given the database schema, here is the SQL query that answers `What were the result(s) of the election featuring grace napolitano as the incumbent?`: ```sql
SELECT MIN("standard_order") FROM "nine_pieces" WHERE "transcription_based_on_pinyin"='She Jiang';
## Task Generate a SQL query to answer the following question: `Which place in the order is the Pinyin transcription She Jiang?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nine_pieces" ( "standard_order" real, "english_translation" text, "transcription_based_on_pinyin" text, "traditional_chinese" text, "simplified_chinese" text ); ### SQL Given the database schema, here is the SQL query that answers `Which place in the order is the Pinyin transcription She Jiang?`: ```sql
SELECT MAX("standard_order") FROM "nine_pieces" WHERE "english_translation"='A Lament for Ying';
## Task Generate a SQL query to answer the following question: `What is the place of "A Lament for Ying"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nine_pieces" ( "standard_order" real, "english_translation" text, "transcription_based_on_pinyin" text, "traditional_chinese" text, "simplified_chinese" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the place of "A Lament for Ying"?`: ```sql
SELECT COUNT("traditional_chinese") FROM "nine_pieces" WHERE "english_translation"='Crossing the River';
## Task Generate a SQL query to answer the following question: `How many traditional Chinese for the translation of "Crossing the River"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nine_pieces" ( "standard_order" real, "english_translation" text, "transcription_based_on_pinyin" text, "traditional_chinese" text, "simplified_chinese" text ); ### SQL Given the database schema, here is the SQL query that answers `How many traditional Chinese for the translation of "Crossing the River"?`: ```sql
SELECT MAX("standard_order") FROM "nine_pieces" WHERE "transcription_based_on_pinyin"='Xi Wangri';
## Task Generate a SQL query to answer the following question: `What is the place of the Pinyin transcription Xi Wangri?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nine_pieces" ( "standard_order" real, "english_translation" text, "transcription_based_on_pinyin" text, "traditional_chinese" text, "simplified_chinese" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the place of the Pinyin transcription Xi Wangri?`: ```sql
SELECT "english_translation" FROM "nine_pieces" WHERE "traditional_chinese"='哀郢';
## Task Generate a SQL query to answer the following question: `What is the English translation of 哀郢?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nine_pieces" ( "standard_order" real, "english_translation" text, "transcription_based_on_pinyin" text, "traditional_chinese" text, "simplified_chinese" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the English translation of 哀郢?`: ```sql
SELECT "transcription_based_on_pinyin" FROM "nine_pieces" WHERE "english_translation"='Alas for the Days Gone By';
## Task Generate a SQL query to answer the following question: `What is the Pinyin transcription for "Alas for the Days Gone By"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nine_pieces" ( "standard_order" real, "english_translation" text, "transcription_based_on_pinyin" text, "traditional_chinese" text, "simplified_chinese" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Pinyin transcription for "Alas for the Days Gone By"?`: ```sql
SELECT "english_name" FROM "months" WHERE "abbr"='พ.ย.';
## Task Generate a SQL query to answer the following question: `What's the English name for the month with พ.ย. abbreviation? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "months" ( "english_name" text, "thai_name" text, "abbr" text, "transcription" text, "sanskrit_word" text, "zodiac_sign" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the English name for the month with พ.ย. abbreviation? `: ```sql
SELECT "zodiac_sign" FROM "months" WHERE "abbr"='มี.ค.';
## Task Generate a SQL query to answer the following question: `What's the zodiac sing for the month abbreviated as มี.ค.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "months" ( "english_name" text, "thai_name" text, "abbr" text, "transcription" text, "sanskrit_word" text, "zodiac_sign" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the zodiac sing for the month abbreviated as มี.ค.?`: ```sql
SELECT "transcription" FROM "months" WHERE "thai_name"='พฤษภาคม';
## Task Generate a SQL query to answer the following question: `What's the transcription of the thai name of the month พฤษภาคม?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "months" ( "english_name" text, "thai_name" text, "abbr" text, "transcription" text, "sanskrit_word" text, "zodiac_sign" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the transcription of the thai name of the month พฤษภาคม?`: ```sql
SELECT COUNT("zodiac_sign") FROM "months" WHERE "thai_name"='กันยายน';
## Task Generate a SQL query to answer the following question: `How many zodiac signs does the month by the Thai name of กันยายน belong to?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "months" ( "english_name" text, "thai_name" text, "abbr" text, "transcription" text, "sanskrit_word" text, "zodiac_sign" text ); ### SQL Given the database schema, here is the SQL query that answers `How many zodiac signs does the month by the Thai name of กันยายน belong to?`: ```sql
SELECT "english_name" FROM "months" WHERE "abbr"='มิ.ย.';
## Task Generate a SQL query to answer the following question: `What's the English name of the month abbreviated as มิ.ย.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "months" ( "english_name" text, "thai_name" text, "abbr" text, "transcription" text, "sanskrit_word" text, "zodiac_sign" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the English name of the month abbreviated as มิ.ย.?`: ```sql
SELECT "abbr" FROM "months" WHERE "zodiac_sign"='Scorpio';
## Task Generate a SQL query to answer the following question: `What's the abbreviation of the month in the zodiac sign scorpio?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "months" ( "english_name" text, "thai_name" text, "abbr" text, "transcription" text, "sanskrit_word" text, "zodiac_sign" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the abbreviation of the month in the zodiac sign scorpio?`: ```sql
SELECT "year_e_ceremony" FROM "submissions" WHERE "original_title"='გაღმა ნაპირი';
## Task Generate a SQL query to answer the following question: `which year was the original title გაღმა ნაპირი` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_e_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "main_language_s" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `which year was the original title გაღმა ნაპირი`: ```sql
SELECT COUNT("year_e_ceremony") FROM "submissions" WHERE "film_title_used_in_nomination"='27 Missing Kisses';
## Task Generate a SQL query to answer the following question: `how many times was 27 missing kisses used in nomination` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_e_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "main_language_s" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `how many times was 27 missing kisses used in nomination`: ```sql
SELECT "year_e_ceremony" FROM "submissions" WHERE "director"='Otar Iosseliani';
## Task Generate a SQL query to answer the following question: `when was otar iosseliani's film selected` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_e_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "main_language_s" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `when was otar iosseliani's film selected`: ```sql
SELECT "thai_name" FROM "weekdays" WHERE "transcription"='wan chan';
## Task Generate a SQL query to answer the following question: `What is the thai name of the transcription wan chan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "weekdays" ( "english_name" text, "thai_name" text, "transcription" text, "color" text, "sanskrit_word" text, "planet" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the thai name of the transcription wan chan?`: ```sql
SELECT "sanskrit_word" FROM "weekdays" WHERE "color"='red';
## Task Generate a SQL query to answer the following question: `What is the sanskrit word for the color red?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "weekdays" ( "english_name" text, "thai_name" text, "transcription" text, "color" text, "sanskrit_word" text, "planet" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sanskrit word for the color red?`: ```sql
SELECT "transcription" FROM "weekdays" WHERE "sanskrit_word"='Chandra';
## Task Generate a SQL query to answer the following question: `What is the transcription of the sanskrit word chandra?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "weekdays" ( "english_name" text, "thai_name" text, "transcription" text, "color" text, "sanskrit_word" text, "planet" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the transcription of the sanskrit word chandra?`: ```sql
SELECT "sanskrit_word" FROM "weekdays" WHERE "transcription"='wan athit';
## Task Generate a SQL query to answer the following question: `What is the sanskrit word if the transcription is wan athit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "weekdays" ( "english_name" text, "thai_name" text, "transcription" text, "color" text, "sanskrit_word" text, "planet" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sanskrit word if the transcription is wan athit?`: ```sql
SELECT "color" FROM "weekdays" WHERE "planet"='Venus';
## Task Generate a SQL query to answer the following question: `What is the color of the planet venus?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "weekdays" ( "english_name" text, "thai_name" text, "transcription" text, "color" text, "sanskrit_word" text, "planet" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the color of the planet venus?`: ```sql
SELECT "planet" FROM "weekdays" WHERE "transcription"='wan suk';
## Task Generate a SQL query to answer the following question: `Which planet has the transcription of wan suk?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "weekdays" ( "english_name" text, "thai_name" text, "transcription" text, "color" text, "sanskrit_word" text, "planet" text ); ### SQL Given the database schema, here is the SQL query that answers `Which planet has the transcription of wan suk?`: ```sql
SELECT "year_to_april" FROM "micro_focus_international_plc_financial_" WHERE "revenue_us_million"='434.8';
## Task Generate a SQL query to answer the following question: `What is the year to april when the revenue is 434.8 million dollars?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "micro_focus_international_plc_financial_" ( "year_to_april" real, "revenue_us_million" text, "ebit_us_m" text, "net_profit_us_m" text, "earnings_per_share" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the year to april when the revenue is 434.8 million dollars?`: ```sql
SELECT "ebit_us_m" FROM "micro_focus_international_plc_financial_" WHERE "net_profit_us_m"='120.6';
## Task Generate a SQL query to answer the following question: `What is the dollar amount of ebit when the net profit is 120.6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "micro_focus_international_plc_financial_" ( "year_to_april" real, "revenue_us_million" text, "ebit_us_m" text, "net_profit_us_m" text, "earnings_per_share" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the dollar amount of ebit when the net profit is 120.6?`: ```sql
SELECT "revenue_us_million" FROM "micro_focus_international_plc_financial_" WHERE "net_profit_us_m"='55.4';
## Task Generate a SQL query to answer the following question: `How many dollars is the revenue when the net profit is 55.4 million dollars?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "micro_focus_international_plc_financial_" ( "year_to_april" real, "revenue_us_million" text, "ebit_us_m" text, "net_profit_us_m" text, "earnings_per_share" text ); ### SQL Given the database schema, here is the SQL query that answers `How many dollars is the revenue when the net profit is 55.4 million dollars?`: ```sql
SELECT COUNT("year_to_april") FROM "micro_focus_international_plc_financial_" WHERE "earnings_per_share"='22.0';
## Task Generate a SQL query to answer the following question: `When the earning per share is listed as 22.0 what is the year to april?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "micro_focus_international_plc_financial_" ( "year_to_april" real, "revenue_us_million" text, "ebit_us_m" text, "net_profit_us_m" text, "earnings_per_share" text ); ### SQL Given the database schema, here is the SQL query that answers `When the earning per share is listed as 22.0 what is the year to april?`: ```sql
SELECT "earnings_per_share" FROM "micro_focus_international_plc_financial_" WHERE "net_profit_us_m"='16.2';
## Task Generate a SQL query to answer the following question: `What is the earnings per share when the net profit is 16.2 million dollars?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "micro_focus_international_plc_financial_" ( "year_to_april" real, "revenue_us_million" text, "ebit_us_m" text, "net_profit_us_m" text, "earnings_per_share" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the earnings per share when the net profit is 16.2 million dollars?`: ```sql
SELECT "net_profit_us_m" FROM "micro_focus_international_plc_financial_" WHERE "revenue_us_million"='150.6';
## Task Generate a SQL query to answer the following question: `How much is the net profit when the revenue is 150.6 million dollars?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "micro_focus_international_plc_financial_" ( "year_to_april" real, "revenue_us_million" text, "ebit_us_m" text, "net_profit_us_m" text, "earnings_per_share" text ); ### SQL Given the database schema, here is the SQL query that answers `How much is the net profit when the revenue is 150.6 million dollars?`: ```sql
SELECT "year_ceremony" FROM "submissions" WHERE "result"='Not Nominated' AND "director"='Alberto Aruelo';
## Task Generate a SQL query to answer the following question: `Name the year for not nominated for alberto aruelo` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "original_title" text, "film_title_used_in_nomination" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the year for not nominated for alberto aruelo`: ```sql
SELECT COUNT("director") FROM "submissions" WHERE "original_title"='Oro Diablo';
## Task Generate a SQL query to answer the following question: `Name the total number of director for oro diablo` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "original_title" text, "film_title_used_in_nomination" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of director for oro diablo`: ```sql
SELECT COUNT("result") FROM "submissions" WHERE "film_title_used_in_nomination"='Maroa';
## Task Generate a SQL query to answer the following question: `Name the number of result for maroa` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "original_title" text, "film_title_used_in_nomination" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of result for maroa`: ```sql
SELECT COUNT("director") FROM "submissions" WHERE "original_title"='Huelepega: Ley de la Calle';
## Task Generate a SQL query to answer the following question: `Name the number of director for huelepega: ley de la calle` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "original_title" text, "film_title_used_in_nomination" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of director for huelepega: ley de la calle`: ```sql
SELECT "all_neutral" FROM "final_standings" WHERE "b10_pct"='.833';
## Task Generate a SQL query to answer the following question: `What was the win/loss record for All Neutral games for the team whose Big 10 winning percentage was .833?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_standings" ( "team" text, "b10_conference" text, "b10_pct" text, "b10_home" text, "b10_road" text, "all_games" text, "all_games_pct" text, "all_home" text, "all_road" text, "all_neutral" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the win/loss record for All Neutral games for the team whose Big 10 winning percentage was .833?`: ```sql
SELECT "category" FROM "zune_hd_applications" WHERE "version"='1.0' AND "title"='Chord Finder';
## Task Generate a SQL query to answer the following question: `What is the category when the version is 1.0 and the title is Chord finder? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "zune_hd_applications" ( "title" text, "developer" text, "category" text, "function" text, "release_date" text, "version" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the category when the version is 1.0 and the title is Chord finder? `: ```sql
SELECT "release_date" FROM "zune_hd_applications" WHERE "title"='Metronome';
## Task Generate a SQL query to answer the following question: `What was the release date for metronome? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "zune_hd_applications" ( "title" text, "developer" text, "category" text, "function" text, "release_date" text, "version" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the release date for metronome? `: ```sql
SELECT "developer" FROM "zune_hd_applications" WHERE "title"='Windows Live Messenger';
## Task Generate a SQL query to answer the following question: `Who is the developer for Windows live messenger? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "zune_hd_applications" ( "title" text, "developer" text, "category" text, "function" text, "release_date" text, "version" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the developer for Windows live messenger? `: ```sql
SELECT "function" FROM "zune_hd_applications" WHERE "version"='1.4' AND "title"='Windows Live Messenger';
## Task Generate a SQL query to answer the following question: `What is the function of 1.4 version of Windows live messenger? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "zune_hd_applications" ( "title" text, "developer" text, "category" text, "function" text, "release_date" text, "version" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the function of 1.4 version of Windows live messenger? `: ```sql
SELECT "function" FROM "zune_hd_applications" WHERE "release_date"='2011-06-23';
## Task Generate a SQL query to answer the following question: `What functions were released on 2011-06-23? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "zune_hd_applications" ( "title" text, "developer" text, "category" text, "function" text, "release_date" text, "version" text ); ### SQL Given the database schema, here is the SQL query that answers `What functions were released on 2011-06-23? `: ```sql
SELECT "cospar_id" FROM "table1_18161217_2" WHERE "estimated_operational_life"='2 months' AND "satellite"='Kosmos 2397';
## Task Generate a SQL query to answer the following question: `What is the cospar ID of the Kosmos 2397 satellite, which has an operational life of 2 months?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18161217_2" ( "satellite" text, "cospar_id" text, "satcat_no" real, "product_number" real, "launch_date" text, "estimated_end_date_clarification_needed" text, "estimated_operational_life" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the cospar ID of the Kosmos 2397 satellite, which has an operational life of 2 months?`: ```sql
SELECT "launch_date" FROM "table1_18161217_2" WHERE "cospar_id"='2008-033A';
## Task Generate a SQL query to answer the following question: `What was the launch date the satellite with cospar ID is 2008-033A?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18161217_2" ( "satellite" text, "cospar_id" text, "satcat_no" real, "product_number" real, "launch_date" text, "estimated_end_date_clarification_needed" text, "estimated_operational_life" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the launch date the satellite with cospar ID is 2008-033A?`: ```sql
SELECT "cospar_id" FROM "table1_18161217_2" WHERE "satellite"='Kosmos 2379';
## Task Generate a SQL query to answer the following question: `What it the international designation for the kosmos 2379 satellite?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18161217_2" ( "satellite" text, "cospar_id" text, "satcat_no" real, "product_number" real, "launch_date" text, "estimated_end_date_clarification_needed" text, "estimated_operational_life" text ); ### SQL Given the database schema, here is the SQL query that answers `What it the international designation for the kosmos 2379 satellite?`: ```sql
SELECT "estimated_end_date_clarification_needed" FROM "table1_18161217_2" WHERE "cospar_id"='2001-037A';
## Task Generate a SQL query to answer the following question: `What is the estimated end date for the 2001-037a international designated satellite?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18161217_2" ( "satellite" text, "cospar_id" text, "satcat_no" real, "product_number" real, "launch_date" text, "estimated_end_date_clarification_needed" text, "estimated_operational_life" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the estimated end date for the 2001-037a international designated satellite?`: ```sql
SELECT "city" FROM "undergraduate_chapters_associate_chapter" WHERE "charter_date"='December 4, 2011';
## Task Generate a SQL query to answer the following question: `in which city was charter date december 4, 2011` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "undergraduate_chapters_associate_chapter" ( "greek_designation" text, "collegiate_institution" text, "charter_date" text, "status" text, "city" text, "u_s_state_district" text ); ### SQL Given the database schema, here is the SQL query that answers `in which city was charter date december 4, 2011`: ```sql
SELECT COUNT("greek_designation") FROM "undergraduate_chapters_associate_chapter" WHERE "city"='Tampa';
## Task Generate a SQL query to answer the following question: `how mnay greek designation in tampa` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "undergraduate_chapters_associate_chapter" ( "greek_designation" text, "collegiate_institution" text, "charter_date" text, "status" text, "city" text, "u_s_state_district" text ); ### SQL Given the database schema, here is the SQL query that answers `how mnay greek designation in tampa`: ```sql
SELECT "status" FROM "undergraduate_chapters_associate_chapter" WHERE "city"='Vestal';
## Task Generate a SQL query to answer the following question: `what is the status in vestal` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "undergraduate_chapters_associate_chapter" ( "greek_designation" text, "collegiate_institution" text, "charter_date" text, "status" text, "city" text, "u_s_state_district" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the status in vestal`: ```sql
SELECT "collegiate_institution" FROM "undergraduate_chapters_associate_chapter" WHERE "city"='Queens';
## Task Generate a SQL query to answer the following question: `what is the collegiate institution in queens` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "undergraduate_chapters_associate_chapter" ( "greek_designation" text, "collegiate_institution" text, "charter_date" text, "status" text, "city" text, "u_s_state_district" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the collegiate institution in queens`: ```sql
SELECT "original_title" FROM "table1_18162883_1" WHERE "film_title_used_in_nomination"='Run for Money';
## Task Generate a SQL query to answer the following question: `What was the original title of Run for Money?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18162883_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 `What was the original title of Run for Money?`: ```sql
SELECT "tuesday" FROM "table1_18173916_6" WHERE "thursday"='196 Buried';
## Task Generate a SQL query to answer the following question: `What was the Tuesday episode if theThursday episode was 196 Buried?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18173916_6" ( "episodes" text, "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Tuesday episode if theThursday episode was 196 Buried?`: ```sql
SELECT COUNT("friday") FROM "table1_18173916_6" WHERE "wednesday"='210 Kirby''s Epic Yarn';
## Task Generate a SQL query to answer the following question: `How many episodes were shown on Friday if 210 Kirby's Epic Yarn was shown on Wednesday?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18173916_6" ( "episodes" text, "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes were shown on Friday if 210 Kirby's Epic Yarn was shown on Wednesday?`: ```sql
SELECT COUNT("friday") FROM "table1_18173916_6" WHERE "wednesday"='190 Boardwalk Empire';
## Task Generate a SQL query to answer the following question: `How many episodes were shown on Friday if 190 Boardwalk Empire was shown on Wednesday?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18173916_6" ( "episodes" text, "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes were shown on Friday if 190 Boardwalk Empire was shown on Wednesday?`: ```sql
SELECT "episodes" FROM "table1_18173916_6" WHERE "tuesday"='224 Assassin''s Creed: Brotherhood Circus Training';
## Task Generate a SQL query to answer the following question: `What were the dates when 224 Assassin's Creed: Brotherhood Circus Training was shown on Tuesday?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18173916_6" ( "episodes" text, "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text ); ### SQL Given the database schema, here is the SQL query that answers `What were the dates when 224 Assassin's Creed: Brotherhood Circus Training was shown on Tuesday?`: ```sql
SELECT "average_attendance_home" FROM "attendances" WHERE "division_section"='Superettan' AND "average_attendance_away"='1.889';
## Task Generate a SQL query to answer the following question: `When the average away attendance is 1.889 in the Superettan, what's the average home attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "attendances" ( "season" real, "average_attendance_home" text, "highest_attendance_home" text, "average_attendance_away" text, "highest_attendance_away" text, "division_section" text, "level" text, "average_attendance_league" text ); ### SQL Given the database schema, here is the SQL query that answers `When the average away attendance is 1.889 in the Superettan, what's the average home attendance?`: ```sql
SELECT MAX("season") FROM "attendances" WHERE "average_attendance_league"='2.572';
## Task Generate a SQL query to answer the following question: `In which season was the average league attendance 2.572?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "attendances" ( "season" real, "average_attendance_home" text, "highest_attendance_home" text, "average_attendance_away" text, "highest_attendance_away" text, "division_section" text, "level" text, "average_attendance_league" text ); ### SQL Given the database schema, here is the SQL query that answers `In which season was the average league attendance 2.572?`: ```sql
SELECT "division_section" FROM "attendances" WHERE "season"=2012;
## Task Generate a SQL query to answer the following question: `In which division did they compete in 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "attendances" ( "season" real, "average_attendance_home" text, "highest_attendance_home" text, "average_attendance_away" text, "highest_attendance_away" text, "division_section" text, "level" text, "average_attendance_league" text ); ### SQL Given the database schema, here is the SQL query that answers `In which division did they compete in 2012?`: ```sql
SELECT "highest_attendance_away" FROM "attendances" WHERE "average_attendance_home"='3.123';
## Task Generate a SQL query to answer the following question: `When the home attendance is 3.123, what's the highest away attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "attendances" ( "season" real, "average_attendance_home" text, "highest_attendance_home" text, "average_attendance_away" text, "highest_attendance_away" text, "division_section" text, "level" text, "average_attendance_league" text ); ### SQL Given the database schema, here is the SQL query that answers `When the home attendance is 3.123, what's the highest away attendance?`: ```sql
SELECT "division_section" FROM "attendances" WHERE "average_attendance_home"='2.459';
## Task Generate a SQL query to answer the following question: `Which division has an average home attendance of 2.459?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "attendances" ( "season" real, "average_attendance_home" text, "highest_attendance_home" text, "average_attendance_away" text, "highest_attendance_away" text, "division_section" text, "level" text, "average_attendance_league" text ); ### SQL Given the database schema, here is the SQL query that answers `Which division has an average home attendance of 2.459?`: ```sql
SELECT COUNT("speed_rank") FROM "indy_500_results" WHERE "car_number"=92;
## Task Generate a SQL query to answer the following question: `How many years was he car number 92?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indy_500_results" ( "year" real, "car_number" real, "start" real, "qual_speed" text, "speed_rank" real, "finish" real, "laps_completed" real, "laps_led" real, "race_status" text, "chassis" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years was he car number 92?`: ```sql
SELECT COUNT("year") FROM "indy_500_results" WHERE "chassis"='Lotus-Ford 38/7';
## Task Generate a SQL query to answer the following question: `How many years was the chassis a lotus-ford 38/7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indy_500_results" ( "year" real, "car_number" real, "start" real, "qual_speed" text, "speed_rank" real, "finish" real, "laps_completed" real, "laps_led" real, "race_status" text, "chassis" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years was the chassis a lotus-ford 38/7?`: ```sql
SELECT "race_status" FROM "indy_500_results" WHERE "chassis"='Lotus-Ford 38/1';
## Task Generate a SQL query to answer the following question: `What was the race status(es) with the lotus-ford 38/1 chassis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indy_500_results" ( "year" real, "car_number" real, "start" real, "qual_speed" text, "speed_rank" real, "finish" real, "laps_completed" real, "laps_led" real, "race_status" text, "chassis" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the race status(es) with the lotus-ford 38/1 chassis?`: ```sql
SELECT "year" FROM "indy_500_results" WHERE "race_status"='Piston';
## Task Generate a SQL query to answer the following question: `What year(s) was the race status piston?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indy_500_results" ( "year" real, "car_number" real, "start" real, "qual_speed" text, "speed_rank" real, "finish" real, "laps_completed" real, "laps_led" real, "race_status" text, "chassis" text ); ### SQL Given the database schema, here is the SQL query that answers `What year(s) was the race status piston?`: ```sql
SELECT MAX("laps_led") FROM "indy_500_results" WHERE "chassis"='Lotus-Ford 34/3';
## Task Generate a SQL query to answer the following question: `What is the largest laps led with the lotus-ford 34/3 chassis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indy_500_results" ( "year" real, "car_number" real, "start" real, "qual_speed" text, "speed_rank" real, "finish" real, "laps_completed" real, "laps_led" real, "race_status" text, "chassis" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest laps led with the lotus-ford 34/3 chassis?`: ```sql
SELECT MAX("population") FROM "2012_calendar_year_ratios_of_crime_per_1" WHERE "city"='Minneapolis';
## Task Generate a SQL query to answer the following question: `What was the population of Minneapolis in 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012_calendar_year_ratios_of_crime_per_1" ( "state" text, "city" text, "population" real, "violent_crime" text, "murder_and_non_negligent_manslaughter" text, "forcible_rape" text, "robbery" text, "aggravated_assault" text, "property_crime" text, "burglary" text, "larceny_theft" text, "motor_vehicle_theft" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the population of Minneapolis in 2012?`: ```sql
SELECT "burglary" FROM "2012_calendar_year_ratios_of_crime_per_1" WHERE "violent_crime"='974.7';
## Task Generate a SQL query to answer the following question: `How many burglaries occurred in the city where the violent crime rate was 974.7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012_calendar_year_ratios_of_crime_per_1" ( "state" text, "city" text, "population" real, "violent_crime" text, "murder_and_non_negligent_manslaughter" text, "forcible_rape" text, "robbery" text, "aggravated_assault" text, "property_crime" text, "burglary" text, "larceny_theft" text, "motor_vehicle_theft" text ); ### SQL Given the database schema, here is the SQL query that answers `How many burglaries occurred in the city where the violent crime rate was 974.7?`: ```sql
SELECT "violent_crime" FROM "2012_calendar_year_ratios_of_crime_per_1" WHERE "robbery"='201.4';
## Task Generate a SQL query to answer the following question: `What was the violent crime rate in the city where the robbery rate was 201.4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012_calendar_year_ratios_of_crime_per_1" ( "state" text, "city" text, "population" real, "violent_crime" text, "murder_and_non_negligent_manslaughter" text, "forcible_rape" text, "robbery" text, "aggravated_assault" text, "property_crime" text, "burglary" text, "larceny_theft" text, "motor_vehicle_theft" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the violent crime rate in the city where the robbery rate was 201.4?`: ```sql
SELECT COUNT("property_crime") FROM "2012_calendar_year_ratios_of_crime_per_1" WHERE "burglary"='224.8';
## Task Generate a SQL query to answer the following question: `How many cities were there in 2012 where the rate of burglary was 224.8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012_calendar_year_ratios_of_crime_per_1" ( "state" text, "city" text, "population" real, "violent_crime" text, "murder_and_non_negligent_manslaughter" text, "forcible_rape" text, "robbery" text, "aggravated_assault" text, "property_crime" text, "burglary" text, "larceny_theft" text, "motor_vehicle_theft" text ); ### SQL Given the database schema, here is the SQL query that answers `How many cities were there in 2012 where the rate of burglary was 224.8?`: ```sql
SELECT "mitchell" FROM "table1_1818471_1" WHERE "author_species"='Temminck & Schlegel, 1849';
## Task Generate a SQL query to answer the following question: `What are all values for Mitchell when the author species is Temminck & Schlegel, 1849?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1818471_1" ( "year" real, "date" text, "type" text, "species" text, "author_species" text, "value" text, "afinsa" real, "scott" text, "mitchell" real, "yvert" text, "sta_gib" real, "order" text, "family" text ); ### SQL Given the database schema, here is the SQL query that answers `What are all values for Mitchell when the author species is Temminck & Schlegel, 1849?`: ```sql
SELECT "value" FROM "table1_1818471_1" WHERE "mitchell"=676;
## Task Generate a SQL query to answer the following question: `What is every value when Mitchell is 676?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1818471_1" ( "year" real, "date" text, "type" text, "species" text, "author_species" text, "value" text, "afinsa" real, "scott" text, "mitchell" real, "yvert" text, "sta_gib" real, "order" text, "family" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every value when Mitchell is 676?`: ```sql
SELECT COUNT("afinsa") FROM "table1_1818471_1" WHERE "value"='5P';
## Task Generate a SQL query to answer the following question: `How many different numbers for Afinsa when value is 5p?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1818471_1" ( "year" real, "date" text, "type" text, "species" text, "author_species" text, "value" text, "afinsa" real, "scott" text, "mitchell" real, "yvert" text, "sta_gib" real, "order" text, "family" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different numbers for Afinsa when value is 5p?`: ```sql
SELECT "scott" FROM "table1_1818471_1" WHERE "date"='(15.12)';
## Task Generate a SQL query to answer the following question: `What is every entry for Scott when the date is (15.12)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1818471_1" ( "year" real, "date" text, "type" text, "species" text, "author_species" text, "value" text, "afinsa" real, "scott" text, "mitchell" real, "yvert" text, "sta_gib" real, "order" text, "family" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every entry for Scott when the date is (15.12)?`: ```sql
SELECT "species" FROM "table1_1818471_1" WHERE "afinsa"=639;
## Task Generate a SQL query to answer the following question: `What is every species when Afinsa is 639?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1818471_1" ( "year" real, "date" text, "type" text, "species" text, "author_species" text, "value" text, "afinsa" real, "scott" text, "mitchell" real, "yvert" text, "sta_gib" real, "order" text, "family" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every species when Afinsa is 639?`: ```sql
SELECT COUNT("order") FROM "table1_1818471_1" WHERE "species"='Pavo cristatus';
## Task Generate a SQL query to answer the following question: `How many orders when the species is Pavo Cristatus?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1818471_1" ( "year" real, "date" text, "type" text, "species" text, "author_species" text, "value" text, "afinsa" real, "scott" text, "mitchell" real, "yvert" text, "sta_gib" real, "order" text, "family" text ); ### SQL Given the database schema, here is the SQL query that answers `How many orders when the species is Pavo Cristatus?`: ```sql
SELECT "constellation" FROM "targets" WHERE "distance_ly"='55.7';
## Task Generate a SQL query to answer the following question: `If the distance is 55.7, what is the name of the constellation?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "targets" ( "hd_designation" text, "constellation" text, "distance_ly" text, "spectral_type" text, "signal_power_k_w" real, "date_sent" text, "arrival_date" text ); ### SQL Given the database schema, here is the SQL query that answers `If the distance is 55.7, what is the name of the constellation?`: ```sql
SELECT COUNT("distance_ly") FROM "targets" WHERE "spectral_type"='G1V';
## Task Generate a SQL query to answer the following question: `If the spectral type is g1v, what is the total distance amount?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "targets" ( "hd_designation" text, "constellation" text, "distance_ly" text, "spectral_type" text, "signal_power_k_w" real, "date_sent" text, "arrival_date" text ); ### SQL Given the database schema, here is the SQL query that answers `If the spectral type is g1v, what is the total distance amount?`: ```sql
SELECT COUNT("hd_designation") FROM "targets" WHERE "arrival_date"='February 2070';
## Task Generate a SQL query to answer the following question: `What is the hd designation for arrival date of February 2070?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "targets" ( "hd_designation" text, "constellation" text, "distance_ly" text, "spectral_type" text, "signal_power_k_w" real, "date_sent" text, "arrival_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the hd designation for arrival date of February 2070?`: ```sql
SELECT "spectral_type" FROM "targets" WHERE "constellation"='Gemini';
## Task Generate a SQL query to answer the following question: `If the constellation is Gemini, what is the spectral type?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "targets" ( "hd_designation" text, "constellation" text, "distance_ly" text, "spectral_type" text, "signal_power_k_w" real, "date_sent" text, "arrival_date" text ); ### SQL Given the database schema, here is the SQL query that answers `If the constellation is Gemini, what is the spectral type?`: ```sql
SELECT COUNT("signal_power_k_w") FROM "targets" WHERE "arrival_date"='January 2059';
## Task Generate a SQL query to answer the following question: `If the arrival date is January 2059, what is the total amount of signal power?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "targets" ( "hd_designation" text, "constellation" text, "distance_ly" text, "spectral_type" text, "signal_power_k_w" real, "date_sent" text, "arrival_date" text ); ### SQL Given the database schema, here is the SQL query that answers `If the arrival date is January 2059, what is the total amount of signal power?`: ```sql
SELECT "constellation" FROM "targets" WHERE "spectral_type"='G1V';
## Task Generate a SQL query to answer the following question: `If the spectral type is g1v, what is the constellation?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "targets" ( "hd_designation" text, "constellation" text, "distance_ly" text, "spectral_type" text, "signal_power_k_w" real, "date_sent" text, "arrival_date" text ); ### SQL Given the database schema, here is the SQL query that answers `If the spectral type is g1v, what is the constellation?`: ```sql
SELECT "artist" FROM "list_of_songs_released_in_2009" WHERE "song_title"='\"Sugarbaby\"';
## Task Generate a SQL query to answer the following question: `What is the artist of the song "sugarbaby"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_songs_released_in_2009" ( "song_title" text, "artist" text, "decade" text, "genre" text, "single_pack_name" text, "release_date" text, "family_friendly" text, "additional_rock_band_3_features" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the artist of the song "sugarbaby"?`: ```sql
SELECT "release_date" FROM "list_of_songs_released_in_2009" WHERE "song_title"='\"Had a Dad\"';
## Task Generate a SQL query to answer the following question: `What is the release date for the song "had a dad"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_songs_released_in_2009" ( "song_title" text, "artist" text, "decade" text, "genre" text, "single_pack_name" text, "release_date" text, "family_friendly" text, "additional_rock_band_3_features" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the release date for the song "had a dad"?`: ```sql
SELECT MAX("no") FROM "lpga_tour_wins_9" WHERE "tournament"='Evian Masters';
## Task Generate a SQL query to answer the following question: `List the total numbers of Evian Masters tournaments. ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_wins_9" ( "no" real, "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text, "winners_share" real ); ### SQL Given the database schema, here is the SQL query that answers `List the total numbers of Evian Masters tournaments. `: ```sql
SELECT "original_air_date" FROM "table1_18217753_1" WHERE "season_num"=9;
## Task Generate a SQL query to answer the following question: `What is the original air date of season 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18217753_1" ( "series_num" real, "season_num" 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 of season 9?`: ```sql
SELECT "written_by" FROM "table1_18217753_1" WHERE "u_s_viewers_millions"='27.11';
## Task Generate a SQL query to answer the following question: `Who were the writers when there were 27.11 million viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18217753_1" ( "series_num" real, "season_num" 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 were the writers when there were 27.11 million viewers?`: ```sql
SELECT COUNT("series_num") FROM "table1_18217753_1" WHERE "u_s_viewers_millions"='23.93';
## Task Generate a SQL query to answer the following question: `How many series had viewers totaling 23.93 million?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18217753_1" ( "series_num" real, "season_num" 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 series had viewers totaling 23.93 million?`: ```sql
SELECT COUNT("original_air_date") FROM "table1_18217753_1" WHERE "u_s_viewers_millions"='26.06';
## Task Generate a SQL query to answer the following question: `How many original air dates totaled 26.06 million viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18217753_1" ( "series_num" real, "season_num" 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 original air dates totaled 26.06 million viewers?`: ```sql
SELECT "title" FROM "table1_18217741_1" WHERE "u_s_viewers_millions"='18.58';
## Task Generate a SQL query to answer the following question: `What is the title when 18.58 u.s. viewers (millions) watched?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18217741_1" ( "series_num" real, "season_num" 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 when 18.58 u.s. viewers (millions) watched?`: ```sql
SELECT COUNT("digital_terrestrial_channel") FROM "availability_of_channels_from_various_pr" WHERE "channel"='Channel 4';
## Task Generate a SQL query to answer the following question: `How many digital terrestrial channels are there for channel 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "availability_of_channels_from_various_pr" ( "position" real, "channel" text, "analogue_terrestrial_channel" text, "digital_terrestrial_channel" text, "internet" text ); ### SQL Given the database schema, here is the SQL query that answers `How many digital terrestrial channels are there for channel 4?`: ```sql
SELECT "channel" FROM "availability_of_channels_from_various_pr" WHERE "digital_terrestrial_channel"='10';
## Task Generate a SQL query to answer the following question: `What is the channel that is on digital terrestrial channel 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "availability_of_channels_from_various_pr" ( "position" real, "channel" text, "analogue_terrestrial_channel" text, "digital_terrestrial_channel" text, "internet" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the channel that is on digital terrestrial channel 10?`: ```sql
SELECT "digital_terrestrial_channel" FROM "availability_of_channels_from_various_pr" WHERE "channel"='ITV3';
## Task Generate a SQL query to answer the following question: `What is the digital terrestria channel number for itv3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "availability_of_channels_from_various_pr" ( "position" real, "channel" text, "analogue_terrestrial_channel" text, "digital_terrestrial_channel" text, "internet" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the digital terrestria channel number for itv3?`: ```sql
SELECT "position" FROM "availability_of_channels_from_various_pr" WHERE "digital_terrestrial_channel"='5 44 (+1)';
## Task Generate a SQL query to answer the following question: `What is the position of digital channel 5 44 (+1)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "availability_of_channels_from_various_pr" ( "position" real, "channel" text, "analogue_terrestrial_channel" text, "digital_terrestrial_channel" text, "internet" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the position of digital channel 5 44 (+1)?`: ```sql
SELECT "delegate" FROM "appointed_delegates_to_various_internati" WHERE "pageant"='Elite Model Look' AND "year">1993.0;
## Task Generate a SQL query to answer the following question: `where pageant is elite model look and year is bigger than 1993.0, who is the delegate?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appointed_delegates_to_various_internati" ( "year" real, "delegate" text, "hometown" text, "pageant" text, "result" text, "other_awards" text ); ### SQL Given the database schema, here is the SQL query that answers `where pageant is elite model look and year is bigger than 1993.0, who is the delegate?`: ```sql
SELECT COUNT("year") FROM "appointed_delegates_to_various_internati" WHERE "pageant"='Miss Globe International' AND "delegate"='Karen Loren Medrano Agustin';
## Task Generate a SQL query to answer the following question: `How many years was the pageant miss globe international and delegate was karen loren medrano agustin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appointed_delegates_to_various_internati" ( "year" real, "delegate" text, "hometown" text, "pageant" text, "result" text, "other_awards" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years was the pageant miss globe international and delegate was karen loren medrano agustin?`: ```sql
SELECT COUNT("pageant") FROM "appointed_delegates_to_various_internati" WHERE "hometown"='San Fernando, Pampanga';
## Task Generate a SQL query to answer the following question: `How many pageants were in san fernando, pampanga?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appointed_delegates_to_various_internati" ( "year" real, "delegate" text, "hometown" text, "pageant" text, "result" text, "other_awards" text ); ### SQL Given the database schema, here is the SQL query that answers `How many pageants were in san fernando, pampanga?`: ```sql
SELECT COUNT("pageant") FROM "appointed_delegates_to_various_internati" WHERE "delegate"='Margaret Ann Awitan Bayot';
## Task Generate a SQL query to answer the following question: `How many pageants were margaret ann awitan bayot the delegate of?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appointed_delegates_to_various_internati" ( "year" real, "delegate" text, "hometown" text, "pageant" text, "result" text, "other_awards" text ); ### SQL Given the database schema, here is the SQL query that answers `How many pageants were margaret ann awitan bayot the delegate of?`: ```sql
SELECT "other_awards" FROM "appointed_delegates_to_various_internati" WHERE "delegate"='Milagros Gutierrez';
## Task Generate a SQL query to answer the following question: `How many awards did milagros gutierrez win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appointed_delegates_to_various_internati" ( "year" real, "delegate" text, "hometown" text, "pageant" text, "result" text, "other_awards" text ); ### SQL Given the database schema, here is the SQL query that answers `How many awards did milagros gutierrez win?`: ```sql
SELECT "hometown" FROM "appointed_delegates_to_various_internati" WHERE "pageant"='Miss Global Teen';
## Task Generate a SQL query to answer the following question: `Where is the miss global teen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appointed_delegates_to_various_internati" ( "year" real, "delegate" text, "hometown" text, "pageant" text, "result" text, "other_awards" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the miss global teen?`: ```sql
SELECT "substrate" FROM "biosynthesis" WHERE "enzyme"='ALA dehydratase';
## Task Generate a SQL query to answer the following question: `what is the subtrate for enzyme ala dehydratase` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "biosynthesis" ( "enzyme" text, "location" text, "substrate" text, "product" text, "chromosome" text, "ec" text, "omim" real, "porphyria" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the subtrate for enzyme ala dehydratase`: ```sql