text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13456202_1" ( "school" text, "location" text, "founded" real, "affiliation" text, "mascot" text, "division" text ); Question: WHat year was north college hill high school founded? <|assistant|> SELECT MAX("founded") FROM "table1_13456202_1" WHERE "school"='North College Hill High School';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Who was the incumbent when ran william b. oliver (d) unopposed? <|assistant|> SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "candidates"='William B. Oliver (D) Unopposed';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Which party was the incumbent from when the cadidates were henry e. barbour (r) 52.1% henry hawson (d) 47.9%? Answer: Democratic <|assistant|> SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Henry E. Barbour (R) 52.1% Henry Hawson (D) 47.9%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Which district was the race between john i. nolan (r) 87% thomas f. feeley (s) 13%? <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "candidates"='John I. Nolan (R) 87% Thomas F. Feeley (S) 13%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What was the net seat gain in the race john a. elston (r) 88.4% luella twining (s) 11.6%? <|assistant|> SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "candidates"='John A. Elston (R) 88.4% Luella Twining (S) 11.6%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Which District was the incumbent Julius Kahn from? Answer: California 4th district <|assistant|> SELECT COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Julius Kahn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What was the result of the election when Clarence F. Lea was the incumbent? <|assistant|> SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Clarence F. Lea';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Which team played in game 20? <|assistant|> SELECT "team" FROM "game_log" WHERE "game"=20;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_under_construction_buildings" ( "rank" real, "name" text, "city" text, "region" text, "height_m" real, "height_ft" real, "floors" real, "estimated_completion" real ); Question: what's the height (ft) with name being leadenhall building <|assistant|> SELECT "height_ft" FROM "tallest_under_construction_buildings" WHERE "name"='Leadenhall Building';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_under_construction_buildings" ( "rank" real, "name" text, "city" text, "region" text, "height_m" real, "height_ft" real, "floors" real, "estimated_completion" real ); Question: what's the height (ft) with name being 52-54 lime street <|assistant|> SELECT "height_ft" FROM "tallest_under_construction_buildings" WHERE "name"='52-54 Lime Street';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_under_construction_buildings" ( "rank" real, "name" text, "city" text, "region" text, "height_m" real, "height_ft" real, "floors" real, "estimated_completion" real ); Question: how many city with name being providence tower <|assistant|> SELECT COUNT("city") FROM "tallest_under_construction_buildings" WHERE "name"='Providence Tower';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_134729_3" ( "frequency" text, "call_sign" text, "name" text, "format" text, "owner" text, "target_city_market" text, "city_of_license" text ); Question: What station has the call number K213cl <|assistant|> SELECT "format" FROM "table1_134729_3" WHERE "call_sign"='K213CL';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_134729_3" ( "frequency" text, "call_sign" text, "name" text, "format" text, "owner" text, "target_city_market" text, "city_of_license" text ); Question: What market is Wessington Springs in <|assistant|> SELECT "target_city_market" FROM "table1_134729_3" WHERE "city_of_license"='Wessington Springs';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_134729_3" ( "frequency" text, "call_sign" text, "name" text, "format" text, "owner" text, "target_city_market" text, "city_of_license" text ); Question: What station owns Moody Bible Institute <|assistant|> SELECT "format" FROM "table1_134729_3" WHERE "owner"='Moody Bible Institute';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: how many date with score being w 113–87 <|assistant|> SELECT COUNT("date") FROM "game_log" WHERE "score"='W 113–87';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: what's the game with record being 29–3 <|assistant|> SELECT "game" FROM "game_log" WHERE "record"='29–3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: who is the the high rebounds with high assbeingts being scottie pippen (9) <|assistant|> SELECT "high_rebounds" FROM "game_log" WHERE "high_assists"='Scottie Pippen (9)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: who is the the high points with score being w 117–93 <|assistant|> SELECT "high_points" FROM "game_log" WHERE "score"='W 117–93';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: what's the record with date being january 13 <|assistant|> SELECT "record" FROM "game_log" WHERE "date"='January 13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: what are all the record where date is january 21 <|assistant|> SELECT "record" FROM "game_log" WHERE "date"='January 21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_134987_3" ( "frequency" text, "call_sign" text, "name" text, "format" text, "owner" text, "target_city_market" text, "city_of_license" text ); Question: What is the name of Rapid City's Adult Contemporary station? <|assistant|> SELECT "name" FROM "table1_134987_3" WHERE "city_of_license"='Rapid City' AND "format"='Adult Contemporary';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_134987_3" ( "frequency" text, "call_sign" text, "name" text, "format" text, "owner" text, "target_city_market" text, "city_of_license" text ); Question: What are the market city/market(s) for Rapid City Alternative format? <|assistant|> SELECT "target_city_market" FROM "table1_134987_3" WHERE "city_of_license"='Rapid City' AND "format"='Alternative';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_134987_3" ( "frequency" text, "call_sign" text, "name" text, "format" text, "owner" text, "target_city_market" text, "city_of_license" text ); Question: What is the frequency for the Christian Kawz-fm Translator station? <|assistant|> SELECT "frequency" FROM "table1_134987_3" WHERE "format"='Christian KAWZ-FM translator';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_134987_3" ( "frequency" text, "call_sign" text, "name" text, "format" text, "owner" text, "target_city_market" text, "city_of_license" text ); Question: What is the target market for the station on 97.9 fm? <|assistant|> SELECT "target_city_market" FROM "table1_134987_3" WHERE "frequency"='97.9 FM';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_134987_3" ( "frequency" text, "call_sign" text, "name" text, "format" text, "owner" text, "target_city_market" text, "city_of_license" text ); Question: What is the frequency of the Classic Country Krki-fm booster station? <|assistant|> SELECT "frequency" FROM "table1_134987_3" WHERE "format"='Classic Country KRKI-FM booster';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_134987_3" ( "frequency" text, "call_sign" text, "name" text, "format" text, "owner" text, "target_city_market" text, "city_of_license" text ); Question: What is the target market of the station with call sign KFXS? <|assistant|> SELECT "target_city_market" FROM "table1_134987_3" WHERE "call_sign"='KFXS';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "american_television_ratings" ( "season" text, "timeslot" text, "season_premiere" text, "season_finale" text, "episodes" real, "tv_season" text, "ranking" text, "viewers_in_millions" text ); Question: What year did the season finale have a total of 10.29 million viewers? <|assistant|> SELECT "season_finale" FROM "american_television_ratings" WHERE "viewers_in_millions"='10.29';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "american_television_ratings" ( "season" text, "timeslot" text, "season_premiere" text, "season_finale" text, "episodes" real, "tv_season" text, "ranking" text, "viewers_in_millions" text ); Question: In what TV season did the 3rd season air? <|assistant|> SELECT "tv_season" FROM "american_television_ratings" WHERE "season"='3rd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "american_television_ratings" ( "season" text, "timeslot" text, "season_premiere" text, "season_finale" text, "episodes" real, "tv_season" text, "ranking" text, "viewers_in_millions" text ); Question: How many rankings did the 5th season have? <|assistant|> SELECT COUNT("ranking") FROM "american_television_ratings" WHERE "season"='5th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "american_television_ratings" ( "season" text, "timeslot" text, "season_premiere" text, "season_finale" text, "episodes" real, "tv_season" text, "ranking" text, "viewers_in_millions" text ); Question: How many times did the 2nd season have a finale? <|assistant|> SELECT COUNT("season_finale") FROM "american_television_ratings" WHERE "season"='2nd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nevada_places_ranked_by_per_capita_incom" ( "rank" real, "place" text, "county" text, "per_capita_income" text, "median_house_hold_income" text, "population" real, "number_of_households" real ); Question: how many county with per capita income being $20,101 <|assistant|> SELECT COUNT("county") FROM "nevada_places_ranked_by_per_capita_incom" WHERE "per_capita_income"='$20,101';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nevada_places_ranked_by_per_capita_incom" ( "rank" real, "place" text, "county" text, "per_capita_income" text, "median_house_hold_income" text, "population" real, "number_of_households" real ); Question: who is the the place with per capita income being $14,793 <|assistant|> SELECT "place" FROM "nevada_places_ranked_by_per_capita_incom" WHERE "per_capita_income"='$14,793';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nevada_places_ranked_by_per_capita_incom" ( "rank" real, "place" text, "county" text, "per_capita_income" text, "median_house_hold_income" text, "population" real, "number_of_households" real ); Question: what's the number of households with per capita income being $16,820 <|assistant|> SELECT "number_of_households" FROM "nevada_places_ranked_by_per_capita_incom" WHERE "per_capita_income"='$16,820';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nevada_places_ranked_by_per_capita_incom" ( "rank" real, "place" text, "county" text, "per_capita_income" text, "median_house_hold_income" text, "population" real, "number_of_households" real ); Question: what is the maximum rank with per capita income being $17,013 <|assistant|> SELECT MAX("rank") FROM "nevada_places_ranked_by_per_capita_incom" WHERE "per_capita_income"='$17,013';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_starters" ( "saddle_cloth" real, "horse" text, "trainer" text, "jockey" text, "weight_kg" text, "barrier" real, "placing" text ); Question: How old is Darryll Holland's horse <|assistant|> SELECT "barrier" FROM "race_starters" WHERE "jockey"='Darryll Holland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_starters" ( "saddle_cloth" real, "horse" text, "trainer" text, "jockey" text, "weight_kg" text, "barrier" real, "placing" text ); Question: how many people work with N Rawiller <|assistant|> SELECT COUNT("trainer") FROM "race_starters" WHERE "jockey"='N Rawiller';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_starters" ( "saddle_cloth" real, "horse" text, "trainer" text, "jockey" text, "weight_kg" text, "barrier" real, "placing" text ); Question: How old is Daniel Morton <|assistant|> SELECT MAX("barrier") FROM "race_starters" WHERE "trainer"='Daniel Morton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "d_r" ( "serial_branch" real, "seaman" text, "mechanical" text, "secretariat" text, "supply" text, "electrical" text, "radio_electrical" text, "regulating" text, "medical" text ); Question: How many serial branches have radio electrial = rea-iv? <|assistant|> SELECT COUNT("serial_branch") FROM "d_r" WHERE "radio_electrical"='REA-IV';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "d_r" ( "serial_branch" real, "seaman" text, "mechanical" text, "secretariat" text, "supply" text, "electrical" text, "radio_electrical" text, "regulating" text, "medical" text ); Question: What are radio electricals when secretariat is wtr i? <|assistant|> SELECT "radio_electrical" FROM "d_r" WHERE "secretariat"='WTR I';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "d_r" ( "serial_branch" real, "seaman" text, "mechanical" text, "secretariat" text, "supply" text, "electrical" text, "radio_electrical" text, "regulating" text, "medical" text ); Question: What are electricals where secretariat is po(w)? <|assistant|> SELECT "electrical" FROM "d_r" WHERE "secretariat"='PO(W)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "d_r" ( "serial_branch" real, "seaman" text, "mechanical" text, "secretariat" text, "supply" text, "electrical" text, "radio_electrical" text, "regulating" text, "medical" text ); Question: What mechanical has lpm regulation? <|assistant|> SELECT "mechanical" FROM "d_r" WHERE "regulating"='LPM';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "d_r" ( "serial_branch" real, "seaman" text, "mechanical" text, "secretariat" text, "supply" text, "electrical" text, "radio_electrical" text, "regulating" text, "medical" text ); Question: How many branches have radio electrical=hon s lt(r)? <|assistant|> SELECT COUNT("serial_branch") FROM "d_r" WHERE "radio_electrical"='Hon S Lt(R)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "d_r" ( "serial_branch" real, "seaman" text, "mechanical" text, "secretariat" text, "supply" text, "electrical" text, "radio_electrical" text, "regulating" text, "medical" text ); Question: Who regulates radio electrical = lren? <|assistant|> SELECT "regulating" FROM "d_r" WHERE "radio_electrical"='LREN';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_two_1999_2000" ( "series_number" real, "season_number" real, "episode_title" text, "premiere_date" text, "production_code" real ); Question: What number episode in the series is the episode "things that fly"? <|assistant|> SELECT MAX("series_number") FROM "season_two_1999_2000" WHERE "episode_title"='Things That Fly';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_two_1999_2000" ( "series_number" real, "season_number" real, "episode_title" text, "premiere_date" text, "production_code" real ); Question: What is the production code for season episode 8? <|assistant|> SELECT MIN("production_code") FROM "season_two_1999_2000" WHERE "season_number"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_two_1999_2000" ( "series_number" real, "season_number" real, "episode_title" text, "premiere_date" text, "production_code" real ); Question: How many episodes have a series number of 35? <|assistant|> SELECT COUNT("episode_title") FROM "season_two_1999_2000" WHERE "series_number"=35;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_two_1999_2000" ( "series_number" real, "season_number" real, "episode_title" text, "premiere_date" text, "production_code" real ); Question: What is the series number for season episode 24? <|assistant|> SELECT MIN("series_number") FROM "season_two_1999_2000" WHERE "season_number"=24;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_results" ( "rnd" real, "race" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winning_driver" text, "winning_team" text, "report" text ); Question: how many have times of 6 <|assistant|> SELECT COUNT("fastest_lap") FROM "race_results" WHERE "rnd"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_results" ( "rnd" real, "race" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winning_driver" text, "winning_team" text, "report" text ); Question: which brand have drivers who won with the names of ryan briscoe and tomas scheckter <|assistant|> SELECT "winning_team" FROM "race_results" WHERE "winning_driver"='Ryan Briscoe' AND "fastest_lap"='Tomas Scheckter';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_results" ( "rnd" real, "race" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winning_driver" text, "winning_team" text, "report" text ); Question: who else along with scott dixon and graham rahal drove with the most speed <|assistant|> SELECT "fastest_lap" FROM "race_results" WHERE "most_laps_led"='Scott Dixon' AND "pole_position"='Graham Rahal';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_results" ( "rnd" real, "race" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winning_driver" text, "winning_team" text, "report" text ); Question: tell the number of times where kansas was the location <|assistant|> SELECT COUNT("rnd") FROM "race_results" WHERE "race"='Kansas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1353096_2" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "years_owned" text, "current_status" text ); Question: What TV channel had a license from Boston? <|assistant|> SELECT "channel_tv_dt" FROM "table1_1353096_2" WHERE "city_of_license_market"='Boston';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1353096_2" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "years_owned" text, "current_status" text ); Question: Which station has a license in Fort Collins, Colorado? <|assistant|> SELECT "station" FROM "table1_1353096_2" WHERE "city_of_license_market"='Fort Collins, Colorado';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1353096_2" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "years_owned" text, "current_status" text ); Question: What is the current status of the KDAF ** Station? <|assistant|> SELECT "current_status" FROM "table1_1353096_2" WHERE "station"='KDAF **';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1353096_2" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "years_owned" text, "current_status" text ); Question: How many entries are listed under "current status" for the WJW-TV ++ Station? <|assistant|> SELECT COUNT("current_status") FROM "table1_1353096_2" WHERE "station"='WJW-TV ++';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "owned_since" text, "primary_affiliation" text ); Question: How many stations have fox as the primary affiliation and have been owned since 1986? <|assistant|> SELECT COUNT("station") FROM "stations" WHERE "primary_affiliation"='Fox' AND "owned_since"='1986';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "owned_since" text, "primary_affiliation" text ); Question: What channel has station kdfw ++? <|assistant|> SELECT "channel_tv_dt" FROM "stations" WHERE "station"='KDFW ++';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "owned_since" text, "primary_affiliation" text ); Question: What city has channel tv (dt) 25 (31)? <|assistant|> SELECT "city_of_license_market" FROM "stations" WHERE "channel_tv_dt"='25 (31)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "owned_since" text, "primary_affiliation" text ); Question: How many channel tv (dt)s are in austin, texas? <|assistant|> SELECT COUNT("channel_tv_dt") FROM "stations" WHERE "city_of_license_market"='Austin, Texas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "owned_since" text, "primary_affiliation" text ); Question: When was 10 (10) bought? <|assistant|> SELECT "owned_since" FROM "stations" WHERE "channel_tv_dt"='10 (10)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "west_australian_football_league_2001" ( "season" real, "premiers" text, "runners_up" text, "score" text, "captain" text, "coach" text, "simpson_medal" text, "venue" text, "attendance" real, "umpires" text ); Question: Who were the umpires when Paul Medhurst (C) won the Simpson Medal? <|assistant|> SELECT "umpires" FROM "west_australian_football_league_2001" WHERE "simpson_medal"='Paul Medhurst (C)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "west_australian_football_league_2001" ( "season" real, "premiers" text, "runners_up" text, "score" text, "captain" text, "coach" text, "simpson_medal" text, "venue" text, "attendance" real, "umpires" text ); Question: Who were the umpires when Paul Vines (S) won the Simpson Medal? <|assistant|> SELECT "umpires" FROM "west_australian_football_league_2001" WHERE "simpson_medal"='Paul Vines (S)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "west_australian_football_league_2001" ( "season" real, "premiers" text, "runners_up" text, "score" text, "captain" text, "coach" text, "simpson_medal" text, "venue" text, "attendance" real, "umpires" text ); Question: Which venue did Luke Blackwell serve as captain? <|assistant|> SELECT "venue" FROM "west_australian_football_league_2001" WHERE "captain"='Luke Blackwell';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_statistics" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text ); Question: what's the minimum 180s value <|assistant|> SELECT MIN("180s") FROM "women_s_statistics";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_statistics" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text ); Question: what's the sets won with 140+ being 16 <|assistant|> SELECT "sets_won" FROM "women_s_statistics" WHERE "140"=16;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "returning_this_year_after_a_break_of_one" ( "programme" text, "date_s_of_original_removal" text, "original_channel" text, "date_s_of_return" text, "new_channel_s" text ); Question: What channel number is Gladiators on <|assistant|> SELECT "new_channel_s" FROM "returning_this_year_after_a_break_of_one" WHERE "programme"='Gladiators';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "returning_this_year_after_a_break_of_one" ( "programme" text, "date_s_of_original_removal" text, "original_channel" text, "date_s_of_return" text, "new_channel_s" text ); Question: What show is coming back on in July 2008 <|assistant|> SELECT "programme" FROM "returning_this_year_after_a_break_of_one" WHERE "date_s_of_return"='July 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Who are the mens doubles and womens singles is wang shixian? <|assistant|> SELECT "mens_doubles" FROM "previous_winners" WHERE "womens_singles"='Wang Shixian';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Who is the mens singles and womens singlses is wang shixian? <|assistant|> SELECT "mens_singles" FROM "previous_winners" WHERE "womens_singles"='Wang Shixian';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Who are the mens doubles and and mens singles is lee hyun-il? <|assistant|> SELECT "mens_doubles" FROM "previous_winners" WHERE "mens_singles"='Lee Hyun-il';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Who are the mens singles and womens singles with sun yu? <|assistant|> SELECT "mens_singles" FROM "previous_winners" WHERE "womens_singles"='Sun Yu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_chart" ( "rank_by_average" real, "competition_finish" real, "couple" text, "total" real, "number_of_dances" real, "average" text ); Question: what is the highest number where people got done at 31.1 <|assistant|> SELECT MAX("competition_finish") FROM "average_chart" WHERE "average"='31.1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_chart" ( "rank_by_average" real, "competition_finish" real, "couple" text, "total" real, "number_of_dances" real, "average" text ); Question: who danced 11 and finished at more than a 2.0 <|assistant|> SELECT "couple" FROM "average_chart" WHERE "number_of_dances"=11 AND "competition_finish">2.0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_chart" ( "rank_by_average" real, "competition_finish" real, "couple" text, "total" real, "number_of_dances" real, "average" text ); Question: tell the competitions where the mean is 1 <|assistant|> SELECT "average" FROM "average_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_chart" ( "rank_by_average" real, "competition_finish" real, "couple" text, "total" real, "number_of_dances" real, "average" text ); Question: tell the mean of the times competition for the 7 jigs <|assistant|> SELECT "rank_by_average" FROM "average_chart" WHERE "number_of_dances"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_chart" ( "rank_by_average" real, "competition_finish" real, "couple" text, "total" real, "number_of_dances" real, "average" text ); Question: how many turns were completed to make a mean of 34.0 <|assistant|> SELECT COUNT("number_of_dances") FROM "average_chart" WHERE "average"='34.0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_a_fik_specifications_for_competiti" ( "specification" text, "gender" text, "junior_high_school_12_15_yrs" text, "senior_high_school_15_18_yrs" text, "university_students_and_adults_18yrs" text ); Question: What is the gender of the junior high school is 24mm? <|assistant|> SELECT "gender" FROM "table_a_fik_specifications_for_competiti" WHERE "junior_high_school_12_15_yrs"='24mm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_a_fik_specifications_for_competiti" ( "specification" text, "gender" text, "junior_high_school_12_15_yrs" text, "senior_high_school_15_18_yrs" text, "university_students_and_adults_18yrs" text ); Question: What amount of the university students and adults ehre the the senior high school is 26mm? <|assistant|> SELECT "university_students_and_adults_18yrs" FROM "table_a_fik_specifications_for_competiti" WHERE "senior_high_school_15_18_yrs"='26mm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_a_fik_specifications_for_competiti" ( "specification" text, "gender" text, "junior_high_school_12_15_yrs" text, "senior_high_school_15_18_yrs" text, "university_students_and_adults_18yrs" text ); Question: What amount of senior high school where junior high school is 114cm? <|assistant|> SELECT "senior_high_school_15_18_yrs" FROM "table_a_fik_specifications_for_competiti" WHERE "junior_high_school_12_15_yrs"='114cm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_a_fik_specifications_for_competiti" ( "specification" text, "gender" text, "junior_high_school_12_15_yrs" text, "senior_high_school_15_18_yrs" text, "university_students_and_adults_18yrs" text ); Question: What is the specification where senior high school is 25mm? <|assistant|> SELECT "specification" FROM "table_a_fik_specifications_for_competiti" WHERE "senior_high_school_15_18_yrs"='25mm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_a_fik_specifications_for_competiti" ( "specification" text, "gender" text, "junior_high_school_12_15_yrs" text, "senior_high_school_15_18_yrs" text, "university_students_and_adults_18yrs" text ); Question: What amount is the junior high school where the gender is male and the specification is minimum diameter of sakigawa? <|assistant|> SELECT "junior_high_school_12_15_yrs" FROM "table_a_fik_specifications_for_competiti" WHERE "gender"='Male' AND "specification"='Minimum diameter of sakigawa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_a_fik_specifications_for_competiti" ( "specification" text, "gender" text, "junior_high_school_12_15_yrs" text, "senior_high_school_15_18_yrs" text, "university_students_and_adults_18yrs" text ); Question: What is the gender of senior high school 26mm? <|assistant|> SELECT "gender" FROM "table_a_fik_specifications_for_competiti" WHERE "senior_high_school_15_18_yrs"='26mm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What was the score of the game when the team was 1-2? <|assistant|> SELECT "score" FROM "game_log" WHERE "record"='1-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who had the high assists against charlotte? <|assistant|> SELECT "high_assists" FROM "game_log" WHERE "team"='Charlotte';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: How many leading scorers were there in the game against Utah? <|assistant|> SELECT COUNT("high_points") FROM "game_log" WHERE "team"='Utah';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: how many location attendance with team being charlotte <|assistant|> SELECT COUNT("location_attendance") FROM "game_log" WHERE "team"='Charlotte';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: what's the game with date being march 7 <|assistant|> SELECT "game" FROM "game_log" WHERE "date"='March 7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: what's the date with game being 72 <|assistant|> SELECT "date" FROM "game_log" WHERE "game"=72;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: how many high assbeingts with score being l 90–98 (ot) <|assistant|> SELECT COUNT("high_assists") FROM "game_log" WHERE "score"='L 90–98 (OT)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: who is the the high rebounds with team being vancouver <|assistant|> SELECT "high_rebounds" FROM "game_log" WHERE "team"='Vancouver';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: How many pairs of numbers are under record on April 12? <|assistant|> SELECT COUNT("record") FROM "game_log" WHERE "date"='April 12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: Name total number of won for tries for 92 <|assistant|> SELECT COUNT("won") FROM "2009_2010_table" WHERE "tries_for"='92';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: Name the club when tries for is 83 <|assistant|> SELECT "club" FROM "2009_2010_table" WHERE "tries_for"='83';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: Name the try bonus for kenfig hill rfc <|assistant|> SELECT "try_bonus" FROM "2009_2010_table" WHERE "club"='Kenfig Hill RFC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: Name the tries against for played 22 and points against of 183 <|assistant|> SELECT "tries_against" FROM "2009_2010_table" WHERE "played"='22' AND "points_against"='183';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: Name the total number of points for when try bonus is 10 <|assistant|> SELECT COUNT("points_for") FROM "2009_2010_table" WHERE "try_bonus"='10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: Name the number of won for maesteg harlequins rfc <|assistant|> SELECT COUNT("won") FROM "2009_2010_table" WHERE "club"='Maesteg Harlequins RFC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: What amount had all played that lost were 8? <|assistant|> SELECT "played" FROM "2009_2010_table" WHERE "lost"='8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what is the name of the club where drawn is 1 and lost is 10? <|assistant|> SELECT "club" FROM "2009_2010_table" WHERE "drawn"='1' AND "lost"='10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what are the tries where the game was lost by 4? <|assistant|> SELECT "tries_against" FROM "2009_2010_table" WHERE "lost"='4';<|endoftext|>