text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"team_nickname" text,
"years" text,
"new_conference" text,
"new_classification" text
);
Question: What location is listed from 2005-2010?
<|assistant|>
SELECT "location" FROM "former_members" WHERE "years"='2005-2010';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"team_nickname" text,
"years" text,
"new_conference" text,
"new_classification" text
);
Question: Where is the nickname the Red Raiders?
<|assistant|>
SELECT "location" FROM "former_members" WHERE "team_nickname"='Red Raiders';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"team_nickname" text,
"years" text,
"new_conference" text,
"new_classification" text
);
Question: What school has the new conference as SELC?
<|assistant|>
SELECT "institution" FROM "former_members" WHERE "new_conference"='SELC';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"team_nickname" text,
"years" text,
"new_conference" text,
"new_classification" text
);
Question: What are the years that the new classification was MCLA division i?
<|assistant|>
SELECT "years" FROM "former_members" WHERE "new_classification"='MCLA Division I';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26466528_1" (
"school" text,
"nickname" text,
"location" text,
"colors" text,
"join_date" real
);
Question: Name the colors for north canton
<|assistant|>
SELECT "colors" FROM "table1_26466528_1" WHERE "location"='North Canton';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26466528_1" (
"school" text,
"nickname" text,
"location" text,
"colors" text,
"join_date" real
);
Question: Name the most join date
<|assistant|>
SELECT MAX("join_date") FROM "table1_26466528_1";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26466528_1" (
"school" text,
"nickname" text,
"location" text,
"colors" text,
"join_date" real
);
Question: Name the least join date
<|assistant|>
SELECT MIN("join_date") FROM "table1_26466528_1";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26466528_1" (
"school" text,
"nickname" text,
"location" text,
"colors" text,
"join_date" real
);
Question: Name the location for black, orange
<|assistant|>
SELECT "location" FROM "table1_26466528_1" WHERE "colors"='Black, Orange';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26466528_1" (
"school" text,
"nickname" text,
"location" text,
"colors" text,
"join_date" real
);
Question: Name when north canton joined
<|assistant|>
SELECT "join_date" FROM "table1_26466528_1" WHERE "location"='North Canton';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
Question: How many "series" were in the 12th "position?
<|assistant|>
SELECT COUNT("series") FROM "career_summary" WHERE "position"='12th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
Question: How many teams were at 10 points?
<|assistant|>
SELECT COUNT("team") FROM "career_summary" WHERE "points"=10;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
Question: What was the number of podiums in 12th position?
<|assistant|>
SELECT "podiums" FROM "career_summary" WHERE "position"='12th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_nascar_statistics" (
"year" real,
"races" real,
"wins" real,
"poles" real,
"top_5" real,
"top_10" real,
"dnf" real,
"finish" text,
"start" text,
"winnings" text,
"season_rank" text,
"team_s" text
);
Question: Where did he finish when he started at 21.6?
<|assistant|>
SELECT COUNT("finish") FROM "career_nascar_statistics" WHERE "start"='21.6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_nascar_statistics" (
"year" real,
"races" real,
"wins" real,
"poles" real,
"top_5" real,
"top_10" real,
"dnf" real,
"finish" text,
"start" text,
"winnings" text,
"season_rank" text,
"team_s" text
);
Question: What teams started at 39.1?
<|assistant|>
SELECT "team_s" FROM "career_nascar_statistics" WHERE "start"='39.1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_nascar_statistics" (
"year" real,
"races" real,
"wins" real,
"poles" real,
"top_5" real,
"top_10" real,
"dnf" real,
"finish" text,
"start" text,
"winnings" text,
"season_rank" text,
"team_s" text
);
Question: Where did they finish in the season when when they won $491,977?
<|assistant|>
SELECT "season_rank" FROM "career_nascar_statistics" WHERE "winnings"='$491,977';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"song_title" text,
"artist" text,
"year_year_of_songs_original_release_as_listed_in_rock_band_3" real,
"genre" text,
"keyboard_support" text,
"vocal_parts" real,
"nintendo_ds_setlist" text
);
Question: How many vocal parts are there when the year of songs original release date as listed in rock band 3 was 2000?
<|assistant|>
SELECT MIN("vocal_parts") FROM "track_listing" WHERE "year_year_of_songs_original_release_as_listed_in_rock_band_3"=2000;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"song_title" text,
"artist" text,
"year_year_of_songs_original_release_as_listed_in_rock_band_3" real,
"genre" text,
"keyboard_support" text,
"vocal_parts" real,
"nintendo_ds_setlist" text
);
Question: How many different genres appear for the Jimi Hendrix Experience?
<|assistant|>
SELECT COUNT("genre") FROM "track_listing" WHERE "artist"='The Jimi Hendrix Experience';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_kingdom" (
"episode_number_production_number" text,
"title" text,
"original_air_date" text,
"total_viewers_on_fx" text,
"total_viewers_on_fx" text,
"total_viewers" text,
"rank_on_channel" text
);
Question: Name the total viewers on fx+ for night on the sun
<|assistant|>
SELECT "total_viewers_on_fx" FROM "united_kingdom" WHERE "title"='Night on the Sun';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_kingdom" (
"episode_number_production_number" text,
"title" text,
"original_air_date" text,
"total_viewers_on_fx" text,
"total_viewers_on_fx" text,
"total_viewers" text,
"rank_on_channel" text
);
Question: Name the episode number for total viewers on fx+ being 102,000
<|assistant|>
SELECT "episode_number_production_number" FROM "united_kingdom" WHERE "total_viewers_on_fx"='102,000';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_kingdom" (
"episode_number_production_number" text,
"title" text,
"original_air_date" text,
"total_viewers_on_fx" text,
"total_viewers_on_fx" text,
"total_viewers" text,
"rank_on_channel" text
);
Question: Name the title for total viewers on fx+ being 483,000
<|assistant|>
SELECT "title" FROM "united_kingdom" WHERE "total_viewers_on_fx"='483,000';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_kingdom" (
"episode_number_production_number" text,
"title" text,
"original_air_date" text,
"total_viewers_on_fx" text,
"total_viewers_on_fx" text,
"total_viewers" text,
"rank_on_channel" text
);
Question: Name the total viewers on fx+ for 583,000 total viewers
<|assistant|>
SELECT "total_viewers_on_fx" FROM "united_kingdom" WHERE "total_viewers"='583,000';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_kingdom" (
"episode_number_production_number" text,
"title" text,
"original_air_date" text,
"total_viewers_on_fx" text,
"total_viewers_on_fx" text,
"total_viewers" text,
"rank_on_channel" text
);
Question: Name the rank on channel for january 21, 2011
<|assistant|>
SELECT "rank_on_channel" FROM "united_kingdom" WHERE "original_air_date"='January 21, 2011';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26493520_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: How many different people wrote the episode "Beautifully Broken"?
<|assistant|>
SELECT COUNT("written_by") FROM "table1_26493520_1" WHERE "title"='\"Beautifully Broken\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26493520_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: How many episodes were written by Alexander Woo and directed by Scott Winant?
<|assistant|>
SELECT COUNT("title") FROM "table1_26493520_1" WHERE "written_by"='Alexander Woo' AND "directed_by"='Scott Winant';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_pacific_10_conference_football_seas" (
"round" real,
"overall_pick" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Name the most round for jordan cameron
<|assistant|>
SELECT MAX("round") FROM "2010_pacific_10_conference_football_seas" WHERE "player"='Jordan Cameron';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_pacific_10_conference_football_seas" (
"round" real,
"overall_pick" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Name the position for jordan cameron
<|assistant|>
SELECT "position" FROM "2010_pacific_10_conference_football_seas" WHERE "player"='Jordan Cameron';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_pacific_10_conference_football_seas" (
"round" real,
"overall_pick" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Name the position for stanley havili
<|assistant|>
SELECT "position" FROM "2010_pacific_10_conference_football_seas" WHERE "player"='Stanley Havili';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_pacific_10_conference_football_seas" (
"round" real,
"overall_pick" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Name the college for david carter
<|assistant|>
SELECT "college" FROM "2010_pacific_10_conference_football_seas" WHERE "player"='David Carter';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chamber_of_deputies" (
"dist" real,
"democratic_coalition" text,
"alliance" text,
"together_we_can_do_more" text,
"independent_regional_force" text,
"independents" text
);
Question: What is the democratic coalation when together we can do more is sergio castro ( pc )?
<|assistant|>
SELECT "democratic_coalition" FROM "chamber_of_deputies" WHERE "together_we_can_do_more"='Sergio Castro ( PC )';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chamber_of_deputies" (
"dist" real,
"democratic_coalition" text,
"alliance" text,
"together_we_can_do_more" text,
"independent_regional_force" text,
"independents" text
);
Question: What is the independent regional force when alliance is (r) iván norambuena ( udi )?
<|assistant|>
SELECT "independent_regional_force" FROM "chamber_of_deputies" WHERE "alliance"='(R) Iván Norambuena ( UDI )';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chamber_of_deputies" (
"dist" real,
"democratic_coalition" text,
"alliance" text,
"together_we_can_do_more" text,
"independent_regional_force" text,
"independents" text
);
Question: Who is the together we can do more when democratic coalition is rené alinco ( ppd )?
<|assistant|>
SELECT "together_we_can_do_more" FROM "chamber_of_deputies" WHERE "democratic_coalition"='René Alinco ( PPD )';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chamber_of_deputies" (
"dist" real,
"democratic_coalition" text,
"alliance" text,
"together_we_can_do_more" text,
"independent_regional_force" text,
"independents" text
);
Question: Who is the independent regional force when democratic coalition is (r) jorge tarud ( ppd )?
<|assistant|>
SELECT "independent_regional_force" FROM "chamber_of_deputies" WHERE "democratic_coalition"='(R) Jorge Tarud ( PPD )';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate" (
"cons" text,
"democratic_coalition" text,
"alliance" text,
"together_we_can_do_more" text,
"independent_regional_force" text,
"independents" text
);
Question: where together we can do more is gloria mujica ( ph ) what are all the cons.
<|assistant|>
SELECT "cons" FROM "senate" WHERE "together_we_can_do_more"='Gloria Mujica ( PH )';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate" (
"cons" text,
"democratic_coalition" text,
"alliance" text,
"together_we_can_do_more" text,
"independent_regional_force" text,
"independents" text
);
Question: where democratic coalition is eduardo frei ( pdc ) what are all the alliance
<|assistant|>
SELECT "alliance" FROM "senate" WHERE "democratic_coalition"='Eduardo Frei ( PDC )';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2655016_4" (
"season_num" real,
"series_num" real,
"episode_title" text,
"original_air_date" text,
"nick_prod_num" real
);
Question: What's the name of the episode associated with Nick production number 342?
<|assistant|>
SELECT "episode_title" FROM "table1_2655016_4" WHERE "nick_prod_num"=342;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2655016_4" (
"season_num" real,
"series_num" real,
"episode_title" text,
"original_air_date" text,
"nick_prod_num" real
);
Question: What date did season 12 premiere?
<|assistant|>
SELECT "original_air_date" FROM "table1_2655016_4" WHERE "season_num"=12;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2655016_4" (
"season_num" real,
"series_num" real,
"episode_title" text,
"original_air_date" text,
"nick_prod_num" real
);
Question: What is the lowest Nick production number?
<|assistant|>
SELECT MIN("nick_prod_num") FROM "table1_2655016_4";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2655016_10" (
"season_num" real,
"series_num" real,
"episode_title" text,
"original_air_date" text,
"nick_prod_num" real
);
Question: When did the episode originally air with a nick production number of 945?
<|assistant|>
SELECT "original_air_date" FROM "table1_2655016_10" WHERE "nick_prod_num"=945;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2655016_10" (
"season_num" real,
"series_num" real,
"episode_title" text,
"original_air_date" text,
"nick_prod_num" real
);
Question: What was the latest season with a nick production number of 942?
<|assistant|>
SELECT MAX("season_num") FROM "table1_2655016_10" WHERE "nick_prod_num"=942;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26538461_2" (
"portuguese_name" text,
"english_name" text,
"subdivides_in" text,
"equivalence_in_varas" text,
"metrical_equivalence" text
);
Question: Name the metrical equivalence for linha
<|assistant|>
SELECT "metrical_equivalence" FROM "table1_26538461_2" WHERE "portuguese_name"='Linha';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26538461_2" (
"portuguese_name" text,
"english_name" text,
"subdivides_in" text,
"equivalence_in_varas" text,
"metrical_equivalence" text
);
Question: Name the equivalence for varas for geometrical pace
<|assistant|>
SELECT "equivalence_in_varas" FROM "table1_26538461_2" WHERE "english_name"='Geometrical pace';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26538461_2" (
"portuguese_name" text,
"english_name" text,
"subdivides_in" text,
"equivalence_in_varas" text,
"metrical_equivalence" text
);
Question: Name the subdivides in equivalence for varas 1/5
<|assistant|>
SELECT "subdivides_in" FROM "table1_26538461_2" WHERE "equivalence_in_varas"='1/5';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_10_2005" (
"season_num" real,
"series_num" real,
"episode_title" text,
"original_air_date" text,
"nick_prod_num" real
);
Question: How many season # where episode title is " Avril Lavigne "?
<|assistant|>
SELECT "season_num" FROM "season_10_2005" WHERE "episode_title"='\" Avril Lavigne \"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"english_title" text,
"arabic_title" text,
"director" text,
"result" text
);
Question: When موسم زيتون is the arabic title when is the year (ceremony)?
<|assistant|>
SELECT "year_ceremony" FROM "submissions" WHERE "arabic_title"='موسم زيتون';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"english_title" text,
"arabic_title" text,
"director" text,
"result" text
);
Question: When ملح هذا البحر is the arabic title what is the english title?
<|assistant|>
SELECT "english_title" FROM "submissions" WHERE "arabic_title"='ملح هذا البحر';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"english_title" text,
"arabic_title" text,
"director" text,
"result" text
);
Question: When nominee is the result who is the director?
<|assistant|>
SELECT "director" FROM "submissions" WHERE "result"='Nominee';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"english_title" text,
"arabic_title" text,
"director" text,
"result" text
);
Question: When hany abu-assad category:articles with hcards is the director what is the result?
<|assistant|>
SELECT "result" FROM "submissions" WHERE "director"='Hany Abu-Assad Category:Articles with hCards';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"english_title" text,
"arabic_title" text,
"director" text,
"result" text
);
Question: When 2012 (85th) is the year (ceremony) how many results?
<|assistant|>
SELECT COUNT("result") FROM "submissions" WHERE "year_ceremony"='2012 (85th)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"english_title" text,
"arabic_title" text,
"director" text,
"result" text
);
Question: When salt of this sea is the english title who is the director?
<|assistant|>
SELECT "director" FROM "submissions" WHERE "english_title"='Salt of this Sea';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "climate" (
"month" text,
"avg_high" text,
"avg_low" text,
"mean_avg" text,
"precip" text,
"record_high" text,
"record_low" text
);
Question: What was the record lowest temperature with a precipitation of 1.71 in.?
<|assistant|>
SELECT "record_low" FROM "climate" WHERE "precip"='1.71 in.';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26561498_1" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"patient_portrayer" text,
"original_air_date" text,
"production_code" real
);
Question: who directed and produced 176452?
<|assistant|>
SELECT "directed_by" FROM "table1_26561498_1" WHERE "production_code"=176452;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26561498_1" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"patient_portrayer" text,
"original_air_date" text,
"production_code" real
);
Question: what is the original air date for julie warner?
<|assistant|>
SELECT "original_air_date" FROM "table1_26561498_1" WHERE "patient_portrayer"='Julie Warner';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26561498_1" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"patient_portrayer" text,
"original_air_date" text,
"production_code" real
);
Question: what was written by alex carter?
<|assistant|>
SELECT "written_by" FROM "table1_26561498_1" WHERE "patient_portrayer"='Alex Carter';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26561509_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"patient_portrayer" text,
"original_air_date" text,
"production_code" text
);
Question: Who is the patient portrayer of the episode with the production code 3T5004?
<|assistant|>
SELECT "patient_portrayer" FROM "table1_26561509_1" WHERE "production_code"='3T5004';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26561509_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"patient_portrayer" text,
"original_air_date" text,
"production_code" text
);
Question: Who directed the episode with the title "Conor McNamara, 2026"?
<|assistant|>
SELECT "directed_by" FROM "table1_26561509_1" WHERE "title"='\"Conor McNamara, 2026\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26561509_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"patient_portrayer" text,
"original_air_date" text,
"production_code" text
);
Question: The episode with the no. 54, directed by Charles Haid, is written by who?
<|assistant|>
SELECT "written_by" FROM "table1_26561509_1" WHERE "directed_by"='Charles Haid' AND "no"=54;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26561509_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"patient_portrayer" text,
"original_air_date" text,
"production_code" text
);
Question: What is the original air date of the episode with the title "Monica Wilder"?
<|assistant|>
SELECT "original_air_date" FROM "table1_26561509_1" WHERE "title"='\"Monica Wilder\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26561509_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"patient_portrayer" text,
"original_air_date" text,
"production_code" text
);
Question: How many are directed by episodes with the production code 3T5009?
<|assistant|>
SELECT COUNT("directed_by") FROM "table1_26561509_1" WHERE "production_code"='3T5009';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26565904_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: How many millions of US viewers for the episode "the last word"?
<|assistant|>
SELECT "u_s_viewers_millions" FROM "table1_26565904_2" WHERE "title"='\"The Last Word\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episodes_and_ratings" (
"episode" real,
"first_broadcast_denmark_dr1" text,
"official_tns_gallup_ratings" real,
"first_broadcast_uk_bbc_four" text,
"official_barb_ratings" real
);
Question: When was the first UK broadcast for episode 9?
<|assistant|>
SELECT "first_broadcast_uk_bbc_four" FROM "episodes_and_ratings" WHERE "episode"=9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episodes_and_ratings" (
"episode" real,
"first_broadcast_denmark_dr1" text,
"official_tns_gallup_ratings" real,
"first_broadcast_uk_bbc_four" text,
"official_barb_ratings" real
);
Question: When was the first UK broadcast for the episode with an official TNS Gallup rating of 1575000?
<|assistant|>
SELECT "first_broadcast_uk_bbc_four" FROM "episodes_and_ratings" WHERE "official_tns_gallup_ratings"=1575000;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episodes_and_ratings" (
"episode" real,
"first_broadcast_denmark_dr1" text,
"official_tns_gallup_ratings" real,
"first_broadcast_uk_bbc_four" text,
"official_barb_ratings" real
);
Question: When was the first UK broadcast when the official Barb ratings was 1085000?
<|assistant|>
SELECT "first_broadcast_uk_bbc_four" FROM "episodes_and_ratings" WHERE "official_barb_ratings"=1085000;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episode_information" (
"episode" real,
"title" text,
"writer" text,
"director" text,
"original_airdate" text,
"ratings_kanto" text,
"ratings_kansai" text
);
Question: Who is the writer with the ratings 14.8?
<|assistant|>
SELECT "writer" FROM "episode_information" WHERE "ratings_kanto"='14.8';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episode_information" (
"episode" real,
"title" text,
"writer" text,
"director" text,
"original_airdate" text,
"ratings_kanto" text,
"ratings_kansai" text
);
Question: What is the original air date for the writer tanaka shinichi?
<|assistant|>
SELECT "original_airdate" FROM "episode_information" WHERE "writer"='Tanaka Shinichi';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episode_information" (
"episode" real,
"title" text,
"writer" text,
"director" text,
"original_airdate" text,
"ratings_kanto" text,
"ratings_kansai" text
);
Question: What is the ratings for the original air date may 25, 2010 22.00 - 22.54?
<|assistant|>
SELECT "ratings_kansai" FROM "episode_information" WHERE "original_airdate"='May 25, 2010 22.00 - 22.54';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episode_information" (
"episode" real,
"title" text,
"writer" text,
"director" text,
"original_airdate" text,
"ratings_kanto" text,
"ratings_kansai" text
);
Question: What was the ratings for episode 11?
<|assistant|>
SELECT "ratings_kanto" FROM "episode_information" WHERE "episode"=11;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"position_in_table" text,
"incoming_manager" text,
"date_of_appointment" text
);
Question: Who was the outgoing manager of the team whose incoming manager was Dougie Freedman?
<|assistant|>
SELECT "outgoing_manager" FROM "managerial_changes" WHERE "incoming_manager"='Dougie Freedman';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"position_in_table" text,
"incoming_manager" text,
"date_of_appointment" text
);
Question: What was the table position for the team whose outgoing manager was Brian Laws?
<|assistant|>
SELECT "position_in_table" FROM "managerial_changes" WHERE "outgoing_manager"='Brian Laws';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"position_in_table" text,
"incoming_manager" text,
"date_of_appointment" text
);
Question: How many incoming managers did Burnley have?
<|assistant|>
SELECT COUNT("incoming_manager") FROM "managerial_changes" WHERE "team"='Burnley';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"position_in_table" text,
"incoming_manager" text,
"date_of_appointment" text
);
Question: What was the manner of departure for the team whose incoming manager was George Burley?
<|assistant|>
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "incoming_manager"='George Burley';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "examples" (
"english" text,
"galician_official" text,
"galician_reintegrationist" text,
"portuguese" text,
"spanish" text
);
Question: What is the Galician (reintegrationist) word of the Galician (Official) is bo día / bos días?
<|assistant|>
SELECT "galician_reintegrationist" FROM "examples" WHERE "galician_official"='Bo día / Bos días';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "examples" (
"english" text,
"galician_official" text,
"galician_reintegrationist" text,
"portuguese" text,
"spanish" text
);
Question: What is the Galician (reintegrationist) word of the Galician (Official) is adeus*?
<|assistant|>
SELECT "galician_reintegrationist" FROM "examples" WHERE "galician_official"='Adeus*';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "examples" (
"english" text,
"galician_official" text,
"galician_reintegrationist" text,
"portuguese" text,
"spanish" text
);
Question: What is the Portuguese word for the English word 'grandfather'?
<|assistant|>
SELECT "portuguese" FROM "examples" WHERE "english"='Grandfather';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "examples" (
"english" text,
"galician_official" text,
"galician_reintegrationist" text,
"portuguese" text,
"spanish" text
);
Question: How many Spanish word is there for the Portuguese bem-vindo?
<|assistant|>
SELECT COUNT("spanish") FROM "examples" WHERE "portuguese"='Bem-vindo';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "examples" (
"english" text,
"galician_official" text,
"galician_reintegrationist" text,
"portuguese" text,
"spanish" text
);
Question: What is the Portuguese word for the English word 'welcome'?
<|assistant|>
SELECT "portuguese" FROM "examples" WHERE "english"='Welcome';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sweetspets" (
"name" text,
"sweet" text,
"species" text,
"gender" text,
"attribute" text,
"birthday" text,
"media_debut" text,
"voice_actor" text
);
Question: what gender has an asian black bear?
<|assistant|>
SELECT "gender" FROM "sweetspets" WHERE "species"='Asian black bear';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sweetspets" (
"name" text,
"sweet" text,
"species" text,
"gender" text,
"attribute" text,
"birthday" text,
"media_debut" text,
"voice_actor" text
);
Question: what is the sweet for voice actor saki fujita?
<|assistant|>
SELECT "sweet" FROM "sweetspets" WHERE "voice_actor"='Saki Fujita';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sweetspets" (
"name" text,
"sweet" text,
"species" text,
"gender" text,
"attribute" text,
"birthday" text,
"media_debut" text,
"voice_actor" text
);
Question: whatis the gender wher ethe species is holland lop?
<|assistant|>
SELECT "gender" FROM "sweetspets" WHERE "species"='Holland Lop';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sweetspets" (
"name" text,
"sweet" text,
"species" text,
"gender" text,
"attribute" text,
"birthday" text,
"media_debut" text,
"voice_actor" text
);
Question: what is the media debut for the asian black bear?
<|assistant|>
SELECT "media_debut" FROM "sweetspets" WHERE "species"='Asian black bear';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26614365_1" (
"western" text,
"central" text,
"eastern" text,
"old_galician_13th_15th_c" text,
"portuguese" text,
"spanish" text,
"latin" text,
"english" text
);
Question: What is the Spanish word for cas [ˈkas]?
<|assistant|>
SELECT "spanish" FROM "table1_26614365_1" WHERE "central"='cas [ˈkas]';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26614365_1" (
"western" text,
"central" text,
"eastern" text,
"old_galician_13th_15th_c" text,
"portuguese" text,
"spanish" text,
"latin" text,
"english" text
);
Question: What is the eastern word for "light"?
<|assistant|>
SELECT "eastern" FROM "table1_26614365_1" WHERE "english"='light';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26614365_1" (
"western" text,
"central" text,
"eastern" text,
"old_galician_13th_15th_c" text,
"portuguese" text,
"spanish" text,
"latin" text,
"english" text
);
Question: What is the central word for "robbers"?
<|assistant|>
SELECT "central" FROM "table1_26614365_1" WHERE "english"='robbers';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26614365_1" (
"western" text,
"central" text,
"eastern" text,
"old_galician_13th_15th_c" text,
"portuguese" text,
"spanish" text,
"latin" text,
"english" text
);
Question: What is the Latin for "you sang"?
<|assistant|>
SELECT "latin" FROM "table1_26614365_1" WHERE "english"='you sang';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26614365_1" (
"western" text,
"central" text,
"eastern" text,
"old_galician_13th_15th_c" text,
"portuguese" text,
"spanish" text,
"latin" text,
"english" text
);
Question: What is the western word for "latrones" in Latin?
<|assistant|>
SELECT "western" FROM "table1_26614365_1" WHERE "latin"='latrones';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26614365_1" (
"western" text,
"central" text,
"eastern" text,
"old_galician_13th_15th_c" text,
"portuguese" text,
"spanish" text,
"latin" text,
"english" text
);
Question: What is the Old Galician for cantaste in Portuguese?
<|assistant|>
SELECT "old_galician_13th_15th_c" FROM "table1_26614365_1" WHERE "portuguese"='cantaste';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_water_basins_of_jamaica" (
"hydrographic_basin" text,
"surface_area_km_2" real,
"rainfall_totals_million_m_3" real,
"evapotranspiration_million_m_3" real,
"surface_water_runoff_million_m_3" real,
"groundwater_discharge_million_m_3" real
);
Question: What is the lowest overall amount of rainfall totals (million m 3)?
<|assistant|>
SELECT MIN("rainfall_totals_million_m_3") FROM "major_water_basins_of_jamaica";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_water_basins_of_jamaica" (
"hydrographic_basin" text,
"surface_area_km_2" real,
"rainfall_totals_million_m_3" real,
"evapotranspiration_million_m_3" real,
"surface_water_runoff_million_m_3" real,
"groundwater_discharge_million_m_3" real
);
Question: When cabarita river is the hydrographic basin what is the lowest groundwater discharge (million m 3)?
<|assistant|>
SELECT MIN("groundwater_discharge_million_m_3") FROM "major_water_basins_of_jamaica" WHERE "hydrographic_basin"='Cabarita River';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_water_basins_of_jamaica" (
"hydrographic_basin" text,
"surface_area_km_2" real,
"rainfall_totals_million_m_3" real,
"evapotranspiration_million_m_3" real,
"surface_water_runoff_million_m_3" real,
"groundwater_discharge_million_m_3" real
);
Question: When martha brae, river is the hydrographic basin what is the rainfall totals (million m 3)?
<|assistant|>
SELECT "rainfall_totals_million_m_3" FROM "major_water_basins_of_jamaica" WHERE "hydrographic_basin"='Martha Brae, River';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics_leaders" (
"category" text,
"player" text,
"games_played" real,
"totals" text,
"average" text
);
Question: Name the average for assists per game
<|assistant|>
SELECT "average" FROM "statistics_leaders" WHERE "category"='Assists per game';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics_leaders" (
"category" text,
"player" text,
"games_played" real,
"totals" text,
"average" text
);
Question: Name the average for 23 games played
<|assistant|>
SELECT "average" FROM "statistics_leaders" WHERE "games_played"=23;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics_leaders" (
"category" text,
"player" text,
"games_played" real,
"totals" text,
"average" text
);
Question: Name the category for 50 totals
<|assistant|>
SELECT "category" FROM "statistics_leaders" WHERE "totals"='50';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics_leaders" (
"category" text,
"player" text,
"games_played" real,
"totals" text,
"average" text
);
Question: Name the number of average for steals per game
<|assistant|>
SELECT COUNT("average") FROM "statistics_leaders" WHERE "category"='Steals per game';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jewelpets" (
"name" text,
"jewel" text,
"species" text,
"gender" text,
"jewel_power" text,
"attribute" text,
"birthday" text,
"media_debut" text,
"voice_actor" text
);
Question: who was the voice actor when the species is hedgehog?
<|assistant|>
SELECT "voice_actor" FROM "jewelpets" WHERE "species"='Hedgehog';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jewelpets" (
"name" text,
"jewel" text,
"species" text,
"gender" text,
"jewel_power" text,
"attribute" text,
"birthday" text,
"media_debut" text,
"voice_actor" text
);
Question: who is the voice actor with the birthday march 26?
<|assistant|>
SELECT "voice_actor" FROM "jewelpets" WHERE "birthday"='March 26';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jewelpets" (
"name" text,
"jewel" text,
"species" text,
"gender" text,
"jewel_power" text,
"attribute" text,
"birthday" text,
"media_debut" text,
"voice_actor" text
);
Question: what is the jewel power when the media debut is ep 17?
<|assistant|>
SELECT "jewel_power" FROM "jewelpets" WHERE "media_debut"='EP 17';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jewelpets" (
"name" text,
"jewel" text,
"species" text,
"gender" text,
"jewel_power" text,
"attribute" text,
"birthday" text,
"media_debut" text,
"voice_actor" text
);
Question: how many times is the jewel malachite?
<|assistant|>
SELECT COUNT("birthday") FROM "jewelpets" WHERE "jewel"='Malachite';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jewelpets" (
"name" text,
"jewel" text,
"species" text,
"gender" text,
"jewel_power" text,
"attribute" text,
"birthday" text,
"media_debut" text,
"voice_actor" text
);
Question: What is the species when jewel is coal?
<|assistant|>
SELECT "species" FROM "jewelpets" WHERE "jewel"='Coal';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26638600_3" (
"rnd" real,
"circuit" text,
"lites_1_race_one_winning_team" text,
"lites_2_race_one_winning_team" text,
"lites_1_race_two_winning_team" text,
"lites_2_race_two_winning_team" text
);
Question: Who was the lights 2 race two winning team when the lites 1 race one winning team was #13 Inspire Motorsports?
<|assistant|>
SELECT "lites_2_race_two_winning_team" FROM "table1_26638600_3" WHERE "lites_1_race_one_winning_team"='#13 Inspire Motorsports';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26638600_3" (
"rnd" real,
"circuit" text,
"lites_1_race_one_winning_team" text,
"lites_2_race_one_winning_team" text,
"lites_1_race_two_winning_team" text,
"lites_2_race_two_winning_team" text
);
Question: How many different circuits had Gary Gibson has the Lites 1 race two winning team?
<|assistant|>
SELECT COUNT("lites_2_race_one_winning_team") FROM "table1_26638600_3" WHERE "lites_1_race_two_winning_team"='Gary Gibson';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26638600_3" (
"rnd" real,
"circuit" text,
"lites_1_race_one_winning_team" text,
"lites_2_race_one_winning_team" text,
"lites_1_race_two_winning_team" text,
"lites_2_race_two_winning_team" text
);
Question: Who is the lites 2 race two winning team when #11 Performance Tech is the lites 1 race two winning team?
<|assistant|>
SELECT "lites_2_race_two_winning_team" FROM "table1_26638600_3" WHERE "lites_1_race_two_winning_team"='#11 Performance Tech';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.