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 "2008_superstock_tt_final_standings" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );. Question: "What time did team kawasaki zx10 1000cc have?". [/INST] SELECT "time" FROM "2008_superstock_tt_final_standings" WHERE "team"='kawasaki zx10 1000cc';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_superstock_tt_final_standings" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );. Question: "What time did team kawasaki zx10 1000cc have?". [/INST] SELECT "time" FROM "2008_superstock_tt_final_standings" WHERE "team"='kawasaki zx10 1000cc';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_superstock_tt_final_standings" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );. Question: "What is the rank for the team with a Time of 1:12.40.28?". [/INST] SELECT SUM("rank") FROM "2008_superstock_tt_final_standings" WHERE "time"='1:12.40.28';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "volume_issue" text, "issue_date_s" text, "weeks_on_top" real, "song" text, "artist" text );. Question: "Which Issue Date(s) has an Artist of men at work?". [/INST] SELECT "issue_date_s" FROM "see_also" WHERE "artist"='men at work';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "volume_issue" text, "issue_date_s" text, "weeks_on_top" real, "song" text, "artist" text );. Question: "Which Issue Date(s) has Weeks on Top larger than 3, and a Volume: Issue of 35:25-26, 36:1-2?". [/INST] SELECT "issue_date_s" FROM "see_also" WHERE "weeks_on_top">3 AND "volume_issue"='35:25-26, 36:1-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 "see_also" ( "volume_issue" text, "issue_date_s" text, "weeks_on_top" real, "song" text, "artist" text );. Question: "Which Weeks on Top have an Issue Date(s) of 20 november?". [/INST] SELECT SUM("weeks_on_top") FROM "see_also" WHERE "issue_date_s"='20 november';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_awards" ( "year" real, "male" text, "female" text, "album" text, "live_performance" text );. Question: "Who is the male partner for amy winehouse?". [/INST] SELECT "male" FROM "international_awards" WHERE "female"='amy winehouse';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_awards" ( "year" real, "male" text, "female" text, "album" text, "live_performance" text );. Question: "Which male is paired with dido in 2004?". [/INST] SELECT "male" FROM "international_awards" WHERE "year"<2004 AND "female"='dido';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_awards" ( "year" real, "male" text, "female" text, "album" text, "live_performance" text );. Question: "Which female artist has an album named elephant?". [/INST] SELECT "female" FROM "international_awards" WHERE "album"='elephant';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "Date of march 30 involves what home?". [/INST] SELECT "home" FROM "regular_season" WHERE "date"='march 30';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "venue" text, "attendance" real );. Question: "Which venue hosted the Los Angeles Rams as an opponent?". [/INST] SELECT "venue" FROM "schedule" WHERE "opponent"='los angeles rams';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "venue" text, "attendance" real );. Question: "Which date's week was more than 4 with the venue being City Stadium and where the attendance was more than 14,297?". [/INST] SELECT "date" FROM "schedule" WHERE "week">4 AND "venue"='city stadium' AND "attendance">'14,297';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "october" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "Name the home with toronto visiting". [/INST] SELECT "home" FROM "october" WHERE "visitor"='toronto';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "round" text, "player" text, "position" text, "college" text );. Question: "What was the pick# for Lorenzo Freeman as defensive tackle?". [/INST] SELECT "pick_num" FROM "nfl_draft" WHERE "position"='defensive tackle' AND "player"='lorenzo freeman';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "round" text, "player" text, "position" text, "college" text );. Question: "What is the largest pick# for Greg Harris?". [/INST] SELECT MAX("pick_num") FROM "nfl_draft" WHERE "player"='greg harris';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "round" text, "player" text, "position" text, "college" text );. Question: "Which round goes to Stanford college?". [/INST] SELECT "round" FROM "nfl_draft" WHERE "college"='stanford';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "round" text, "player" text, "position" text, "college" text );. Question: "What is the sum of pick# for Don Majkowski?3". [/INST] SELECT SUM("pick_num") FROM "nfl_draft" WHERE "player"='don majkowski';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "round" text, "player" text, "position" text, "college" text );. Question: "Which college had Tony Leiker in round 7?". [/INST] SELECT "college" FROM "nfl_draft" WHERE "round"='round 7' AND "player"='tony leiker';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "subsidiaries_and_associates" ( "company" text, "type" text, "principal_activities" text, "incorporated_in" text, "group_s_equity_shareholding_10_march_2010" text );. Question: "What is the Group's equity share percentage for Company VN/CX catering services limited?". [/INST] SELECT "group_s_equity_shareholding_10_march_2010" FROM "subsidiaries_and_associates" WHERE "company"='vn/cx catering services limited';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "subsidiaries_and_associates" ( "company" text, "type" text, "principal_activities" text, "incorporated_in" text, "group_s_equity_shareholding_10_march_2010" text );. Question: "Which company's principal activities are catering services, and a Group's Equity Shareholding (as of March 10th 2010) of 40%?". [/INST] SELECT "company" FROM "subsidiaries_and_associates" WHERE "principal_activities"='catering services' AND "group_s_equity_shareholding_10_march_2010"='40%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "subsidiaries_and_associates" ( "company" text, "type" text, "principal_activities" text, "incorporated_in" text, "group_s_equity_shareholding_10_march_2010" text );. Question: "Which company's type is joint venture, and has principle activities listed as Cargo Airline and an incorporation of China?". [/INST] SELECT "company" FROM "subsidiaries_and_associates" WHERE "type"='joint venture' AND "principal_activities"='cargo airline' AND "incorporated_in"='china';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "subsidiaries_and_associates" ( "company" text, "type" text, "principal_activities" text, "incorporated_in" text, "group_s_equity_shareholding_10_march_2010" text );. Question: "Which company has a group equity shareholding percentage, as of March 10th 2010 of 30%?". [/INST] SELECT "company" FROM "subsidiaries_and_associates" WHERE "group_s_equity_shareholding_10_march_2010"='30%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "subsidiaries_and_associates" ( "company" text, "type" text, "principal_activities" text, "incorporated_in" text, "group_s_equity_shareholding_10_march_2010" text );. Question: "What is the type for the Cathay Pacific Holidays company, an incorporation of Hong Kong and listed activities as Travel Agency?". [/INST] SELECT "type" FROM "subsidiaries_and_associates" WHERE "incorporated_in"='hong kong' AND "principal_activities"='travel agency' AND "company"='cathay pacific holidays';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "subsidiaries_and_associates" ( "company" text, "type" text, "principal_activities" text, "incorporated_in" text, "group_s_equity_shareholding_10_march_2010" text );. Question: "What is the name of the company that has a Group's equity shareholding percentage, as of March 10th, 2010, of 100%, as well as a Principal activity of Airline?". [/INST] SELECT "company" FROM "subsidiaries_and_associates" WHERE "group_s_equity_shareholding_10_march_2010"='100%' AND "principal_activities"='airline';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "uninum" real, "bats" text, "throws" text, "position" text );. Question: "Which Position has a Surname of naylor?". [/INST] SELECT "position" FROM "player_roster" WHERE "surname"='naylor';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "uninum" real, "bats" text, "throws" text, "position" text );. Question: "How many Uni numbers have Bats of s, and a Position of utl?". [/INST] SELECT COUNT("uninum") FROM "player_roster" WHERE "bats"='s' AND "position"='utl';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "uninum" real, "bats" text, "throws" text, "position" text );. Question: "Which First has a Uni # larger than 34, and Throws of r, and a Position of rhp, and a Surname of stockman?". [/INST] SELECT "first" FROM "player_roster" WHERE "uninum">34 AND "throws"='r' AND "position"='rhp' AND "surname"='stockman';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "uninum" real, "bats" text, "throws" text, "position" text );. Question: "Which Uni # has a Surname of ough?". [/INST] SELECT "uninum" FROM "player_roster" WHERE "surname"='ough';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "uninum" real, "bats" text, "throws" text, "position" text );. Question: "Which Surname has Throws of l, and a DOB of 5/02/79?". [/INST] SELECT "surname" FROM "player_roster" WHERE "throws"='l' AND "d_o_b"='5/02/79';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wta_tour_doubles_finals_17_10_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text );. Question: "Which surface had a partner of Sandrine Testud on November 14, 1999?". [/INST] SELECT "surface" FROM "wta_tour_doubles_finals_17_10_7" WHERE "partner"='sandrine testud' AND "date"='november 14, 1999';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "michigan_60_indiana_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "What is the average number of field goals for players with more than 60 points?". [/INST] SELECT AVG("field_goals") FROM "michigan_60_indiana_0" WHERE "points">60;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "michigan_60_indiana_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "What is the smallest number of field goals for players with 4 touchdowns and less than 9 extra points?". [/INST] SELECT MIN("field_goals") FROM "michigan_60_indiana_0" WHERE "touchdowns"=4 AND "extra_points"<9;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "michigan_60_indiana_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "What is the highest number of points for players with less than 2 touchdowns and 0 extra points?". [/INST] SELECT MAX("points") FROM "michigan_60_indiana_0" WHERE "extra_points"=0 AND "touchdowns"<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 "michigan_60_indiana_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "What is the highest number of extra points for players with less than 2 touchdowns and less than 1 point?". [/INST] SELECT MAX("extra_points") FROM "michigan_60_indiana_0" WHERE "touchdowns"<2 AND "points"<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 "michigan_60_indiana_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "What is the average number of points for players with 4 touchdowns and more than 0 field goals?". [/INST] SELECT AVG("points") FROM "michigan_60_indiana_0" WHERE "touchdowns"=4 AND "field_goals">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 "group_5_ribbons" ( "nation" text, "t_score" real, "a_score" real, "e_score" real, "pen" real, "total" real );. Question: "What E score has the T score of 8 and a number smaller than 22.95?". [/INST] SELECT MIN("e_score") FROM "group_5_ribbons" WHERE "t_score"=8 AND "total"<22.95;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_5_ribbons" ( "nation" text, "t_score" real, "a_score" real, "e_score" real, "pen" real, "total" real );. Question: "What's the sum of A Score that also has a score lower than 7.3 and an E Score larger than 7.1?". [/INST] SELECT SUM("a_score") FROM "group_5_ribbons" WHERE "t_score"<7.3 AND "e_score">7.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 "near_misses" ( "peak" text, "absolute_height_m" real, "relative_height_m" real, "parent" text, "country" text );. Question: "What is the relative height of Scotland with Ben Vorlich as parent?". [/INST] SELECT COUNT("relative_height_m") FROM "near_misses" WHERE "country"='scotland' AND "parent"='ben vorlich';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the highest rank of Austria, which had less than 0 silvers?". [/INST] SELECT MIN("rank") FROM "medal_table" WHERE "nation"='austria' AND "silver"<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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the rank of the team with 0 gold and less than 0 silvers?". [/INST] SELECT SUM("rank") FROM "medal_table" WHERE "gold"=0 AND "silver"<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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the total number of bronze medals of West Germany, which is ranked 2 and has less than 1 total medals?". [/INST] SELECT COUNT("bronze") FROM "medal_table" WHERE "rank"=2 AND "nation"='west germany' AND "total"<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 "november" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real );. Question: "What is the number of points of the game less than number 17 with an 11-6-0 record?". [/INST] SELECT SUM("points") FROM "november" WHERE "record"='11-6-0' AND "game_num"<17;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "november" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real );. Question: "What is the record of the game on November 22?". [/INST] SELECT "record" FROM "november" WHERE "date"='november 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 "november" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real );. Question: "Who is the visitor team of game 19 with Los Angeles as the home team?". [/INST] SELECT "visitor" FROM "november" WHERE "home"='los angeles' AND "game_num"=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 "2000s" ( "year" text, "channel" text, "play_by_play" text, "color_commentator_s" text, "courtside_reporter" text, "studio_host" text, "studio_analysts" text );. Question: "WHich Studio host has a Year of 2003-04?". [/INST] SELECT "studio_host" FROM "2000s" WHERE "year"='2003-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 "2000s" ( "year" text, "channel" text, "play_by_play" text, "color_commentator_s" text, "courtside_reporter" text, "studio_host" text, "studio_analysts" text );. Question: "WHich Studio analysts has a Studio host of gary tanguay in 2009-10?". [/INST] SELECT "studio_analysts" FROM "2000s" WHERE "studio_host"='gary tanguay' AND "year"='2009-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 "2000s" ( "year" text, "channel" text, "play_by_play" text, "color_commentator_s" text, "courtside_reporter" text, "studio_host" text, "studio_analysts" text );. Question: "WHich Color commentatorhas a Studio host of gary tanguay & eric frede?". [/INST] SELECT "color_commentator_s" FROM "2000s" WHERE "studio_host"='gary tanguay & eric frede';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2000s" ( "year" text, "channel" text, "play_by_play" text, "color_commentator_s" text, "courtside_reporter" text, "studio_host" text, "studio_analysts" text );. Question: "WHich Play-by-play has a Studio host of gary tanguay, and a Studio analysts of donny marshall?". [/INST] SELECT "play_by_play" FROM "2000s" WHERE "studio_host"='gary tanguay' AND "studio_analysts"='donny marshall';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2000s" ( "year" text, "channel" text, "play_by_play" text, "color_commentator_s" text, "courtside_reporter" text, "studio_host" text, "studio_analysts" text );. Question: "Which Color commentator has a Channel of fsn new england, and a Year of 2004-05?". [/INST] SELECT "color_commentator_s" FROM "2000s" WHERE "channel"='fsn new england' AND "year"='2004-05';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2000s" ( "year" text, "channel" text, "play_by_play" text, "color_commentator_s" text, "courtside_reporter" text, "studio_host" text, "studio_analysts" text );. Question: "Which Courtside reporter has a Channel of fsn new england in 2006-07?". [/INST] SELECT "courtside_reporter" FROM "2000s" WHERE "channel"='fsn new england' AND "year"='2006-07';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "What was the score on April 21?". [/INST] SELECT "score" FROM "game_log" WHERE "date"='april 21';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "evolution_of_the_single_season_record_fo" ( "doubles" real, "player" text, "team" text, "year" real, "years_record_stood" text );. Question: "Player of napoleon lajoie, and a Team of cleveland bronchos, and a Doubles of 49 which years record stood?". [/INST] SELECT "years_record_stood" FROM "evolution_of_the_single_season_record_fo" WHERE "player"='napoleon lajoie' AND "team"='cleveland bronchos' AND "doubles"=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 "fielder_s_fifty_one" ( "home_run" real, "game" real, "date" text, "inning" text, "location" text, "opposing_pitcher" text, "team" text );. Question: "What date was the game at Comiskey Park and had a 4th Inning?". [/INST] SELECT "date" FROM "fielder_s_fifty_one" WHERE "location"='comiskey park' AND "inning"='4th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fielder_s_fifty_one" ( "home_run" real, "game" real, "date" text, "inning" text, "location" text, "opposing_pitcher" text, "team" text );. Question: "When Efrain Valdez was pitching, what was the highest home run?". [/INST] SELECT MAX("home_run") FROM "fielder_s_fifty_one" WHERE "opposing_pitcher"='efrain valdez';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fielder_s_fifty_one" ( "home_run" real, "game" real, "date" text, "inning" text, "location" text, "opposing_pitcher" text, "team" text );. Question: "On June 17 in Tiger stadium, what was the average home run?". [/INST] SELECT AVG("home_run") FROM "fielder_s_fifty_one" WHERE "location"='tiger stadium' AND "date"='june 17';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "all_time_results_record" ( "date" text, "result" text, "competition" text, "venue" text, "attendance" text );. Question: "For the game with 528 attendance, what was the result?". [/INST] SELECT "result" FROM "all_time_results_record" WHERE "attendance"='528';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "What is the score of the game that holds a record of 80-61?". [/INST] SELECT "score" FROM "game_log" WHERE "record"='80-61';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "What is the record of the game with 28,135 people in attendance?". [/INST] SELECT "record" FROM "game_log" WHERE "attendance"='28,135';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "game" real, "october" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "what team has a score of 2". [/INST] SELECT "score" FROM "regular_season" WHERE "points"=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 "regular_season" ( "game" real, "october" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "what team has a score of 11". [/INST] SELECT "record" FROM "regular_season" WHERE "game"=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 "track_records_all_from_unless_noted" ( "sport" text, "record" text, "nation" text, "date" text, "time_sec" real );. Question: "Which nation finished with a time of 47.049?". [/INST] SELECT "nation" FROM "track_records_all_from_unless_noted" WHERE "time_sec"=47.049;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "track_records_all_from_unless_noted" ( "sport" text, "record" text, "nation" text, "date" text, "time_sec" real );. Question: "Which sport has a time over 49?". [/INST] SELECT "sport" FROM "track_records_all_from_unless_noted" WHERE "time_sec">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 "track_records_all_from_unless_noted" ( "sport" text, "record" text, "nation" text, "date" text, "time_sec" real );. Question: "Which nation had a time of 48.38?". [/INST] SELECT "nation" FROM "track_records_all_from_unless_noted" WHERE "time_sec"=48.38;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "machine" text, "points" real, "rank" text, "wins" real );. Question: "Which year had a team of Aprilia and a rank of 4th?". [/INST] SELECT "year" FROM "motorcycle_grand_prix_results" WHERE "team"='aprilia' AND "rank"='4th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "machine" text, "points" real, "rank" text, "wins" real );. Question: "Which class had a machine of RS125R, points over 113, and a rank of 4th?". [/INST] SELECT "class" FROM "motorcycle_grand_prix_results" WHERE "machine"='rs125r' AND "points">113 AND "rank"='4th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "machine" text, "points" real, "rank" text, "wins" real );. Question: "Which team had a year over 1995, machine of RS125R, and ranked 1st?". [/INST] SELECT "team" FROM "motorcycle_grand_prix_results" WHERE "year">1995 AND "machine"='rs125r' AND "rank"='1st';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "southern_germany_1982_94" ( "season" text, "oberliga_bayern" text, "oberliga_hessen" text, "oberliga_baden_w_rttemberg" text, "oberliga_s_dwest" text );. Question: "Which Oberliga Bayern has a Season of 1981-82?". [/INST] SELECT "oberliga_bayern" FROM "southern_germany_1982_94" WHERE "season"='1981-82';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "southern_germany_1982_94" ( "season" text, "oberliga_bayern" text, "oberliga_hessen" text, "oberliga_baden_w_rttemberg" text, "oberliga_s_dwest" text );. Question: "Which Oberliga Südwest has an Oberliga Bayern of fc schweinfurt 05?". [/INST] SELECT "oberliga_s_dwest" FROM "southern_germany_1982_94" WHERE "oberliga_bayern"='fc schweinfurt 05';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "southern_germany_1982_94" ( "season" text, "oberliga_bayern" text, "oberliga_hessen" text, "oberliga_baden_w_rttemberg" text, "oberliga_s_dwest" text );. Question: "Which Season ha spvgg bayreuth and eintracht trier?". [/INST] SELECT "season" FROM "southern_germany_1982_94" WHERE "oberliga_bayern"='spvgg bayreuth' AND "oberliga_s_dwest"='eintracht trier';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "southern_germany_1982_94" ( "season" text, "oberliga_bayern" text, "oberliga_hessen" text, "oberliga_baden_w_rttemberg" text, "oberliga_s_dwest" text );. Question: "which Oberliga Baden-Württemberg has a Season of 1991-92?". [/INST] SELECT "oberliga_baden_w_rttemberg" FROM "southern_germany_1982_94" WHERE "season"='1991-92';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "southern_germany_1982_94" ( "season" text, "oberliga_bayern" text, "oberliga_hessen" text, "oberliga_baden_w_rttemberg" text, "oberliga_s_dwest" text );. Question: "Which Oberliga Baden-Württemberg has an Oberliga Hessen of fsv frankfurt in 1993-94?". [/INST] SELECT "oberliga_baden_w_rttemberg" FROM "southern_germany_1982_94" WHERE "oberliga_hessen"='fsv frankfurt' AND "season"='1993-94';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "southern_germany_1982_94" ( "season" text, "oberliga_bayern" text, "oberliga_hessen" text, "oberliga_baden_w_rttemberg" text, "oberliga_s_dwest" text );. Question: "which Oberliga Südwes has an Oberliga Baden-Württemberg of sv sandhausen in 1984-85?". [/INST] SELECT "oberliga_s_dwest" FROM "southern_germany_1982_94" WHERE "oberliga_baden_w_rttemberg"='sv sandhausen' AND "season"='1984-85';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text );. Question: "Name the loss with save of || 23,391 ||17-18||?". [/INST] SELECT "loss" FROM "game_log" WHERE "save"='|| 23,391 ||17-18||';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text );. Question: "Name the opponent for save of williams (9)". [/INST] SELECT "opponent" FROM "game_log" WHERE "save"='williams (9)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text );. Question: "Name the save for braves for may 15". [/INST] SELECT "save" FROM "game_log" WHERE "opponent"='braves' AND "date"='may 15';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text );. Question: "Name the loss for may 1". [/INST] SELECT "loss" FROM "game_log" WHERE "date"='may 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 "singles_9_3_titles_6_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );. Question: "What was the score in the tournament against Ekaterina Makarova?". [/INST] SELECT "score" FROM "singles_9_3_titles_6_runners_up" WHERE "opponent"='ekaterina makarova';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "affiliates" ( "calls" text, "freq" text, "format" text, "market_market_rank" text, "weeknights" text, "saturday" text, "sunday" text, "group_owner" text );. Question: "What is the market for the 11pm-1am Saturday game?". [/INST] SELECT "market_market_rank" FROM "affiliates" WHERE "saturday"='11pm-1am';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "youngest_mayors" ( "name" text, "locale" text, "state" text, "age_at_appointment" real, "term" text );. Question: "what is the name of the holland locale". [/INST] SELECT "name" FROM "youngest_mayors" WHERE "locale"='holland';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2004" ( "rank" real, "name" text, "headquarters" text, "primary_industry" text, "market_value_usd_million" real );. Question: "How many ranks have an industry of health care?". [/INST] SELECT COUNT("rank") FROM "2004" WHERE "primary_industry"='health care';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "Which Points have an Opponent of new york islanders, and a Game smaller than 65?". [/INST] SELECT SUM("points") FROM "regular_season" WHERE "opponent"='new york islanders' AND "game"<65;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "How many Points have a Record of 40–21–12–3, and a March larger than 28?". [/INST] SELECT COUNT("points") FROM "regular_season" WHERE "record"='40–21–12–3' AND "march">28;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "Which Opponent has a Record of 38–20–12–2?". [/INST] SELECT "opponent" FROM "regular_season" WHERE "record"='38–20–12–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 "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "Which Game is the highest one that has Points smaller than 92, and a Score of 1–3?". [/INST] SELECT MAX("game") FROM "regular_season" WHERE "points"<92 AND "score"='1–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 "distant_homologs" ( "common_name" text, "protein_name" text, "divergence_from_human_lineage_mya" real, "accession_number" text, "sequence_length_aa" real, "sequence_identity_to_human_protein" text );. Question: "What is the accession number of the protein with the common name Purple Sea Urchin?". [/INST] SELECT "accession_number" FROM "distant_homologs" WHERE "common_name"='purple sea urchin';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "distant_homologs" ( "common_name" text, "protein_name" text, "divergence_from_human_lineage_mya" real, "accession_number" text, "sequence_length_aa" real, "sequence_identity_to_human_protein" text );. Question: "What is the protein name of the protein with a sequence identity to human protein of 32%?". [/INST] SELECT "protein_name" FROM "distant_homologs" WHERE "sequence_identity_to_human_protein"='32%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "distant_homologs" ( "common_name" text, "protein_name" text, "divergence_from_human_lineage_mya" real, "accession_number" text, "sequence_length_aa" real, "sequence_identity_to_human_protein" text );. Question: "What is the sequence length (aa) of the protein with the common name Purple Sea Urchin and a divergence from human lineage less than 742.9?". [/INST] SELECT SUM("sequence_length_aa") FROM "distant_homologs" WHERE "common_name"='purple sea urchin' AND "divergence_from_human_lineage_mya"<742.9;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "distant_homologs" ( "common_name" text, "protein_name" text, "divergence_from_human_lineage_mya" real, "accession_number" text, "sequence_length_aa" real, "sequence_identity_to_human_protein" text );. Question: "What is the accession number of the protein with a divergence from human lineage of 937.5?". [/INST] SELECT "accession_number" FROM "distant_homologs" WHERE "divergence_from_human_lineage_mya"=937.5;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text );. Question: "Which Series has a Score of 9–4?". [/INST] SELECT "series" FROM "playoffs" WHERE "score"='9–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 "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text );. Question: "Which Series has an Opponent of calgary flames, and a Score of 9–4?". [/INST] SELECT "series" FROM "playoffs" WHERE "opponent"='calgary flames' AND "score"='9–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 "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text );. Question: "Which Date has a Game smaller than 4, and an Opponent of calgary flames, and a Score of 4–5?". [/INST] SELECT "date" FROM "playoffs" WHERE "game"<4 AND "opponent"='calgary flames' AND "score"='4–5';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text );. Question: "Which Date has a Score of 4–5, and a Game smaller than 4?". [/INST] SELECT "date" FROM "playoffs" WHERE "score"='4–5' AND "game"<4;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "external_links" ( "team" text, "city" text, "arena" text, "founded" real, "first_af2_season" real, "final_af2_season" real );. Question: "How many founded years had a final af2 season prior to 2009 where the arena was the bi-lo center and the first af2 season was prior to 2000?". [/INST] SELECT COUNT("founded") FROM "external_links" WHERE "final_af2_season"<2009 AND "arena"='bi-lo center' AND "first_af2_season"<2000;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "external_links" ( "team" text, "city" text, "arena" text, "founded" real, "first_af2_season" real, "final_af2_season" real );. Question: "What is the mean Founded number when the team is the Baton Rouge Blaze?". [/INST] SELECT AVG("founded") FROM "external_links" WHERE "team"='baton rouge blaze';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table_by_country" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real, "participants" real );. Question: "What is listed as the highest Gold that also has a Silver that's smaller than 1, and has a Total that's smaller than 0?". [/INST] SELECT MAX("gold") FROM "medal_table_by_country" WHERE "silver"<1 AND "total"<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 "medal_table_by_country" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real, "participants" real );. Question: "What's the total Rank that has a Gold that's smaller than 0?". [/INST] SELECT SUM("rank") FROM "medal_table_by_country" WHERE "gold"<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 "medal_table_by_country" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real, "participants" real );. Question: "What is listed as the highest Participants that also have a Rank of 5, and Silver that's smaller than 0?". [/INST] SELECT MAX("participants") FROM "medal_table_by_country" WHERE "rank"=5 AND "silver"<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 "medal_table_by_country" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real, "participants" real );. Question: "What is listed as the highest Rank that has a Gold that's larger than 0, and Participants that's smaller than 10?". [/INST] SELECT MAX("rank") FROM "medal_table_by_country" WHERE "gold">0 AND "participants"<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 "medal_table_by_country" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real, "participants" real );. Question: "What is the total number of Participants that has Silver that's smaller than 0?". [/INST] SELECT SUM("participants") FROM "medal_table_by_country" WHERE "silver"<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 "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text );. Question: "Which skip has Zrinka Muhek as Second?". [/INST] SELECT "skip" FROM "group_b2" WHERE "second"='zrinka muhek';</s> |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.