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 "semifinal_scores" ( "delegate" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: "What are the swimsuits for south africa?". [/INST] SELECT "swimsuit" FROM "semifinal_scores" WHERE "delegate"='South Africa';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_11677100_12" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text );. Question: "Who were the MLB draft with the hometown Opa-locka, Fl?". [/INST] SELECT "mlb_draft" FROM "table1_11677100_12" WHERE "hometown"='Opa-locka, FL';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_11677100_12" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text );. Question: "How many players have the hometown Pennsauken, NJ?". [/INST] SELECT COUNT("player") FROM "table1_11677100_12" WHERE "hometown"='Pennsauken, NJ';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_11677100_12" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text );. Question: "Which position did the player from the hometown of Dallas, TX play?". [/INST] SELECT "position" FROM "table1_11677100_12" WHERE "hometown"='Dallas, TX';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_11677100_12" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text );. Question: "What is the hometown of player Jason Place?". [/INST] SELECT "hometown" FROM "table1_11677100_12" WHERE "player"='Jason Place';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_11677100_12" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text );. Question: "What school did the catcher attend?". [/INST] SELECT "school" FROM "table1_11677100_12" WHERE "position"='Catcher';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_11677100_11" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text );. Question: "What is Jay Bruce's hometown?". [/INST] SELECT "hometown" FROM "table1_11677100_11" WHERE "player"='Jay Bruce';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_11677100_11" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text );. Question: "What school is he the catcher for?". [/INST] SELECT "school" FROM "table1_11677100_11" WHERE "position"='Catcher';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_11677100_11" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text );. Question: "WHAT HOMETOWN DOES HE PLAY AS THE CATCHER FOR?". [/INST] SELECT "hometown" FROM "table1_11677100_11" WHERE "position"='Catcher';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_11677100_11" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text );. Question: "WHAT POSITION DOES HE PLAY FOR AT WEST BROOK SENIOR HIGH SCHOOL?". [/INST] SELECT "position" FROM "table1_11677100_11" WHERE "school"='West Brook Senior High School';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_11677100_11" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text );. Question: "WHAT TOWN IS WEST BROOK SENIOR HIGH SCHOOL FROM?". [/INST] SELECT "hometown" FROM "table1_11677100_11" WHERE "school"='West Brook Senior High School';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "What position did the player from Jersey City, New Jersey play? ". [/INST] SELECT "position" FROM "2010_team" WHERE "hometown"='Jersey City, New Jersey';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "What offensive line player hailed from Baton Rouge, Louisiana?". [/INST] SELECT "player" FROM "2010_team" WHERE "position"='Offensive line' AND "hometown"='Baton Rouge, Louisiana';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "What is Jeremy Hill's hometown?". [/INST] SELECT "hometown" FROM "2010_team" WHERE "player"='Jeremy Hill';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "How many offensive line players played for a college in Alabama?". [/INST] SELECT COUNT("hometown") FROM "2010_team" WHERE "college"='Alabama' AND "position"='Offensive line';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "How many players attended Hillcrest High School?". [/INST] SELECT COUNT("college") FROM "2010_team" WHERE "school"='Hillcrest High School';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "Where was the hometown for the player that attended Shanley High School?". [/INST] SELECT "hometown" FROM "2010_team" WHERE "school"='Shanley High School';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "Which player went to the college Southern California?". [/INST] SELECT "player" FROM "2010_team" WHERE "college"='Southern California';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "Which college did the player attend that went to Mission Viejo High School?". [/INST] SELECT "college" FROM "2010_team" WHERE "school"='Mission Viejo High School';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "How many players hometown was Cincinnati, Ohio?". [/INST] SELECT COUNT("player") FROM "2010_team" WHERE "hometown"='Cincinnati, Ohio';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "Which player's hometown was Pewaukee, Wisconsin?". [/INST] SELECT "player" FROM "2010_team" WHERE "hometown"='Pewaukee, Wisconsin';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "How many players' hometown was Akron, Ohio?". [/INST] SELECT COUNT("school") FROM "2010_team" WHERE "hometown"='Akron, Ohio';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "Which player is from Utah?". [/INST] SELECT "player" FROM "2011_team" WHERE "college"='Utah';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "Which player is from Saguaro High School?". [/INST] SELECT "position" FROM "2011_team" WHERE "school"='Saguaro High School';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "Which player is from Joliet Catholic HIgh School?". [/INST] SELECT "player" FROM "2011_team" WHERE "school"='Joliet Catholic High School';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "Which school did the player then go to Auburn?". [/INST] SELECT "school" FROM "2011_team" WHERE "college"='Auburn';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "What is the hometown of trinity high school?". [/INST] SELECT "hometown" FROM "2011_team" WHERE "school"='Trinity High School';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "What position did the kid from loganville, georgia play". [/INST] SELECT "position" FROM "2011_team" WHERE "hometown"='Loganville, Georgia';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "Where is longview high school". [/INST] SELECT "hometown" FROM "2011_team" WHERE "school"='Longview High School';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "Where did robert nkemdiche ‡ go to college". [/INST] SELECT "college" FROM "2011_team" WHERE "player"='Robert Nkemdiche ‡';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "Where is friendship collegiate charter school located". [/INST] SELECT "hometown" FROM "2011_team" WHERE "school"='Friendship Collegiate Charter School';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scores" ( "country" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: "Who had an evening gown score of 9.78?". [/INST] SELECT "interview" FROM "scores" WHERE "evening_gown"='9.78';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scores" ( "country" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: "How many interviews were there for Miss Virginia?". [/INST] SELECT COUNT("interview") FROM "scores" WHERE "country"='Virginia';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scores" ( "country" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: "Who had a swimsuit score of 9.87?". [/INST] SELECT COUNT("country") FROM "scores" WHERE "swimsuit"='9.87';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scores" ( "country" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: "Who had evening gown score of 9.82?". [/INST] SELECT "country" FROM "scores" WHERE "evening_gown"='9.82';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scores" ( "country" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: "How many ladies scored a 9.89 for the evening gown?". [/INST] SELECT COUNT("swimsuit") FROM "scores" WHERE "evening_gown"='9.89';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scores" ( "country" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: "Who scored a 9.72 in the swimsuit?". [/INST] SELECT "interview" FROM "scores" WHERE "swimsuit"='9.72';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_11695215_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );. Question: "What episode was writted by John A. Norris?". [/INST] SELECT "title" FROM "table1_11695215_1" WHERE "written_by"='John A. Norris';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_11695215_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );. Question: "How many episodes did David Jackson write and direct?". [/INST] SELECT COUNT("written_by") FROM "table1_11695215_1" WHERE "directed_by"='David Jackson';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "a" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text );. Question: "What player attended Loyola Marymount?". [/INST] SELECT "player" FROM "a" WHERE "school_club_team_country"='Loyola Marymount';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "a" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text );. Question: "How may times did a player that attended Iowa state appear on the all time roster?". [/INST] SELECT COUNT("years_for_rockets") FROM "a" WHERE "school_club_team_country"='Iowa State';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "a" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text );. Question: "What height was the player that played for the Rockets between 1992-93?". [/INST] SELECT "height_in_ft" FROM "a" WHERE "years_for_rockets"='1992-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 "a" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text );. Question: "How many times did a center that attended Oral Roberts play for the Rockets?". [/INST] SELECT COUNT("years_for_rockets") FROM "a" WHERE "position"='Center' AND "school_club_team_country"='Oral Roberts';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "a" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text );. Question: "What was the player name who came from Australia?". [/INST] SELECT "player" FROM "a" WHERE "school_club_team_country"='Australia';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "r" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text );. Question: "What is the height in ft for the rockets from 1973-78?". [/INST] SELECT "height_in_ft" FROM "r" WHERE "years_for_rockets"='1973-78';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "r" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text );. Question: "Which players were number 3?". [/INST] SELECT "player" FROM "r" WHERE "no_s"='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 "r" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text );. Question: "What is the height in ft for number 42 for the rockets in 1993-94?". [/INST] SELECT "height_in_ft" FROM "r" WHERE "no_s"='42' AND "years_for_rockets"='1993-94';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "r" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text );. Question: "What are the players that attented long beach state?". [/INST] SELECT "player" FROM "r" WHERE "school_club_team_country"='Long Beach State';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "r" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text );. Question: "what is the total amount of players for the rockets in 1998 only?". [/INST] SELECT COUNT("player") FROM "r" WHERE "years_for_rockets"='1998';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_list" ( "dep" text, "chief_town" text, "arrondissement" text, "population_1999" text, "area_square_km" real, "pop_density" real, "cantons" real, "communes" real );. Question: "What is the area (square km) where the arrondissement is millau?". [/INST] SELECT MIN("area_square_km") FROM "complete_list" WHERE "arrondissement"='Millau';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_list" ( "dep" text, "chief_town" text, "arrondissement" text, "population_1999" text, "area_square_km" real, "pop_density" real, "cantons" real, "communes" real );. Question: "How many communes have the chief town as dijon?". [/INST] SELECT COUNT("communes") FROM "complete_list" WHERE "chief_town"='Dijon';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_list" ( "dep" text, "chief_town" text, "arrondissement" text, "population_1999" text, "area_square_km" real, "pop_density" real, "cantons" real, "communes" real );. Question: "How many communes when the arrondissement is cosne-cours-sur-loire?". [/INST] SELECT MIN("communes") FROM "complete_list" WHERE "arrondissement"='Cosne-Cours-sur-Loire';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fleet_list" ( "number_range" text, "introduced" text, "builder" text, "engine" text, "weight_long_tons" text, "seats" text, "withdrawn" text, "notes" text );. Question: " what's the engine where builder is gloucester rcw and withdrawn is 1959". [/INST] SELECT "engine" FROM "fleet_list" WHERE "builder"='Gloucester RCW' AND "withdrawn"='1959';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fleet_list" ( "number_range" text, "introduced" text, "builder" text, "engine" text, "weight_long_tons" text, "seats" text, "withdrawn" text, "notes" text );. Question: " what's the engine where number range is 8–9, 13–16". [/INST] SELECT "engine" FROM "fleet_list" WHERE "number_range"='8–9, 13–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 "fleet_list" ( "number_range" text, "introduced" text, "builder" text, "engine" text, "weight_long_tons" text, "seats" text, "withdrawn" text, "notes" text );. Question: " what's the introduced where notes is 9 withdrawn in 1946 after fire". [/INST] SELECT "introduced" FROM "fleet_list" WHERE "notes"='9 withdrawn in 1946 after fire';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fleet_list" ( "number_range" text, "introduced" text, "builder" text, "engine" text, "weight_long_tons" text, "seats" text, "withdrawn" text, "notes" text );. Question: " what's the builder where withdrawn is 1954–1958". [/INST] SELECT "builder" FROM "fleet_list" WHERE "withdrawn"='1954–1958';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fleet_list" ( "number_range" text, "introduced" text, "builder" text, "engine" text, "weight_long_tons" text, "seats" text, "withdrawn" text, "notes" text );. Question: " what's the notes where number range is 17". [/INST] SELECT "notes" FROM "fleet_list" WHERE "number_range"='17';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fleet_list" ( "number_range" text, "introduced" text, "builder" text, "engine" text, "weight_long_tons" text, "seats" text, "withdrawn" text, "notes" text );. Question: " what's the notes where withdrawn is 1956–57". [/INST] SELECT "notes" FROM "fleet_list" WHERE "withdrawn"='1956–57';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1980s" ( "year" real, "song_name" text, "film_name" text, "co_singer" text, "music_director" text, "lyricist" text, "language" text );. Question: "Who was the lyricist for gopal krishna and co singer of solo?". [/INST] SELECT "lyricist" FROM "1980s" WHERE "film_name"='Gopal Krishna' AND "co_singer"='Solo';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1980s" ( "year" real, "song_name" text, "film_name" text, "co_singer" text, "music_director" text, "lyricist" text, "language" text );. Question: "What was the number of music directors where the suresh wadkar co singer of bhayanak?". [/INST] SELECT COUNT("music_director") FROM "1980s" WHERE "co_singer"='Suresh Wadkar' AND "film_name"='Bhayanak';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1980s" ( "year" real, "song_name" text, "film_name" text, "co_singer" text, "music_director" text, "lyricist" text, "language" text );. Question: "What was the lyricst of "na jane aise ho gaya kaise"?". [/INST] SELECT "lyricist" FROM "1980s" WHERE "song_name"='\"Na Jane Aise Ho Gaya Kaise\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2000s" ( "year" real, "song_name" text, "film_name" text, "co_singer" text, "music_director" text, "lyricist" text, "language" text );. Question: "how many times is the co-singer suresh wadkar and the film name is tera dukh mera dukh?". [/INST] SELECT COUNT("lyricist") FROM "2000s" WHERE "co_singer"='Suresh Wadkar' AND "film_name"='Tera Dukh Mera Dukh';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2000s" ( "year" real, "song_name" text, "film_name" text, "co_singer" text, "music_director" text, "lyricist" text, "language" text );. Question: "what are the film names with the co-singer vinod rathod?". [/INST] SELECT "film_name" FROM "2000s" WHERE "co_singer"='Vinod Rathod';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2000s" ( "year" real, "song_name" text, "film_name" text, "co_singer" text, "music_director" text, "lyricist" text, "language" text );. Question: "what is the song name for the film name ganga kare insaaf?". [/INST] SELECT "song_name" FROM "2000s" WHERE "film_name"='Ganga Kare Insaaf';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2000s" ( "year" real, "song_name" text, "film_name" text, "co_singer" text, "music_director" text, "lyricist" text, "language" text );. Question: "what are the song names for the film kaal bhairav?". [/INST] SELECT "song_name" FROM "2000s" WHERE "film_name"='Kaal Bhairav';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2000s" ( "year" real, "song_name" text, "film_name" text, "co_singer" text, "music_director" text, "lyricist" text, "language" text );. Question: "who is the music director for the song "jekhanete jaai ami 1"?". [/INST] SELECT "music_director" FROM "2000s" WHERE "song_name"='\"Jekhanete Jaai Ami 1\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "summary_table" ( "l_cr_no" real, "type" text, "manufacturer" text, "delivered" text, "name" text, "jt_cttee_no" real, "1845_disposal" text );. Question: "What was the 1845 disposal for sussex?". [/INST] SELECT "1845_disposal" FROM "summary_table" WHERE "name"='Sussex';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "summary_table" ( "l_cr_no" real, "type" text, "manufacturer" text, "delivered" text, "name" text, "jt_cttee_no" real, "1845_disposal" text );. Question: "What was the maximum l&cr number for archimedes?". [/INST] SELECT MAX("l_cr_no") FROM "summary_table" WHERE "name"='Archimedes';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "summary_table" ( "l_cr_no" real, "type" text, "manufacturer" text, "delivered" text, "name" text, "jt_cttee_no" real, "1845_disposal" text );. Question: "What was the type of sussex?". [/INST] SELECT "type" FROM "summary_table" WHERE "name"='Sussex';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "recent_testings_and_launch" ( "launch_vehicle" text, "launch_date" text, "mission" text, "institutional_authority" text, "launch_site" text, "results" text );. Question: "Where did Test Mission: War Heads and Missile Payload launch when there was a partial failure?". [/INST] SELECT "launch_site" FROM "recent_testings_and_launch" WHERE "mission"='Test Mission: war heads and Missile payload' AND "results"='Partial Failure';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "recent_testings_and_launch" ( "launch_vehicle" text, "launch_date" text, "mission" text, "institutional_authority" text, "launch_site" text, "results" text );. Question: "Which missions were scheduled to launch on November 16, 2006?". [/INST] SELECT "mission" FROM "recent_testings_and_launch" WHERE "launch_date"='November 16, 2006';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "spaceflight_by_year" ( "rocket_launch" text, "launch_date" text, "mission" text, "institutional_authority" text, "launch_site" text, "outcomes" text, "derivatives" text );. Question: "Which authority has a rocket launch called rehbar-ii?". [/INST] SELECT "institutional_authority" FROM "spaceflight_by_year" WHERE "rocket_launch"='Rehbar-II';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "spaceflight_by_year" ( "rocket_launch" text, "launch_date" text, "mission" text, "institutional_authority" text, "launch_site" text, "outcomes" text, "derivatives" text );. Question: "Which authority has a rocket launch called rehnuma-8?". [/INST] SELECT "institutional_authority" FROM "spaceflight_by_year" WHERE "rocket_launch"='Rehnuma-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 "spaceflight_by_year" ( "rocket_launch" text, "launch_date" text, "mission" text, "institutional_authority" text, "launch_site" text, "outcomes" text, "derivatives" text );. Question: "Which authority has a rocket launch called shahpar-2?". [/INST] SELECT "institutional_authority" FROM "spaceflight_by_year" WHERE "rocket_launch"='Shahpar-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 "spaceflight_by_year" ( "rocket_launch" text, "launch_date" text, "mission" text, "institutional_authority" text, "launch_site" text, "outcomes" text, "derivatives" text );. Question: "Which authority has a rocket launch called rehbar-5?". [/INST] SELECT COUNT("derivatives") FROM "spaceflight_by_year" WHERE "rocket_launch"='Rehbar-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 "2006" ( "date_of_issue" text, "theme" text, "denomination" text, "design" text, "illustration" text, "printing_process" text, "paper_type" text, "first_day_cover_cancellation" text );. Question: "What denominations are the stamps with themes opera, léopold simoneau and pierrette alarie?". [/INST] SELECT "denomination" FROM "2006" WHERE "theme"='Opera, Léopold Simoneau and Pierrette Alarie';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2006" ( "date_of_issue" text, "theme" text, "denomination" text, "design" text, "illustration" text, "printing_process" text, "paper_type" text, "first_day_cover_cancellation" text );. Question: "What kind of paper were the stamps with the theme duck decoys, barrow's golden eye printed on?". [/INST] SELECT "paper_type" FROM "2006" WHERE "theme"='Duck Decoys, Barrow''s Golden Eye';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008" ( "date_of_issue" text, "theme" text, "denomination" text, "design" text, "illustration" text, "printing_process" text, "paper_type" text, "first_day_cover_cancellation" text );. Question: "List all the themes designed by Isabelle Toussaint.". [/INST] SELECT "theme" FROM "2008" WHERE "design"='Isabelle Toussaint';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008" ( "date_of_issue" text, "theme" text, "denomination" text, "design" text, "illustration" text, "printing_process" text, "paper_type" text, "first_day_cover_cancellation" text );. Question: "How many paper types did Ian Drolet design stamps on?". [/INST] SELECT COUNT("paper_type") FROM "2008" WHERE "design"='Ian Drolet';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008" ( "date_of_issue" text, "theme" text, "denomination" text, "design" text, "illustration" text, "printing_process" text, "paper_type" text, "first_day_cover_cancellation" text );. Question: "Who is the designer of the Christmas: Winter Fun (USA) stamp?". [/INST] SELECT "design" FROM "2008" WHERE "theme"='Christmas: Winter Fun (USA)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008" ( "date_of_issue" text, "theme" text, "denomination" text, "design" text, "illustration" text, "printing_process" text, "paper_type" text, "first_day_cover_cancellation" text );. Question: "How many stamps were designed for the theme of XII Summit de la Francophonie?". [/INST] SELECT COUNT("design") FROM "2008" WHERE "theme"='XII Summit de la Francophonie';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008" ( "date_of_issue" text, "theme" text, "denomination" text, "design" text, "illustration" text, "printing_process" text, "paper_type" text, "first_day_cover_cancellation" text );. Question: "Where is the first day cover cancellation for the 3 April 2008 IIHF World Championships, Quebec City stamp?". [/INST] SELECT "first_day_cover_cancellation" FROM "2008" WHERE "date_of_issue"='3 April 2008' AND "theme"='IIHF World Championships, Quebec City';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "highest_rating_drama_series_of_2008" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text );. Question: "How many premier episodes were there with the title survivor's law ii?". [/INST] SELECT COUNT("premiere") FROM "highest_rating_drama_series_of_2008" WHERE "english_title"='Survivor''s Law II';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "highest_rating_drama_series_of_2008" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text );. Question: "What is the Chinese name that has a 31 average?". [/INST] SELECT "chinese_title" FROM "highest_rating_drama_series_of_2008" WHERE "average"=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 "highest_rating_drama_series_of_2008" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text );. Question: "What is the rank of finale 37?". [/INST] SELECT "rank" FROM "highest_rating_drama_series_of_2008" WHERE "finale"=37;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "highest_rating_drama_series_of_2008" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text );. Question: "what is the Chinese name for Forensic heroes ii?". [/INST] SELECT "chinese_title" FROM "highest_rating_drama_series_of_2008" WHERE "english_title"='Forensic Heroes II';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "highest_rating_drama_series_of_2008" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text );. Question: "What numbr on the list had a peak rating of 42?". [/INST] SELECT MIN("rank") FROM "highest_rating_drama_series_of_2008" WHERE "peak"=42;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results" ( "member" text, "electorate" text, "province" text, "m_ps_term" text, "election_date" text );. Question: " what's the electorate where election date is 16 cannot handle non-empty timestamp argument!". [/INST] SELECT "electorate" FROM "results" WHERE "election_date"='16 Cannot handle non-empty timestamp argument!';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "member" text, "electorate" text, "province" text, "m_ps_term" text, "election_date" text );. Question: " what's the province where member is frederick merriman category:articles with hcards". [/INST] SELECT "province" FROM "results" WHERE "member"='Frederick Merriman Category:Articles with hCards';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "member" text, "electorate" text, "province" text, "m_ps_term" text, "election_date" text );. Question: " what's the election date where electorate is omata". [/INST] SELECT "election_date" FROM "results" WHERE "electorate"='Omata';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "member" text, "electorate" text, "province" text, "m_ps_term" text, "election_date" text );. Question: " what's the election date where member is william richmond category:articles with hcards". [/INST] SELECT "election_date" FROM "results" WHERE "member"='William Richmond Category:Articles with hCards';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "member" text, "electorate" text, "province" text, "m_ps_term" text, "election_date" text );. Question: " what's the province where member is dingley brittin category:articles with hcards". [/INST] SELECT "province" FROM "results" WHERE "member"='Dingley Brittin Category:Articles with hCards';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "member" text, "electorate" text, "province" text, "m_ps_term" text, "election_date" text );. Question: " what's the election date where electorate is christchurch country". [/INST] SELECT "election_date" FROM "results" WHERE "electorate"='Christchurch Country';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senators" ( "district" real, "county_s_represented" text, "member_senator" text, "party" text, "first_elected" real, "committee" text );. Question: "What is the county for senator C. Anthony Muse?". [/INST] SELECT "county_s_represented" FROM "senators" WHERE "member_senator"='C. Anthony Muse';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senators" ( "district" real, "county_s_represented" text, "member_senator" text, "party" text, "first_elected" real, "committee" text );. Question: "Who is the senator for district 24?". [/INST] SELECT "member_senator" FROM "senators" WHERE "district"=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 "senators" ( "district" real, "county_s_represented" text, "member_senator" text, "party" text, "first_elected" real, "committee" text );. Question: "How many entries are shown for first elected for district 41?". [/INST] SELECT COUNT("first_elected") FROM "senators" WHERE "district"=41;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "origins_in_corporate_strategy" ( "component" text, "integrated" text, "allied_related" text, "allied_unrelated" text, "holding" text );. Question: "What is the total amount of allied-unrelated where the component is human capital?". [/INST] SELECT COUNT("allied_unrelated") FROM "origins_in_corporate_strategy" WHERE "component"='Human Capital';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "origins_in_corporate_strategy" ( "component" text, "integrated" text, "allied_related" text, "allied_unrelated" text, "holding" text );. Question: "How many integrated allied-related are there?". [/INST] SELECT "integrated" FROM "origins_in_corporate_strategy" WHERE "allied_related"='Many';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "origins_in_corporate_strategy" ( "component" text, "integrated" text, "allied_related" text, "allied_unrelated" text, "holding" text );. Question: "What is the name of the integrated where the component are customers?". [/INST] SELECT "integrated" FROM "origins_in_corporate_strategy" WHERE "component"='Customers';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "origins_in_corporate_strategy" ( "component" text, "integrated" text, "allied_related" text, "allied_unrelated" text, "holding" text );. Question: "what is the integrated in which the holding allied-unrelated is many?". [/INST] SELECT "holding" FROM "origins_in_corporate_strategy" WHERE "allied_unrelated"='Many';</s>