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