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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "time" text, "att" real, "record" text );. Question: "What was the attendance on June 27?". [/INST] SELECT MIN("att") FROM "game_log" WHERE "date"='june 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 "singles_titles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );. Question: "Name the surface for 12 september 2006". [/INST] SELECT "surface" FROM "singles_titles" WHERE "date"='12 september 2006';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_titles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );. Question: "Name the score for opponent in the final being paul baccanello". [/INST] SELECT "score" FROM "singles_titles" WHERE "opponent_in_the_final"='paul baccanello';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_titles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );. Question: "Name the surface for 20 march 2007". [/INST] SELECT "surface" FROM "singles_titles" WHERE "date"='20 march 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 "singles_titles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );. Question: "Name the date for opponent in the final being ignasi villacampa". [/INST] SELECT "date" FROM "singles_titles" WHERE "opponent_in_the_final"='ignasi villacampa';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_titles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );. Question: "Name the tournament for grass surface and opponent in the final being paul baccanello". [/INST] SELECT "tournament" FROM "singles_titles" WHERE "surface"='grass' AND "opponent_in_the_final"='paul baccanello';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text );. Question: "When is the earliest year in milan that guillermo vilas was champion?". [/INST] SELECT MIN("year") FROM "singles" WHERE "location"='milan' AND "champion"='guillermo vilas';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text );. Question: "Where in 1985 was tim mayotte runner up?". [/INST] SELECT "location" FROM "singles" WHERE "year">1985 AND "runner_up"='tim mayotte';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text );. Question: "What was the score when stefan edberg won after 1978?". [/INST] SELECT "score" FROM "singles" WHERE "year">1978 AND "champion"='stefan edberg';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "broadcast_translators_of_wpby" ( "station" text, "city_of_license" text, "channel" text, "erp_k_w" real, "haat_m_ft" text, "facility_id" real );. Question: "What is the Facility ID that has a City of license of wheeling, and a ERP kW less than 4.5?". [/INST] SELECT MAX("facility_id") FROM "broadcast_translators_of_wpby" WHERE "city_of_license"='wheeling' AND "erp_k_w"<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 "broadcast_translators_of_wpby" ( "station" text, "city_of_license" text, "channel" text, "erp_k_w" real, "haat_m_ft" text, "facility_id" real );. Question: "What is the City of license that has a ERP kW more than 4.5 and w23dr-d?". [/INST] SELECT "city_of_license" FROM "broadcast_translators_of_wpby" WHERE "erp_k_w">4.5 AND "station"='w23dr-d';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tower_remains" ( "church_name" text, "location" text, "rebuilt" text, "date_of_demolition" real, "subsuming_parish" text );. Question: "What is the location that has a date of demolition of 1940 and has a church named Christ Church Greyfriars?". [/INST] SELECT "location" FROM "tower_remains" WHERE "date_of_demolition"=1940 AND "church_name"='christ church greyfriars';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tower_remains" ( "church_name" text, "location" text, "rebuilt" text, "date_of_demolition" real, "subsuming_parish" text );. Question: "How many dates of demolition are located on Wood Street?". [/INST] SELECT COUNT("date_of_demolition") FROM "tower_remains" WHERE "location"='wood street';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_8_titles_4_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "What was Olga Govortsova's score when she played on a clay surface on 19 May 2008?". [/INST] SELECT "score" FROM "doubles_12_8_titles_4_runners_up" WHERE "surface"='clay' AND "date"='19 may 2008';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_12_8_titles_4_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "What was Olga Govortsova's outcome when she played on a grass surface?". [/INST] SELECT "outcome" FROM "doubles_12_8_titles_4_runners_up" WHERE "surface"='grass';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_8_titles_4_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "What was Olga Govortsova's goal when she played on a clay surface on 26 May 2012?". [/INST] SELECT "score" FROM "doubles_12_8_titles_4_runners_up" WHERE "surface"='clay' AND "date"='26 may 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 "the_50_most_topographically_prominent_mo" ( "rank" real, "mountain_peak" text, "province" text, "mountain_range" text, "location" text );. Question: "Which mountain range has a rank of 19?". [/INST] SELECT "mountain_range" FROM "the_50_most_topographically_prominent_mo" WHERE "rank"=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 "the_50_most_topographically_prominent_mo" ( "rank" real, "mountain_peak" text, "province" text, "mountain_range" text, "location" text );. Question: "Which location includes Coast Mountains with a rank less than 18 at Skihist Mountain?". [/INST] SELECT "location" FROM "the_50_most_topographically_prominent_mo" WHERE "mountain_range"='coast mountains' AND "rank"<18 AND "mountain_peak"='skihist mountain';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "the_50_most_topographically_prominent_mo" ( "rank" real, "mountain_peak" text, "province" text, "mountain_range" text, "location" text );. Question: "Which mountain range includes Mount Hubbard?". [/INST] SELECT "mountain_range" FROM "the_50_most_topographically_prominent_mo" WHERE "mountain_peak"='mount hubbard';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "the_50_most_topographically_prominent_mo" ( "rank" real, "mountain_peak" text, "province" text, "mountain_range" text, "location" text );. Question: "Which province includes Axel Heiberg Island?". [/INST] SELECT "province" FROM "the_50_most_topographically_prominent_mo" WHERE "mountain_range"='axel heiberg island';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );. Question: "What are the notes of events that finished in 12th position?". [/INST] SELECT "notes" FROM "achievements" WHERE "position"='12th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );. Question: "Which venue was finished in 2nd position in 1985?". [/INST] SELECT "venue" FROM "achievements" WHERE "position"='2nd' AND "year"=1985;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );. Question: "What is the average year of events that took place in Antwerp, Belgium?". [/INST] SELECT AVG("year") FROM "achievements" WHERE "venue"='antwerp, belgium';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );. Question: "What's the year of the event that took place most recently in Antwerp, Belgium with team competition notes?". [/INST] SELECT MAX("year") FROM "achievements" WHERE "notes"='team competition' AND "venue"='antwerp, belgium';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "region" text, "date" real, "label" text, "format" text, "catalog" text );. Question: "What was the label's format LP and catalog of CH-9192?". [/INST] SELECT "label" FROM "release_history" WHERE "format"='lp' AND "catalog"='ch-9192';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "region" text, "date" real, "label" text, "format" text, "catalog" text );. Question: "When was Catalog CHD-9192 published?". [/INST] SELECT "date" FROM "release_history" WHERE "catalog"='chd-9192';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "I need the FCC info on the radio Frequency MHz 107.5?". [/INST] SELECT "fcc_info" FROM "translators" WHERE "frequency_m_hz"=107.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 "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "Give me the MHz Frequency of Allapattah, Florida.". [/INST] SELECT "frequency_m_hz" FROM "translators" WHERE "city_of_license"='allapattah, florida';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What class does the w298ak sign belong to?". [/INST] SELECT "class" FROM "translators" WHERE "call_sign"='w298ak';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What class is ERP W of 800?". [/INST] SELECT "class" FROM "translators" WHERE "erp_w"=800;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "apertura_2002_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "What is the total of Goals Conceded that has Points smaller than 21 and a Lost thats smaller than 8?". [/INST] SELECT SUM("goals_conceded") FROM "apertura_2002_standings" WHERE "points"<21 AND "lost"<8;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "apertura_2002_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "What's the total of Lost that's got Points larger than 28, Draw of 5, and Place that's smaller than 1?". [/INST] SELECT SUM("lost") FROM "apertura_2002_standings" WHERE "points">28 AND "draw"=5 AND "place"<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 "apertura_2002_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "What's the total of Goals Scored with Points that's smaller than 27, and a Team of C.D. Atlético Balboa?". [/INST] SELECT SUM("goals_scored") FROM "apertura_2002_standings" WHERE "points"<27 AND "team"='c.d. atlético balboa';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "apertura_2002_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "What is listed as the Highest Played and that has a Place that is larger than 10?". [/INST] SELECT MAX("played") FROM "apertura_2002_standings" WHERE "place">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 "apertura_2002_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "What is listed as the Highest Played, has Points of 17, and Draw that is smaller than 5?". [/INST] SELECT MAX("played") FROM "apertura_2002_standings" WHERE "points"=17 AND "draw"<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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "When was the game that ended with a score of 6-4?". [/INST] SELECT "date" FROM "game_log" WHERE "score"='6-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 "april" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What was the score on April 8?". [/INST] SELECT "score" FROM "april" WHERE "date"='april 8';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What was the decision in Minnesota?". [/INST] SELECT "decision" FROM "april" WHERE "home"='minnesota';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "Which score has a record of 58–15–8?". [/INST] SELECT "score" FROM "april" WHERE "record"='58–15–8';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_to_season" ( "season" text, "level" text, "division" text, "section" text, "position" text );. Question: "Which section has a level of Tier 3, is in the 6th position, and is in the 1937-38 season?". [/INST] SELECT "section" FROM "season_to_season" WHERE "level"='tier 3' AND "position"='6th' AND "season"='1937-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 "season_to_season" ( "season" text, "level" text, "division" text, "section" text, "position" text );. Question: "Which section is in the 6th position?". [/INST] SELECT "section" FROM "season_to_season" WHERE "position"='6th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Name the attendance with date of june 11". [/INST] SELECT "attendance" FROM "game_log" WHERE "date"='june 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 "highest_partnerships_for_each_wicket" ( "wicket" text, "runs" text, "partnerships" text, "venue" text, "date" text );. Question: "Which partnership has a run number of 27?". [/INST] SELECT "partnerships" FROM "highest_partnerships_for_each_wicket" WHERE "runs"='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 "highest_partnerships_for_each_wicket" ( "wicket" text, "runs" text, "partnerships" text, "venue" text, "date" text );. Question: "What venue did the parntership of shoaib malik / misbah-ul-haq occur?". [/INST] SELECT "venue" FROM "highest_partnerships_for_each_wicket" WHERE "partnerships"='shoaib malik / misbah-ul-haq';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "highest_partnerships_for_each_wicket" ( "wicket" text, "runs" text, "partnerships" text, "venue" text, "date" text );. Question: "What venue did the partnership of herschelle gibbs / justin kemp happen?". [/INST] SELECT "venue" FROM "highest_partnerships_for_each_wicket" WHERE "partnerships"='herschelle gibbs / justin kemp';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_2011_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text );. Question: "What is the number Played that has 310 Points for?". [/INST] SELECT "played" FROM "2010_2011_table" WHERE "points_for"='310';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_2011_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text );. Question: "What Losing bonus has a Points against of 588?". [/INST] SELECT "losing_bonus" FROM "2010_2011_table" WHERE "points_against"='588';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_2011_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text );. Question: "What Tries against has a Losing bonus of 7?". [/INST] SELECT "tries_against" FROM "2010_2011_table" WHERE "losing_bonus"='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 "2010_2011_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text );. Question: "What Try bonus has a Points against of 488?". [/INST] SELECT "try_bonus" FROM "2010_2011_table" WHERE "points_against"='488';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_2011_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text );. Question: "What Points for has a Try bonus of 140?". [/INST] SELECT "points_for" FROM "2010_2011_table" WHERE "try_bonus"='140';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_2011_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text );. Question: "What Drawn has a Tries against of 0?". [/INST] SELECT "drawn" FROM "2010_2011_table" WHERE "tries_against"='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 "list_of_champions" ( "name" text, "reign" real, "days_held" text, "location" text, "defenses" real );. Question: "What is the days held the champion with a reign larger than 3 and 1 defense has?". [/INST] SELECT "days_held" FROM "list_of_champions" WHERE "reign">3 AND "defenses"=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 "list_of_champions" ( "name" text, "reign" real, "days_held" text, "location" text, "defenses" real );. Question: "What is the days held the champion with a reign larger than 3 and less than 1 defense has?". [/INST] SELECT "days_held" FROM "list_of_champions" WHERE "reign">3 AND "defenses"<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 "list_of_champions" ( "name" text, "reign" real, "days_held" text, "location" text, "defenses" real );. Question: "What is the average defenses a champion with 404 days held and a reign larger than 1 has?". [/INST] SELECT AVG("defenses") FROM "list_of_champions" WHERE "days_held"='404' AND "reign">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 "list_of_champions" ( "name" text, "reign" real, "days_held" text, "location" text, "defenses" real );. Question: "What is the lowest defense a champion with 345 days held has?". [/INST] SELECT MIN("defenses") FROM "list_of_champions" WHERE "days_held"='345';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "On what date was there a record of 76-72?". [/INST] SELECT "date" FROM "game_log" WHERE "record"='76-72';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 attendance that had a loss of Ponson (1-5)?". [/INST] SELECT "attendance" FROM "game_log" WHERE "loss"='ponson (1-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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "On which day was there a record of 36-39?". [/INST] SELECT "date" FROM "game_log" WHERE "record"='36-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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "On what day was the record 30-31?". [/INST] SELECT "date" FROM "game_log" WHERE "record"='30-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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );. Question: "Who was the opponent at the game that had a loss of Leonard (7–8)?". [/INST] SELECT "opponent" FROM "game_log" WHERE "loss"='leonard (7–8)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "record" text );. Question: "What was the score of the game when the record was 18–43?". [/INST] SELECT "score" FROM "game_log" WHERE "record"='18–43';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "record" text );. Question: "What was the score of the game against the Royals when the record was 24–52?". [/INST] SELECT "score" FROM "game_log" WHERE "opponent"='royals' AND "record"='24–52';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "record" text );. Question: "What was the score of the game when the record was 22–46?". [/INST] SELECT "score" FROM "game_log" WHERE "record"='22–46';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "characters" ( "code_name" text, "function_figure" text, "real_name" text, "birthplace" text, "serial_number" text, "primary_military_speciality" text, "secondary_military_speciality" text );. Question: "What is the real name of the person whose primary military specialty is shock paratrooper?". [/INST] SELECT "real_name" FROM "characters" WHERE "primary_military_speciality"='shock paratrooper';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "characters" ( "code_name" text, "function_figure" text, "real_name" text, "birthplace" text, "serial_number" text, "primary_military_speciality" text, "secondary_military_speciality" text );. Question: "What is the birthplace of Pete Sanderson?". [/INST] SELECT "birthplace" FROM "characters" WHERE "real_name"='pete sanderson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "characters" ( "code_name" text, "function_figure" text, "real_name" text, "birthplace" text, "serial_number" text, "primary_military_speciality" text, "secondary_military_speciality" text );. Question: "What role did Jean-Luc Bouvier serve?". [/INST] SELECT "function_figure" FROM "characters" WHERE "real_name"='jean-luc bouvier';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "characters" ( "code_name" text, "function_figure" text, "real_name" text, "birthplace" text, "serial_number" text, "primary_military_speciality" text, "secondary_military_speciality" text );. Question: "What is the real name of the person who is a pilot of the silent attack kayak?". [/INST] SELECT "real_name" FROM "characters" WHERE "function_figure"='pilot of the silent attack kayak';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "characters" ( "code_name" text, "function_figure" text, "real_name" text, "birthplace" text, "serial_number" text, "primary_military_speciality" text, "secondary_military_speciality" text );. Question: "What is the code name of the person born in Liverpool?". [/INST] SELECT "code_name" FROM "characters" WHERE "birthplace"='liverpool';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text );. Question: "What is the names for the medalist in the sport of canoeing?". [/INST] SELECT "name" FROM "list_of_medalists" WHERE "sport"='canoeing';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text );. Question: "What games had the women's half middleweight event?". [/INST] SELECT "games" FROM "list_of_medalists" WHERE "event"='women''s half middleweight';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text );. Question: "Who received the bronze medal in the 2000 Sydney games?". [/INST] SELECT "name" FROM "list_of_medalists" WHERE "medal"='bronze' AND "games"='2000 sydney';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "How many people attended when opponent was twins?". [/INST] SELECT COUNT("attendance") FROM "game_log" WHERE "opponent"='twins';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Which date has a Record of 41-46?". [/INST] SELECT "date" FROM "game_log" WHERE "record"='41-46';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Which score has a Record of 48-55?". [/INST] SELECT "score" FROM "game_log" WHERE "record"='48-55';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Which score has a Record of 44-49?". [/INST] SELECT "score" FROM "game_log" WHERE "record"='44-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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "Which score has an Attendance larger than 16,571, and a Loss of mcdowell (0-1)?". [/INST] SELECT "score" FROM "game_log" WHERE "attendance">'16,571' AND "loss"='mcdowell (0-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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "Which score has an Opponent of white sox, and a Record of 2-0?". [/INST] SELECT "score" FROM "game_log" WHERE "opponent"='white sox' AND "record"='2-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 "results_in_federal_elections" ( "year" real, "office" text, "candidate" text, "popular_votes" real, "percentage" text );. Question: "How many votes did candice sjostrom receive?". [/INST] SELECT AVG("popular_votes") FROM "results_in_federal_elections" WHERE "candidate"='candice sjostrom';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results_in_federal_elections" ( "year" real, "office" text, "candidate" text, "popular_votes" real, "percentage" text );. Question: "What percentage did chris wright receive?". [/INST] SELECT "percentage" FROM "results_in_federal_elections" WHERE "candidate"='chris wright';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results_in_federal_elections" ( "year" real, "office" text, "candidate" text, "popular_votes" real, "percentage" text );. Question: "How many votes for the candidate after 1992, 1.59% of the vote, and the office of us representative 4?". [/INST] SELECT AVG("popular_votes") FROM "results_in_federal_elections" WHERE "office"='us representative 4' AND "percentage"='1.59%' AND "year">1992;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "representative" text, "years" text, "state" text, "party" text, "lifespan" text );. Question: "What years did J. Smith Young serve as a Representative?". [/INST] SELECT "years" FROM "external_links" WHERE "representative"='j. smith young';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "representative" text, "years" text, "state" text, "party" text, "lifespan" text );. Question: "Which party did Thomas L. Young belong to?". [/INST] SELECT "party" FROM "external_links" WHERE "representative"='thomas l. young';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the lowest total amount of medals from countries with 0 gold medals, more than 2 bronze medals, and more than 1 silver medal?". [/INST] SELECT MIN("total") FROM "medal_table" WHERE "gold"=0 AND "bronze">2 AND "silver">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 "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the total number of silver medals for countries of rank 14, with less than 1 total medals?". [/INST] SELECT SUM("silver") FROM "medal_table" WHERE "rank"='14' 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 "tackles" ( "player" text, "solo" real, "total" real, "sacks" text, "fumble_force" real, "fumble_rec" real );. Question: "How many tackles for the player with over 0 fumble recovries and 0 forced fumbles?". [/INST] SELECT COUNT("total") FROM "tackles" WHERE "fumble_rec">0 AND "fumble_force"=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 "tackles" ( "player" text, "solo" real, "total" real, "sacks" text, "fumble_force" real, "fumble_rec" real );. Question: "How many forced fumbles for jim laney with under 2 solo tackles?". [/INST] SELECT COUNT("fumble_force") FROM "tackles" WHERE "solo"<2 AND "player"='jim laney';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tackles" ( "player" text, "solo" real, "total" real, "sacks" text, "fumble_force" real, "fumble_rec" real );. Question: "What is the high total for players with over 15 solo tackles?". [/INST] SELECT MAX("total") FROM "tackles" WHERE "solo">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 "tackles" ( "player" text, "solo" real, "total" real, "sacks" text, "fumble_force" real, "fumble_rec" real );. Question: "How many fumble recoveries for scott gajos with 0 forced fubmles, 0 sacks, and under 2 solo tackles?". [/INST] SELECT SUM("fumble_rec") FROM "tackles" WHERE "sacks"='0' AND "fumble_force"=0 AND "player"='scott gajos' AND "solo"<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 "friendly" ( "date" text, "time" text, "competition" text, "opponent" text, "ground" text, "score" text );. Question: "Who is the Opponent playing at 20:00 GMT at Camp Nou?". [/INST] SELECT "opponent" FROM "friendly" WHERE "time"='20:00 gmt' AND "ground"='camp nou';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "friendly" ( "date" text, "time" text, "competition" text, "opponent" text, "ground" text, "score" text );. Question: "What time was the match played with a score of 3-2?". [/INST] SELECT "time" FROM "friendly" WHERE "score"='3-2';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "friendly" ( "date" text, "time" text, "competition" text, "opponent" text, "ground" text, "score" text );. Question: "On which ground did the team play Aston Villa?". [/INST] SELECT "ground" FROM "friendly" WHERE "opponent"='aston villa';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "friendly" ( "date" text, "time" text, "competition" text, "opponent" text, "ground" text, "score" text );. Question: "What kind of competition was it at San Siro at 18:30 GMT?". [/INST] SELECT "competition" FROM "friendly" WHERE "ground"='san siro' AND "time"='18:30 gmt';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wellington_city" ( "name" text, "years" text, "gender" text, "locality" text, "authority" text, "decile" real );. Question: "What is the total number of decile for the redwood school locality?". [/INST] SELECT COUNT("decile") FROM "wellington_city" WHERE "name"='redwood school';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "Which report includes a Circuit of Tripoli?". [/INST] SELECT "report" FROM "other_grands_prix" WHERE "circuit"='tripoli';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1000181_1" ( "state_territory" text, "text_background_colour" text, "format" text, "current_slogan" text, "current_series" text, "notes" text );. Question: "Determine the number of unique formats per each type of notes for South Australia, displaying the top 3 note types with the most unique formats.". [/INST] SELECT "notes", COUNT(DISTINCT "format") FROM "table1_1000181_1" WHERE "state_territory"='South Australia' GROUP BY "notes" ORDER BY COUNT(DISTINCT "format") DESC LIMIT 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_1000181_1" ( "state_territory" text, "text_background_colour" text, "format" text, "current_slogan" text, "current_series" text, "notes" text );. Question: "Can you list out the distinct 'current_series' and the count of their occurrence where the new series began in June 2011, order the result by the count in descending order and limit the result to top 5?". [/INST] SELECT "current_series", COUNT("current_series") FROM "table1_1000181_1" WHERE "notes" LIKE 'New series began in June 2011' GROUP BY "current_series" ORDER BY COUNT("current_series") DESC LIMIT 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 "table1_1000181_1" ( "state_territory" text, "text_background_colour" text, "format" text, "current_slogan" text, "current_series" text, "notes" text );. Question: "What are the distinct text background colours, and for each of those, what is the maximum and minimum number of different formats that South Australia has, ordered by the count of formats in descending order with a limit of five?". [/INST] SELECT "text_background_colour", COUNT("format"), MAX("current_series"), MIN("current_series") FROM "table1_1000181_1" WHERE "state_territory"='South Australia' GROUP BY "text_background_colour" ORDER BY COUNT("format") DESC LIMIT 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 "table1_1000181_1" ( "state_territory" text, "text_background_colour" text, "format" text, "current_slogan" text, "current_series" text, "notes" text );. Question: "Can you determine which background colours have been used most and least frequently for the Australian Capital Territory, counting only distinct formats for each colour, and provide the top three most used colours?". [/INST] SELECT "text_background_colour", COUNT(DISTINCT "format") as format_count
FROM "table1_1000181_1"
WHERE "state_territory"='Australian Capital Territory'
GROUP BY "text_background_colour"
ORDER BY format_count DESC
LIMIT 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 "fleet" ( "order_year" text, "manufacturer" text, "model" text, "fleet_series_quantity" text, "powertrain_engine_transmission" text, "fuel_propulsion" text );. Question: "How many times is the fuel propulsion CNG per manufacturer ordered by the quantity in descending order, and limit the result to the top 5?". [/INST] SELECT "manufacturer", COUNT("fleet_series_quantity") AS QUANTITY FROM "fleet" WHERE "fuel_propulsion"='CNG' GROUP BY "manufacturer" ORDER BY QUANTITY DESC LIMIT 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 "fleet" ( "order_year" text, "manufacturer" text, "model" text, "fleet_series_quantity" text, "powertrain_engine_transmission" text, "fuel_propulsion" text );. Question: "What is the count of each unique type of propulsion for fleets where the series quantity ranges from 310-329 (20) and ordered by manufacturer?". [/INST] SELECT "manufacturer", "fuel_propulsion", COUNT(*) AS propulsion_count FROM "fleet" WHERE "fleet_series_quantity"='310-329 (20)' GROUP BY "manufacturer", "fuel_propulsion" ORDER BY "manufacturer";</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.