text
stringlengths
411
1.74k
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "awards_achievements" ( "year" real, "organisation" text, "award" text, "nominated_work_title" text, "result" text );. Question: "Which award was given to Lianhe Zaobao?". [/INST] SELECT "award" FROM "awards_achievements" WHERE "organisation"='lianhe zaobao';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1966" ( "title" text, "series" text, "director" text, "release_date" text, "characters" text );. Question: "What's the release date of Feather Finger with an MM Series?". [/INST] SELECT "release_date" FROM "1966" WHERE "series"='mm' AND "title"='feather finger';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fa_premier_league" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real );. Question: "Which Opponent has a Venue of h, and a Result of 0–1, and a Date of 29 august 1998?". [/INST] SELECT "opponent" FROM "fa_premier_league" WHERE "venue"='h' AND "result"='0–1' AND "date"='29 august 1998';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fa_premier_league" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real );. Question: "Which Opponent has a Result of 1–1, and a Date of 28 november 1998?". [/INST] SELECT "opponent" FROM "fa_premier_league" WHERE "result"='1–1' AND "date"='28 november 1998';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fa_premier_league" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real );. Question: "What was the venue on 14 november 1998?". [/INST] SELECT "venue" FROM "fa_premier_league" WHERE "date"='14 november 1998';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "festival_da_can_o_1996" ( "draw" real, "singer" text, "song" text, "points" real, "place" real );. Question: "Which Place is the highest one that has a Draw larger than 1, and 49 Points?". [/INST] SELECT MAX("place") FROM "festival_da_can_o_1996" WHERE "draw">1 AND "points"=49;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "festival_da_can_o_1996" ( "draw" real, "singer" text, "song" text, "points" real, "place" real );. Question: "Which Song has Points smaller than 54, and a Draw smaller than 4, and a Place smaller than 10?". [/INST] SELECT "song" FROM "festival_da_can_o_1996" WHERE "points"<54 AND "draw"<4 AND "place"<10;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the bronze number when the total is 54/". [/INST] SELECT AVG("bronze") FROM "world_championships_total_medals" WHERE "total"=54;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the least bronze number when the silver is less than 0?". [/INST] SELECT MIN("bronze") FROM "world_championships_total_medals" WHERE "silver"<0;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the least silver when the total is more than 2, bronze is 3, gold is more than 0, and rank is 1?". [/INST] SELECT MIN("silver") FROM "world_championships_total_medals" WHERE "total">2 AND "bronze"=3 AND "gold">0 AND "rank"='1';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the number of silver when the total is more than 2, and bronze is less than 3, with a rank of 7?". [/INST] SELECT COUNT("silver") FROM "world_championships_total_medals" WHERE "total">2 AND "bronze"<3 AND "rank"='7';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );. Question: "Which Time has a Lane smaller than 4, and a Rank larger than 6?". [/INST] SELECT AVG("time") FROM "semifinal_2" WHERE "lane"<4 AND "rank">6;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );. Question: "Which Rank has a Nationality of france, and a Name of alain bernard, and a Lane smaller than 6?". [/INST] SELECT AVG("rank") FROM "semifinal_2" WHERE "nationality"='france' AND "name"='alain bernard' AND "lane"<6;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );. Question: "Which Nationality has a Rank larger than 1, and a Time smaller than 22.12, and a Lane smaller than 4, and a Name of ashley callus?". [/INST] SELECT "nationality" FROM "semifinal_2" WHERE "rank">1 AND "time"<22.12 AND "lane"<4 AND "name"='ashley callus';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "attendance_at_home_games" ( "round" text, "date" text, "against" text, "score_aufc_away" text, "attendance" real, "weekday" text );. Question: "When the date is 8 october 2008 what is the sum of attendance?". [/INST] SELECT SUM("attendance") FROM "attendance_at_home_games" WHERE "date"='8 october 2008';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "attendance_at_home_games" ( "round" text, "date" text, "against" text, "score_aufc_away" text, "attendance" real, "weekday" text );. Question: "What date has an against of pohang steelers?". [/INST] SELECT "date" FROM "attendance_at_home_games" WHERE "against"='pohang steelers';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "attendance_at_home_games" ( "round" text, "date" text, "against" text, "score_aufc_away" text, "attendance" real, "weekday" text );. Question: "What weekday has an against of kashima antlers?". [/INST] SELECT "weekday" FROM "attendance_at_home_games" WHERE "against"='kashima antlers';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "record" text );. Question: "What was the final score of Game #4?". [/INST] SELECT "score" FROM "game_log" WHERE "game"=4;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_and_cup_history" ( "season" text, "league_contested" text, "level" real, "league_position" text, "avg_home_attendance_1" text, "fa_cup" text, "fa_trophy" text, "leading_scorer_1" text );. Question: "Which Level has a Leading scorer 1 of tom greaves 8?". [/INST] SELECT "level" FROM "league_and_cup_history" WHERE "leading_scorer_1"='tom greaves 8';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_and_cup_history" ( "season" text, "league_contested" text, "level" real, "league_position" text, "avg_home_attendance_1" text, "fa_cup" text, "fa_trophy" text, "leading_scorer_1" text );. Question: "Which Leading scorer 1 has a Season of 2010–11?". [/INST] SELECT "leading_scorer_1" FROM "league_and_cup_history" WHERE "season"='2010–11';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_and_cup_history" ( "season" text, "league_contested" text, "level" real, "league_position" text, "avg_home_attendance_1" text, "fa_cup" text, "fa_trophy" text, "leading_scorer_1" text );. Question: "Which Leading scorer 1 has a League Contested of northern premier league premier division, and an FA Cup of 2q?". [/INST] SELECT "leading_scorer_1" FROM "league_and_cup_history" WHERE "league_contested"='northern premier league premier division' AND "fa_cup"='2q';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_and_cup_history" ( "season" text, "league_contested" text, "level" real, "league_position" text, "avg_home_attendance_1" text, "fa_cup" text, "fa_trophy" text, "leading_scorer_1" text );. Question: "Which Level has a League Contested of northern premier league premier division, and a Season of 2011–12?". [/INST] SELECT AVG("level") FROM "league_and_cup_history" WHERE "league_contested"='northern premier league premier division' AND "season"='2011–12';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "events" real, "cuts_made" real );. Question: "What is the least Top-5 when 1 is the cuts made?". [/INST] SELECT MIN("top_5") FROM "summary" WHERE "cuts_made"=1;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "events" real, "cuts_made" real );. Question: "With events less than 0, what is the fewest Top-5?". [/INST] SELECT MIN("top_5") FROM "summary" WHERE "events"<0;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "events" real, "cuts_made" real );. Question: "How many wins of average has cuts made less than 0?". [/INST] SELECT AVG("wins") FROM "summary" WHERE "cuts_made"<0;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "events" real, "cuts_made" real );. Question: "How many events total is the Top-5 2, and 4 is the cuts made, and less than 0 wins?". [/INST] SELECT COUNT("events") FROM "summary" WHERE "top_5"=2 AND "cuts_made"=4 AND "wins"<0;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "events" real, "cuts_made" real );. Question: "In the Open Championship with more than 3 cuts made, what is the average wins?". [/INST] SELECT AVG("wins") FROM "summary" WHERE "tournament"='the open championship' AND "cuts_made">3;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "What lane did the barbados swimmer compete in before heat 3?". [/INST] SELECT "lane" FROM "heats" WHERE "heat"<3 AND "nationality"='barbados';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "What was the time of the 5th ranked swimmer who swam after heat 3 and was in a lane under 5?". [/INST] SELECT "time" FROM "heats" WHERE "heat">3 AND "lane"<5 AND "rank"=5;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text );. Question: "What is the average population for an area less than 433.7km and a 23013 code?". [/INST] SELECT AVG("population") FROM "main_places" WHERE "area_km_2"<433.7 AND "code"=23013;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text );. Question: "What is the total code number for Amadiba?". [/INST] SELECT COUNT("code") FROM "main_places" WHERE "place"='amadiba';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rugby_union" ( "club" text, "league" text, "city_town" text, "stadium" text, "capacity" real );. Question: "What is the total capacity for the Leicester Tigers?". [/INST] SELECT COUNT("capacity") FROM "rugby_union" WHERE "club"='leicester tigers';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rugby_union" ( "club" text, "league" text, "city_town" text, "stadium" text, "capacity" real );. Question: "What town has the Welford Road Stadium?". [/INST] SELECT "city_town" FROM "rugby_union" WHERE "stadium"='welford road';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scotland" ( "player" text, "int_l_debut" text, "year" real, "cross_code_debut" text, "date" text, "position" text );. Question: "What date was the Cross Code Debut of rl 1st test great britain v australia, and the Int'l Debut was RU Five Nations v Ireland?". [/INST] SELECT "date" FROM "scotland" WHERE "cross_code_debut"='rl 1st test great britain v australia' AND "int_l_debut"='ru five nations v ireland';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scotland" ( "player" text, "int_l_debut" text, "year" real, "cross_code_debut" text, "date" text, "position" text );. Question: "What year was the player David Rose?". [/INST] SELECT SUM("year") FROM "scotland" WHERE "player"='david rose';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tennessee_counties_ranked_by_per_capita_" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real );. Question: "What is the median family income when the per capita is $24,114?". [/INST] SELECT "median_family_income" FROM "tennessee_counties_ranked_by_per_capita_" WHERE "per_capita_income"='$24,114';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tennessee_counties_ranked_by_per_capita_" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real );. Question: "What is the median household income when the per capita is $21,585?". [/INST] SELECT "median_household_income" FROM "tennessee_counties_ranked_by_per_capita_" WHERE "per_capita_income"='$21,585';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tennessee_counties_ranked_by_per_capita_" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real );. Question: "What is the population where the median family income is $48,446 and there are more than 35,343 households?". [/INST] SELECT AVG("population") FROM "tennessee_counties_ranked_by_per_capita_" WHERE "median_family_income"='$48,446' AND "number_of_households">'35,343';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tennessee_counties_ranked_by_per_capita_" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real );. Question: "What is the population where the median household income is $87,832 and there are fewer than 64,886 households?". [/INST] SELECT AVG("population") FROM "tennessee_counties_ranked_by_per_capita_" WHERE "median_household_income"='$87,832' AND "number_of_households"<'64,886';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "stats" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text, "scorers" text );. Question: "What is the score 1 for the major league soccer all-star game?". [/INST] SELECT "score1" FROM "stats" WHERE "competition_or_tour"='major league soccer all-star game';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "stats" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text, "scorers" text );. Question: "What is the score 1 with a h ground?". [/INST] SELECT "score1" FROM "stats" WHERE "ground"='h';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "stats" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text, "scorers" text );. Question: "Who are the scorers on 1 August 2008, where the ground was A?". [/INST] SELECT "scorers" FROM "stats" WHERE "ground"='a' AND "date"='1 august 2008';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "stats" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text );. Question: "What ground had Portsmouth reserves as an opponent?". [/INST] SELECT "ground" FROM "stats" WHERE "opponent"='portsmouth reserves';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "stats" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text );. Question: "What ground had a match smaller than 6 and Chelsea Reserves as the opponent?". [/INST] SELECT "ground" FROM "stats" WHERE "match"<6 AND "opponent"='chelsea reserves';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws_p_k_wins_p_k_losses" text, "losses" real, "scored" real, "conceded" real, "points" real );. Question: "Which Team has Losses larger than 5, and a Position of 12?". [/INST] SELECT "team" FROM "torneo_clausura" WHERE "losses">5 AND "position"=12;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws_p_k_wins_p_k_losses" text, "losses" real, "scored" real, "conceded" real, "points" real );. Question: "How many Points have a Position larger than 4, and Losses larger than 5, and a Conceded of 15, and a Scored larger than 11?". [/INST] SELECT COUNT("points") FROM "torneo_clausura" WHERE "position">4 AND "losses">5 AND "conceded"=15 AND "scored">11;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws_p_k_wins_p_k_losses" text, "losses" real, "scored" real, "conceded" real, "points" real );. Question: "How many positions have Played smaller than 12?". [/INST] SELECT SUM("position") FROM "torneo_clausura" WHERE "played"<12;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "cardinal_electors" ( "elector" text, "nationality" text, "faction" text, "elevated" text, "elevator" text );. Question: "Who was the Prato Elector with a faction of Italian?". [/INST] SELECT "elector" FROM "cardinal_electors" WHERE "faction"='italian' AND "nationality"='prato';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "cardinal_electors" ( "elector" text, "nationality" text, "faction" text, "elevated" text, "elevator" text );. Question: "What's the elevator of Jacques D'euse?". [/INST] SELECT "elevator" FROM "cardinal_electors" WHERE "elector"='jacques d''euse';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "cardinal_electors" ( "elector" text, "nationality" text, "faction" text, "elevated" text, "elevator" text );. Question: "What's the nationality for Nicholas III?". [/INST] SELECT "nationality" FROM "cardinal_electors" WHERE "elevator"='nicholas iii';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "specimen_set_editions" ( "year" real, "theme" text, "artist" text, "mintage" real, "issue_price" text );. Question: "What is the fewest mintage from Dora de Pédery-Hunt, and the year was before 2002?". [/INST] SELECT MIN("mintage") FROM "specimen_set_editions" WHERE "artist"='dora de pédery-hunt' AND "year"<2002;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "specimen_set_editions" ( "year" real, "theme" text, "artist" text, "mintage" real, "issue_price" text );. Question: "What is the most mintage with common eider as the theme, and the year less than 2008?". [/INST] SELECT MAX("mintage") FROM "specimen_set_editions" WHERE "theme"='common eider' AND "year"<2008;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "specimen_set_editions" ( "year" real, "theme" text, "artist" text, "mintage" real, "issue_price" text );. Question: "What is the earliest year when the 25th Anniversary Loonie was the theme, and the mintage was less than 35,000?". [/INST] SELECT MIN("year") FROM "specimen_set_editions" WHERE "theme"='25th anniversary loonie' AND "mintage"<'35,000';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "specimen_set_editions" ( "year" real, "theme" text, "artist" text, "mintage" real, "issue_price" text );. Question: "Who was the artist that had $49.95 as the issue price for the 2010 year?". [/INST] SELECT "artist" FROM "specimen_set_editions" WHERE "issue_price"='$49.95' AND "year"=2010;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_round" ( "time" text, "home_team" text, "score" text, "away_team" text, "venue" text );. Question: "What is the score for the southern home team?". [/INST] SELECT "score" FROM "first_round" WHERE "home_team"='southern';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_round" ( "time" text, "home_team" text, "score" text, "away_team" text, "venue" text );. Question: "What time is it for the southern home team?". [/INST] SELECT "time" FROM "first_round" WHERE "home_team"='southern';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "score" text, "record" text );. Question: "What is the Result of the game on November 24, 1946?". [/INST] SELECT "result" FROM "schedule" WHERE "date"='november 24, 1946';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "score" text, "record" text );. Question: "What is the Week number on September 6, 1946?". [/INST] SELECT SUM("week") FROM "schedule" WHERE "date"='september 6, 1946';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "score" text, "record" text );. Question: "What is the Date of the game with a Record of 5-3?". [/INST] SELECT "date" FROM "schedule" WHERE "record"='5-3';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );. Question: "What was the lowest ranking rower from Great Britain?". [/INST] SELECT MIN("rank") FROM "heat_2" WHERE "country"='great britain';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );. Question: "What are the notes for the rower in ranks over 2 and having a time of 7:00:46?". [/INST] SELECT "notes" FROM "heat_2" WHERE "rank">2 AND "time"='7:00:46';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "digital_channels" ( "channel" real, "video" text, "aspect" text, "psip_short_name" text, "programming" text );. Question: "Which Programming has a Video of audio only?". [/INST] SELECT "programming" FROM "digital_channels" WHERE "video"='audio only';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "digital_channels" ( "channel" real, "video" text, "aspect" text, "psip_short_name" text, "programming" text );. Question: "Which Video has a Channel of 25.3?". [/INST] SELECT "video" FROM "digital_channels" WHERE "channel"=25.3;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "digital_channels" ( "channel" real, "video" text, "aspect" text, "psip_short_name" text, "programming" text );. Question: "Which Video has an Aspect of 16:9?". [/INST] SELECT "video" FROM "digital_channels" WHERE "aspect"='16:9';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "episodes" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "What is the Original Air date of the episode "Touch and Go"?". [/INST] SELECT "original_air_date" FROM "episodes" WHERE "title"='\"touch and go\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "democratic_primary" ( "source" text, "date" text, "jody_wagner" text, "pat_edmonson" text, "michael_signer" text, "rich_savage" text, "jon_bowerbank" text, "undecided" text );. Question: "On which date did Michael Signer earn 4%?". [/INST] SELECT "date" FROM "democratic_primary" WHERE "michael_signer"='4%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "democratic_primary" ( "source" text, "date" text, "jody_wagner" text, "pat_edmonson" text, "michael_signer" text, "rich_savage" text, "jon_bowerbank" text, "undecided" text );. Question: "Which polling source gave Michael Signer 5%?". [/INST] SELECT "source" FROM "democratic_primary" WHERE "michael_signer"='5%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "democratic_primary" ( "source" text, "date" text, "jody_wagner" text, "pat_edmonson" text, "michael_signer" text, "rich_savage" text, "jon_bowerbank" text, "undecided" text );. Question: "Which date had the undecided percentage at 42%?". [/INST] SELECT "date" FROM "democratic_primary" WHERE "undecided"='42%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "democratic_primary" ( "source" text, "date" text, "jody_wagner" text, "pat_edmonson" text, "michael_signer" text, "rich_savage" text, "jon_bowerbank" text, "undecided" text );. Question: "What is the Rich Savage percentage in the poll with Jody Wagner at 30%?". [/INST] SELECT "rich_savage" FROM "democratic_primary" WHERE "jody_wagner"='30%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "democratic_primary" ( "source" text, "date" text, "jody_wagner" text, "pat_edmonson" text, "michael_signer" text, "rich_savage" text, "jon_bowerbank" text, "undecided" text );. Question: "What is the Rich Savage percentage in the poll that had undecideds at 68%?". [/INST] SELECT "rich_savage" FROM "democratic_primary" WHERE "undecided"='68%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );. Question: "Who was the opponent when the record was 31-24?". [/INST] SELECT "opponent" FROM "game_log" WHERE "record"='31-24';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );. Question: "What was the score of Game 48?". [/INST] SELECT "score" FROM "game_log" WHERE "game"='48';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );. Question: "Who was the opponent at the game at Madison Square Garden?". [/INST] SELECT "opponent" FROM "game_log" WHERE "location_attendance"='madison square garden';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );. Question: "What was the score of the game at Great Western Forum?". [/INST] SELECT "score" FROM "game_log" WHERE "location_attendance"='great western forum';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_winter_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text );. Question: "Which Romaji Title has a Japanese Title of 花より男子2(リターンズ)?". [/INST] SELECT "romaji_title" FROM "2007_winter_season" WHERE "japanese_title"='花より男子2(リターンズ)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_winter_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text );. Question: "Which Romaji Title has a TV Station of fuji tv, and Average Ratings of 12.41%?". [/INST] SELECT "romaji_title" FROM "2007_winter_season" WHERE "tv_station"='fuji tv' AND "average_ratings"='12.41%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_winter_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text );. Question: "Which Japanese Title has more than 9 Episodes, and a Romaji Title of haikei, chichiue-sama?". [/INST] SELECT "japanese_title" FROM "2007_winter_season" WHERE "episodes">9 AND "romaji_title"='haikei, chichiue-sama';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_winter_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text );. Question: "Which Romaji Title has 11 Episodes, and a TV Station of fuji tv, and Average Ratings of 14.9%?". [/INST] SELECT "romaji_title" FROM "2007_winter_season" WHERE "episodes"=11 AND "tv_station"='fuji tv' AND "average_ratings"='14.9%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "artios_awards" ( "year" real, "category" text, "nominee_s" text, "episode" text, "result" text );. Question: "What was the result of nomination for Season 6 after 1995?". [/INST] SELECT "result" FROM "artios_awards" WHERE "year">1995 AND "episode"='season 6';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "artios_awards" ( "year" real, "category" text, "nominee_s" text, "episode" text, "result" text );. Question: "What was the category of the award that John Frank Levey was nominated for after 1995?". [/INST] SELECT "category" FROM "artios_awards" WHERE "nominee_s"='john frank levey' AND "year">1995;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "place" real, "points" real );. Question: "What is the English Translation for the French song by the Artist Rachel?". [/INST] SELECT "english_translation" FROM "results" WHERE "language"='french' AND "artist"='rachel';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "place" real, "points" real );. Question: "What is the Song by Artist Robert Cogoi?". [/INST] SELECT "song" FROM "results" WHERE "artist"='robert cogoi';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "place" real, "points" real );. Question: "How many Points were awarded to Sabahudin Kurt with a Draw is greater than 7?". [/INST] SELECT "points" FROM "results" WHERE "draw">7 AND "artist"='sabahudin kurt';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "great_eastern_section" ( "number" text, "previous_number_s" real, "previous_class" text, "converted" real, "withdrawn" real, "disposal" text );. Question: "How much Converted has a Number of 35, and a Withdrawn smaller than 1952?". [/INST] SELECT COUNT("converted") FROM "great_eastern_section" WHERE "number"='35' AND "withdrawn"<1952;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "great_eastern_section" ( "number" text, "previous_number_s" real, "previous_class" text, "converted" real, "withdrawn" real, "disposal" text );. Question: "How much Withdrawn has a Number of 42, and a Previous Number(s) larger than 68178?". [/INST] SELECT SUM("withdrawn") FROM "great_eastern_section" WHERE "number"='42' AND "previous_number_s">68178;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "great_eastern_section" ( "number" text, "previous_number_s" real, "previous_class" text, "converted" real, "withdrawn" real, "disposal" text );. Question: "Which Withdrawn has a Previous Class of j69, and a Previous Number(s) smaller than 68532, and a Converted larger than 1959?". [/INST] SELECT MAX("withdrawn") FROM "great_eastern_section" WHERE "previous_class"='j69' AND "previous_number_s"<68532 AND "converted">1959;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "r" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real );. Question: "What is the average latitude for townships in Dickey county with water under 2.106 sqmi and population under 95?". [/INST] SELECT AVG("latitude") FROM "r" WHERE "water_sqmi"<2.106 AND "county"='dickey' AND "pop_2010"<95;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "r" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real );. Question: "What is the highest GEO ID for land masses over 38.117 sq mi and over 2.065 sq mi of water?". [/INST] SELECT MAX("geo_id") FROM "r" WHERE "land_sqmi">38.117 AND "water_sqmi">2.065;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "r" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real );. Question: "What is the number of GEO IDs for areas in Riggin township with water area over 0.587 sq mi and ANSI codes over 1759257?". [/INST] SELECT COUNT("geo_id") FROM "r" WHERE "water_sqmi">0.587 AND "township"='riggin' AND "ansi_code">1759257;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "s_rebroadcaster_of_cbf_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text );. Question: "What's the class when the identifier is cbf-fm-14?". [/INST] SELECT "class" FROM "s_rebroadcaster_of_cbf_fm" WHERE "identifier"='cbf-fm-14';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "s_rebroadcaster_of_cbf_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text );. Question: "What's the frequency when the identifier is cbf-fm-9?". [/INST] SELECT "frequency" FROM "s_rebroadcaster_of_cbf_fm" WHERE "identifier"='cbf-fm-9';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "s_rebroadcaster_of_cbf_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text );. Question: "What's the RECNet when the identifier is cbf-fm-20?". [/INST] SELECT "rec_net" FROM "s_rebroadcaster_of_cbf_fm" WHERE "identifier"='cbf-fm-20';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "s_rebroadcaster_of_cbf_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text );. Question: "What's the RECNet when the power is 199 watts?". [/INST] SELECT "rec_net" FROM "s_rebroadcaster_of_cbf_fm" WHERE "power"='199 watts';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "s_rebroadcaster_of_cbf_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text );. Question: "What's the frequency when the identifier is cbf-fm-14 having a class of A?". [/INST] SELECT "frequency" FROM "s_rebroadcaster_of_cbf_fm" WHERE "class"='a' AND "identifier"='cbf-fm-14';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "digital_television" ( "transmitter" text, "bbca" real, "bbcb" text, "d3_4" text, "arqa" text, "arqb" text, "pol" text, "a_g" text );. Question: "What is the A.G. value associated with D3&4 of 46 and transmitter of Seaham?". [/INST] SELECT "a_g" FROM "digital_television" WHERE "d3_4"='46' AND "transmitter"='seaham';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "digital_television" ( "transmitter" text, "bbca" real, "bbcb" text, "d3_4" text, "arqa" text, "arqb" text, "pol" text, "a_g" text );. Question: "What is the AG value associated with a D3&4 of 41?". [/INST] SELECT "a_g" FROM "digital_television" WHERE "d3_4"='41';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles" ( "year" real, "title" text, "billboard_hot_100" text, "uk_singles_chart" text, "album" text );. Question: "What was the billboard hot 100 with an album bust a nut, and the title of "need your lovin' (re-release)"?". [/INST] SELECT "billboard_hot_100" FROM "singles" WHERE "album"='bust a nut' AND "title"='\"need your lovin'' (re-release)\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles" ( "year" real, "title" text, "billboard_hot_100" text, "uk_singles_chart" text, "album" text );. Question: "What is the UK singles chart for the album psychotic supper, in the year 1992, with a title of "song & emotion"?". [/INST] SELECT "uk_singles_chart" FROM "singles" WHERE "album"='psychotic supper' AND "year"=1992 AND "title"='\"song & emotion\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "guest_appearances" ( "artist" text, "album" text, "track_s" text, "date" text, "label" text );. Question: "which Label is in 15 december 1992?". [/INST] SELECT "label" FROM "guest_appearances" WHERE "date"='15 december 1992';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "guest_appearances" ( "artist" text, "album" text, "track_s" text, "date" text, "label" text );. Question: "Which Album has an Artist of various artists (compilation), and a Label of laface?". [/INST] SELECT "album" FROM "guest_appearances" WHERE "artist"='various artists (compilation)' AND "label"='laface';</s>