text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cultural_and_ethnic_composition" (
"self_identification" text,
"moldovan_census" real,
"pct_core_moldova" text,
"transnistrian_census" real,
"pct_transnistria_bender" text,
"total" real,
"pc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cultural_and_ethnic_composition" (
"self_identification" text,
"moldovan_census" real,
"pct_core_moldova" text,
"transnistrian_census" real,
"pct_transnistria_bender" text,
"total" real,
"pc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teletext_binary_nrz_encodings" (
"standard" text,
"color_system" text,
"informational_cvbs_lines" text,
"bit_rate_mbit_s" text,
"waveform" text,
"bits_per_line_including_run_in" real,
"max_c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teletext_binary_nrz_encodings" (
"standard" text,
"color_system" text,
"informational_cvbs_lines" text,
"bit_rate_mbit_s" text,
"waveform" text,
"bits_per_line_including_run_in" real,
"max_c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teletext_binary_nrz_encodings" (
"standard" text,
"color_system" text,
"informational_cvbs_lines" text,
"bit_rate_mbit_s" text,
"waveform" text,
"bits_per_line_including_run_in" real,
"max_c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teletext_binary_nrz_encodings" (
"standard" text,
"color_system" text,
"informational_cvbs_lines" text,
"bit_rate_mbit_s" text,
"waveform" text,
"bits_per_line_including_run_in" real,
"max_c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calculations_are_made_for_the_top_of_eac" (
"currency_bracket" text,
"dollars_taxed_in_bracket" text,
"rate" text,
"taxes_from_bracket" text,
"after_tax_income" text,
"percentage_of_income_kep... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calculations_are_made_for_the_top_of_eac" (
"currency_bracket" text,
"dollars_taxed_in_bracket" text,
"rate" text,
"taxes_from_bracket" text,
"after_tax_income" text,
"percentage_of_income_kep... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"tie_no" real,
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Who is team 1 when team 2 is koper?
<|assistant|>
SELECT "team_1" FROM "se... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"tie_no" real,
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the tie when team 2 is koper?
<|assistant|>
SELECT MIN("tie_no") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"tie_no" real,
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: How many 1st leg have team 1 ofk belgrade?
<|assistant|>
SELECT COUNT("1st... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"tie_no" real,
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: How many tie no have team 1 as borac banja luka?
<|assistant|>
SELECT "tie... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schools" (
"school" text,
"year_founded" text,
"denomination" text,
"language" text,
"grades" text,
"gender" text,
"private_public" text
);
Question: What's the language in the school teach... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schools" (
"school" text,
"year_founded" text,
"denomination" text,
"language" text,
"grades" text,
"gender" text,
"private_public" text
);
Question: What's the language of the school found... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schools" (
"school" text,
"year_founded" text,
"denomination" text,
"language" text,
"grades" text,
"gender" text,
"private_public" text
);
Question: What's the language of the school that ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schools" (
"school" text,
"year_founded" text,
"denomination" text,
"language" text,
"grades" text,
"gender" text,
"private_public" text
);
Question: What's the gender of the students taugh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schools" (
"school" text,
"year_founded" text,
"denomination" text,
"language" text,
"grades" text,
"gender" text,
"private_public" text
);
Question: What's the language of classes in the s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_nationality" (
"country" text,
"total" real,
"champions" real,
"current" real,
"first_driver_s" text,
"last_current_driver_s" text
);
Question: what is the least current
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_nationality" (
"country" text,
"total" real,
"champions" real,
"current" real,
"first_driver_s" text,
"last_current_driver_s" text
);
Question: how many total where last/current driver(s) ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "registered_live_births_by_nationality_an" (
"year" real,
"qatari_male" real,
"qatari_female" real,
"total_qatari" real,
"non_qatari_male" real,
"non_qatari_female" real,
"total_non_qatar" re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "registered_live_births_by_nationality_an" (
"year" real,
"qatari_male" real,
"qatari_female" real,
"total_qatari" real,
"non_qatari_male" real,
"non_qatari_female" real,
"total_non_qatar" re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_statistics" (
"season" text,
"club" text,
"country" text,
"championship" text,
"national_cup" text,
"international_cup" text
);
Question: What is the national cup statistics when the C... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" real,
"date" text,
"city_and_venue" text,
"winner" text,
"runner_up" text,
"3rd_placed" text,
"4th_placed" text,
"results" text
);
Question: How many runner-ups when J... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" real,
"date" text,
"city_and_venue" text,
"winner" text,
"runner_up" text,
"3rd_placed" text,
"4th_placed" text,
"results" text
);
Question: Where did Grzegorz Walasek... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" real,
"date" text,
"city_and_venue" text,
"winner" text,
"runner_up" text,
"3rd_placed" text,
"4th_placed" text,
"results" text
);
Question: Who came in 3rd place in K... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" real,
"date" text,
"city_and_venue" text,
"winner" text,
"runner_up" text,
"3rd_placed" text,
"4th_placed" text,
"results" text
);
Question: How many placed 4th on Apr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_seven_ancient_wonders" (
"name" text,
"date_of_construction" text,
"builder" text,
"date_of_destruction" text,
"cause_of_destruction" text,
"modern_location" text
);
Question: What caused... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_seven_ancient_wonders" (
"name" text,
"date_of_construction" text,
"builder" text,
"date_of_destruction" text,
"cause_of_destruction" text,
"modern_location" text
);
Question: How was the... |
<|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,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|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,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|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,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|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,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"location" text,
"class_1" text,
"best_uk_team" text,
"class_1_200" text,
"class_3" text,
"class_1a" text
);
Question: Name the best uk team for university of birmin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"location" text,
"class_1" text,
"best_uk_team" text,
"class_1_200" text,
"class_3" text,
"class_1a" text
);
Question: Name the class 1-200 for university of hertfor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"location" text,
"class_1" text,
"best_uk_team" text,
"class_1_200" text,
"class_3" text,
"class_1a" text
);
Question: Name the total location for dynamic events win... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"location" text,
"class_1" text,
"best_uk_team" text,
"class_1_200" text,
"class_3" text,
"class_1a" text
);
Question: Name the class 3 for silverstone rmit universi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
Question: When 4th, great lakes is the regular season what is the leagu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
Question: When 5th is the regular season what is the highest season?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
Question: When it's the 2nd round of the open cup what is the playoffs?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"u_s_open_cup" text,
"avg_attendance" real
);
Question: What league has an average atten... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"u_s_open_cup" text,
"avg_attendance" real
);
Question: What year at the US Open Cup qua... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19396259_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_million" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19396259_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_million" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19396259_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_million" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19401346_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_millions"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19401346_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_millions"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19401346_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_millions"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19401346_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_millions"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19401346_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_millions"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"rank_2011" real,
"change_since_2006" text,
"urban_area" text,
"county" text,
"population_2011" real,
"increase_since_2006" text
);
Question: How many places has the rank changed ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"rank_2011" real,
"change_since_2006" text,
"urban_area" text,
"county" text,
"population_2011" real,
"increase_since_2006" text
);
Question: In what counties is the 2011 populati... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"rank_2011" real,
"change_since_2006" text,
"urban_area" text,
"county" text,
"population_2011" real,
"increase_since_2006" text
);
Question: In what urban area is the 2011 popula... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"rank_2011" real,
"change_since_2006" text,
"urban_area" text,
"county" text,
"population_2011" real,
"increase_since_2006" text
);
Question: How many places did the rank change s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"rank_2011" real,
"change_since_2006" text,
"urban_area" text,
"county" text,
"population_2011" real,
"increase_since_2006" text
);
Question: Which urban area has a 2011 populatio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19398910_4" (
"athlete" text,
"class" text,
"event" text,
"bout_1" text,
"bout_2" text,
"bout_3" text,
"bout_4" text,
"bout_5" text,
"bout_6" text,
"rank" text,
"1_8_finals" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19398910_4" (
"athlete" text,
"class" text,
"event" text,
"bout_1" text,
"bout_2" text,
"bout_3" text,
"bout_4" text,
"bout_5" text,
"bout_6" text,
"rank" text,
"1_8_finals" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19398910_4" (
"athlete" text,
"class" text,
"event" text,
"bout_1" text,
"bout_2" text,
"bout_3" text,
"bout_4" text,
"bout_5" text,
"bout_6" text,
"rank" text,
"1_8_finals" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19398910_4" (
"athlete" text,
"class" text,
"event" text,
"bout_1" text,
"bout_2" text,
"bout_3" text,
"bout_4" text,
"bout_5" text,
"bout_6" text,
"rank" text,
"1_8_finals" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_career_passing_records" (
"name" text,
"completions" real,
"attempts" real,
"completion_pct" text,
"yards" real,
"touchdowns" real,
"interceptions" real,
"qb_rating" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_career_passing_records" (
"name" text,
"completions" real,
"attempts" real,
"completion_pct" text,
"yards" real,
"touchdowns" real,
"interceptions" real,
"qb_rating" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_career_passing_records" (
"name" text,
"completions" real,
"attempts" real,
"completion_pct" text,
"yards" real,
"touchdowns" real,
"interceptions" real,
"qb_rating" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_career_passing_records" (
"name" text,
"completions" real,
"attempts" real,
"completion_pct" text,
"yards" real,
"touchdowns" real,
"interceptions" real,
"qb_rating" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_career_passing_records" (
"name" text,
"completions" real,
"attempts" real,
"completion_pct" text,
"yards" real,
"touchdowns" real,
"interceptions" real,
"qb_rating" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_career_passing_records" (
"name" text,
"completions" real,
"attempts" real,
"completion_pct" text,
"yards" real,
"touchdowns" real,
"interceptions" real,
"qb_rating" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1941183_2" (
"week" real,
"date" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
Question: In how many locations was the game ag... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19412902_1" (
"pos" real,
"member_association" text,
"points_total_500" real,
"clubs" real,
"group_stage" real,
"play_off" real,
"afc_cup" real
);
Question: how many posiitions did s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19412902_1" (
"pos" real,
"member_association" text,
"points_total_500" real,
"clubs" real,
"group_stage" real,
"play_off" real,
"afc_cup" real
);
Question: what is the play-off in g... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19412902_1" (
"pos" real,
"member_association" text,
"points_total_500" real,
"clubs" real,
"group_stage" real,
"play_off" real,
"afc_cup" real
);
Question: which group stage was the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19412902_1" (
"pos" real,
"member_association" text,
"points_total_500" real,
"clubs" real,
"group_stage" real,
"play_off" real,
"afc_cup" real
);
Question: which club in group stage... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19417244_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: who wr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19417244_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 ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19417244_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: who di... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19417244_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: who wr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19412902_2" (
"pos" real,
"member_association" text,
"points_total_500" real,
"clubs" text,
"group_stage" real,
"play_off" real,
"afc_cup" real
);
Question: How many clubs are there ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19412902_2" (
"pos" real,
"member_association" text,
"points_total_500" real,
"clubs" text,
"group_stage" real,
"play_off" real,
"afc_cup" real
);
Question: At what position is the a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19412902_2" (
"pos" real,
"member_association" text,
"points_total_500" real,
"clubs" text,
"group_stage" real,
"play_off" real,
"afc_cup" real
);
Question: What is the lowest positi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "whanau_house_system" (
"house_name" text,
"house_mascot" text,
"house_colour" text,
"year_opened" real,
"house_leader" text
);
Question: What is the earliest year a house opened?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "whanau_house_system" (
"house_name" text,
"house_mascot" text,
"house_colour" text,
"year_opened" real,
"house_leader" text
);
Question: How many house colours are associated with house names o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "whanau_house_system" (
"house_name" text,
"house_mascot" text,
"house_colour" text,
"year_opened" real,
"house_leader" text
);
Question: What is the house colour associated with the house name ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "whanau_house_system" (
"house_name" text,
"house_mascot" text,
"house_colour" text,
"year_opened" real,
"house_leader" text
);
Question: How many house mascots are associated with yellow house ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19485888_1" (
"o_o_corresponds_to_the_official_order_as_listed_by_institut_national_de_l_audiovisuel_ina_and_animez_vous_com" text,
"b_b_corresponds_to_tf1s_broadcast_schedule" text,
"title_f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notes" (
"team" text,
"games" real,
"wins" real,
"losses" real,
"ties" real,
"win_pct" text,
"playoff_berths" real,
"division_titles" real,
"postseason_record" text,
"super_bowl_record... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notes" (
"team" text,
"games" real,
"wins" real,
"losses" real,
"ties" real,
"win_pct" text,
"playoff_berths" real,
"division_titles" real,
"postseason_record" text,
"super_bowl_record... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "administrative_divisions_regions_and_sta" (
"no" real,
"state_region" text,
"districts" real,
"town_ships" real,
"cities_towns" real,
"wards" real,
"village_groups" real,
"villages" real
)... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "administrative_divisions_regions_and_sta" (
"no" real,
"state_region" text,
"districts" real,
"town_ships" real,
"cities_towns" real,
"wards" real,
"village_groups" real,
"villages" real
)... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "administrative_divisions_regions_and_sta" (
"no" real,
"state_region" text,
"districts" real,
"town_ships" real,
"cities_towns" real,
"wards" real,
"village_groups" real,
"villages" real
)... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_name" (
"name" text,
"country" text,
"seasons" text,
"championship_titles" text,
"race_entries_starts" text,
"poles" real,
"wins" real,
"podiums" real,
"fastest_laps" real,
"points"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_name" (
"name" text,
"country" text,
"seasons" text,
"championship_titles" text,
"race_entries_starts" text,
"poles" real,
"wins" real,
"podiums" real,
"fastest_laps" real,
"points"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_name" (
"name" text,
"country" text,
"seasons" text,
"championship_titles" text,
"race_entries_starts" text,
"poles" real,
"wins" real,
"podiums" real,
"fastest_laps" real,
"points"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1949746_1" (
"call_sign" text,
"frequency" text,
"city_of_license" text,
"licensee" text,
"format" text
);
Question: When 1180 am is the frequency how many call signs are there?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1949746_1" (
"call_sign" text,
"frequency" text,
"city_of_license" text,
"licensee" text,
"format" text
);
Question: When portsmouth is the city of license who is the licensee?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1949746_1" (
"call_sign" text,
"frequency" text,
"city_of_license" text,
"licensee" text,
"format" text
);
Question: When 790 am is the frequency what is the format?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1949746_1" (
"call_sign" text,
"frequency" text,
"city_of_license" text,
"licensee" text,
"format" text
);
Question: When 90.7 fm is the frequency who is the licensee?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_nationality" (
"country" text,
"total_drivers" real,
"champions" real,
"championships" real,
"current_march_20_2010" real,
"first_driver_s" text,
"last_current_driver_s_march_20_2010" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_nationality" (
"country" text,
"total_drivers" real,
"champions" real,
"championships" real,
"current_march_20_2010" real,
"first_driver_s" text,
"last_current_driver_s_march_20_2010" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_nationality" (
"country" text,
"total_drivers" real,
"champions" real,
"championships" real,
"current_march_20_2010" real,
"first_driver_s" text,
"last_current_driver_s_march_20_2010" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_nationality" (
"country" text,
"total_drivers" real,
"champions" real,
"championships" real,
"current_march_20_2010" real,
"first_driver_s" text,
"last_current_driver_s_march_20_2010" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_nationality" (
"country" text,
"total_drivers" real,
"champions" real,
"championships" real,
"current_march_20_2010" real,
"first_driver_s" text,
"last_current_driver_s_march_20_2010" tex... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.