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 "game_log" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "How many Games have a Score of 5–4, and Points smaller than 49?". [/INST] SELECT COUNT("game") FROM "game_log" WHERE "score"='5–4' 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 "top_medal_earners" ( "athlete" text, "sport" text, "type" text, "olympics" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the average gold of the winter athlete with 1 bronze, less than 3 silver, and less than 4 total medals?". [/INST] SELECT AVG("gold") FROM "top_medal_earners" WHERE "bronze"=1 AND "type"='winter' AND "silver"<3 AND "total"<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 "top_medal_earners" ( "athlete" text, "sport" text, "type" text, "olympics" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the highest total medals winter athlete Clara Hughes has?". [/INST] SELECT MAX("total") FROM "top_medal_earners" WHERE "type"='winter' AND "athlete"='clara hughes';</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 "top_medal_earners" ( "athlete" text, "sport" text, "type" text, "olympics" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the lowest number of bronze a short track athlete with 0 gold medals has?". [/INST] SELECT MIN("bronze") FROM "top_medal_earners" WHERE "sport"='short track' AND "gold"=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 "detailed_project_table_for_2008" ( "country" text, "project_name" text, "year_startup" text, "operator" text, "peak" text );. Question: "What is the Project Name with a Country that is kazakhstan and a Peak that is 150?". [/INST] SELECT "project_name" FROM "detailed_project_table_for_2008" WHERE "country"='kazakhstan' AND "peak"='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 "detailed_project_table_for_2008" ( "country" text, "project_name" text, "year_startup" text, "operator" text, "peak" text );. Question: "What is the Peak with a Project Name that is talakan ph 1?". [/INST] SELECT "peak" FROM "detailed_project_table_for_2008" WHERE "project_name"='talakan ph 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 "detailed_project_table_for_2008" ( "country" text, "project_name" text, "year_startup" text, "operator" text, "peak" text );. Question: "What is the Project Name with a Country that is opec?". [/INST] SELECT "project_name" FROM "detailed_project_table_for_2008" WHERE "country"='opec';</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 "detailed_project_table_for_2008" ( "country" text, "project_name" text, "year_startup" text, "operator" text, "peak" text );. Question: "What is the Operator with a Peak that is 55?". [/INST] SELECT "operator" FROM "detailed_project_table_for_2008" WHERE "peak"='55';</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_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "record" text );. Question: "What was the score when they had a 25-41-9 record?". [/INST] SELECT "score" FROM "schedule_and_results" WHERE "record"='25-41-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 "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "record" text );. Question: "What is the game associated with a score of 4 - 2, and a record of 25-39-9?". [/INST] SELECT MAX("game") FROM "schedule_and_results" WHERE "score"='4 - 2' AND "record"='25-39-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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "What is the lowest week that has an attendance greater than 23,058, with october 24, 1943 as the date?". [/INST] SELECT MIN("week") FROM "schedule" WHERE "attendance">'23,058' AND "date"='october 24, 1943';</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: "How many attendances have w 48-10 as the result?". [/INST] SELECT SUM("attendance") FROM "schedule" WHERE "result"='w 48-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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "How many attendances have 9 as the week?". [/INST] SELECT COUNT("attendance") FROM "schedule" WHERE "week"=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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "What is the lowest attendance that has a week less than 4, and w 13-7 as the result?". [/INST] SELECT MIN("attendance") FROM "schedule" WHERE "week"<4 AND "result"='w 13-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 "general_statistics_2002_2010" ( "years" text, "2004" real, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011" real );. Question: "What was the average value in 2005 when 2008 is 61,837,716, and a 2006 is more than 57,126,389?". [/INST] SELECT AVG("2005") FROM "general_statistics_2002_2010" WHERE "2008"='61,837,716' AND "2006">'57,126,389';</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 "general_statistics_2002_2010" ( "years" text, "2004" real, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011" real );. Question: "What is the lowest value in 2007 when 2009 is 42,014,178 and 2008 is over 61,837,716?". [/INST] SELECT MIN("2007") FROM "general_statistics_2002_2010" WHERE "2009"='42,014,178' AND "2008">'61,837,716';</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 "general_statistics_2002_2010" ( "years" text, "2004" real, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011" real );. Question: "What is the highest value in 2011 with less than 5,049 in 2006 and less than 1,380,935 in 2008?". [/INST] SELECT MAX("2011") FROM "general_statistics_2002_2010" WHERE "2006"<'5,049' AND "2008"<'1,380,935';</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 "general_statistics_2002_2010" ( "years" text, "2004" real, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011" real );. Question: "What was the total in 2009 for years of river vessels when 2008 was more than 8,030 and 2007 was more than 1,411,414?". [/INST] SELECT COUNT("2009") FROM "general_statistics_2002_2010" WHERE "2007">'1,411,414' AND "years"='river vessels' AND "2008">'8,030';</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 "opinion_polls" ( "polling_firm" text, "date" text, "psd_pc" text, "udmr" text, "elena_b_sescu" text, "others" text, "undecided" text );. Question: "What is the psd-pc for 18-22/04/2009?". [/INST] SELECT "psd_pc" FROM "opinion_polls" WHERE "date"='18-22/04/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 "opinion_polls" ( "polling_firm" text, "date" text, "psd_pc" text, "udmr" text, "elena_b_sescu" text, "others" text, "undecided" text );. Question: "What date has the others of 2%?". [/INST] SELECT "date" FROM "opinion_polls" WHERE "others"='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 "opinion_polls" ( "polling_firm" text, "date" text, "psd_pc" text, "udmr" text, "elena_b_sescu" text, "others" text, "undecided" text );. Question: "What was the UDMR for 18-22/04/2009?". [/INST] SELECT "udmr" FROM "opinion_polls" WHERE "date"='18-22/04/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 "opinion_polls" ( "polling_firm" text, "date" text, "psd_pc" text, "udmr" text, "elena_b_sescu" text, "others" text, "undecided" text );. Question: "When the other is n/a and the psc-pc is 30% what is the date?". [/INST] SELECT "date" FROM "opinion_polls" WHERE "others"='n/a' AND "psd_pc"='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 "opinion_polls" ( "polling_firm" text, "date" text, "psd_pc" text, "udmr" text, "elena_b_sescu" text, "others" text, "undecided" text );. Question: "What was the polling firm with others of 1%?". [/INST] SELECT "polling_firm" FROM "opinion_polls" WHERE "others"='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 "opinion_polls" ( "polling_firm" text, "date" text, "psd_pc" text, "udmr" text, "elena_b_sescu" text, "others" text, "undecided" text );. Question: "What is the elena basescu when the poling firm of gallup?". [/INST] SELECT "elena_b_sescu" FROM "opinion_polls" WHERE "polling_firm"='gallup';</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_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" text );. Question: "Game smaller than 34, and a December smaller than 14, and a Score of 10 - 6 has what opponent?". [/INST] SELECT "opponent" FROM "schedule_and_results" WHERE "game"<34 AND "december"<14 AND "score"='10 - 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 "schedule_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" text );. Question: "Game larger than 34, and a December smaller than 23 had what record?". [/INST] SELECT "record" FROM "schedule_and_results" WHERE "game">34 AND "december"<23;</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_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" text );. Question: "Record of 15-12-4, and a Game larger than 31 involves what highest December?". [/INST] SELECT MAX("december") FROM "schedule_and_results" WHERE "record"='15-12-4' AND "game">31;</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 "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "Which Points have a Record of 45–21–4, and a Game larger than 70?". [/INST] SELECT AVG("points") FROM "regular_season" WHERE "record"='45–21–4' AND "game">70;</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 "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "Which March is the lowest one that has a Score of 5–6, and Points smaller than 100?". [/INST] SELECT MIN("march") FROM "regular_season" WHERE "score"='5–6' AND "points"<100;</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 "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "Which Score has a March larger than 15, and Points larger than 96, and a Game smaller than 76, and an Opponent of @ washington capitals?". [/INST] SELECT "score" FROM "regular_season" WHERE "march">15 AND "points">96 AND "game"<76 AND "opponent"='@ washington capitals';</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 "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "Which Opponent has a Record of 45–21–4?". [/INST] SELECT "opponent" FROM "regular_season" WHERE "record"='45–21–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 "chronology_of_the_tallest_buildings_in_j" ( "years_tallest" text, "name" text, "height_ft_m" text, "floors" real, "year_completed" real );. Question: "What year was the building completed that has 10 floors?". [/INST] SELECT AVG("year_completed") FROM "chronology_of_the_tallest_buildings_in_j" WHERE "floors"=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 "chronology_of_the_tallest_buildings_in_j" ( "years_tallest" text, "name" text, "height_ft_m" text, "floors" real, "year_completed" real );. Question: "What was the name of the building with 10 floors?". [/INST] SELECT "name" FROM "chronology_of_the_tallest_buildings_in_j" WHERE "floors"=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 "chronology_of_the_tallest_buildings_in_j" ( "years_tallest" text, "name" text, "height_ft_m" text, "floors" real, "year_completed" real );. Question: "How tall is the florida life building, completed before 1990?". [/INST] SELECT "height_ft_m" FROM "chronology_of_the_tallest_buildings_in_j" WHERE "year_completed"<1990 AND "name"='florida life building';</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 "series_summary" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "Result of 86-87 (2-4) is what game?". [/INST] SELECT "game" FROM "series_summary" WHERE "result"='86-87 (2-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 "series_summary" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "Result of 88-85 ot (1-0) involves what game?". [/INST] SELECT "game" FROM "series_summary" WHERE "result"='88-85 ot (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 "series_summary" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "Game of game 5 had what result?". [/INST] SELECT "result" FROM "series_summary" WHERE "game"='game 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 "series_summary" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "Road Team of utah jazz, and a Result of 81-83 (3-2) involved what game?". [/INST] SELECT "game" FROM "series_summary" WHERE "road_team"='utah jazz' AND "result"='81-83 (3-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 "series_summary" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "Home Team of chicago bulls, and a Result of 81-83 (3-2) involved what game?". [/INST] SELECT "game" FROM "series_summary" WHERE "home_team"='chicago bulls' AND "result"='81-83 (3-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 "series_summary" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "Result of 86-87 (2-4) involves what home team?". [/INST] SELECT "home_team" FROM "series_summary" WHERE "result"='86-87 (2-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 "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real );. Question: "What is the fewest wins that has fewer than 23 goals scored, team of 2 de Mayo, and fewer than 7 draws?". [/INST] SELECT MIN("wins") FROM "torneo_clausura" WHERE "scored"<23 AND "team"='2 de mayo' AND "draws"<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 "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real );. Question: "What is the number of draws for the team with more than 8 losses and 13 points?". [/INST] SELECT "draws" FROM "torneo_clausura" WHERE "losses">8 AND "points"=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 "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "How much March has Points of 85?". [/INST] SELECT COUNT("march") FROM "regular_season" WHERE "points"=85;</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 "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "Which Game is the lowest one that has a Score of 2–3 ot, and Points larger than 76?". [/INST] SELECT MIN("game") FROM "regular_season" WHERE "score"='2–3 ot' AND "points">76;</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 "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "How many games have a March of 19, and Points smaller than 83?". [/INST] SELECT COUNT("game") FROM "regular_season" WHERE "march"=19 AND "points"<83;</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 "villages" ( "almal_qax" text, "f_st_ql" text, "malax" text, "qaxmu_al" text, "s_sk_n" text );. Question: "What is the Almali village with the Süskən village zərnə?". [/INST] SELECT "almal_qax" FROM "villages" WHERE "s_sk_n"='zərnə';</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 "villages" ( "almal_qax" text, "f_st_ql" text, "malax" text, "qaxmu_al" text, "s_sk_n" text );. Question: "What is the Almali village with the Malax village qaxingiloy?". [/INST] SELECT "almal_qax" FROM "villages" WHERE "malax"='qaxingiloy';</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 "villages" ( "almal_qax" text, "f_st_ql" text, "malax" text, "qaxmu_al" text, "s_sk_n" text );. Question: "What is the Süskən village with a Malax village meşəbaş?". [/INST] SELECT "s_sk_n" FROM "villages" WHERE "malax"='meşəbaş';</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 "villages" ( "almal_qax" text, "f_st_ql" text, "malax" text, "qaxmu_al" text, "s_sk_n" text );. Question: "What is the Qaxmuğal village with a Malax village meşəbaş?". [/INST] SELECT "qaxmu_al" FROM "villages" WHERE "malax"='meşəbaş';</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 "villages" ( "almal_qax" text, "f_st_ql" text, "malax" text, "qaxmu_al" text, "s_sk_n" text );. Question: "What is the Qaxmuğal village with a Fistiqli village keşqutan?". [/INST] SELECT "qaxmu_al" FROM "villages" WHERE "f_st_ql"='keşqutan';</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 "sports" ( "club" text, "league" text, "venue" text, "established" real, "championships" real );. Question: "What are the highest championships where the club is Springfield Cardinals?". [/INST] SELECT MAX("championships") FROM "sports" WHERE "club"='springfield cardinals';</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 "engines" ( "model" text, "engine" text, "displacement" text, "valvetrain" text, "fuel_system" text, "max_power_at_rpm" text, "max_torque_at_rpm" text );. Question: "What is the maximum torque that has 2,445 CC Displacement, and an Iveco 8144.61 engine?". [/INST] SELECT "max_torque_at_rpm" FROM "engines" WHERE "displacement"='2,445 cc' AND "engine"='iveco 8144.61';</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 "engines" ( "model" text, "engine" text, "displacement" text, "valvetrain" text, "fuel_system" text, "max_power_at_rpm" text, "max_torque_at_rpm" text );. Question: "What Valvetrain has a fuel system made up of petrol engines?". [/INST] SELECT "valvetrain" FROM "engines" WHERE "fuel_system"='petrol engines';</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 "largest_municipalities_by_population" ( "rank" text, "city" text, "population" real, "area_km_2" real, "density_inhabitants_km_2" real, "altitude_mslm" real );. Question: "Which Population has an Altitude (mslm) larger than 98, and a Density (inhabitants/km 2) larger than 5869, and a Rank of 1st?". [/INST] SELECT SUM("population") FROM "largest_municipalities_by_population" WHERE "altitude_mslm">98 AND "density_inhabitants_km_2">5869 AND "rank"='1st';</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 "largest_municipalities_by_population" ( "rank" text, "city" text, "population" real, "area_km_2" real, "density_inhabitants_km_2" real, "altitude_mslm" real );. Question: "Which Population is the highest one that has a Density (inhabitants/km 2) larger than 2805.8, and a Rank of 1st, and an Altitude (mslm) smaller than 122?". [/INST] SELECT MAX("population") FROM "largest_municipalities_by_population" WHERE "density_inhabitants_km_2">2805.8 AND "rank"='1st' AND "altitude_mslm"<122;</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 "largest_municipalities_by_population" ( "rank" text, "city" text, "population" real, "area_km_2" real, "density_inhabitants_km_2" real, "altitude_mslm" real );. Question: "Which Altitude (mslm) is the highest one that has an Area (km 2) smaller than 13.01, and a Population of 74536, and a Density (inhabitants/km 2) larger than 5869?". [/INST] SELECT MAX("altitude_mslm") FROM "largest_municipalities_by_population" WHERE "area_km_2"<13.01 AND "population"=74536 AND "density_inhabitants_km_2">5869;</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 "largest_municipalities_by_population" ( "rank" text, "city" text, "population" real, "area_km_2" real, "density_inhabitants_km_2" real, "altitude_mslm" real );. Question: "Which Altitude (mslm) is the highest one that has a City of legnano, and a Population larger than 59492?". [/INST] SELECT MAX("altitude_mslm") FROM "largest_municipalities_by_population" WHERE "city"='legnano' AND "population">59492;</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 "formula_one_results" ( "year" real, "entrant" text, "engine" text, "tyres" text, "points" real );. Question: "What is the Motor that has a Focuses bigger than 62, and a Participant of rebaque?". [/INST] SELECT "engine" FROM "formula_one_results" WHERE "points">62 AND "entrant"='rebaque';</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 "formula_one_results" ( "year" real, "entrant" text, "engine" text, "tyres" text, "points" real );. Question: "What is the Focus that has a Year bigger than 1977?". [/INST] SELECT "points" FROM "formula_one_results" WHERE "year">1977;</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, "report" text );. Question: "When did Hans Hartmann drive?". [/INST] SELECT COUNT("year") FROM "non_championship_results" WHERE "driver"='hans hartmann';</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 "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text );. Question: "What is the second that has jordan moulton as the lead?". [/INST] SELECT "second" FROM "teams" WHERE "lead"='jordan moulton';</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 "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text );. Question: "What skip has martina baumann as the third?". [/INST] SELECT "skip" FROM "teams" WHERE "third"='martina baumann';</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 "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text );. Question: "What skip has switzerland as the country?". [/INST] SELECT "skip" FROM "teams" WHERE "country"='switzerland';</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 "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text );. Question: "What skip has angela tuvaeva as the lead?". [/INST] SELECT "skip" FROM "teams" WHERE "lead"='angela tuvaeva';</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 "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text );. Question: "What skip has norway as the country?". [/INST] SELECT "skip" FROM "teams" WHERE "country"='norway';</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 "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text );. Question: "What skip has denmark as the country?". [/INST] SELECT "skip" FROM "teams" WHERE "country"='denmark';</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 "november" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "Which visitor has a Los Angeles home?". [/INST] SELECT "visitor" FROM "november" WHERE "home"='los angeles';</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 "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text );. Question: "Opponent of edmonton oilers, and a Game of 3 is what series?". [/INST] SELECT "series" FROM "playoffs" WHERE "opponent"='edmonton oilers' AND "game"=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 "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text );. Question: "Score of 2–3 ot on what date?". [/INST] SELECT "date" FROM "playoffs" WHERE "score"='2–3 ot';</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 "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text );. Question: "Opponent of @ edmonton oilers, and a Game smaller than 7, and a Series of oilers lead 3–2 had what score?". [/INST] SELECT "score" FROM "playoffs" WHERE "opponent"='@ edmonton oilers' AND "game"<7 AND "series"='oilers lead 3–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 "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text );. Question: "Opponent of @ edmonton oilers, and a Game larger than 1, and a Series of oilers lead 3–2 had what score?". [/INST] SELECT "score" FROM "playoffs" WHERE "opponent"='@ edmonton oilers' AND "game">1 AND "series"='oilers lead 3–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 "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text );. Question: "Series of oilers win 4–3 had what highest game?". [/INST] SELECT MAX("game") FROM "playoffs" WHERE "series"='oilers win 4–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 "schedule_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" text );. Question: "Which December has a Record of 4-3-6?". [/INST] SELECT "december" FROM "schedule_and_results" WHERE "record"='4-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 "schedule_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" text );. Question: "Which Score has a December smaller than 14, and a Game of 12?". [/INST] SELECT "score" FROM "schedule_and_results" WHERE "december"<14 AND "game"=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 "schedule_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" text );. Question: "Which Game is the highest one that has a Record of 4-3-6?". [/INST] SELECT MAX("game") FROM "schedule_and_results" WHERE "record"='4-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 "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "Which Score has a Record of 18–11–5?". [/INST] SELECT "score" FROM "regular_season" WHERE "record"='18–11–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 "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "Which Score has a Game larger than 32, and Points smaller than 42, and a December larger than 19, and a Record of 18–12–5?". [/INST] SELECT "score" FROM "regular_season" WHERE "game">32 AND "points"<42 AND "december">19 AND "record"='18–12–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 "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "Which Score has Points of 36, and a Game of 30?". [/INST] SELECT "score" FROM "regular_season" WHERE "points"=36 AND "game"=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 "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "Which Game has a Record of 14–10–4, and Points smaller than 32?". [/INST] SELECT SUM("game") FROM "regular_season" WHERE "record"='14–10–4' AND "points"<32;</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 "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "Which Game has a Score of 4–1?". [/INST] SELECT SUM("game") FROM "regular_season" WHERE "score"='4–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 "series_10_2010" ( "celebrity" text, "famous_for" text, "entered" text, "exited" text, "finished" text );. Question: "Which celebrity was famous for being a rapper?". [/INST] SELECT "celebrity" FROM "series_10_2010" WHERE "famous_for"='rapper';</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 "series_10_2010" ( "celebrity" text, "famous_for" text, "entered" text, "exited" text, "finished" text );. Question: "What position did the celebrity finish that entered on day 1 and exited on day 19?". [/INST] SELECT "finished" FROM "series_10_2010" WHERE "exited"='day 19' AND "entered"='day 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 "series_10_2010" ( "celebrity" text, "famous_for" text, "entered" text, "exited" text, "finished" text );. Question: "What was Dom Joly famous for?". [/INST] SELECT "famous_for" FROM "series_10_2010" WHERE "celebrity"='dom joly';</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 "series_10_2010" ( "celebrity" text, "famous_for" text, "entered" text, "exited" text, "finished" text );. Question: "What position did the celebrity finish that entered on day 1 and exited on day 15?". [/INST] SELECT "finished" FROM "series_10_2010" WHERE "entered"='day 1' AND "exited"='day 15';</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 "series_10_2010" ( "celebrity" text, "famous_for" text, "entered" text, "exited" text, "finished" text );. Question: "What celebrity is famous for being an actor?". [/INST] SELECT "celebrity" FROM "series_10_2010" WHERE "famous_for"='actor';</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 "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text );. Question: "Where did steve smith go to school?". [/INST] SELECT "school_club_team" FROM "nfl_draft" WHERE "player"='steve smith';</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, "film" text, "award" text, "category" text, "result" text );. Question: "What was the result associated with the cinemaa awards, and gabbar singh film?". [/INST] SELECT "result" FROM "awards_and_nominations" WHERE "award"='cinemaa awards' AND "film"='gabbar singh';</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, "film" text, "award" text, "category" text, "result" text );. Question: "What was the award for the excellence in tamil category?". [/INST] SELECT "award" FROM "awards_and_nominations" WHERE "category"='excellence in tamil';</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 "track_listing" ( "track" text, "song_title" text, "length" text, "composer_s" text, "performance_location_s" text );. Question: "Who is the composer of the song with a length of 6:24?". [/INST] SELECT "composer_s" FROM "track_listing" WHERE "length"='6: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 "track_listing" ( "track" text, "song_title" text, "length" text, "composer_s" text, "performance_location_s" text );. Question: "What is the lengtho f track 16?". [/INST] SELECT "length" FROM "track_listing" WHERE "track"='16';</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 "calendar" ( "round" text, "date" text, "matches" real, "clubs" text, "new_entries_this_round" text, "prize_money" text );. Question: "How many new entries this round have clubs 2 → 1?". [/INST] SELECT "new_entries_this_round" FROM "calendar" WHERE "clubs"='2 → 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 "calendar" ( "round" text, "date" text, "matches" real, "clubs" text, "new_entries_this_round" text, "prize_money" text );. Question: "What is the average for matches with a prize money amount of £3,000?". [/INST] SELECT AVG("matches") FROM "calendar" WHERE "prize_money"='£3,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 "calendar" ( "round" text, "date" text, "matches" real, "clubs" text, "new_entries_this_round" text, "prize_money" text );. Question: "How many new entries this round are there with more than 16 matches and a third round qualifying?". [/INST] SELECT "new_entries_this_round" FROM "calendar" WHERE "matches">16 AND "round"='third round qualifying';</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 "calendar" ( "round" text, "date" text, "matches" real, "clubs" text, "new_entries_this_round" text, "prize_money" text );. Question: "What are the clubs with 46 matches?". [/INST] SELECT "clubs" FROM "calendar" WHERE "matches"=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 "4_a_members" ( "high_school" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "nickname" text, "division" text );. Question: "What High School with a nickname of S Eagle has a Division of crest?". [/INST] SELECT "high_school" FROM "4_a_members" WHERE "division"='crest' AND "nickname"='s eagle';</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 "4_a_members" ( "high_school" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "nickname" text, "division" text );. Question: "What is the affiliation of a location called Issaquah?". [/INST] SELECT "affiliation" FROM "4_a_members" WHERE "location"='issaquah';</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 "4_a_members" ( "high_school" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "nickname" text, "division" text );. Question: "What is the affiliation of a high school in Issaquah that was founded in less than 1965?". [/INST] SELECT "affiliation" FROM "4_a_members" WHERE "founded"<1965 AND "high_school"='issaquah';</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_and_fixtures" ( "date" text, "venue" text, "opponents" text, "score" text, "competition" text );. Question: "Which Venue has a Competition of pl group b, and a Score of 2-2?". [/INST] SELECT "venue" FROM "results_and_fixtures" WHERE "competition"='pl group b' AND "score"='2-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 "results_and_fixtures" ( "date" text, "venue" text, "opponents" text, "score" text, "competition" text );. Question: "Which Competition has a Score of 0-1, and Opponents of pkns fc?". [/INST] SELECT "competition" FROM "results_and_fixtures" WHERE "score"='0-1' AND "opponents"='pkns fc';</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_and_fixtures" ( "date" text, "venue" text, "opponents" text, "score" text, "competition" text );. Question: "Who competed on may 6, 2006?". [/INST] SELECT "opponents" FROM "results_and_fixtures" WHERE "date"='may 6, 2006';</s>