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 "table1_30120555_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "What poor law union is Curradonohoe a part of?". [/INST] SELECT "poor_law_union" FROM "table1_30120555_1" WHERE "townland"='Curradonohoe';</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 "table1_30120619_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "What is the barony for the Ballintaggart townland?". [/INST] SELECT "barony" FROM "table1_30120619_1" WHERE "townland"='Ballintaggart';</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 "table1_30120619_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "What is the poor law union for the Barnahely towland?". [/INST] SELECT "poor_law_union" FROM "table1_30120619_1" WHERE "townland"='Barnahely';</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 "table1_30120619_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "What is the barony of the townland whose area is 150 acres? ". [/INST] SELECT "barony" FROM "table1_30120619_1" WHERE "area_acres"=150;</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 "table1_30120619_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "In which townlands is the civil parish Monkstown? ". [/INST] SELECT "townland" FROM "table1_30120619_1" WHERE "civil_parish"='Monkstown';</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 "table1_30120619_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "Which townland has an area of 165 acres?". [/INST] SELECT "townland" FROM "table1_30120619_1" WHERE "area_acres"=165;</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 "table1_30120559_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "Name the total number of barony for kilmore". [/INST] SELECT COUNT("barony") FROM "table1_30120559_1" WHERE "townland"='Kilmore';</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 "table1_30120559_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "Name the poor law union for area being 332". [/INST] SELECT COUNT("poor_law_union") FROM "table1_30120559_1" WHERE "area_acres"=332;</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 "table1_30121096_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "How many townlands are there for caheragh and is larger than 270 acres?". [/INST] SELECT COUNT("townland") FROM "table1_30121096_1" WHERE "civil_parish"='Caheragh' AND "area_acres"=270;</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 "table1_30121096_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "Which civil parish is for the townland clooncugger?". [/INST] SELECT "civil_parish" FROM "table1_30121096_1" WHERE "townland"='Clooncugger';</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 "table1_30121096_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "How many poor law unions have an area of 262 acres and is in drinagh civil parish?". [/INST] SELECT COUNT("poor_law_union") FROM "table1_30121096_1" WHERE "area_acres"=262 AND "civil_parish"='Drinagh';</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 "table1_30133_1" ( "year" real, "gdp_at_constant_prices_thb_trillions" text, "gdp_at_constant_prices_growth_rate_percent_change" text, "gdp_at_current_prices_usd_billions" text, "export_volume_of_goods_and_services_percent_change" text, "current_account_balance_percent_of_gdp" text );. Question: "How many current account balances are associated with GDP at constant prices growth rates of 4.6?". [/INST] SELECT COUNT("current_account_balance_percent_of_gdp") FROM "table1_30133_1" WHERE "gdp_at_constant_prices_growth_rate_percent_change"='4.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 "table1_30133_1" ( "year" real, "gdp_at_constant_prices_thb_trillions" text, "gdp_at_constant_prices_growth_rate_percent_change" text, "gdp_at_current_prices_usd_billions" text, "export_volume_of_goods_and_services_percent_change" text, "current_account_balance_percent_of_gdp" text );. Question: "How many export volume of goods/services values are associated with GDP at constant prices values of 3.072?". [/INST] SELECT COUNT("export_volume_of_goods_and_services_percent_change") FROM "table1_30133_1" WHERE "gdp_at_constant_prices_thb_trillions"='3.072';</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 "table1_30133_1" ( "year" real, "gdp_at_constant_prices_thb_trillions" text, "gdp_at_constant_prices_growth_rate_percent_change" text, "gdp_at_current_prices_usd_billions" text, "export_volume_of_goods_and_services_percent_change" text, "current_account_balance_percent_of_gdp" text );. Question: "How many export volume of goods and services values are associated with GDP at current prices of 161.340?". [/INST] SELECT COUNT("export_volume_of_goods_and_services_percent_change") FROM "table1_30133_1" WHERE "gdp_at_current_prices_usd_billions"='161.340';</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 "table1_30133_1" ( "year" real, "gdp_at_constant_prices_thb_trillions" text, "gdp_at_constant_prices_growth_rate_percent_change" text, "gdp_at_current_prices_usd_billions" text, "export_volume_of_goods_and_services_percent_change" text, "current_account_balance_percent_of_gdp" text );. Question: "What is the current account balance for an export volume of goods and service value of -4.2?". [/INST] SELECT "current_account_balance_percent_of_gdp" FROM "table1_30133_1" WHERE "export_volume_of_goods_and_services_percent_change"='-4.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 "table1_30133_1" ( "year" real, "gdp_at_constant_prices_thb_trillions" text, "gdp_at_constant_prices_growth_rate_percent_change" text, "gdp_at_current_prices_usd_billions" text, "export_volume_of_goods_and_services_percent_change" text, "current_account_balance_percent_of_gdp" text );. Question: "What is the current account balance for a GDP at current prices of 142.640?". [/INST] SELECT "current_account_balance_percent_of_gdp" FROM "table1_30133_1" WHERE "gdp_at_current_prices_usd_billions"='142.640';</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 "table1_30133_1" ( "year" real, "gdp_at_constant_prices_thb_trillions" text, "gdp_at_constant_prices_growth_rate_percent_change" text, "gdp_at_current_prices_usd_billions" text, "export_volume_of_goods_and_services_percent_change" text, "current_account_balance_percent_of_gdp" text );. Question: "What is the GDP at constant prices for a current account balance of 12.8?". [/INST] SELECT "gdp_at_constant_prices_thb_trillions" FROM "table1_30133_1" WHERE "current_account_balance_percent_of_gdp"='12.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 "list_of_most_career_gold_medals_in_indiv" ( "sport" text, "years" text, "games" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Tell me the games for total less than 4 for swimming 1968". [/INST] SELECT "games" FROM "list_of_most_career_gold_medals_in_indiv" WHERE "total"<4 AND "sport"='swimming' AND "years"='1968';</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 "list_of_most_career_gold_medals_in_indiv" ( "sport" text, "years" text, "games" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Tell me the total number of bronze for silver being 0 and sport of wrestling and total more than 3". [/INST] SELECT COUNT("bronze") FROM "list_of_most_career_gold_medals_in_indiv" WHERE "silver"=0 AND "sport"='wrestling' AND "total">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 "list_of_most_career_gold_medals_in_indiv" ( "sport" text, "years" text, "games" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Tell me the lowest Bronze for gold of 3 in the winter for cross-country skiing and silver less than 0". [/INST] SELECT MIN("bronze") FROM "list_of_most_career_gold_medals_in_indiv" WHERE "gold"=3 AND "games"='winter' AND "sport"='cross-country skiing' AND "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 "2007_jacksonville_jaguars_draft_selectio" ( "round" real, "overall" real, "player" text, "position" text, "college" text );. Question: "What is the lowest round for an offensive guard when the overall is smaller than 150?". [/INST] SELECT MIN("round") FROM "2007_jacksonville_jaguars_draft_selectio" WHERE "overall"<150 AND "position"='offensive guard';</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_jacksonville_jaguars_draft_selectio" ( "round" real, "overall" real, "player" text, "position" text, "college" text );. Question: "Which college was the player selected from in round 1?". [/INST] SELECT "college" FROM "2007_jacksonville_jaguars_draft_selectio" WHERE "round"=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 "career_overview" ( "time_period" text, "position" text, "bureau" text, "office" text, "district_attorney" text );. Question: "Tell me the DA for bureau chief ada". [/INST] SELECT "district_attorney" FROM "career_overview" WHERE "position"='bureau chief ada';</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 "ministers_without_portfolio" ( "portfolio" text, "minister" text, "took_office" text, "left_office" text, "party" text );. Question: "Tell me the left office for enrico la loggia". [/INST] SELECT "left_office" FROM "ministers_without_portfolio" WHERE "minister"='enrico la loggia';</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 "ministers_without_portfolio" ( "portfolio" text, "minister" text, "took_office" text, "left_office" text, "party" text );. Question: "Tell me the portfolio of minister of carlo giovanardi". [/INST] SELECT "portfolio" FROM "ministers_without_portfolio" WHERE "minister"='carlo giovanardi';</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 "ministers_without_portfolio" ( "portfolio" text, "minister" text, "took_office" text, "left_office" text, "party" text );. Question: "Tell me the left office for mirko tremaglia". [/INST] SELECT "left_office" FROM "ministers_without_portfolio" WHERE "minister"='mirko tremaglia';</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 "d" ( "player" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text );. Question: "What School/Club Team has a Player named Juan Dixon and a Position of guard?". [/INST] SELECT "school_club_team" FROM "d" WHERE "position"='guard' AND "player"='juan dixon';</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 "d" ( "player" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text );. Question: "Which Player's Position is guard and played in Toronto during the Years 2007-08?". [/INST] SELECT "player" FROM "d" WHERE "position"='guard' AND "years_in_toronto"='2007-08';</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 "d" ( "player" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text );. Question: "What Player is from Argentina and whose position is a guard-forward?". [/INST] SELECT "player" FROM "d" WHERE "position"='guard-forward' AND "nationality"='argentina';</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 "d" ( "player" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text );. Question: "What School/Club Team played in Toronto during 2012?". [/INST] SELECT "school_club_team" FROM "d" WHERE "years_in_toronto"='2012';</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 "non_championship_results" ( "year" real, "event" text, "venue" text, "driver" text, "result" text, "category" text );. Question: "What was the result of the syracuse grand prix?". [/INST] SELECT "result" FROM "non_championship_results" WHERE "event"='syracuse grand prix';</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 "non_championship_results" ( "year" real, "event" text, "venue" text, "driver" text, "result" text, "category" text );. Question: "What year has a result of 3 in the venue of Jarama.". [/INST] SELECT MIN("year") FROM "non_championship_results" WHERE "result"='3' AND "venue"='jarama';</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" ( "game" real, "date" text, "opponent" text, "result" text, "vikings_points" real, "opponents" real, "record" text, "attendance" real );. Question: "Tell me the highest opponents for record of 7-3 and vikings points more than 7". [/INST] SELECT MAX("opponents") FROM "schedule" WHERE "record"='7-3' AND "vikings_points">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 "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "vikings_points" real, "opponents" real, "record" text, "attendance" real );. Question: "Tell me the most attendance for game less than 1". [/INST] SELECT MAX("attendance") FROM "schedule" WHERE "game"<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 "singles_8" ( "date" text, "location" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "Tell me the surface of 2 december 1974". [/INST] SELECT "surface" FROM "singles_8" WHERE "date"='2 december 1974';</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_8" ( "date" text, "location" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "Name the score for moscow, ussr 15 february 1971". [/INST] SELECT "score_in_the_final" FROM "singles_8" WHERE "location"='moscow, ussr' AND "date"='15 february 1971';</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 "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );. Question: "Name the lowest year for 12th position". [/INST] SELECT MIN("year") FROM "achievements" WHERE "position"='12th';</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 "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );. Question: "Tell me the competition for half marathon". [/INST] SELECT "competition" FROM "achievements" WHERE "notes"='half marathon';</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 "prizes_and_awards" ( "year" real, "director" text, "project" text, "category" text, "result" text );. Question: "Tell me the category of na director". [/INST] SELECT "category" FROM "prizes_and_awards" WHERE "director"='na';</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" ( "heat_rank" real, "lane" real, "swimmer" text, "country" text, "time" real, "overall_rank" text );. Question: "I want to know the highest heat rank for overall rank of t63 and time less than 25.47". [/INST] SELECT MAX("heat_rank") FROM "heats" WHERE "overall_rank"='t63' AND "time"<25.47;</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" ( "heat_rank" real, "lane" real, "swimmer" text, "country" text, "time" real, "overall_rank" text );. Question: "Tell me the country for lane of 6". [/INST] SELECT "country" FROM "heats" WHERE "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 "heats" ( "heat_rank" real, "lane" real, "swimmer" text, "country" text, "time" real, "overall_rank" text );. Question: "Tell me the overall rank for heat rank of 8". [/INST] SELECT "overall_rank" FROM "heats" WHERE "heat_rank"=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 "latest_olympic_squad" ( "name" text, "pos" text, "height" text, "weight" text, "2012_club" text );. Question: "What Name has the 2012 Club Radnički?". [/INST] SELECT "name" FROM "latest_olympic_squad" WHERE "2012_club"='radnički';</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 "round_three" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text );. Question: "Tell me the position of chris clark". [/INST] SELECT "position" FROM "round_three" WHERE "player"='chris clark';</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 "round_three" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text );. Question: "Tell me the nhl team for 74". [/INST] SELECT "nhl_team" FROM "round_three" WHERE "pick"='74';</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 "round_three" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text );. Question: "Tell me the pick for canada centre". [/INST] SELECT "pick" FROM "round_three" WHERE "position"='centre' AND "nationality"='canada';</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 "release_history" ( "region" text, "date" text, "format" text, "label" text, "edition_s" text );. Question: "Tell me the format for geffen of the united states". [/INST] SELECT "format" FROM "release_history" WHERE "label"='geffen' AND "region"='united states';</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 "release_history" ( "region" text, "date" text, "format" text, "label" text, "edition_s" text );. Question: "Tell me the format for worldwide region july 22, 2008". [/INST] SELECT "format" FROM "release_history" WHERE "region"='worldwide' AND "date"='july 22, 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 "release_history" ( "region" text, "date" text, "format" text, "label" text, "edition_s" text );. Question: "Tell me the label for digital download for bonus tracks version". [/INST] SELECT "label" FROM "release_history" WHERE "format"='digital download' AND "edition_s"='bonus tracks version';</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 "1970_isle_of_man_sidecar_750cc_tt_final_" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );. Question: "Which team has a rank of 6?". [/INST] SELECT "team" FROM "1970_isle_of_man_sidecar_750cc_tt_final_" WHERE "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 "1971_engines" ( "engine" text, "horsepower" text, "torque" text, "carburetor" text, "compression_ratio" text, "bore_stroke" text, "vin_code" text );. Question: "Name the horsepower for VIN code of h and engine for 351-2v cleveland v8". [/INST] SELECT "horsepower" FROM "1971_engines" WHERE "vin_code"='h' AND "engine"='351-2v cleveland v8';</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 "1971_engines" ( "engine" text, "horsepower" text, "torque" text, "carburetor" text, "compression_ratio" text, "bore_stroke" text, "vin_code" text );. Question: "Name the horsepwer for compression ratio of 9.00:1 and carburetor of 2-barrel and engine 302-2v windsor v8". [/INST] SELECT "horsepower" FROM "1971_engines" WHERE "compression_ratio"='9.00:1' AND "carburetor"='2-barrel' AND "engine"='302-2v windsor v8';</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 "1971_engines" ( "engine" text, "horsepower" text, "torque" text, "carburetor" text, "compression_ratio" text, "bore_stroke" text, "vin_code" text );. Question: "Tell me the VIN code for compression ratio of 10.50:1". [/INST] SELECT "vin_code" FROM "1971_engines" WHERE "compression_ratio"='10.50: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 "international_versions" ( "country_region" text, "name" text, "host" text, "network" text, "premiere" text, "prize" text );. Question: "Tell me the network for 13 january 2009". [/INST] SELECT "network" FROM "international_versions" WHERE "premiere"='13 january 2009';</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 "international_versions" ( "country_region" text, "name" text, "host" text, "network" text, "premiere" text, "prize" text );. Question: "Tell me the prize for belgium". [/INST] SELECT "prize" FROM "international_versions" WHERE "country_region"='belgium';</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 "international_versions" ( "country_region" text, "name" text, "host" text, "network" text, "premiere" text, "prize" text );. Question: "Tell me the 13 january 2009 host". [/INST] SELECT "host" FROM "international_versions" WHERE "premiere"='13 january 2009';</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 "international_versions" ( "country_region" text, "name" text, "host" text, "network" text, "premiere" text, "prize" text );. Question: "Tell me the host for rtl-tvi". [/INST] SELECT "host" FROM "international_versions" WHERE "network"='rtl-tvi';</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 "women" ( "event" text, "time" text, "nationality" text, "date" text, "meet" text, "location" text );. Question: "I want to meet that has a time 2:15.93". [/INST] SELECT "meet" FROM "women" WHERE "time"='2:15.93';</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 "women" ( "event" text, "time" text, "nationality" text, "date" text, "meet" text, "location" text );. Question: "Tell me the location of lithuania 12 october 2013". [/INST] SELECT "location" FROM "women" WHERE "nationality"='lithuania' AND "date"='12 october 2013';</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 "awards_and_nominations_in_film_and_telev" ( "year" real, "award" text, "title_of_work" text, "medium" text, "result" text );. Question: "Tell me the title of work for year more than 2009". [/INST] SELECT "title_of_work" FROM "awards_and_nominations_in_film_and_telev" WHERE "year">2009;</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 "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "When was there a Result of 8–0 and a Score of 1–0?". [/INST] SELECT "date" FROM "international_goals" WHERE "result"='8–0' AND "score"='1–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 "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What was the result of Bridgeview, Illinois?". [/INST] SELECT "result" FROM "international_goals" WHERE "venue"='bridgeview, illinois';</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 "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "When did a Competition of friendly, and a Score of 2–1, and a Venue of philadelphia , pennsylvania occur?". [/INST] SELECT "date" FROM "international_goals" WHERE "competition"='friendly' AND "score"='2–1' AND "venue"='philadelphia , pennsylvania';</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 "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What was the score on June 28, 2009?". [/INST] SELECT "score" FROM "international_goals" WHERE "date"='june 28, 2009';</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 "round_six" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text );. Question: "Tell me the nationality of pick 140". [/INST] SELECT "nationality" FROM "round_six" WHERE "pick"='140';</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 "round_six" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text );. Question: "Tell me the position for pick of 146". [/INST] SELECT "position" FROM "round_six" WHERE "pick"='146';</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 "round_six" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text );. Question: "Tell me the NHL team for mike gaffney". [/INST] SELECT "nhl_team" FROM "round_six" WHERE "player"='mike gaffney';</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 "round_six" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text );. Question: "Tell me the nationality of pick of 153". [/INST] SELECT "nationality" FROM "round_six" WHERE "pick"='153';</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 "round_six" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text );. Question: "Tell me the player for pick of 145". [/INST] SELECT "player" FROM "round_six" WHERE "pick"='145';</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" ( "date" text, "tournament" text, "location" text, "score" text, "honduras_scorers" text );. Question: "What tournament took place on October 11, 2013?". [/INST] SELECT "tournament" FROM "results" WHERE "date"='october 11, 2013';</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" ( "date" text, "tournament" text, "location" text, "score" text, "honduras_scorers" text );. Question: "Which tournament took place on June 18, 2013?". [/INST] SELECT "tournament" FROM "results" WHERE "date"='june 18, 2013';</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, "attendance" real );. Question: "What is the average week on November 7, 1976 with an attendance less than 46,735?". [/INST] SELECT AVG("week") FROM "schedule" WHERE "date"='november 7, 1976' AND "attendance"<'46,735';</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, "attendance" real );. Question: "Who is the opponent for week 5?". [/INST] SELECT "opponent" FROM "schedule" WHERE "week"=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 "heats" ( "heat_rank" real, "lane" real, "swimmer" text, "country" text, "time" real, "overall_rank" real );. Question: "Tell me the highest overall rank for heat rank more than 4 and lane less than 2". [/INST] SELECT MAX("overall_rank") FROM "heats" WHERE "heat_rank">4 AND "lane"<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 "doubles_46_20_26" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "Who is the partner with a runner-up outcome on April 6, 1992?". [/INST] SELECT "partner" FROM "doubles_46_20_26" WHERE "outcome"='runner-up' AND "date"='april 6, 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 "doubles_46_20_26" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "What outcome occurs on a hard surface with a score of 4–6, 6–7(3)?". [/INST] SELECT "outcome" FROM "doubles_46_20_26" WHERE "surface"='hard' AND "score"='4–6, 6–7(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 "doubles_46_20_26" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "On what date did Lori McNeil play as a partner with a score of 6–7(6), 5–7?". [/INST] SELECT "date" FROM "doubles_46_20_26" WHERE "partner"='lori mcneil' AND "score"='6–7(6), 5–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 "montreal_royals_records" ( "year" real, "wins" real, "losses" real, "percentage" real, "finish" text );. Question: "What is the most losses that the Royals had when they had a percentage over 0.461, won over 86 games, and finished 2nd in 1953?". [/INST] SELECT MAX("losses") FROM "montreal_royals_records" WHERE "percentage">0.461 AND "wins">86 AND "finish"='2nd' AND "year"=1953;</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_22_8_14" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );. Question: "Tell the opponent of eastbourne with score of 6–0, 5–7, 3–6". [/INST] SELECT "opponent" FROM "singles_22_8_14" WHERE "tournament"='eastbourne' AND "score"='6–0, 5–7, 3–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 "singles_22_8_14" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );. Question: "Tell me the outcome of 2–6, 1–6". [/INST] SELECT "outcome" FROM "singles_22_8_14" WHERE "score"='2–6, 1–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 "singles_22_8_14" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );. Question: "Tell me the surface for eastbourne 14 june 1999". [/INST] SELECT "surface" FROM "singles_22_8_14" WHERE "tournament"='eastbourne' AND "date"='14 june 1999';</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 "awards_and_nominations" ( "year" real, "association" text, "category" text, "nominated_work" text, "result" text );. Question: "Tell me the category for result of won and year more than 2009". [/INST] SELECT "category" FROM "awards_and_nominations" WHERE "result"='won' AND "year">2009;</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 "awards_and_nominations" ( "year" real, "association" text, "category" text, "nominated_work" text, "result" text );. Question: "Tell me the nominated work larger than 2011". [/INST] SELECT "nominated_work" FROM "awards_and_nominations" WHERE "year">2011;</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 "awards_and_nominations" ( "year" real, "association" text, "category" text, "nominated_work" text, "result" text );. Question: "Tell me the result for primetime emmy awards". [/INST] SELECT "result" FROM "awards_and_nominations" WHERE "association"='primetime emmy awards';</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 "cast_of_major_productions_1954_1999" ( "character" text, "1954_broadway" text, "1955_broadcast" text, "1960_broadcast" text, "1979_broadway" text, "1990_broadway" text, "1991_broadway" text, "1998_broadway" text, "1999_broadway" text );. Question: "Tell me the 1998 Broadway with barry cavanagh". [/INST] SELECT "1998_broadway" FROM "cast_of_major_productions_1954_1999" WHERE "1999_broadway"='barry cavanagh';</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 "cast_of_major_productions_1954_1999" ( "character" text, "1954_broadway" text, "1955_broadcast" text, "1960_broadcast" text, "1979_broadway" text, "1990_broadway" text, "1991_broadway" text, "1998_broadway" text, "1999_broadway" text );. Question: "Tell me the 1979 Broadway for dana solimando". [/INST] SELECT "1979_broadway" FROM "cast_of_major_productions_1954_1999" WHERE "1999_broadway"='dana solimando';</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 "cast_of_major_productions_1954_1999" ( "character" text, "1954_broadway" text, "1955_broadcast" text, "1960_broadcast" text, "1979_broadway" text, "1990_broadway" text, "1991_broadway" text, "1998_broadway" text, "1999_broadway" text );. Question: "Tell me the character for 1998 drake english". [/INST] SELECT "character" FROM "cast_of_major_productions_1954_1999" WHERE "1998_broadway"='drake english';</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 "cast_of_major_productions_1954_1999" ( "character" text, "1954_broadway" text, "1955_broadcast" text, "1960_broadcast" text, "1979_broadway" text, "1990_broadway" text, "1991_broadway" text, "1998_broadway" text, "1999_broadway" text );. Question: "Tell me the 1955 broadcast for kent fletcher". [/INST] SELECT "1955_broadcast" FROM "cast_of_major_productions_1954_1999" WHERE "1960_broadcast"='kent fletcher';</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 "cast_of_major_productions_1954_1999" ( "character" text, "1954_broadway" text, "1955_broadcast" text, "1960_broadcast" text, "1979_broadway" text, "1990_broadway" text, "1991_broadway" text, "1998_broadway" text, "1999_broadway" text );. Question: "Tell me the 1991 broadway for george rose". [/INST] SELECT "1991_broadway" FROM "cast_of_major_productions_1954_1999" WHERE "1979_broadway"='george 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 "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What competition was held 1 March 1909?". [/INST] SELECT "competition" FROM "international_goals" WHERE "date"='1 march 1909';</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 "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Tell me the total number of gold for total less than 1". [/INST] SELECT COUNT("gold") FROM "medal_table" WHERE "total"<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 "shaoshan_ss_series" ( "model" text, "build_year" text, "top_speed_in_operation_km_h" real, "power_output_k_w" text, "builder" text, "total_production" real );. Question: "Tell me the model for total production of 1347". [/INST] SELECT "model" FROM "shaoshan_ss_series" WHERE "total_production"=1347;</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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the total amount of Gold from guatemala and silver smaller than 0?". [/INST] SELECT SUM("gold") FROM "medal_table" WHERE "nation"='guatemala' AND "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 "algeria_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text );. Question: "Tell me the event for 2012 london games". [/INST] SELECT "event" FROM "algeria_medalists" WHERE "games"='2012 london';</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 "algeria_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text );. Question: "Tell me the games for men's 5000 metres". [/INST] SELECT "games" FROM "algeria_medalists" WHERE "event"='men''s 5000 metres';</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, "attendance" text );. Question: "When did the w 20-19 happen?". [/INST] SELECT "date" FROM "schedule" WHERE "result"='w 20-19';</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, "attendance" text );. Question: "What was the attendance of the w 28-13 game?". [/INST] SELECT "attendance" FROM "schedule" WHERE "result"='w 28-13';</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 "electoral_history" ( "general_elections" real, "voting_percentile_pct" text, "voting_turnout" text, "presiding_convener_of_the_party" text, "parliamentary_position" text );. Question: "Tell me the voting turnout for 1985 general elections". [/INST] SELECT "voting_turnout" FROM "electoral_history" WHERE "general_elections"=1985;</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 "medal_table_unofficial" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is total number of wins for England?". [/INST] SELECT SUM("total") FROM "medal_table_unofficial" WHERE "nation"='england';</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 "medal_table_unofficial" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "The Soviet Union has won more than 2 Silver, but how many Bronzes?". [/INST] SELECT COUNT("bronze") FROM "medal_table_unofficial" WHERE "nation"='soviet union' AND "silver">2;</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.