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 "table1_2226817_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text );. Question: "When did the episode titled "Route 666 (part 1)" air for the first time?". [/INST] SELECT "original_air_date" FROM "table1_2226817_6" WHERE "title"='\"Route 666 (Part 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 "table1_2226817_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text );. Question: "What's the season number of the episode with series number 84?". [/INST] SELECT MIN("no_in_season") FROM "table1_2226817_6" WHERE "no_in_series"=84;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2226817_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text );. Question: "How many season numbers are there for the episodes written by Art Everett?". [/INST] SELECT COUNT("no_in_season") FROM "table1_2226817_6" WHERE "written_by"='Art Everett';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2226817_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text );. Question: "How many series numbers do the episodes originally aired on October 28, 1990?". [/INST] SELECT COUNT("no_in_series") FROM "table1_2226817_6" WHERE "original_air_date"='October 28, 1990';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2226817_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text );. Question: "What' the series number of the episode with season number 13?". [/INST] SELECT MIN("no_in_series") FROM "table1_2226817_6" WHERE "no_in_season"=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 "table1_22298383_1" ( "year" text, "day" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text );. Question: "What was the report for the Sunday race where the winner had an average speed of 128.27 mph?". [/INST] SELECT "report" FROM "table1_22298383_1" WHERE "day"='Sunday' AND "average_speed_mph"='128.27';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_22298383_1" ( "year" text, "day" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text );. Question: "On what day was the race that Cale Yarborough won in 364 laps?". [/INST] SELECT "day" FROM "table1_22298383_1" WHERE "laps"='364' AND "driver"='Cale Yarborough';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_22298383_1" ( "year" text, "day" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text );. Question: "Who manufactured the car that won with an average speed of 126.259 mph?". [/INST] SELECT "manufacturer" FROM "table1_22298383_1" WHERE "average_speed_mph"='126.259';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_22298383_1" ( "year" text, "day" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text );. Question: "What year did the Leo Jackson Racing team win?". [/INST] SELECT "year" FROM "table1_22298383_1" WHERE "team"='Leo Jackson Racing';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_22329326_1" ( "market_rank_city_of_license_market" text, "station" text, "channel_tv_dt" text, "owned_since" real, "affiliation" text );. Question: "When was the station WLS-TV owned since?". [/INST] SELECT "owned_since" FROM "table1_22329326_1" WHERE "station"='WLS-TV';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_22329326_1" ( "market_rank_city_of_license_market" text, "station" text, "channel_tv_dt" text, "owned_since" real, "affiliation" text );. Question: "What market rank and city had the station KABC-TV?". [/INST] SELECT "market_rank_city_of_license_market" FROM "table1_22329326_1" WHERE "station"='KABC-TV';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_22329326_1" ( "market_rank_city_of_license_market" text, "station" text, "channel_tv_dt" text, "owned_since" real, "affiliation" text );. Question: "What was the earliest year a station was owned since?". [/INST] SELECT MIN("owned_since") FROM "table1_22329326_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 "episode_ratings" ( "episode_num" real, "us_air_date" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text );. Question: "How many episodes had 3.62 million viewers?". [/INST] SELECT COUNT("share") FROM "episode_ratings" WHERE "viewers_millions"='3.62';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "episode_ratings" ( "episode_num" real, "us_air_date" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text );. Question: "How many episodes have episode #11?". [/INST] SELECT COUNT("us_air_date") FROM "episode_ratings" WHERE "episode_num"=11;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "episode_ratings" ( "episode_num" real, "us_air_date" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text );. Question: "How many epsidode(s) had 3.63 million viewers?". [/INST] SELECT COUNT("episode_num") FROM "episode_ratings" WHERE "viewers_millions"='3.63';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_of_olympic_medalists_in_athletics_m" ( "rank" real, "athlete" text, "nation" text, "olympics" text, "gold" real, "silver" real, "bronze" real, "total_min_2_medals" real );. Question: "What nation had the athlete sebastian coe category:articles with hcards?". [/INST] SELECT "nation" FROM "list_of_olympic_medalists_in_athletics_m" WHERE "athlete"='Sebastian Coe 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 "list_of_olympic_medalists_in_athletics_m" ( "rank" real, "athlete" text, "nation" text, "olympics" text, "gold" real, "silver" real, "bronze" real, "total_min_2_medals" real );. Question: "What rank did the nation with athlete peter snell category:articles with hcards have?". [/INST] SELECT COUNT("rank") FROM "list_of_olympic_medalists_in_athletics_m" WHERE "athlete"='Peter Snell 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 "list_of_olympic_medalists_in_athletics_m" ( "rank" real, "athlete" text, "nation" text, "olympics" text, "gold" real, "silver" real, "bronze" real, "total_min_2_medals" real );. Question: "how many times was nation counted where athlete is shuhei nishida category:articles with hcards". [/INST] SELECT COUNT("nation") FROM "list_of_olympic_medalists_in_athletics_m" WHERE "athlete"='Shuhei Nishida 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 "list_of_olympic_medalists_in_athletics_m" ( "rank" real, "athlete" text, "nation" text, "olympics" text, "gold" real, "silver" real, "bronze" real, "total_min_2_medals" real );. Question: "What is the least number of silver medals won". [/INST] SELECT MIN("silver") FROM "list_of_olympic_medalists_in_athletics_m";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_of_olympic_medalists_in_athletics_m" ( "rank" real, "athlete" text, "nation" text, "olympics" text, "gold" real, "silver" real, "bronze" real, "total_min_2_medals" real );. Question: "How many silver medalist was won?". [/INST] SELECT MAX("silver") FROM "list_of_olympic_medalists_in_athletics_m";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_appearances" ( "num" real, "name" text, "nation" text, "years" text, "league" text, "fa_cup" text, "league_cup" text, "other_c" text, "total" text );. Question: "Name the league cup for northern ireland". [/INST] SELECT "league_cup" FROM "most_appearances" WHERE "nation"='Northern Ireland';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_22385461_9" ( "num" text, "spacecraft" text, "spacewalkers" text, "start_utc" text, "end_utc" text, "duration" text );. Question: "If the spacecraft is the Shenzhou 7 Eva 1, what is the start (utc) date and time?". [/INST] SELECT "start_utc" FROM "table1_22385461_9" WHERE "spacecraft"='Shenzhou 7 EVA 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 "table1_22385461_9" ( "num" text, "spacecraft" text, "spacewalkers" text, "start_utc" text, "end_utc" text, "duration" text );. Question: "If the start (utc) is November 18, 2008 18:09, what is the name of the spacecraft?". [/INST] SELECT "spacecraft" FROM "table1_22385461_9" WHERE "start_utc"='November 18, 2008 18:09';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_22385461_6" ( "num" text, "spacecraft" text, "spacewalkers" text, "start_utc" text, "end_utc" text, "duration" text );. Question: "What is the end (UTC) for spacecraft STS-114 Eva 3?". [/INST] SELECT "end_utc" FROM "table1_22385461_6" WHERE "spacecraft"='STS-114 EVA 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 "table1_22385461_6" ( "num" text, "spacecraft" text, "spacewalkers" text, "start_utc" text, "end_utc" text, "duration" text );. Question: "What is the start date and time of the walk that ends March 28, 2005, 11:31?". [/INST] SELECT "start_utc" FROM "table1_22385461_6" WHERE "end_utc"='March 28, 2005, 11:31';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification_leadership" ( "stage" real, "stage_winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "malaysian_rider_classification" text, "team_classification" text, "malaysian_team_classification" text );. Question: "Which points classification has 4 as the stage?". [/INST] SELECT "points_classification" FROM "classification_leadership" WHERE "stage"=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 "classification_leadership" ( "stage" real, "stage_winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "malaysian_rider_classification" text, "team_classification" text, "malaysian_team_classification" text );. Question: "Which malaysian team classification had mohd nur rizuan zainal as points classification?". [/INST] SELECT "malaysian_team_classification" FROM "classification_leadership" WHERE "points_classification"='Mohd Nur Rizuan Zainal';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification_leadership" ( "stage" real, "stage_winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "malaysian_rider_classification" text, "team_classification" text, "malaysian_team_classification" text );. Question: "Which team classification has malaysian team classification of mncf continental team?". [/INST] SELECT "team_classification" FROM "classification_leadership" WHERE "malaysian_team_classification"='MNCF Continental Team';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification_leadership" ( "stage" real, "stage_winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "malaysian_rider_classification" text, "team_classification" text, "malaysian_team_classification" text );. Question: "Which team classification has taiji nishitani as the stage winner?". [/INST] SELECT "team_classification" FROM "classification_leadership" WHERE "stage_winner"='Taiji Nishitani';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_224672_2" ( "office" text, "type" text, "location" text, "elected" text, "term_began" text, "term_ended" text );. Question: "When did the term end that began January 3, 2007?". [/INST] SELECT "term_ended" FROM "table1_224672_2" WHERE "term_began"='January 3, 2007';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_224672_2" ( "office" text, "type" text, "location" text, "elected" text, "term_began" text, "term_ended" text );. Question: "When did the term began when the date of election is N/A?". [/INST] SELECT "term_began" FROM "table1_224672_2" WHERE "elected"='N/A';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_224672_2" ( "office" text, "type" text, "location" text, "elected" text, "term_began" text, "term_ended" text );. Question: "When did the term end that began December 4, 1978?". [/INST] SELECT "term_ended" FROM "table1_224672_2" WHERE "term_began"='December 4, 1978';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_224672_2" ( "office" text, "type" text, "location" text, "elected" text, "term_began" text, "term_ended" text );. Question: "When did the term begin that ended January 3, 1995?". [/INST] SELECT "term_began" FROM "table1_224672_2" WHERE "term_ended"='January 3, 1995';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_224672_2" ( "office" text, "type" text, "location" text, "elected" text, "term_began" text, "term_ended" text );. Question: "What branch of government was the term that ended on January 3, 2001?". [/INST] SELECT "type" FROM "table1_224672_2" WHERE "term_ended"='January 3, 2001';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "roster" ( "name" text, "num" real, "position" text, "height" text, "weight" real, "year" text, "home_town" text, "high_school" text );. Question: "Where is the position when houston, tx is the hometown and worthing is the high school?". [/INST] SELECT "position" FROM "roster" WHERE "home_town"='Houston, TX' AND "high_school"='Worthing';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "roster" ( "name" text, "num" real, "position" text, "height" text, "weight" real, "year" text, "home_town" text, "high_school" text );. Question: "Which highschool has senior (rs) for the year?". [/INST] SELECT "high_school" FROM "roster" WHERE "year"='Senior (RS)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "roster" ( "name" text, "num" real, "position" text, "height" text, "weight" real, "year" text, "home_town" text, "high_school" text );. Question: "What is the # when conroe, tx is the hometown?". [/INST] SELECT MIN("num") FROM "roster" WHERE "home_town"='Conroe, TX';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "roster" ( "name" text, "num" real, "position" text, "height" text, "weight" real, "year" text, "home_town" text, "high_school" text );. Question: "What is the weight when 20 is the number?". [/INST] SELECT MAX("weight") FROM "roster" WHERE "num"=20;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "roster" ( "name" text, "num" real, "position" text, "height" text, "weight" real, "year" text, "home_town" text, "high_school" text );. Question: "What is the name when senior is the year with the # less than 10.0?". [/INST] SELECT "name" FROM "roster" WHERE "year"='Senior' AND "num"<10.0;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "roster" ( "name" text, "num" real, "position" text, "height" text, "weight" real, "year" text, "home_town" text, "high_school" text );. Question: "What is the # for worthing high school?". [/INST] SELECT COUNT("num") FROM "roster" WHERE "high_school"='Worthing';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_225094_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text );. Question: "Name the reason for change for jonathan jennings". [/INST] SELECT COUNT("reason_for_change") FROM "table1_225094_4" WHERE "successor"='Jonathan Jennings';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_225094_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text );. Question: "Name the date successor seated for failure to elect". [/INST] SELECT "date_successor_seated" FROM "table1_225094_4" WHERE "reason_for_change"='failure to elect';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_225198_3" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successors_formal_installation" text );. Question: "Name the successor for james noble died in previous congress". [/INST] SELECT "successor" FROM "table1_225198_3" WHERE "reason_for_change"='James Noble died in previous Congress';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_225198_3" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successors_formal_installation" text );. Question: "Name the state class for isaac d. barnard (j)". [/INST] SELECT "state_class" FROM "table1_225198_3" WHERE "vacator"='Isaac D. Barnard (J)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_225205_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text );. Question: "Who is the successor when the reason for change is died November 11, 1845?". [/INST] SELECT "successor" FROM "table1_225205_4" WHERE "reason_for_change"='Died November 11, 1845';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_225205_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text );. Question: "How many date of successor seated is new jersey 2nd in the district?". [/INST] SELECT COUNT("date_successor_seated") FROM "table1_225205_4" WHERE "district"='New Jersey 2nd';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rebel_army_radio_awards_2011" ( "best_male_mc" text, "best_female_mc" text, "best_male_artist" text, "best_female_artist" text, "best_male_lyricist" text, "best_female_lyricist" text, "best_male_record" text );. Question: "Who was the Best Male Artist where Bankie Travolta won the Best Male MC?". [/INST] SELECT "best_male_artist" FROM "rebel_army_radio_awards_2011" WHERE "best_male_mc"='Bankie Travolta';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rebel_army_radio_awards_2011" ( "best_male_mc" text, "best_female_mc" text, "best_male_artist" text, "best_female_artist" text, "best_male_lyricist" text, "best_female_lyricist" text, "best_male_record" text );. Question: "Who was the Best Male MC if Best Album won the Best Male Lyricist?". [/INST] SELECT "best_male_mc" FROM "rebel_army_radio_awards_2011" WHERE "best_male_lyricist"='Best Album';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rebel_army_radio_awards_2011" ( "best_male_mc" text, "best_female_mc" text, "best_male_artist" text, "best_female_artist" text, "best_male_lyricist" text, "best_female_lyricist" text, "best_male_record" text );. Question: "Who was the Best Male Lyricist if Neshia Nee won the Best Male Record?". [/INST] SELECT "best_male_lyricist" FROM "rebel_army_radio_awards_2011" WHERE "best_male_record"='Neshia Nee';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rebel_army_radio_awards_2011" ( "best_male_mc" text, "best_female_mc" text, "best_male_artist" text, "best_female_artist" text, "best_male_lyricist" text, "best_female_lyricist" text, "best_male_record" text );. Question: "Who won the Best Female Artist where Best R&B Contributor won the Best Male Lyricist?". [/INST] SELECT "best_female_artist" FROM "rebel_army_radio_awards_2011" WHERE "best_male_lyricist"='Best R&B Contributor';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rebel_army_radio_awards_2011" ( "best_male_mc" text, "best_female_mc" text, "best_male_artist" text, "best_female_artist" text, "best_male_lyricist" text, "best_female_lyricist" text, "best_male_record" text );. Question: "What won the Best Female Artist if Best Lyrical Record won the Best Male Artist?". [/INST] SELECT "best_female_artist" FROM "rebel_army_radio_awards_2011" WHERE "best_male_artist"='Best Lyrical Record';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rebel_army_radio_awards_2011" ( "best_male_mc" text, "best_female_mc" text, "best_male_artist" text, "best_female_artist" text, "best_male_lyricist" text, "best_female_lyricist" text, "best_male_record" text );. Question: "What won the Best Female Artist if People's Male MC won the Best Female Lyricist?". [/INST] SELECT "best_female_artist" FROM "rebel_army_radio_awards_2011" WHERE "best_female_lyricist"='People''s Male MC';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "national_election_result" ( "party_name" text, "states_contested" real, "seats_contested" real, "seats_won" real, "no_of_votes" real, "pct_of_votes" text, "pct_in_seats_contested" text, "forfeited_in_seats" real );. Question: "What is the lowest number of states contested under apna dal?". [/INST] SELECT MIN("states_contested") FROM "national_election_result" WHERE "party_name"='Apna Dal';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "national_election_result" ( "party_name" text, "states_contested" real, "seats_contested" real, "seats_won" real, "no_of_votes" real, "pct_of_votes" text, "pct_in_seats_contested" text, "forfeited_in_seats" real );. Question: "Where 19 seats were won, what was the minimum number of forfeited seats?". [/INST] SELECT MIN("forfeited_in_seats") FROM "national_election_result" WHERE "seats_won"=19;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "national_election_result" ( "party_name" text, "states_contested" real, "seats_contested" real, "seats_won" real, "no_of_votes" real, "pct_of_votes" text, "pct_in_seats_contested" text, "forfeited_in_seats" real );. Question: "How many akhil bharatiya rashtriya azad hind party seats were contested?". [/INST] SELECT "seats_contested" FROM "national_election_result" WHERE "party_name"='Akhil Bharatiya Rashtriya Azad Hind Party';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "national_election_result" ( "party_name" text, "states_contested" real, "seats_contested" real, "seats_won" real, "no_of_votes" real, "pct_of_votes" text, "pct_in_seats_contested" text, "forfeited_in_seats" real );. Question: "How many parties had 1 seat forfeited and 1.04% of seats contested?". [/INST] SELECT COUNT("party_name") FROM "national_election_result" WHERE "forfeited_in_seats"=1 AND "pct_in_seats_contested"='1.04%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "national_election_result" ( "party_name" text, "states_contested" real, "seats_contested" real, "seats_won" real, "no_of_votes" real, "pct_of_votes" text, "pct_in_seats_contested" text, "forfeited_in_seats" real );. Question: "What is the lowest number of votes in elections that had 34.39% of seats contested?". [/INST] SELECT MIN("no_of_votes") FROM "national_election_result" WHERE "pct_in_seats_contested"='34.39%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_22589363_2" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "How many series numbers belong to the episode "Vexation of Spirit"? ". [/INST] SELECT COUNT("series_num") FROM "table1_22589363_2" WHERE "title"='\"Vexation of Spirit\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_11_7_titles_4_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "When was John McEnroe's minimum year?". [/INST] SELECT MIN("year") FROM "singles_11_7_titles_4_runners_up";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_11_7_titles_4_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "What were the US Open's final scores?". [/INST] SELECT "score_in_the_final" FROM "singles_11_7_titles_4_runners_up" WHERE "championship"='US Open';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_1_5" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "Who were the partners in games where the score was 7-5, 2-6, [6-10]?". [/INST] SELECT "partner" FROM "doubles_1_5" WHERE "score"='7-5, 2-6, [6-10]';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_1_5" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "Who were the opponents in the Tokyo championships?". [/INST] SELECT "opponents" FROM "doubles_1_5" WHERE "championship"='Tokyo';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_1_5" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "Who were the partners in games where the score was 1-6, 2-6?". [/INST] SELECT "partner" FROM "doubles_1_5" WHERE "score"='1-6, 2-6';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_1_5" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "Who were the partners in 2012?". [/INST] SELECT "partner" FROM "doubles_1_5" WHERE "year"=2012;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_1_5" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "What was the outcome in games where the score was 7-5, 2-6, [6-10]?". [/INST] SELECT "outcome" FROM "doubles_1_5" WHERE "score"='7-5, 2-6, [6-10]';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_12_9_titles_3_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );. Question: "If the opponents in the final is Hewitt McMillan and the partner is Fleming, what is the surface?". [/INST] SELECT "surface" FROM "doubles_12_9_titles_3_runners_up" WHERE "partner"='Fleming' AND "opponents_in_the_final"='Hewitt McMillan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_12_9_titles_3_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );. Question: "What is the final score if the partner is Woodforde?". [/INST] SELECT "score_in_the_final" FROM "doubles_12_9_titles_3_runners_up" WHERE "partner"='Woodforde';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_12_9_titles_3_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );. Question: "In the US Open championship and the outcome is runner-up, what is the minimum year?". [/INST] SELECT MIN("year") FROM "doubles_12_9_titles_3_runners_up" WHERE "outcome"='Runner-up' AND "championship"='US Open';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_12_9_titles_3_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );. Question: "What is the surface made of if the opponent in the final is Hewitt McMillan?". [/INST] SELECT "surface" FROM "doubles_12_9_titles_3_runners_up" WHERE "opponents_in_the_final"='Hewitt McMillan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_12_9_titles_3_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );. Question: "What is the surface made of if the year is 1979 and the championship is US Open?". [/INST] SELECT "surface" FROM "doubles_12_9_titles_3_runners_up" WHERE "championship"='US Open' AND "year"=1979;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fleet_use" ( "performance_comparison" text, "78_fury" text, "78_monaco" text, "79_st_regis" text, "80_st_regis" text, "81_st_regis" text );. Question: "What is every performance comparison if value of 78 Monaco is 93.6?". [/INST] SELECT "performance_comparison" FROM "fleet_use" WHERE "78_monaco"='93.6';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fleet_use" ( "performance_comparison" text, "78_fury" text, "78_monaco" text, "79_st_regis" text, "80_st_regis" text, "81_st_regis" text );. Question: "What is every value for 78 Fury if the value of 78 Monaco is 93.6?". [/INST] SELECT "78_fury" FROM "fleet_use" WHERE "78_monaco"='93.6';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fleet_use" ( "performance_comparison" text, "78_fury" text, "78_monaco" text, "79_st_regis" text, "80_st_regis" text, "81_st_regis" text );. Question: "What is every performance comparison if the value of 81 St. Regis is 114.7?". [/INST] SELECT "performance_comparison" FROM "fleet_use" WHERE "81_st_regis"='114.7';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fleet_use" ( "performance_comparison" text, "78_fury" text, "78_monaco" text, "79_st_regis" text, "80_st_regis" text, "81_st_regis" text );. Question: "What is every performance comparison when 80 St. Regis is 360?". [/INST] SELECT "performance_comparison" FROM "fleet_use" WHERE "80_st_regis"='360';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1887_state_election_results" ( "ticket_office" text, "secretary_of_state" text, "comptroller" text, "attorney_general" text, "treasurer" text, "state_engineer" text );. Question: "Name the ticket/office for orville preston". [/INST] SELECT "ticket_office" FROM "1887_state_election_results" WHERE "secretary_of_state"='Orville Preston';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1887_state_election_results" ( "ticket_office" text, "secretary_of_state" text, "comptroller" text, "attorney_general" text, "treasurer" text, "state_engineer" text );. Question: "Name the comptroller for republican". [/INST] SELECT "comptroller" FROM "1887_state_election_results" WHERE "ticket_office"='Republican';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1887_state_election_results" ( "ticket_office" text, "secretary_of_state" text, "comptroller" text, "attorney_general" text, "treasurer" text, "state_engineer" text );. Question: "Name the comptroller for office of prohibition". [/INST] SELECT "comptroller" FROM "1887_state_election_results" WHERE "ticket_office"='Prohibition';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text );. Question: "Name the replaced by for 8 july 2009". [/INST] SELECT "replaced_by" FROM "managerial_changes" WHERE "date_of_appointment"='8 July 2009';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text );. Question: "Name the total number of replaced by for 13 june 2009". [/INST] SELECT COUNT("replaced_by") FROM "managerial_changes" WHERE "date_of_appointment"='13 June 2009';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text );. Question: "Name the date of vacancy for manuel pellegrini". [/INST] SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manager"='Manuel Pellegrini';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "detailed_competitive_results" ( "event" text, "season" text, "compulsory_dance_cd" text, "original_dance_od" text, "free_dance_fd" text, "combined_total_score" text );. Question: "What was the free dance score in the event where compulsory dance score was 15.99? ". [/INST] SELECT "free_dance_fd" FROM "detailed_competitive_results" WHERE "compulsory_dance_cd"='15.99';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "detailed_competitive_results" ( "event" text, "season" text, "compulsory_dance_cd" text, "original_dance_od" text, "free_dance_fd" text, "combined_total_score" text );. Question: "How many original dance scores are listed in the event where the compulsory dance was 20.03? ". [/INST] SELECT COUNT("original_dance_od") FROM "detailed_competitive_results" WHERE "compulsory_dance_cd"='20.03';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "detailed_competitive_results" ( "event" text, "season" text, "compulsory_dance_cd" text, "original_dance_od" text, "free_dance_fd" text, "combined_total_score" text );. Question: "In what even was the compulsory dance scored 23.75? ". [/INST] SELECT "event" FROM "detailed_competitive_results" WHERE "compulsory_dance_cd"='23.75';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "detailed_competitive_results" ( "event" text, "season" text, "compulsory_dance_cd" text, "original_dance_od" text, "free_dance_fd" text, "combined_total_score" text );. Question: "In what event was the compulsory dance score 28.12? ". [/INST] SELECT "event" FROM "detailed_competitive_results" WHERE "compulsory_dance_cd"='28.12';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1990s" ( "year" real, "network" text, "race_caller" text, "s_host" text, "s_analyst" text, "reporters" text, "trophy_presentation" text );. Question: "What is every year when the reporters were Lesley Visser and Robin Roberts?". [/INST] SELECT "year" FROM "1990s" WHERE "reporters"='Lesley Visser and Robin Roberts';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1990s" ( "year" real, "network" text, "race_caller" text, "s_host" text, "s_analyst" text, "reporters" text, "trophy_presentation" text );. Question: "What is the latest year with reporters Lesley Visser and Robin Roberts?". [/INST] SELECT MAX("year") FROM "1990s" WHERE "reporters"='Lesley Visser and Robin Roberts';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2266762_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text );. Question: "Who was the driver for the Richard Childress Racing team in the race with a time of 2:58:22?". [/INST] SELECT "driver" FROM "table1_2266762_1" WHERE "team"='Richard Childress Racing' AND "race_time"='2:58: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 "table1_2266762_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text );. Question: "On how many dates was the average speed of the race 91.033 MPH?". [/INST] SELECT COUNT("date") FROM "table1_2266762_1" WHERE "average_speed_mph"='91.033';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2266762_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text );. Question: "Who was the winning driver in the race that was 3:04:09 long? ". [/INST] SELECT "driver" FROM "table1_2266762_1" WHERE "race_time"='3:04:09';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Who was the opponent in the game in which Hakim Warrick (14) did the most high points?". [/INST] SELECT "team" FROM "game_log" WHERE "high_points"='Hakim Warrick (14)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What's the record in the game in which Brad Miller (7) did the high rebounds?". [/INST] SELECT "record" FROM "game_log" WHERE "high_rebounds"='Brad Miller (7)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What's the score of the game with 31-29 record?". [/INST] SELECT "score" FROM "game_log" WHERE "record"='31-29';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text );. Question: "Name the country for gerrard". [/INST] SELECT "country" FROM "in" WHERE "name"='Gerrard';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text );. Question: "Name the number of ends for cardiff city and df". [/INST] SELECT COUNT("ends") FROM "in" WHERE "source"='Cardiff City' AND "p"='DF';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text );. Question: "Name the total number of eu for quinn". [/INST] SELECT COUNT("eu") FROM "in" WHERE "name"='Quinn';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Name the team for w 115–104 (ot)". [/INST] SELECT "team" FROM "game_log" WHERE "score"='W 115–104 (OT)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Name the number of record for united center 18,838". [/INST] SELECT COUNT("record") FROM "game_log" WHERE "location_attendance"='United Center 18,838';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Name the team for united center 22,147". [/INST] SELECT "team" FROM "game_log" WHERE "location_attendance"='United Center 22,147';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Name the high rebounds for new york". [/INST] SELECT "high_rebounds" FROM "game_log" WHERE "team"='New York';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Name the number of high rebounds for united center 19,335". [/INST] SELECT COUNT("high_rebounds") FROM "game_log" WHERE "location_attendance"='United Center 19,335';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.