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 "radio" ( "frequency" text, "station" text, "operator" text, "language" text, "genre" text, "coverage_area" text );. Question: "What is the genre for the hot fm station?". [/INST] SELECT "genre" FROM "radio" WHERE "station"='Hot FM';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "radio" ( "frequency" text, "station" text, "operator" text, "language" text, "genre" text, "coverage_area" text );. Question: "What is the frequency of hot fm?". [/INST] SELECT COUNT("frequency") FROM "radio" WHERE "station"='Hot FM';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "radio" ( "frequency" text, "station" text, "operator" text, "language" text, "genre" text, "coverage_area" text );. Question: "What is the name of the station where the language is tamil malay?". [/INST] SELECT "station" FROM "radio" WHERE "language"='Tamil Malay';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "radio" ( "frequency" text, "station" text, "operator" text, "language" text, "genre" text, "coverage_area" text );. Question: "Who operates the xfm station?". [/INST] SELECT "operator" FROM "radio" WHERE "station"='XFM';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "radio" ( "frequency" text, "station" text, "operator" text, "language" text, "genre" text, "coverage_area" text );. Question: "What is the language of the malacca fm station?". [/INST] SELECT "language" FROM "radio" WHERE "station"='Malacca FM';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1601792_4" ( "television_station" text, "frequency" text, "site" text, "transmitted" text, "network" text, "status" text, "country_of_region" text );. Question: "What is the station that is transmitted at 20 kw and has a frequency of 48 uhf?". [/INST] SELECT "television_station" FROM "table1_1601792_4" WHERE "transmitted"='20 kW' AND "frequency"='48 UHF';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1601792_4" ( "television_station" text, "frequency" text, "site" text, "transmitted" text, "network" text, "status" text, "country_of_region" text );. Question: "How many stations have a 35 uhf frequency?". [/INST] SELECT COUNT("television_station") FROM "table1_1601792_4" WHERE "frequency"='35 UHF';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1601792_4" ( "television_station" text, "frequency" text, "site" text, "transmitted" text, "network" text, "status" text, "country_of_region" text );. Question: "What are the site(s) for tv station 8tv?". [/INST] SELECT "site" FROM "table1_1601792_4" WHERE "television_station"='8TV';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1601792_4" ( "television_station" text, "frequency" text, "site" text, "transmitted" text, "network" text, "status" text, "country_of_region" text );. Question: "What are the network(s) for tv1?". [/INST] SELECT "network" FROM "table1_1601792_4" WHERE "television_station"='TV1';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1601792_4" ( "television_station" text, "frequency" text, "site" text, "transmitted" text, "network" text, "status" text, "country_of_region" text );. Question: "How many stations are transmitted on frequency 7 uhf?". [/INST] SELECT COUNT("transmitted") FROM "table1_1601792_4" WHERE "frequency"='7 UHF';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1601792_4" ( "television_station" text, "frequency" text, "site" text, "transmitted" text, "network" text, "status" text, "country_of_region" text );. Question: "What site(s) for tv station tv3?". [/INST] SELECT "site" FROM "table1_1601792_4" WHERE "television_station"='TV3';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "past_production" ( "headphone_model" text, "headphone_class" text, "sensitivity_d_b" text, "impedance_ohms" real, "driver_matched_d_b" text, "construction" text, "earpads" text, "termination" text, "succeeded_by" text );. Question: "Name the number of headphone class for sr100". [/INST] SELECT COUNT("headphone_class") FROM "past_production" WHERE "headphone_model"='SR100';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "past_production" ( "headphone_model" text, "headphone_class" text, "sensitivity_d_b" text, "impedance_ohms" real, "driver_matched_d_b" text, "construction" text, "earpads" text, "termination" text, "succeeded_by" text );. Question: "Name what succeeded by for foam". [/INST] SELECT "succeeded_by" FROM "past_production" WHERE "earpads"='Foam';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "past_production" ( "headphone_model" text, "headphone_class" text, "sensitivity_d_b" text, "impedance_ohms" real, "driver_matched_d_b" text, "construction" text, "earpads" text, "termination" text, "succeeded_by" text );. Question: "Name the headphone model for succeeded by sr125". [/INST] SELECT "headphone_model" FROM "past_production" WHERE "succeeded_by"='SR125';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "past_production" ( "headphone_model" text, "headphone_class" text, "sensitivity_d_b" text, "impedance_ohms" real, "driver_matched_d_b" text, "construction" text, "earpads" text, "termination" text, "succeeded_by" text );. Question: "Name the driver matched db for joseph grado signature". [/INST] SELECT "driver_matched_d_b" FROM "past_production" WHERE "headphone_class"='Joseph Grado Signature';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" real );. Question: "At which stadiums was attendance total 79176?". [/INST] SELECT "game_site" FROM "schedule" WHERE "attendance"=79176;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2_lyga_zone_south" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "how many times were points counted for fk prienai". [/INST] SELECT COUNT("points") FROM "2_lyga_zone_south" WHERE "club"='FK Prienai';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2_lyga_zone_south" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "what is the highest number of draws for sveikata kybartai". [/INST] SELECT MAX("draws") FROM "2_lyga_zone_south" WHERE "club"='Sveikata Kybartai';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2_lyga_zone_west" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "What are the total number of losses for the team who has conceded 22?". [/INST] SELECT COUNT("loses") FROM "2_lyga_zone_west" WHERE "goals_conceded"=22;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2_lyga_zone_west" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "What is the amount of points for the team with 13 wins?". [/INST] SELECT "points" FROM "2_lyga_zone_west" WHERE "wins"=13;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2_lyga_zone_west" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "How many draws did švyturys Klaipėda have?". [/INST] SELECT MIN("draws") FROM "2_lyga_zone_west" WHERE "club"='Švyturys Klaipėda';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2_lyga_zone_west" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "What position did the team with 3 losses finish?". [/INST] SELECT MIN("position") FROM "2_lyga_zone_west" WHERE "loses"=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 "2_lyga_zone_west" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "How many points did piritas klaipėda get?". [/INST] SELECT "points" FROM "2_lyga_zone_west" WHERE "club"='Piritas Klaipėda';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2_lyga_zone_west" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "How many wins did the team with 42 points get?". [/INST] SELECT "wins" FROM "2_lyga_zone_west" WHERE "points"=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 "1_lyga" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "How many total goals were scored in games where goals conceded was 35?". [/INST] SELECT COUNT("goals_scored") FROM "1_lyga" WHERE "goals_conceded"=35;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1_lyga" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "What is the fewest number of games played?". [/INST] SELECT MIN("games_played") FROM "1_lyga";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1_lyga" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "How many games were lost when the goals scored was 37?". [/INST] SELECT COUNT("loses") FROM "1_lyga" WHERE "goals_scored"=37;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_by_country" ( "country" text, "freedom_in_the_world_2013" text, "2013_index_of_economic_freedom" text, "2013_press_freedom_index" text, "2012_democracy_index" text );. Question: "What type of government does Kyrgyzstan have?". [/INST] SELECT "2012_democracy_index" FROM "list_by_country" WHERE "country"='Kyrgyzstan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_by_country" ( "country" text, "freedom_in_the_world_2013" text, "2013_index_of_economic_freedom" text, "2013_press_freedom_index" text, "2012_democracy_index" text );. Question: "How economically free is the country of Armenia?". [/INST] SELECT "2013_index_of_economic_freedom" FROM "list_by_country" WHERE "country"='Armenia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_by_country" ( "country" text, "freedom_in_the_world_2013" text, "2013_index_of_economic_freedom" text, "2013_press_freedom_index" text, "2012_democracy_index" text );. Question: "How much freedom can did the people of Guinea experience in 2013?". [/INST] SELECT "freedom_in_the_world_2013" FROM "list_by_country" WHERE "country"='Guinea';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_by_country" ( "country" text, "freedom_in_the_world_2013" text, "2013_index_of_economic_freedom" text, "2013_press_freedom_index" text, "2012_democracy_index" text );. Question: "How many freedom indices does the country of Austria have?". [/INST] SELECT COUNT("2013_press_freedom_index") FROM "list_by_country" WHERE "country"='Austria';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_and_results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "2008_candidates" text, "results" text );. Question: "How many times was the incumbent elected in Washington 4 district?". [/INST] SELECT COUNT("elected") FROM "races_and_results" WHERE "district"='Washington 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 "races_and_results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "2008_candidates" text, "results" text );. Question: "What is the status of the district where the result is 63% 37%?". [/INST] SELECT "status" FROM "races_and_results" WHERE "results"='63% 37%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "races_and_results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "2008_candidates" text, "results" text );. Question: "Who are the candidates in Washington 1 district?". [/INST] SELECT "2008_candidates" FROM "races_and_results" WHERE "district"='Washington 1';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "races_and_results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "2008_candidates" text, "results" text );. Question: "How many groups of candidates are there in there in the district where the incumbent is Doc Hastings?". [/INST] SELECT COUNT("2008_candidates") FROM "races_and_results" WHERE "incumbent"='Doc Hastings';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "96pct_of_precincts_reporting" ( "candidate" text, "state_delegate" real, "percentage" text, "delegates" real, "counties_carries" real );. Question: "What is the highest number of Counties carries?". [/INST] SELECT MAX("counties_carries") FROM "96pct_of_precincts_reporting";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "96pct_of_precincts_reporting" ( "candidate" text, "state_delegate" real, "percentage" text, "delegates" real, "counties_carries" real );. Question: "How many state delegates did Candidate Mitt Romney have?". [/INST] SELECT MAX("state_delegate") FROM "96pct_of_precincts_reporting" WHERE "candidate"='Mitt Romney';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "96pct_of_precincts_reporting" ( "candidate" text, "state_delegate" real, "percentage" text, "delegates" real, "counties_carries" real );. Question: "Candidate John Mccain had how many delegates?". [/INST] SELECT "delegates" FROM "96pct_of_precincts_reporting" WHERE "candidate"='John McCain';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "96pct_of_precincts_reporting" ( "candidate" text, "state_delegate" real, "percentage" text, "delegates" real, "counties_carries" real );. Question: "What's the percentage when the state delegate is 1662?". [/INST] SELECT "percentage" FROM "96pct_of_precincts_reporting" WHERE "state_delegate"=1662;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "series_3" ( "num" real, "series_sorted" text, "title" text, "author" text, "doctor" text, "featuring" text, "released" text );. Question: "What series was sorted at number 3?". [/INST] SELECT "series_sorted" FROM "series_3" WHERE "num"=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 "series_3" ( "num" real, "series_sorted" text, "title" text, "author" text, "doctor" text, "featuring" text, "released" text );. Question: "What was the doctor for sorted series 6eb/b?". [/INST] SELECT "doctor" FROM "series_3" WHERE "series_sorted"='6EB/B';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "series_3" ( "num" real, "series_sorted" text, "title" text, "author" text, "doctor" text, "featuring" text, "released" text );. Question: "What was the doctor when the author was Gary Hopkins category:articles with hcards?". [/INST] SELECT "doctor" FROM "series_3" WHERE "author"='Gary Hopkins Category:Articles with hCards';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "local_government_in_the_faroe_islands" ( "municipality" text, "population" text, "inhabitants_per_km" real, "area_in_km" real, "markatal" real, "island" text, "region" text );. Question: "Name the municpality for 57 populaton". [/INST] SELECT "municipality" FROM "local_government_in_the_faroe_islands" WHERE "population"='57';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "local_government_in_the_faroe_islands" ( "municipality" text, "population" text, "inhabitants_per_km" real, "area_in_km" real, "markatal" real, "island" text, "region" text );. Question: "Name the population for sørvágur". [/INST] SELECT "population" FROM "local_government_in_the_faroe_islands" WHERE "municipality"='Sørvágur';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "local_government_in_the_faroe_islands" ( "municipality" text, "population" text, "inhabitants_per_km" real, "area_in_km" real, "markatal" real, "island" text, "region" text );. Question: "Name the minimum inhabitants for markatal 49". [/INST] SELECT MIN("inhabitants_per_km") FROM "local_government_in_the_faroe_islands" WHERE "markatal"=49;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_16308030_1" ( "year" text, "event" text, "pole_position_time" text, "107pct_time" text, "driver" text, "team" text, "time" text, "pct_of_pole" text, "allowed_to_race" text );. Question: "Is the team force india allowed to race?". [/INST] SELECT "allowed_to_race" FROM "table1_16308030_1" WHERE "team"='Force India';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_16308030_1" ( "year" text, "event" text, "pole_position_time" text, "107pct_time" text, "driver" text, "team" text, "time" text, "pct_of_pole" text, "allowed_to_race" text );. Question: "How many events have a time of 1:48.322?". [/INST] SELECT "event" FROM "table1_16308030_1" WHERE "time"='1:48.322';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_16308030_1" ( "year" text, "event" text, "pole_position_time" text, "107pct_time" text, "driver" text, "team" text, "time" text, "pct_of_pole" text, "allowed_to_race" text );. Question: "How many years have a time of 1:42.086?". [/INST] SELECT COUNT("year") FROM "table1_16308030_1" WHERE "time"='1:42.086';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "Which college did Leon Perry attend?". [/INST] SELECT "college" FROM "nfl_draft" WHERE "player"='Leon Perry';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "What is the NFL team for the player who's college was Norfolk State?". [/INST] SELECT "nfl_team" FROM "nfl_draft" WHERE "college"='Norfolk 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 "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "Which player was pick number 150?". [/INST] SELECT "player" FROM "nfl_draft" WHERE "pick_num"=150;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "What college did the defensive back attend?". [/INST] SELECT "college" FROM "nfl_draft" WHERE "position"='Defensive Back';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "What is the NFL team for the player who's college was North Carolina?". [/INST] SELECT "nfl_team" FROM "nfl_draft" WHERE "college"='North Carolina';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "What is the pick number for the player Garry Lewis?". [/INST] SELECT MIN("pick_num") FROM "nfl_draft" WHERE "player"='Garry Lewis';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_b" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text );. Question: "What is the home team that played on M.C.G. grounds?". [/INST] SELECT "home_team" FROM "group_b" WHERE "ground"='M.C.G.';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_a" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text );. Question: "What was the home team score when Brisbane lions was the home team?". [/INST] SELECT "home_team_score" FROM "group_a" WHERE "home_team"='Brisbane Lions';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_a" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text );. Question: "When was the game played on Manuka Oval?". [/INST] SELECT "date" FROM "group_a" WHERE "ground"='Manuka Oval';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_a" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text );. Question: "What was the score for the home team when the away team was Sydney?". [/INST] SELECT "home_team_score" FROM "group_a" WHERE "away_team"='Sydney';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_d" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text );. Question: "On what date was the home team score 17.12 (114)?". [/INST] SELECT "date" FROM "group_d" WHERE "home_team_score"='17.12 (114)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text );. Question: "Where did the team play when the home team score was 12.9 (81)?". [/INST] SELECT "ground" FROM "round_1" WHERE "home_team_score"='12.9 (81)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text );. Question: "What were the home team scores at york park?". [/INST] SELECT "home_team_score" FROM "round_1" WHERE "ground"='York Park';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text );. Question: "How many locations were there when sydney was the home team?". [/INST] SELECT COUNT("ground") FROM "round_1" WHERE "home_team"='Sydney';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text );. Question: "What were the home team scores when carlton was the home team?". [/INST] SELECT "home_team_score" FROM "round_1" WHERE "home_team"='Carlton';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text );. Question: "What were all the away teams when the crowd was 13304?". [/INST] SELECT "away_team" FROM "round_1" WHERE "crowd"=13304;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "university_location_date_established" ( "university" text, "location" text, "established" real, "endowment_as_of_2008" text, "campus_area_acres" real, "kiplingers_top_100_values" text, "enrollment_as_of_2008" real );. Question: "Name the least established". [/INST] SELECT MIN("established") FROM "university_location_date_established";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_3" ( "official_num" real, "tf1_num" real, "french_title" text, "english_title" text, "air_date_france" text, "original_beechwood_bunny_tale_source_material" text );. Question: "Name the air date france for "poussières d'étoiles"". [/INST] SELECT "air_date_france" FROM "season_3" WHERE "french_title"='\"Poussières d''étoiles\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_3" ( "official_num" real, "tf1_num" real, "french_title" text, "english_title" text, "air_date_france" text, "original_beechwood_bunny_tale_source_material" text );. Question: "Name the french title for english title of "inventor bunnies"". [/INST] SELECT "french_title" FROM "season_3" WHERE "english_title"='\"Inventor Bunnies\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_3" ( "official_num" real, "tf1_num" real, "french_title" text, "english_title" text, "air_date_france" text, "original_beechwood_bunny_tale_source_material" text );. Question: "Name the most official number for tf1 # being 42". [/INST] SELECT MAX("official_num") FROM "season_3" WHERE "tf1_num"=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 "season_3" ( "official_num" real, "tf1_num" real, "french_title" text, "english_title" text, "air_date_france" text, "original_beechwood_bunny_tale_source_material" text );. Question: "Name the air date france for "la pêche au trésor"". [/INST] SELECT "air_date_france" FROM "season_3" WHERE "french_title"='\"La pêche au trésor\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_3" ( "official_num" real, "tf1_num" real, "french_title" text, "english_title" text, "air_date_france" text, "original_beechwood_bunny_tale_source_material" text );. Question: "Name the original beechwood bunny tale for "l'expédition glaciale"". [/INST] SELECT "original_beechwood_bunny_tale_source_material" FROM "season_3" WHERE "french_title"='\"L''expédition glaciale\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_women_s_teams" ( "institution" text, "location" text, "nickname" text, "enrollment" real, "established" real );. Question: "What was the nickname Established in 2002?". [/INST] SELECT "nickname" FROM "current_women_s_teams" WHERE "established"=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 "current_women_s_teams" ( "institution" text, "location" text, "nickname" text, "enrollment" real, "established" real );. Question: "What school location had an enrollment of 12400?". [/INST] SELECT "location" FROM "current_women_s_teams" WHERE "enrollment"=12400;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_women_s_teams" ( "institution" text, "location" text, "nickname" text, "enrollment" real, "established" real );. Question: "How many teams were established at University of Maryland?". [/INST] SELECT COUNT("established") FROM "current_women_s_teams" WHERE "institution"='University of Maryland';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_women_s_teams" ( "institution" text, "location" text, "nickname" text, "enrollment" real, "established" real );. Question: "what is the enrollment for the Cavaliers?". [/INST] SELECT MAX("enrollment") FROM "current_women_s_teams" WHERE "nickname"='Cavaliers';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_women_s_teams" ( "institution" text, "location" text, "nickname" text, "enrollment" real, "established" real );. Question: "What is the smallest number of enrolled students?". [/INST] SELECT MIN("enrollment") FROM "current_women_s_teams";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "season" text, "winner" text, "winning_song" text, "winning_song_english_title" text, "debut_album" text );. Question: "What is the debut album for the artist with the winning song kemenangan hati?". [/INST] SELECT "debut_album" FROM "winners" WHERE "winning_song"='Kemenangan Hati';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "season" text, "winner" text, "winning_song" text, "winning_song_english_title" text, "debut_album" text );. Question: "How many winning songs were there with an english title of all for love?". [/INST] SELECT COUNT("winning_song") FROM "winners" WHERE "winning_song_english_title"='All For Love';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "season" text, "winner" text, "winning_song" text, "winning_song_english_title" text, "debut_album" text );. Question: "How many winners had a debut album titled "mike"?". [/INST] SELECT "winner" FROM "winners" WHERE "debut_album"='Mike';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "season" text, "winner" text, "winning_song" text, "winning_song_english_title" text, "debut_album" text );. Question: "What is the winning song for the artist with a debut album "the winner"?". [/INST] SELECT "winning_song" FROM "winners" WHERE "debut_album"='The Winner';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "season" text, "winner" text, "winning_song" text, "winning_song_english_title" text, "debut_album" text );. Question: "What is the winning song for the artist with a debut album "mike"?". [/INST] SELECT "winning_song" FROM "winners" WHERE "debut_album"='Mike';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "season" text, "winner" text, "winning_song" text, "winning_song_english_title" text, "debut_album" text );. Question: "How many debut albums did mike mohede have?". [/INST] SELECT COUNT("debut_album") FROM "winners" WHERE "winner"='Mike Mohede';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "5_indigenous_groups_of_north_west" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" real, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real, "70" real );. Question: "If oblast\age is Komis in Nenetskiy Ao, what is the total number of 65 to 69?". [/INST] SELECT COUNT("65_to_69") FROM "5_indigenous_groups_of_north_west" WHERE "oblast_age"='Komis in Nenetskiy AO';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "5_indigenous_groups_of_north_west" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" real, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real, "70" real );. Question: "If 65 to 69 is 2417, what is the minimum of 25 to 29?". [/INST] SELECT MIN("25_to_29") FROM "5_indigenous_groups_of_north_west" WHERE "65_to_69"=2417;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "5_indigenous_groups_of_north_west" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" real, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real, "70" real );. Question: "What is the minimum of 25 to 29?". [/INST] SELECT MIN("25_to_29") FROM "5_indigenous_groups_of_north_west";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "5_indigenous_groups_of_north_west" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" real, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real, "70" real );. Question: "What is the minimum if 40 to 44?". [/INST] SELECT MIN("40_to_44") FROM "5_indigenous_groups_of_north_west";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "5_indigenous_groups_of_north_west" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" real, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real, "70" real );. Question: "If 70+ is 4562, what is 18 to 19?". [/INST] SELECT "18_to_19" FROM "5_indigenous_groups_of_north_west" WHERE "70"=4562;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "5_indigenous_groups_of_north_west" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" real, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real, "70" real );. Question: "If 50 to 54 is 2119, what is the total number of c/w 15+?". [/INST] SELECT COUNT("c_w_15") FROM "5_indigenous_groups_of_north_west" WHERE "50_to_54"=2119;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_16527640_2" ( "player" text, "vfl_games" real, "vfl_club_s" text, "rank_held_at_time_of_death" text, "date_of_death" text, "location" text );. Question: "What vfl club(s) did players who played 23 cfl games play for?". [/INST] SELECT "vfl_club_s" FROM "table1_16527640_2" WHERE "vfl_games"=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 "table1_16527640_2" ( "player" text, "vfl_games" real, "vfl_club_s" text, "rank_held_at_time_of_death" text, "date_of_death" text, "location" text );. Question: "What locations did sid o'neill play football?". [/INST] SELECT "location" FROM "table1_16527640_2" WHERE "player"='Sid O''Neill';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_16527640_2" ( "player" text, "vfl_games" real, "vfl_club_s" text, "rank_held_at_time_of_death" text, "date_of_death" text, "location" text );. Question: "What vfl club(s) for players ranked sergeant, 8th brigade australian field artillery at time of death?". [/INST] SELECT "vfl_club_s" FROM "table1_16527640_2" WHERE "rank_held_at_time_of_death"='Sergeant, 8th Brigade Australian Field Artillery';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_16527640_2" ( "player" text, "vfl_games" real, "vfl_club_s" text, "rank_held_at_time_of_death" text, "date_of_death" text, "location" text );. Question: "How many players named paddy rowan?". [/INST] SELECT COUNT("rank_held_at_time_of_death") FROM "table1_16527640_2" WHERE "player"='Paddy Rowan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "best_batting_averages" ( "player" text, "team" text, "matches" real, "innings" real, "runs" real, "average" text, "highest_score" text, "100s" real, "50s" real );. Question: "How many numbers were recorde under 50s when there was 2 matches?". [/INST] SELECT COUNT("50s") FROM "best_batting_averages" WHERE "matches"=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 "best_batting_averages" ( "player" text, "team" text, "matches" real, "innings" real, "runs" real, "average" text, "highest_score" text, "100s" real, "50s" real );. Question: "What was the score when Donald Bradman in 9 innings?". [/INST] SELECT "highest_score" FROM "best_batting_averages" WHERE "innings"=9 AND "player"='Donald Bradman';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "best_batting_averages" ( "player" text, "team" text, "matches" real, "innings" real, "runs" real, "average" text, "highest_score" text, "100s" real, "50s" real );. Question: "What is the highest number of matches?". [/INST] SELECT MAX("matches") FROM "best_batting_averages";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "best_batting_averages" ( "player" text, "team" text, "matches" real, "innings" real, "runs" real, "average" text, "highest_score" text, "100s" real, "50s" real );. Question: "How many numbers were recorded under matches with Arthur Morris?". [/INST] SELECT COUNT("matches") FROM "best_batting_averages" WHERE "player"='Arthur Morris';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "best_batting_averages" ( "player" text, "team" text, "matches" real, "innings" real, "runs" real, "average" text, "highest_score" text, "100s" real, "50s" real );. Question: "How many teams were there with a high score of 143?". [/INST] SELECT COUNT("team") FROM "best_batting_averages" WHERE "highest_score"='143';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_165732_2" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "How many titles does Episode 2 have". [/INST] SELECT COUNT("title") FROM "table1_165732_2" WHERE "episode_num"=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_165732_2" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "What is the title of Episode #2". [/INST] SELECT "title" FROM "table1_165732_2" WHERE "episode_num"=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_165732_2" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "How many directors did Episode #3 have". [/INST] SELECT COUNT("directed_by") FROM "table1_165732_2" WHERE "episode_num"=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 "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "What position is the player drafted with pick 34?". [/INST] SELECT "position" FROM "round_five" WHERE "pick_num"=34;</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.