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 "l" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text );. Question: "What position does the player who played for butler cc (ks) play?". [/INST] SELECT "position" FROM "l" WHERE "school_club_team"='Butler CC (KS)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "l" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text );. Question: "How many schools did player number 3 play at?". [/INST] SELECT COUNT("school_club_team") FROM "l" WHERE "no"='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 "l" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text );. Question: "What school did player number 21 play for?". [/INST] SELECT "school_club_team" FROM "l" WHERE "no"='21';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "l" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text );. Question: "Who is the player that wears number 42?". [/INST] SELECT "player" FROM "l" WHERE "no"='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 "l" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text );. Question: "What player played guard for toronto in 1996-97?". [/INST] SELECT "player" FROM "l" WHERE "position"='Guard' AND "years_in_toronto"='1996-97';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "j" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text );. Question: "Who are all of the players on the Westchester High School club team?". [/INST] SELECT "player" FROM "j" WHERE "school_club_team"='Westchester 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 "j" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text );. Question: "What school/club team is Amir Johnson on?". [/INST] SELECT "school_club_team" FROM "j" WHERE "player"='Amir Johnson';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "j" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text );. Question: "What are the total amount of numbers on the Toronto team in 2005-06?". [/INST] SELECT COUNT("no") FROM "j" WHERE "years_in_toronto"='2005-06';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "j" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text );. Question: "What are the total number of positions on the Toronto team in 2006-07?". [/INST] SELECT COUNT("position") FROM "j" WHERE "years_in_toronto"='2006-07';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "j" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text );. Question: "What are the nationality of the players on the Fresno State school/club team?". [/INST] SELECT "nationality" FROM "j" WHERE "school_club_team"='Fresno 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 "j" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text );. Question: "What school/club team is Trey Johnson on?". [/INST] SELECT "school_club_team" FROM "j" WHERE "player"='Trey Johnson';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_longest_serving_g8_leaders" ( "entered_office_as_head_of_state_or_government" text, "began_time_as_senior_g8_leader" text, "ended_time_as_senior_g8_leader" text, "person" text, "office" text );. Question: "When did Jacques Chirac stop being a G8 leader?". [/INST] SELECT "ended_time_as_senior_g8_leader" FROM "chronology_of_longest_serving_g8_leaders" WHERE "person"='Jacques Chirac';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_longest_serving_g8_leaders" ( "entered_office_as_head_of_state_or_government" text, "began_time_as_senior_g8_leader" text, "ended_time_as_senior_g8_leader" text, "person" text, "office" text );. Question: "When did the Prime Minister of Italy take office?". [/INST] SELECT "entered_office_as_head_of_state_or_government" FROM "chronology_of_longest_serving_g8_leaders" WHERE "office"='Prime Minister of Italy';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1008653_1" ( "country_exonym" text, "capital_exonym" text, "country_endonym" text, "capital_endonym" text, "official_or_native_language_s_alphabet_script" text );. Question: "What is the English name of the country whose official native language is Dutch Papiamento?". [/INST] SELECT "country_exonym" FROM "table1_1008653_1" WHERE "official_or_native_language_s_alphabet_script"='Dutch Papiamento';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1008653_1" ( "country_exonym" text, "capital_exonym" text, "country_endonym" text, "capital_endonym" text, "official_or_native_language_s_alphabet_script" text );. Question: "What official or native languages are spoken in the country whose capital city is Canberra?". [/INST] SELECT "official_or_native_language_s_alphabet_script" FROM "table1_1008653_1" WHERE "capital_exonym"='Canberra';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1008653_1" ( "country_exonym" text, "capital_exonym" text, "country_endonym" text, "capital_endonym" text, "official_or_native_language_s_alphabet_script" text );. Question: "What is the local name given to the city of Canberra?". [/INST] SELECT "capital_endonym" FROM "table1_1008653_1" WHERE "capital_exonym"='Canberra';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1008653_1" ( "country_exonym" text, "capital_exonym" text, "country_endonym" text, "capital_endonym" text, "official_or_native_language_s_alphabet_script" text );. Question: "What is the local name given to the capital of Anguilla?". [/INST] SELECT "capital_endonym" FROM "table1_1008653_1" WHERE "country_endonym"='Anguilla';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1008653_1" ( "country_exonym" text, "capital_exonym" text, "country_endonym" text, "capital_endonym" text, "official_or_native_language_s_alphabet_script" text );. Question: "What is the English name given to the city of St. John's?". [/INST] SELECT "capital_exonym" FROM "table1_1008653_1" WHERE "capital_endonym"='St. John''s';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1008653_1" ( "country_exonym" text, "capital_exonym" text, "country_endonym" text, "capital_endonym" text, "official_or_native_language_s_alphabet_script" text );. Question: "How many capital cities does Australia have?". [/INST] SELECT COUNT("capital_endonym") FROM "table1_1008653_1" WHERE "country_endonym"='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 "table1_10088101_1" ( "no_in_set" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text );. Question: "The episode with production code 9abx02 was originally aired on what date?". [/INST] SELECT "original_air_date" FROM "table1_10088101_1" WHERE "production_code"='9ABX02';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_10088101_1" ( "no_in_set" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text );. Question: "What is the episode number that has production code 8abx15?". [/INST] SELECT MIN("no_in_series") FROM "table1_10088101_1" WHERE "production_code"='8ABX15';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "all_players" ( "player" text, "highest_singles_ranking" text, "highest_doubles_ranking" text, "first_year_played" real, "years_played" real, "ties_played" real, "total_w_l" text, "singles_w_l" text, "doubles_w_l" text );. Question: "Name the minimum tiesplayed for 6 years". [/INST] SELECT MIN("ties_played") FROM "all_players" WHERE "years_played"=6;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_10342194_3" ( "district" text, "total_amount_of_trees" real, "prevailing_types_pct" text, "amount_of_old_trees" text, "amount_of_trees_that_require_replacement" text );. Question: "What is the amount of trees, that require replacement when prevailing types, % is pine — 29.37 poplar — 26.12 acer negundo — 13.2?". [/INST] SELECT "amount_of_trees_that_require_replacement" FROM "table1_10342194_3" WHERE "prevailing_types_pct"='Pine — 29.37 Poplar — 26.12 Acer negundo — 13.2';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_10342194_3" ( "district" text, "total_amount_of_trees" real, "prevailing_types_pct" text, "amount_of_old_trees" text, "amount_of_trees_that_require_replacement" text );. Question: "What is the amount of trees, that require replacement when district is leninsky?". [/INST] SELECT "amount_of_trees_that_require_replacement" FROM "table1_10342194_3" WHERE "district"='Leninsky';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_10342194_3" ( "district" text, "total_amount_of_trees" real, "prevailing_types_pct" text, "amount_of_old_trees" text, "amount_of_trees_that_require_replacement" text );. Question: "What is the district when the total amount of trees is smaller than 150817.6878461314 and amount of old trees is 1,928 (1.89%)?". [/INST] SELECT "district" FROM "table1_10342194_3" WHERE "total_amount_of_trees"<150817.6878461314 AND "amount_of_old_trees"='1,928 (1.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 "table1_10342194_3" ( "district" text, "total_amount_of_trees" real, "prevailing_types_pct" text, "amount_of_old_trees" text, "amount_of_trees_that_require_replacement" text );. Question: "What is the amount of trees, that require replacement when the district is motovilikhinsky?". [/INST] SELECT "amount_of_trees_that_require_replacement" FROM "table1_10342194_3" WHERE "district"='Motovilikhinsky';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_10342194_3" ( "district" text, "total_amount_of_trees" real, "prevailing_types_pct" text, "amount_of_old_trees" text, "amount_of_trees_that_require_replacement" text );. Question: "What is the total amount of trees when district is leninsky?". [/INST] SELECT MAX("total_amount_of_trees") FROM "table1_10342194_3" WHERE "district"='Leninsky';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_10342194_3" ( "district" text, "total_amount_of_trees" real, "prevailing_types_pct" text, "amount_of_old_trees" text, "amount_of_trees_that_require_replacement" text );. Question: "What is the district when prevailing types, % is acer negundo — 30.22 tilia — 18.6 poplar — 15.23?". [/INST] SELECT "district" FROM "table1_10342194_3" WHERE "prevailing_types_pct"='Acer negundo — 30.22 Tilia — 18.6 Poplar — 15.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 "record_vs_big_12_opponents" ( "iowa_state_vs" text, "overall_record" text, "in_ames" text, "at_opponents_venue" text, "at_neutral_site" text, "last_5_meetings" text, "last_10_meetings" text, "current_streak" text, "since_beginning_of_big_12" text );. Question: "When the value of "since beginning of big 12" is synonymous with its' category, what are the in Ames values?". [/INST] SELECT "in_ames" FROM "record_vs_big_12_opponents" WHERE "since_beginning_of_big_12"='Since Beginning of Big 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 "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text, "playoffs" text, "u_s_open_cup" text );. Question: "what's the u.s. open cup status for regular season of 4th, atlantic division ". [/INST] SELECT "u_s_open_cup" FROM "year_by_year" WHERE "regular_season"='4th, Atlantic Division';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text, "playoffs" text, "u_s_open_cup" text );. Question: "how many division did not qualify for u.s. open cup in 2003". [/INST] SELECT "division" FROM "year_by_year" WHERE "u_s_open_cup"='Did Not Qualify' AND "year"=2003;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text, "playoffs" text, "u_s_open_cup" text );. Question: "which round is u.s. open cup division semifinals". [/INST] SELECT "u_s_open_cup" FROM "year_by_year" WHERE "playoffs"='Division Semifinals';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text, "playoffs" text, "u_s_open_cup" text );. Question: "what are all the playoffs for regular season is 1st, atlantic division". [/INST] SELECT "playoffs" FROM "year_by_year" WHERE "regular_season"='1st, Atlantic Division';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text, "playoffs" text, "u_s_open_cup" text );. Question: "what are all the playoffs for u.s. open cup in 1st round". [/INST] SELECT "playoffs" FROM "year_by_year" WHERE "u_s_open_cup"='1st Round';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "european_record" ( "season" text, "competition" text, "round" text, "opponents" text, "1st_leg" text, "2nd_leg" text, "aggregate" text );. Question: "what is the total number of 2nd leg where aggregate is 7-2". [/INST] SELECT COUNT("2nd_leg") FROM "european_record" WHERE "aggregate"='7-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 "european_record" ( "season" text, "competition" text, "round" text, "opponents" text, "1st_leg" text, "2nd_leg" text, "aggregate" text );. Question: " what's the aggregate where 1st leg is 3–2". [/INST] SELECT "aggregate" FROM "european_record" WHERE "1st_leg"='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 "european_record" ( "season" text, "competition" text, "round" text, "opponents" text, "1st_leg" text, "2nd_leg" text, "aggregate" text );. Question: " what's the competition where aggregate is 4–7". [/INST] SELECT "competition" FROM "european_record" WHERE "aggregate"='4–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 "european_record" ( "season" text, "competition" text, "round" text, "opponents" text, "1st_leg" text, "2nd_leg" text, "aggregate" text );. Question: " what's the competition where 1st leg is 4-1 (h)". [/INST] SELECT "competition" FROM "european_record" WHERE "1st_leg"='4-1 (h)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "european_record" ( "season" text, "competition" text, "round" text, "opponents" text, "1st_leg" text, "2nd_leg" text, "aggregate" text );. Question: "what is the total number of round where opponents is haugar". [/INST] SELECT COUNT("round") FROM "european_record" WHERE "opponents"='Haugar';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "european_record" ( "season" text, "competition" text, "round" text, "opponents" text, "1st_leg" text, "2nd_leg" text, "aggregate" text );. Question: " what's the 1st leg where opponents is galatasaray". [/INST] SELECT "1st_leg" FROM "european_record" WHERE "opponents"='Galatasaray';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_results" ( "rd" real, "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "What is the highest Rd that Tom Sneva had the pole position in?". [/INST] SELECT MAX("rd") FROM "race_results" WHERE "pole_position"='Tom Sneva';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_results" ( "rd" real, "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "How many winning drivers were there in the race that had a fastest lap time of 56.920?". [/INST] SELECT COUNT("winning_driver") FROM "race_results" WHERE "fastest_lap"='56.920';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_results" ( "rd" real, "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "How many reports are there in the race that Forsythe Racing won and Teo Fabi had the pole position in?". [/INST] SELECT COUNT("report") FROM "race_results" WHERE "winning_team"='Forsythe Racing' AND "pole_position"='Teo Fabi';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_results" ( "rd" real, "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "Which Rd took place at the Indianapolis 500?". [/INST] SELECT "rd" FROM "race_results" WHERE "name"='Indianapolis 500';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_results" ( "rd" real, "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "Which teams won when Bobby Rahal was their winning driver?". [/INST] SELECT "winning_team" FROM "race_results" WHERE "winning_driver"='Bobby Rahal';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_results" ( "rd" real, "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "What was the fastest lap time in the Escort Radar Warning 200?". [/INST] SELECT "fastest_lap" FROM "race_results" WHERE "name"='Escort Radar Warning 200';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "What report was there for the porsche north america?". [/INST] SELECT "report" FROM "races" WHERE "winning_team"='Porsche North America';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "What rnds were there for the phoenix international raceway?". [/INST] SELECT "rnd" FROM "races" WHERE "circuit"='Phoenix International Raceway';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "Who was the pole position for the rnd equalling 12?". [/INST] SELECT "pole_position" FROM "races" WHERE "rnd"='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 "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "How many reports were the for the cleveland burke lakefront airport circut?". [/INST] SELECT COUNT("report") FROM "races" WHERE "circuit"='Cleveland Burke Lakefront Airport';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "How many winning drivers were the for the rnd equalling 5?". [/INST] SELECT COUNT("winning_driver") FROM "races" WHERE "rnd"='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 "race_results" ( "rd" real, "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "The race tony bettenhausen 200 has what smallest rd?". [/INST] SELECT MIN("rd") FROM "race_results" WHERE "name"='Tony Bettenhausen 200';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_results" ( "rd" real, "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "The winning team of the race, los angeles times 500 is who?". [/INST] SELECT "winning_team" FROM "race_results" WHERE "name"='Los Angeles Times 500';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_results" ( "rd" real, "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "How many winning drivers in the kraco twin 125 (r2) race were there?". [/INST] SELECT COUNT("winning_driver") FROM "race_results" WHERE "name"='Kraco Twin 125 (R2)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_results" ( "rd" real, "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "What are the races that johnny rutherford has won?". [/INST] SELECT "name" FROM "race_results" WHERE "winning_driver"='Johnny Rutherford';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_results" ( "rd" real, "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "How many fastest laps were there for a rd that equals 10?". [/INST] SELECT COUNT("fastest_lap") FROM "race_results" WHERE "rd"=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 "regional_ensembles" ( "region" text, "operator" text, "licence_award_date" text, "on_air_date" text, "closure_date" text );. Question: "What is the license award date for North East England?". [/INST] SELECT "licence_award_date" FROM "regional_ensembles" WHERE "region"='North East England';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "internet_availability" ( "nation" text, "population_thousands" real, "internet_subscriptions_2000_thousands_of_users" real, "internet_subscriptions_2008_thousands_of_users" real, "pct_growth_2000_2008" real, "pct_internet_users" real );. Question: "What is the percentage of growth in 2000-2008 in ethiopia?". [/INST] SELECT "pct_growth_2000_2008" FROM "internet_availability" WHERE "nation"='Ethiopia';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "internet_availability" ( "nation" text, "population_thousands" real, "internet_subscriptions_2000_thousands_of_users" real, "internet_subscriptions_2008_thousands_of_users" real, "pct_growth_2000_2008" real, "pct_internet_users" real );. Question: "Name the total number of percentage growth 2000-2008 of uganda?". [/INST] SELECT COUNT("pct_growth_2000_2008") FROM "internet_availability" WHERE "nation"='Uganda';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "internet_availability" ( "nation" text, "population_thousands" real, "internet_subscriptions_2000_thousands_of_users" real, "internet_subscriptions_2008_thousands_of_users" real, "pct_growth_2000_2008" real, "pct_internet_users" real );. Question: "What is the maximum percentage grown 2000-2008 in burundi". [/INST] SELECT MAX("pct_growth_2000_2008") FROM "internet_availability" WHERE "nation"='Burundi';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "politics" ( "village_german" text, "village_slovenian" text, "number_of_people_1991" real, "percent_of_slovenes_1991" text, "percent_of_slovenes_1951" text );. Question: "Provide me with the names of all the villages (German) that has 76.3% of Slovenes in 1951.". [/INST] SELECT "village_german" FROM "politics" WHERE "percent_of_slovenes_1951"='76.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 "politics" ( "village_german" text, "village_slovenian" text, "number_of_people_1991" real, "percent_of_slovenes_1991" text, "percent_of_slovenes_1951" text );. Question: "Give me the minimum number of people in 1991 with 92.5% of Slovenes in 1991.". [/INST] SELECT MIN("number_of_people_1991") FROM "politics" WHERE "percent_of_slovenes_1991"='92.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 "politics" ( "village_german" text, "village_slovenian" text, "number_of_people_1991" real, "percent_of_slovenes_1991" text, "percent_of_slovenes_1951" text );. Question: "Provide me with the name of all the village (German) that are part of the village (Slovenian) with sele srednji kot. ". [/INST] SELECT "village_german" FROM "politics" WHERE "village_slovenian"='Sele Srednji Kot';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "politics" ( "village_german" text, "village_slovenian" text, "number_of_people_1991" real, "percent_of_slovenes_1991" text, "percent_of_slovenes_1951" text );. Question: "Provide me with the name of all the village (German) that are part of the village (Slovenian) with sele borovnica.". [/INST] SELECT "village_german" FROM "politics" WHERE "village_slovenian"='Sele Borovnica';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "politics" ( "village_german" text, "village_slovenian" text, "number_of_people_1991" real, "percent_of_slovenes_1991" text, "percent_of_slovenes_1951" text );. Question: "Provide me with the name of the village (German) where there is 96.9% Slovenes in 1951. ". [/INST] SELECT "village_german" FROM "politics" WHERE "percent_of_slovenes_1951"='96.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 "politics" ( "village_german" text, "village_slovenian" text, "number_of_people_1991" real, "percent_of_slovenes_1991" text, "percent_of_slovenes_1951" text );. Question: "Provide with the names of the village (German) that is part of village (Slovenian) with sele srednji kot.". [/INST] SELECT "village_german" FROM "politics" WHERE "village_slovenian"='Sele Srednji Kot';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What was the score of the game on November 12?". [/INST] SELECT "score" FROM "game_log" WHERE "date"='November 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 "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Who had high assists when they played against San Antonio?". [/INST] SELECT "high_assists" FROM "game_log" WHERE "team"='San Antonio';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Who scored the most points in game 4?". [/INST] SELECT "high_points" FROM "game_log" WHERE "game"=4;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Where was the game on November 20?". [/INST] SELECT "location_attendance" FROM "game_log" WHERE "date"='November 20';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_10935205_1" ( "no_in_season" real, "no_in_series" real, "title" text, "canadian_airdate" text, "us_airdate" text, "production_code" real );. Question: "The canadian airdate of 11 february 2008 applied to what series number?". [/INST] SELECT COUNT("no_in_series") FROM "table1_10935205_1" WHERE "canadian_airdate"='11 February 2008';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_10935205_1" ( "no_in_season" real, "no_in_series" real, "title" text, "canadian_airdate" text, "us_airdate" text, "production_code" real );. Question: "The U.S. airdate of 4 april 2008 had a production code of what?". [/INST] SELECT MAX("production_code") FROM "table1_10935205_1" WHERE "us_airdate"='4 April 2008';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_10935205_1" ( "no_in_season" real, "no_in_series" real, "title" text, "canadian_airdate" text, "us_airdate" text, "production_code" real );. Question: "The episode titled "don't stop believin'" was what highest number of the season?". [/INST] SELECT MAX("no_in_season") FROM "table1_10935205_1" WHERE "title"='\"Don''t Stop Believin''\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_10935205_1" ( "no_in_season" real, "no_in_series" real, "title" text, "canadian_airdate" text, "us_airdate" text, "production_code" real );. Question: "The U.S. airdate of 8 august 2008 also had canadian airdates of what?". [/INST] SELECT "canadian_airdate" FROM "table1_10935205_1" WHERE "us_airdate"='8 August 2008';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_10935205_1" ( "no_in_season" real, "no_in_series" real, "title" text, "canadian_airdate" text, "us_airdate" text, "production_code" real );. Question: "The canadian airdate of 17 march 2008 had how many numbers in the season?". [/INST] SELECT COUNT("no_in_season") FROM "table1_10935205_1" WHERE "canadian_airdate"='17 March 2008';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_10935205_1" ( "no_in_season" real, "no_in_series" real, "title" text, "canadian_airdate" text, "us_airdate" text, "production_code" real );. Question: "For the episode(s) aired in the U.S. on 4 april 2008, what were the names?". [/INST] SELECT "title" FROM "table1_10935205_1" WHERE "us_airdate"='4 April 2008';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_5_1996_1997" ( "no_in_series" real, "no_in_season" real, "title" text, "director" text, "writer_s" text, "original_air_date" text, "production_code" text );. Question: "Who directed the episode "Great Sexpectations (2)"?". [/INST] SELECT "director" FROM "season_5_1996_1997" WHERE "title"='\"Great Sexpectations (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 "round_two" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "Which player from the 2004 CFL draft attended Wilfrid Laurier?". [/INST] SELECT "player" FROM "round_two" WHERE "college"='Wilfrid Laurier';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_two" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "What position does Christian Leibl-Cote play?". [/INST] SELECT "position" FROM "round_two" WHERE "player"='Christian Leibl-Cote';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_two" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "What is the pick number for Northwestern college?". [/INST] SELECT MAX("pick_num") FROM "round_two" WHERE "college"='Northwestern';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "population_of_the_46_city_districts_on_3" ( "no" text, "city_district_stadtteil" text, "area_in_km" text, "population" text, "foreign_nationals" text, "foreign_nationals_in_pct" text, "area_district_ortsbezirk" text );. Question: "How many foreigners in percentage terms had a population of 4.911?". [/INST] SELECT COUNT("foreign_nationals_in_pct") FROM "population_of_the_46_city_districts_on_3" WHERE "population"='4.911';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "population_of_the_46_city_districts_on_3" ( "no" text, "city_district_stadtteil" text, "area_in_km" text, "population" text, "foreign_nationals" text, "foreign_nationals_in_pct" text, "area_district_ortsbezirk" text );. Question: "What is the number of the city district of stadtteil where foreigners are 5.162?". [/INST] SELECT COUNT("city_district_stadtteil") FROM "population_of_the_46_city_districts_on_3" WHERE "foreign_nationals"='5.162';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "population_of_the_46_city_districts_on_3" ( "no" text, "city_district_stadtteil" text, "area_in_km" text, "population" text, "foreign_nationals" text, "foreign_nationals_in_pct" text, "area_district_ortsbezirk" text );. Question: "What is the city where the number is 47?". [/INST] SELECT "city_district_stadtteil" FROM "population_of_the_46_city_districts_on_3" WHERE "no"='47';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_members" ( "school" text, "mascot" text, "location" text, "league" text, "enrollment" real );. Question: "Which leagues have Raiders as their mascot?". [/INST] SELECT "league" FROM "current_members" WHERE "mascot"='Raiders';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_members" ( "school" text, "mascot" text, "location" text, "league" text, "enrollment" real );. Question: "Which leagues is the Galena school in?". [/INST] SELECT "league" FROM "current_members" WHERE "school"='Galena';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_members" ( "school" text, "mascot" text, "location" text, "league" text, "enrollment" real );. Question: "What city and state is the Lancers mascot located?". [/INST] SELECT "location" FROM "current_members" WHERE "mascot"='Lancers';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_members" ( "school" text, "mascot" text, "location" text, "league" text, "enrollment" real );. Question: "What city and state are the miners located in?". [/INST] SELECT "location" FROM "current_members" WHERE "mascot"='Miners';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_members" ( "school" text, "mascot" text, "location" text, "league" text, "enrollment" real );. Question: "Which school has the Raiders as their mascot?". [/INST] SELECT "school" FROM "current_members" WHERE "mascot"='Raiders';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lpga_tour_6" ( "no" real, "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text );. Question: "Where was the tournament dated nov 3, 2002?". [/INST] SELECT "tournament" FROM "lpga_tour_6" WHERE "date"='Nov 3, 2002';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lpga_tour_6" ( "no" real, "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text );. Question: "Where is the margin of victory dated mar 28, 2004?". [/INST] SELECT "margin_of_victory" FROM "lpga_tour_6" WHERE "date"='Mar 28, 2004';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lpga_tour_6" ( "no" real, "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text );. Question: "What is the to par dated may 4, 2003?". [/INST] SELECT "to_par" FROM "lpga_tour_6" WHERE "date"='May 4, 2003';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lpga_tour_6" ( "no" real, "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text );. Question: "What date were the runner ups pat hurst juli inkster?". [/INST] SELECT "date" FROM "lpga_tour_6" WHERE "runner_s_up"='Pat Hurst Juli Inkster';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "notable_enemies" ( "character" text, "fate" text, "actor" text, "first_episode" text, "final_episode" text, "duration" text, "final_episode_count" real );. Question: "what's the total number of final epbeingode count with character being rick stetler". [/INST] SELECT COUNT("final_episode_count") FROM "notable_enemies" WHERE "character"='Rick Stetler';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "notable_enemies" ( "character" text, "fate" text, "actor" text, "first_episode" text, "final_episode" text, "duration" text, "final_episode_count" real );. Question: "what are all the actor where first episode is "ambush"". [/INST] SELECT "actor" FROM "notable_enemies" WHERE "first_episode"='\"Ambush\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "notable_enemies" ( "character" text, "fate" text, "actor" text, "first_episode" text, "final_episode" text, "duration" text, "final_episode_count" real );. Question: "what's the character with fate being deceased: knife wound". [/INST] SELECT "character" FROM "notable_enemies" WHERE "fate"='Deceased: Knife Wound';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "notable_enemies" ( "character" text, "fate" text, "actor" text, "first_episode" text, "final_episode" text, "duration" text, "final_episode_count" real );. Question: "what's the total number of final epbeingode count with first epbeingode being "l.a."". [/INST] SELECT COUNT("final_episode_count") FROM "notable_enemies" WHERE "first_episode"='\"L.A.\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "notable_enemies" ( "character" text, "fate" text, "actor" text, "first_episode" text, "final_episode" text, "duration" text, "final_episode_count" real );. Question: "what's the actor with character being judge joseph ratner". [/INST] SELECT "actor" FROM "notable_enemies" WHERE "character"='Judge Joseph Ratner';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "notable_enemies" ( "character" text, "fate" text, "actor" text, "first_episode" text, "final_episode" text, "duration" text, "final_episode_count" real );. Question: "what's the first epbeingode with final epbeingode being "rio"". [/INST] SELECT "first_episode" FROM "notable_enemies" WHERE "final_episode"='\"Rio\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "division_ii" ( "year" real, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text );. Question: "Which team was the second semi finalist in 2007?". [/INST] SELECT "semi_finalist_num2" FROM "division_ii" WHERE "year"=2007;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "division_ii" ( "year" real, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text );. Question: "How many teams were listed as runner up in 2005 and there the first semi finalist was Western Carolina?". [/INST] SELECT COUNT("runner_up") FROM "division_ii" WHERE "semi_finalist_num1"='Western Carolina' AND "year"=2005;</s>
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
0
Edit dataset card

Models trained or fine-tuned on kaxap/llama2-sql-instruct-sys-prompt