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