aswin1906/llama-7b-sql-2k
Question Answering
•
Updated
•
12
•
1
text
stringlengths 369
840
|
---|
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "l" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "l" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); Write an SQL query that provides the solution to the following question: "How many schools did player number 3 play at?". [/INST] SELECT COUNT("school_club_team") FROM "l" WHERE "no"='3'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "l" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); Write an SQL query that provides the solution to the following question: "What school did player number 21 play for?". [/INST] SELECT "school_club_team" FROM "l" WHERE "no"='21'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "l" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); Write an SQL query that provides the solution to the following question: "Who is the player that wears number 42?". [/INST] SELECT "player" FROM "l" WHERE "no"='42'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "l" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "j" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "j" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); Write an SQL query that provides the solution to the following question: "What school/club team is Amir Johnson on?". [/INST] SELECT "school_club_team" FROM "j" WHERE "player"='Amir Johnson'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "j" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "j" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "j" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "j" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); Write an SQL query that provides the solution to the following question: "What school/club team is Trey Johnson on?". [/INST] SELECT "school_club_team" FROM "j" WHERE "player"='Trey Johnson'; </s> |
<s>[INST] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following question: "How many capital cities does Australia have?". [/INST] SELECT COUNT("capital_endonym") FROM "table1_1008653_1" WHERE "country_endonym"='Australia'; </s> |
<s>[INST] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following question: "Name the minimum tiesplayed for 6 years". [/INST] SELECT MIN("ties_played") FROM "all_players" WHERE "years_played"=6; </s> |
<s>[INST] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text, "playoffs" text, "u_s_open_cup" text ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text, "playoffs" text, "u_s_open_cup" text ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text, "playoffs" text, "u_s_open_cup" text ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text, "playoffs" text, "u_s_open_cup" text ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text, "playoffs" text, "u_s_open_cup" text ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "european_record" ( "season" text, "competition" text, "round" text, "opponents" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "european_record" ( "season" text, "competition" text, "round" text, "opponents" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "european_record" ( "season" text, "competition" text, "round" text, "opponents" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); Write an SQL query that provides the solution to the following question: " what's the competition where aggregate is 4–7". [/INST] SELECT "competition" FROM "european_record" WHERE "aggregate"='4–7'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "european_record" ( "season" text, "competition" text, "round" text, "opponents" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "european_record" ( "season" text, "competition" text, "round" text, "opponents" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "european_record" ( "season" text, "competition" text, "round" text, "opponents" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); Write an SQL query that provides the solution to the following question: " what's the 1st leg where opponents is galatasaray". [/INST] SELECT "1st_leg" FROM "european_record" WHERE "opponents"='Galatasaray'; </s> |
<s>[INST] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following question: "Which Rd took place at the Indianapolis 500?". [/INST] SELECT "rd" FROM "race_results" WHERE "name"='Indianapolis 500'; </s> |
<s>[INST] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following question: "What report was there for the porsche north america?". [/INST] SELECT "report" FROM "races" WHERE "winning_team"='Porsche North America'; </s> |
<s>[INST] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following question: "What rnds were there for the phoenix international raceway?". [/INST] SELECT "rnd" FROM "races" WHERE "circuit"='Phoenix International Raceway'; </s> |
<s>[INST] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following question: "Who was the pole position for the rnd equalling 12?". [/INST] SELECT "pole_position" FROM "races" WHERE "rnd"='12'; </s> |
<s>[INST] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following question: "What are the races that johnny rutherford has won?". [/INST] SELECT "name" FROM "race_results" WHERE "winning_driver"='Johnny Rutherford'; </s> |
<s>[INST] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "regional_ensembles" ( "region" text, "operator" text, "licence_award_date" text, "on_air_date" text, "closure_date" text ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following question: "What was the score of the game on November 12?". [/INST] SELECT "score" FROM "game_log" WHERE "date"='November 12'; </s> |
<s>[INST] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following question: "Who scored the most points in game 4?". [/INST] SELECT "high_points" FROM "game_log" WHERE "game"=4; </s> |
<s>[INST] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following question: "Where was the game on November 20?". [/INST] SELECT "location_attendance" FROM "game_log" WHERE "date"='November 20'; </s> |
<s>[INST] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following question: "Who directed the episode "Great Sexpectations (2)"?". [/INST] SELECT "director" FROM "season_5_1996_1997" WHERE "title"='\"Great Sexpectations (2)\"'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "round_two" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Write an SQL query that provides the solution to the following question: "Which player from the 2004 CFL draft attended Wilfrid Laurier?". [/INST] SELECT "player" FROM "round_two" WHERE "college"='Wilfrid Laurier'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "round_two" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Write an SQL query that provides the solution to the following question: "What position does Christian Leibl-Cote play?". [/INST] SELECT "position" FROM "round_two" WHERE "player"='Christian Leibl-Cote'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "round_two" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Write an SQL query that provides the solution to the following question: "What is the pick number for Northwestern college?". [/INST] SELECT MAX("pick_num") FROM "round_two" WHERE "college"='Northwestern'; </s> |
<s>[INST] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "current_members" ( "school" text, "mascot" text, "location" text, "league" text, "enrollment" real ); Write an SQL query that provides the solution to the following question: "Which leagues have Raiders as their mascot?". [/INST] SELECT "league" FROM "current_members" WHERE "mascot"='Raiders'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "current_members" ( "school" text, "mascot" text, "location" text, "league" text, "enrollment" real ); Write an SQL query that provides the solution to the following question: "Which leagues is the Galena school in?". [/INST] SELECT "league" FROM "current_members" WHERE "school"='Galena'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "current_members" ( "school" text, "mascot" text, "location" text, "league" text, "enrollment" real ); Write an SQL query that provides the solution to the following question: "What city and state is the Lancers mascot located?". [/INST] SELECT "location" FROM "current_members" WHERE "mascot"='Lancers'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "current_members" ( "school" text, "mascot" text, "location" text, "league" text, "enrollment" real ); Write an SQL query that provides the solution to the following question: "What city and state are the miners located in?". [/INST] SELECT "location" FROM "current_members" WHERE "mascot"='Miners'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "current_members" ( "school" text, "mascot" text, "location" text, "league" text, "enrollment" real ); Write an SQL query that provides the solution to the following question: "Which school has the Raiders as their mascot?". [/INST] SELECT "school" FROM "current_members" WHERE "mascot"='Raiders'; </s> |
<s>[INST] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following question: "Where was the tournament dated nov 3, 2002?". [/INST] SELECT "tournament" FROM "lpga_tour_6" WHERE "date"='Nov 3, 2002'; </s> |
<s>[INST] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following question: "what are all the actor where first episode is "ambush"". [/INST] SELECT "actor" FROM "notable_enemies" WHERE "first_episode"='\"Ambush\"'; </s> |
<s>[INST] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following question: "Which team was the second semi finalist in 2007?". [/INST] SELECT "semi_finalist_num2" FROM "division_ii" WHERE "year"=2007; </s> |
<s>[INST] You are given the following SQL table structure described by 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 ); Write an SQL query that provides the solution to the following 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> |