text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11058032_1" ( "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 "list_of_imperial_vicars_1437_1792" ( "interregnum_began" text, "interregnum_ended" text, "duration" text, "count_palatine_of_saxony" text, "count_palatine_of_the_rhine" text ); Question: What i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11075747_4" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: Who directed Episode 8? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11075747_4" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: Who directed the episode called "Tell-ta...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11075747_4" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: What was the original air date for Serie...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11075747_4" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: Who wrote Series 38? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973" ( "1973_democratic_initial_primary" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text ); Question: What i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973" ( "1973_democratic_initial_primary" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text ); Question: Who wo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973" ( "1973_democratic_initial_primary" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text ); Question: What i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973" ( "1973_democratic_initial_primary" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text ); Question: What i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1932" ( "1932_before_recount" text, "party" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text ); Question: wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1932" ( "1932_before_recount" text, "party" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text ); Question: wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1932" ( "1932_before_recount" text, "party" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text ); Question: wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1932" ( "1932_before_recount" text, "party" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text ); Question: wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kensington_lakes_activities_association" ( "team" text, "location" text, "joined" real, "conference" text, "division" text, "previous_conference" text ); Question: Which teams were in the cen...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kensington_lakes_activities_association" ( "team" text, "location" text, "joined" real, "conference" text, "division" text, "previous_conference" text ); Question: Which teams are located in ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kensington_lakes_activities_association" ( "team" text, "location" text, "joined" real, "conference" text, "division" text, "previous_conference" text ); Question: What conference was the chu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11111116_7" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: What wa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11111116_7" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: Who dir...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11111116_7" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: What we...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11111116_7" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: What we...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11111116_7" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: Who dir...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11111116_8" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: How man...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11111116_8" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: How man...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11111116_8" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: Who wro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11111116_6" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: The epi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11111116_6" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: Which e...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11111116_6" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: Who wro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11111116_6" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: How man...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11111116_6" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: How man...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11148572_1" ( "season" real, "mls_cup_winner" text, "mls_cup_runner_up" text, "mls_supporters_shield_winner" text, "mls_supporters_shield_runner_up" text ); Question: What is the name of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11148572_1" ( "season" real, "mls_cup_winner" text, "mls_cup_runner_up" text, "mls_supporters_shield_winner" text, "mls_supporters_shield_runner_up" text ); Question: What is the name of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11148572_1" ( "season" real, "mls_cup_winner" text, "mls_cup_runner_up" text, "mls_supporters_shield_winner" text, "mls_supporters_shield_runner_up" text ); Question: who is the of the s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11148572_1" ( "season" real, "mls_cup_winner" text, "mls_cup_runner_up" text, "mls_supporters_shield_winner" text, "mls_supporters_shield_runner_up" text ); Question: Which shield winner...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sheffield_united_career" ( "season" text, "division" text, "league_apps_sub" real, "league_goals" real, "fa_cup_apps_sub" text, "fa_cup_goals" real, "fl_cup_apps_sub" real, "fl_cup_goals" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sheffield_united_career" ( "season" text, "division" text, "league_apps_sub" real, "league_goals" real, "fa_cup_apps_sub" text, "fa_cup_goals" real, "fl_cup_apps_sub" real, "fl_cup_goals" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regional_auditions" ( "episode_air_date" text, "audition_city" text, "date" text, "first_audition_venue" text, "callback_date" text, "callback_venue" text, "golden_tickets" real ); Question...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regional_auditions" ( "episode_air_date" text, "audition_city" text, "date" text, "first_audition_venue" text, "callback_date" text, "callback_venue" text, "golden_tickets" real ); Question...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11147852_1" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "year_of_affiliation" text, "owned_since" text ); Question: The station located in Albuquerque has been...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11147852_1" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "year_of_affiliation" text, "owned_since" text ); Question: What channels have stations that were affil...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11147852_1" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "year_of_affiliation" text, "owned_since" text ); Question: What market is KTFK-DT in? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volvo_850_quick_information_by_trim_leve" ( "trim" text, "engine" text, "turbo" text, "fuel_delivery" text, "power" text, "torque" text, "transmission" text, "performance" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volvo_850_quick_information_by_trim_leve" ( "trim" text, "engine" text, "turbo" text, "fuel_delivery" text, "power" text, "torque" text, "transmission" text, "performance" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volvo_850_quick_information_by_trim_leve" ( "trim" text, "engine" text, "turbo" text, "fuel_delivery" text, "power" text, "torque" text, "transmission" text, "performance" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volvo_850_quick_information_by_trim_leve" ( "trim" text, "engine" text, "turbo" text, "fuel_delivery" text, "power" text, "torque" text, "transmission" text, "performance" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volvo_850_quick_information_by_trim_leve" ( "trim" text, "engine" text, "turbo" text, "fuel_delivery" text, "power" text, "torque" text, "transmission" text, "performance" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volvo_850_quick_information_by_trim_leve" ( "trim" text, "engine" text, "turbo" text, "fuel_delivery" text, "power" text, "torque" text, "transmission" text, "performance" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_rating_drama_series_of_2007" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_rating_drama_series_of_2007" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_rating_drama_series_of_2007" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_rating_drama_series_of_2007" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" real, "18_49_rating_share" text, "viewers_m" text, "weekly_rank" real ); Question: What is the weekly ra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" real, "18_49_rating_share" text, "viewers_m" text, "weekly_rank" real ); Question: What is the air date ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" real, "18_49_rating_share" text, "viewers_m" text, "weekly_rank" real ); Question: What is the lowest we...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" real, "18_49_rating_share" text, "viewers_m" text, "weekly_rank" real ); Question: What is the episode w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" real, "18_49_rating_share" text, "viewers_m" text, "weekly_rank" real ); Question: What is the viewers w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" real, "18_49_rating_share" text, "viewers_m" text, "weekly_rank" real ); Question: What is the 18-49 rat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real ); Question: What is the highest of balmoor/ <|assistant|> SELECT "highest" FROM "at...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real ); Question: What is the number of capacity at somerset park? <|assistant|> SELECT C...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real ); Question: What is the minimum capacity where airdrie united is? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real ); Question: What is the stadium for alloa athletic? <|assistant|> SELECT "stadium" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real ); Question: What is the highest of ayr united? <|assistant|> SELECT MIN("highest") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real ); Question: What is the average? <|assistant|> SELECT MIN("average") FROM "attendan...
<|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" text ); Question: ...
<|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" text ); Question: ...
<|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" text ); Question: ...
<|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" text ); Question: ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "hand" text, "1_credit" real, "2_credits" real, "3_credits" real, "4_credits" real, "5_credits" text ); Question: How many times is 3 credits 180? <|assistant|> SELECT COUNT("1_cr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "hand" text, "1_credit" real, "2_credits" real, "3_credits" real, "4_credits" real, "5_credits" text ); Question: What is the hand for 4 credits is 1600? <|assistant|> SELECT "han...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "hand" text, "1_credit" real, "2_credits" real, "3_credits" real, "4_credits" real, "5_credits" text ); Question: How many 3 credits are there with 5 credits of 5? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "hand" text, "1_credit" real, "2_credits" real, "3_credits" real, "4_credits" real, "5_credits" text ); Question: How many 4 credits is the hand two pair? <|assistant|> SELECT COU...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "law_enforcement" ( "character" text, "position" text, "actor" text, "first_episode" text, "final_episode" text, "duration" text, "final_episode_count" real ); Question: What duration is lis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "law_enforcement" ( "character" text, "position" text, "actor" text, "first_episode" text, "final_episode" text, "duration" text, "final_episode_count" real ); Question: What was the final e...
<|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 ); Question: What days is greeno...
<|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 ); Question: What are the dates ...
<|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 ); Question: What teams does jim...
<|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 ); Question: What days are vacan...
<|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 ); Question: What manner of depa...
<|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 ); Question: What is the date of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real ); Question: What is the lowest attendance that East End Park has ever had? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real ); Question: What team plays at Palmerston Park? <|assistant|> SELECT "team" FROM "a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real ); Question: What is the lowest attandance recorded at Cappielow? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real ); Question: What is the highest attendance at a game played by St. Johnstone? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real ); Question: What is the highest attandence at a Hamilton Academical game? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "division_i" ( "year" text, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text ); Question: who is the champion where sem...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "division_i" ( "year" text, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text ); Question: what's the score where year i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "division_i" ( "year" text, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text ); Question: what is the total number of se...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "division_i" ( "year" text, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text ); Question: who is the semi-finalist #1 w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "division_i" ( "year" text, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text ); Question: who is the runner-up where ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "division_i" ( "year" text, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text ); Question: who is the runner-up where lo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population_and_distribution" ( "year" real, "numer_of_jamaicans_granted_british_citizenship" real, "naturalisation_by_residence" real, "naturalisation_by_marriage" real, "registration_of_a_minor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population_and_distribution" ( "year" real, "numer_of_jamaicans_granted_british_citizenship" real, "naturalisation_by_residence" real, "naturalisation_by_marriage" real, "registration_of_a_minor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population_and_distribution" ( "year" real, "numer_of_jamaicans_granted_british_citizenship" real, "naturalisation_by_residence" real, "naturalisation_by_marriage" real, "registration_of_a_minor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population_and_distribution" ( "year" real, "numer_of_jamaicans_granted_british_citizenship" real, "naturalisation_by_residence" real, "naturalisation_by_marriage" real, "registration_of_a_minor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population_and_distribution" ( "year" real, "numer_of_jamaicans_granted_british_citizenship" real, "naturalisation_by_residence" real, "naturalisation_by_marriage" real, "registration_of_a_minor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11220799_2" ( "episode_titles" text, "first_air_date" text, "reward" text, "immunity" text, "exiled" text, "eliminated" text, "vote" text, "finish" text ); Question: How many episo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11220799_2" ( "episode_titles" text, "first_air_date" text, "reward" text, "immunity" text, "exiled" text, "eliminated" text, "vote" text, "finish" text ); Question: What were the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11230937_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_11230937_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_11230937_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...