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 "results" ( "draw" real, "language" text, "artist" text, "english_translation" text, "place" real, "points" real );. Question: "What is the highest draw number when there are more than 31 points, a rank greater than 6, and the English translation is listen to me?". [/INST] SELECT MAX("draw") FROM "results" WHERE "points">31 AND "place">6 AND "english_translation"='listen to me';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wisconsin_counties_ranked_by_per_capita_" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real );. Question: "What was the population of Green County?". [/INST] SELECT MIN("population") FROM "wisconsin_counties_ranked_by_per_capita_" WHERE "county"='green';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wisconsin_counties_ranked_by_per_capita_" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real );. Question: "Which county had 6,807 households and a median family income of $49,865?". [/INST] SELECT "county" FROM "wisconsin_counties_ranked_by_per_capita_" WHERE "number_of_households">'6,807' AND "median_family_income"='$49,865';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What was the score of the game against Minnesota?". [/INST] SELECT "score" FROM "regular_season" WHERE "opponent"='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 "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What player had the high point on July 7?". [/INST] SELECT "high_points" FROM "regular_season" WHERE "date"='july 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 "singles" ( "date" real, "single" text, "backed_with" text, "record_label" text, "format" text, "other_details" text );. Question: "What's the format of the single, I Can't Stay?". [/INST] SELECT "format" FROM "singles" WHERE "single"='i can''t stay';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "date" real, "single" text, "backed_with" text, "record_label" text, "format" text, "other_details" text );. Question: "What's the Backed after 2008 with a label of Wild World?". [/INST] SELECT "backed_with" FROM "singles" WHERE "record_label"='wild world' AND "date">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 "singles" ( "date" real, "single" text, "backed_with" text, "record_label" text, "format" text, "other_details" text );. Question: "What's the date for Details of 1000 copies?". [/INST] SELECT MIN("date") FROM "singles" WHERE "other_details"='1000 copies';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "timeline" ( "medal_count" real, "date" text, "athlete" text, "nation" text, "sport" text, "record_medal_event" text );. Question: "What nation has paavo nurmi as the athlete, with a medal count less than 12?". [/INST] SELECT "nation" FROM "timeline" WHERE "athlete"='paavo nurmi' AND "medal_count"<12;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "timeline" ( "medal_count" real, "date" text, "athlete" text, "nation" text, "sport" text, "record_medal_event" text );. Question: "Which sport has 17 as the medal count?". [/INST] SELECT "sport" FROM "timeline" WHERE "medal_count"=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 "timeline" ( "medal_count" real, "date" text, "athlete" text, "nation" text, "sport" text, "record_medal_event" text );. Question: "What record medal event has athletics as the sport, with robert garrett as the athlete, and a medal count less than 3?". [/INST] SELECT "record_medal_event" FROM "timeline" WHERE "sport"='athletics' AND "athlete"='robert garrett' AND "medal_count"<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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );. Question: "What is the Opponent of the game in Week 3?". [/INST] SELECT "opponent" FROM "schedule" WHERE "week"=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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );. Question: "What is the Attendance of the game on December 12, 2004?". [/INST] SELECT "attendance" FROM "schedule" WHERE "date"='december 12, 2004';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "attendance" text );. Question: "What is the Attendance of the game against Jacksonville Jaguars?". [/INST] SELECT "attendance" FROM "schedule" WHERE "opponent"='jacksonville jaguars';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );. Question: "Which Score has a Money ( Β£ ) of 90,400, and a Country of south africa, and a Player of thomas aiken? Question 1". [/INST] SELECT "score" FROM "final_round" WHERE "money"='90,400' AND "country"='south africa' AND "player"='thomas aiken';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );. Question: "How much Money( Β£ )australia has ?". [/INST] SELECT "money" FROM "final_round" WHERE "country"='australia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );. Question: "Count the Money ( Β£ ) of south africa with a To par of +1, and a Player of ernie els?". [/INST] SELECT "money" FROM "final_round" WHERE "country"='south africa' AND "to_par"='+1' AND "player"='ernie els';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );. Question: "Where has a Player of tom watson?". [/INST] SELECT "place" FROM "final_round" WHERE "player"='tom watson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );. Question: "Which Score has a To par of +1 in sweden?". [/INST] SELECT "score" FROM "final_round" WHERE "to_par"='+1' AND "country"='sweden';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );. Question: "Which To par is of thomas aiken?". [/INST] SELECT "to_par" FROM "final_round" WHERE "player"='thomas aiken';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "rank" real, "country_region" text, "expenditures_on_r_d_billions_of_us_ppp" real, "pct_of_gdp_ppp" text, "year" real );. Question: "What is the average expenditures on R&D for Croatia after 2007?". [/INST] SELECT AVG("expenditures_on_r_d_billions_of_us_ppp") FROM "list" WHERE "country_region"='croatia' AND "year">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 "list" ( "rank" real, "country_region" text, "expenditures_on_r_d_billions_of_us_ppp" real, "pct_of_gdp_ppp" text, "year" real );. Question: "What is the lowest expenditures on R&D for Poland after 2011?". [/INST] SELECT MIN("expenditures_on_r_d_billions_of_us_ppp") FROM "list" WHERE "country_region"='poland' AND "year">2011;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "matches" ( "season" text, "competition" text, "round" text, "opposition" text, "score" text );. Question: "What is the Opposition in the First Round of the UEFA Cup with a Score of 3β1 (h), 2β0 (a)?". [/INST] SELECT "opposition" FROM "matches" WHERE "round"='first round' AND "competition"='uefa cup' AND "score"='3β1 (h), 2β0 (a)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "matches" ( "season" text, "competition" text, "round" text, "opposition" text, "score" text );. Question: "What is the Season of the game with a Score of 0β2 (a), 3β1 (h)?". [/INST] SELECT "season" FROM "matches" WHERE "score"='0β2 (a), 3β1 (h)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "num_county" text, "year_joined" real, "previous_conference" text, "year_left" real, "conference_joined" text );. Question: "Which Location has a Year Joined of 1966, and a Previous Conference of noble county, and a School of wawaka?". [/INST] SELECT "location" FROM "former_members" WHERE "year_joined"=1966 AND "previous_conference"='noble county' AND "school"='wawaka';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "num_county" text, "year_joined" real, "previous_conference" text, "year_left" real, "conference_joined" text );. Question: "How much Year Left has a Location of howe?". [/INST] SELECT SUM("year_left") FROM "former_members" WHERE "location"='howe';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "num_county" text, "year_joined" real, "previous_conference" text, "year_left" real, "conference_joined" text );. Question: "Which School has a Year Left of 1966, and a Mascot of indians?". [/INST] SELECT "school" FROM "former_members" WHERE "year_left"=1966 AND "mascot"='indians';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "cardinal_elections" ( "elector" text, "nationality" text, "cardinalatial_order_and_title" text, "elevated" text, "elevator" text );. Question: "Who was the Elevator of Giacomo Colonna?". [/INST] SELECT "elevator" FROM "cardinal_elections" WHERE "elector"='giacomo colonna';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "cardinal_elections" ( "elector" text, "nationality" text, "cardinalatial_order_and_title" text, "elevated" text, "elevator" text );. Question: "What is the date of elevation for the Cardinal elevated by Nicholas III to the title of Cardinal-Deacon of S. Eustachio?". [/INST] SELECT "elevated" FROM "cardinal_elections" WHERE "elevator"='nicholas iii' AND "cardinalatial_order_and_title"='cardinal-deacon of s. eustachio';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "cardinal_elections" ( "elector" text, "nationality" text, "cardinalatial_order_and_title" text, "elevated" text, "elevator" text );. Question: "What was the date of elevation for the cardinal given the order and title of Cardinal-Priest of S. Pudenziana?". [/INST] SELECT "elevated" FROM "cardinal_elections" WHERE "cardinalatial_order_and_title"='cardinal-priest of s. pudenziana';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "seasons" ( "season" text, "team" text, "conference_conf" text, "division_div" text, "div_finish" text, "games_behind_gb" text, "head_coach" text );. Question: "What are the games behind for the Oklahoma City Thunder division?". [/INST] SELECT "games_behind_gb" FROM "seasons" WHERE "division_div"='oklahoma city thunder';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "rank" real, "canton" text, "highest_point" text, "highest_elevation" text, "lowest_point" text, "lowest_elevation" text );. Question: "What is the highest elevation of a place where the lowest point is the Allaine River, National border?". [/INST] SELECT "highest_elevation" FROM "references" WHERE "lowest_point"='allaine river, national border';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "rank" real, "canton" text, "highest_point" text, "highest_elevation" text, "lowest_point" text, "lowest_elevation" text );. Question: "What is the lowest elevation value whose highest point is Mont Raimeux?". [/INST] SELECT "lowest_elevation" FROM "references" WHERE "highest_point"='mont raimeux';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "rank" real, "canton" text, "highest_point" text, "highest_elevation" text, "lowest_point" text, "lowest_elevation" text );. Question: "What rank is Vaud with the lowest point is Lake Geneva?". [/INST] SELECT SUM("rank") FROM "references" WHERE "lowest_point"='lake geneva' AND "canton"='vaud';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "rank" real, "canton" text, "highest_point" text, "highest_elevation" text, "lowest_point" text, "lowest_elevation" text );. Question: "Wich rank is given to the Canton of Schaffhausen?". [/INST] SELECT SUM("rank") FROM "references" WHERE "canton"='schaffhausen';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "rank" real, "canton" text, "highest_point" text, "highest_elevation" text, "lowest_point" text, "lowest_elevation" text );. Question: "What is the highest elevation for the highest point of Schnebelhorn?". [/INST] SELECT "highest_elevation" FROM "references" WHERE "highest_point"='schnebelhorn';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "rank" real, "canton" text, "highest_point" text, "highest_elevation" text, "lowest_point" text, "lowest_elevation" text );. Question: "What is the Canton of Vaud's highest point?". [/INST] SELECT "highest_point" FROM "references" WHERE "canton"='vaud';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "vessels" ( "vessel" text, "origin" text, "type" text, "in_service" real, "unit" text );. Question: "What type of ship is a Kobben class vessel that has been in service longer than 2?". [/INST] SELECT "type" FROM "vessels" WHERE "in_service">2 AND "vessel"='kobben class';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "vessels" ( "vessel" text, "origin" text, "type" text, "in_service" real, "unit" text );. Question: "What is the unit for a submarine type ship from Norway?". [/INST] SELECT "unit" FROM "vessels" WHERE "type"='submarine' AND "origin"='norway';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );. Question: "Who was the opponent with a 32-25 record?". [/INST] SELECT "opponent" FROM "game_log" WHERE "record"='32-25';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );. Question: "What is the location/ attendance for a 35-28 record?". [/INST] SELECT "location_attendance" FROM "game_log" WHERE "record"='35-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 "wga_awards" ( "year" real, "category" text, "nominee_s" text, "episode" text, "result" text );. Question: "What is the latest year when Neal Baer was a nominee, and the result was nominated?". [/INST] SELECT MAX("year") FROM "wga_awards" WHERE "result"='nominated' AND "nominee_s"='neal baer';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wga_awards" ( "year" real, "category" text, "nominee_s" text, "episode" text, "result" text );. Question: "That is the total year that Neal Baer is a nominee?". [/INST] SELECT SUM("year") FROM "wga_awards" WHERE "nominee_s"='neal baer';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wga_awards" ( "year" real, "category" text, "nominee_s" text, "episode" text, "result" text );. Question: "For what episode was the nominee (s) Walon Green, Joe Sachs nominated as a result?". [/INST] SELECT "episode" FROM "wga_awards" WHERE "result"='nominated' AND "nominee_s"='walon green, joe sachs';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wga_awards" ( "year" real, "category" text, "nominee_s" text, "episode" text, "result" text );. Question: "Nominee Neal Baer had what result?". [/INST] SELECT "result" FROM "wga_awards" WHERE "nominee_s"='neal baer';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wga_awards" ( "year" real, "category" text, "nominee_s" text, "episode" text, "result" text );. Question: "What episode after 1998 had John Wells as the nominee?". [/INST] SELECT "episode" FROM "wga_awards" WHERE "year">1998 AND "nominee_s"='john wells';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "records" ( "world_record" text, "snatch" text, "shi_zhiyong_chn" text, "153kg" text, "izmir_turkey" text );. Question: "Who has the world record of 153kg in the clean & jerk?". [/INST] SELECT "153kg" FROM "records" WHERE "world_record"='clean & jerk';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "45_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "turbo" text, "cores" real, "l2_cache" text, "l3_cache" text, "i_o_bus" text, "mult" text, "memory" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text );. Question: "What's the release date for the processor spec number SLBEQ(d0)?". [/INST] SELECT "release_date" FROM "45_nm" WHERE "s_spec_number"='slbeq(d0)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "45_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "turbo" text, "cores" real, "l2_cache" text, "l3_cache" text, "i_o_bus" text, "mult" text, "memory" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text );. Question: "What's the release date of model number CORE I7-940?". [/INST] SELECT "release_date" FROM "45_nm" WHERE "model_number"='core i7-940';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "45_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "turbo" text, "cores" real, "l2_cache" text, "l3_cache" text, "i_o_bus" text, "mult" text, "memory" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text );. Question: "What's the release price of the processor with the part number bx80601975at80601002274aa, and has 1 Γ 6.4 gt/s qpi I/O?". [/INST] SELECT "release_price_usd" FROM "45_nm" WHERE "i_o_bus"='1 Γ 6.4 gt/s qpi' AND "part_number_s"='bx80601975at80601002274aa';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "45_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "turbo" text, "cores" real, "l2_cache" text, "l3_cache" text, "i_o_bus" text, "mult" text, "memory" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text );. Question: "What's the release price of a processor that has a frequency of 3.2 ghz and 1 Γ 6.4 gt/s qpi I/O?". [/INST] SELECT "release_price_usd" FROM "45_nm" WHERE "frequency"='3.2 ghz' AND "i_o_bus"='1 Γ 6.4 gt/s qpi';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "licensed_titles" ( "title" text, "localized_title" text, "creator" text, "years" text, "origin" text );. Question: "Who is the creator of the title μ μ₯ν νμ°¨μμ, aejangpan hongchawangja?". [/INST] SELECT "creator" FROM "licensed_titles" WHERE "localized_title"='μ μ₯ν νμ°¨μμ, aejangpan hongchawangja';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "licensed_titles" ( "title" text, "localized_title" text, "creator" text, "years" text, "origin" text );. Question: "What is the title in English for μ μ₯ν νμ°¨μμ, aejangpan hongchawangja?". [/INST] SELECT "title" FROM "licensed_titles" WHERE "localized_title"='μ μ₯ν νμ°¨μμ, aejangpan hongchawangja';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "licensed_titles" ( "title" text, "localized_title" text, "creator" text, "years" text, "origin" text );. Question: "What years did νμ°¨μμ air?". [/INST] SELECT "years" FROM "licensed_titles" WHERE "localized_title"='νμ°¨μμ';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "populations" ( "country" text, "orphans_as_pct_of_all_children" real, "aids_orphans_as_pct_of_orphans" real, "total_orphans_total" real, "total_orphans_aids_related" text, "maternal_total" real, "maternal_aids_related" text, "paternal_total" real, "paternal_aids_related" text, "double_total" real, "double_aids_related" text );. Question: "What is the number of AIDS Orphans as % of Orphans when the Double (AIDS Related) number is 41,000, and the Paternal (Total) is larger than 442,000?". [/INST] SELECT SUM("aids_orphans_as_pct_of_orphans") FROM "populations" WHERE "double_aids_related"='41,000' AND "paternal_total">'442,000';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "populations" ( "country" text, "orphans_as_pct_of_all_children" real, "aids_orphans_as_pct_of_orphans" real, "total_orphans_total" real, "total_orphans_aids_related" text, "maternal_total" real, "maternal_aids_related" text, "paternal_total" real, "paternal_aids_related" text, "double_total" real, "double_aids_related" text );. Question: "What is the Total Orphans number when the number of Total Orphans (AIDS Related) is < 100, and the Maternal (Total) is smaller than 31,000?". [/INST] SELECT MIN("total_orphans_total") FROM "populations" WHERE "total_orphans_aids_related"='< 100' AND "maternal_total"<'31,000';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "deputy_ministers" ( "minister" text, "party" text, "governments" text, "term_start" text, "term_end" text );. Question: "What's the term start date for Meretz?". [/INST] SELECT "term_start" FROM "deputy_ministers" WHERE "party"='meretz';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "team_distribution" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text, "leagues_entering_at_this_round" text );. Question: "How many clubs are involved when the clubs remaining are 2?". [/INST] SELECT SUM("clubs_involved") FROM "team_distribution" WHERE "clubs_remaining"=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 "team_distribution" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text, "leagues_entering_at_this_round" text );. Question: "How many new entries when the leagues entering in the round are tff third league & turkish regional amateur league?". [/INST] SELECT "new_entries_this_round" FROM "team_distribution" WHERE "leagues_entering_at_this_round"='tff third league & turkish regional amateur league';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "team_distribution" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text, "leagues_entering_at_this_round" text );. Question: "What is the number of clubs remaining in the second round?". [/INST] SELECT MIN("clubs_remaining") FROM "team_distribution" WHERE "round"='second round';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "team_distribution" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text, "leagues_entering_at_this_round" text );. Question: "Which round has 4 clubs involved?". [/INST] SELECT "round" FROM "team_distribution" WHERE "clubs_involved"=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 "team_distribution" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text, "leagues_entering_at_this_round" text );. Question: "How many clubs are involved when there are 4 winners from the previous rounds and more than 4 clubs remaining?". [/INST] SELECT MIN("clubs_involved") FROM "team_distribution" WHERE "winners_from_previous_round"='4' AND "clubs_remaining">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 "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );. Question: "What is the Away team at the game with a Score of 4 β 2?". [/INST] SELECT "away_team" FROM "northern_section" WHERE "score"='4 β 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 "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );. Question: "What is the Tie no of the game with an Attendance of 4,658?". [/INST] SELECT "tie_no" FROM "northern_section" WHERE "attendance"='4,658';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );. Question: "What is the Home team at the Lincoln City Away game?". [/INST] SELECT "home_team" FROM "northern_section" WHERE "away_team"='lincoln city';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );. Question: "What is the Away team at the game with a Score of 1 β 0 and Attendance of 1,791?". [/INST] SELECT "away_team" FROM "northern_section" WHERE "score"='1 β 0' AND "attendance"='1,791';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );. Question: "What is the Home team of the game with a Score of 2 β 2?". [/INST] SELECT "home_team" FROM "northern_section" WHERE "score"='2 β 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 "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );. Question: "What is the Attendance of the game with a Score of 0 β 0?". [/INST] SELECT "attendance" FROM "northern_section" WHERE "score"='0 β 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 "volleyball_at_the_2008_summer_olympics_m" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text );. Question: "What is the weight for Iraklis in 2008?". [/INST] SELECT "weight" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='iraklis';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "g4" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text );. Question: "What year had Nintendo EAD, Monolith Soft as developers?". [/INST] SELECT SUM("year") FROM "g4" WHERE "developer_s"='nintendo ead, monolith soft';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_5" ( "restaurant_name" text, "original_name" text, "location" text, "chef" text, "designer" text, "still_open" text );. Question: "what is the location when the designer is glen peloso and the restaurant is joe boo's cookoos?". [/INST] SELECT "location" FROM "season_5" WHERE "designer"='glen peloso' AND "restaurant_name"='joe boo''s cookoos';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_5" ( "restaurant_name" text, "original_name" text, "location" text, "chef" text, "designer" text, "still_open" text );. Question: "Is the restaurant still open that had the original name of n/a, location of toronto, on and the designer meredith heron?". [/INST] SELECT "still_open" FROM "season_5" WHERE "original_name"='n/a' AND "location"='toronto, on' AND "designer"='meredith heron';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_5" ( "restaurant_name" text, "original_name" text, "location" text, "chef" text, "designer" text, "still_open" text );. Question: "is the restaurant locavore still open?". [/INST] SELECT "still_open" FROM "season_5" WHERE "restaurant_name"='locavore';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_5" ( "restaurant_name" text, "original_name" text, "location" text, "chef" text, "designer" text, "still_open" text );. Question: "is the restaurant bacchus roti with meredith heron as the designer still open?". [/INST] SELECT "still_open" FROM "season_5" WHERE "designer"='meredith heron' AND "restaurant_name"='bacchus roti';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "membership" ( "school" text, "city" text, "team_name" text, "enrollment_08_09" real, "ihsaa_class" text, "ihsaa_class_football" text, "county" text, "year_joined_or_joining" real, "previous_conference" text );. Question: "What year did the team from City of Aurora join?". [/INST] SELECT AVG("year_joined_or_joining") FROM "membership" WHERE "city"='aurora';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "membership" ( "school" text, "city" text, "team_name" text, "enrollment_08_09" real, "ihsaa_class" text, "ihsaa_class_football" text, "county" text, "year_joined_or_joining" real, "previous_conference" text );. Question: "What was the total enrollment 08-09 of Franklin County?". [/INST] SELECT COUNT("enrollment_08_09") FROM "membership" WHERE "school"='franklin county';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "membership" ( "school" text, "city" text, "team_name" text, "enrollment_08_09" real, "ihsaa_class" text, "ihsaa_class_football" text, "county" text, "year_joined_or_joining" real, "previous_conference" text );. Question: "What school has a team called the Pirates?". [/INST] SELECT "school" FROM "membership" WHERE "team_name"='pirates';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "What is the rank of the team with a time of 1:00.61?". [/INST] SELECT AVG("rank") FROM "semifinal_1" WHERE "time"='1:00.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 "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "What's the lane with a time of 1:00.66?". [/INST] SELECT AVG("lane") FROM "semifinal_1" WHERE "time"='1:00.66';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "What's the rank when the time was 59.65?". [/INST] SELECT "rank" FROM "semifinal_1" WHERE "time"='59.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, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What is the record when they played New York?". [/INST] SELECT "record" FROM "regular_season" WHERE "opponent"='new york';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" real, "year_left" text, "conference_joined" text );. Question: "Can you tell me the County that has the Year Joined of 1964, and the Location of montezuma?". [/INST] SELECT "county" FROM "former_members" WHERE "year_joined"=1964 AND "location"='montezuma';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" real, "year_left" text, "conference_joined" text );. Question: "Can you tell me the Conference Joined that has the Location of terre haute, and the Mascot of golden bears?". [/INST] SELECT "conference_joined" FROM "former_members" WHERE "location"='terre haute' AND "mascot"='golden bears';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" real, "year_left" text, "conference_joined" text );. Question: "Can you tell me the Mascot that has the School of rosedale?". [/INST] SELECT "mascot" FROM "former_members" WHERE "school"='rosedale';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" real, "year_left" text, "conference_joined" text );. Question: "Can you tell me the Conference Joined that has the Mascot of little sycamores?". [/INST] SELECT "conference_joined" FROM "former_members" WHERE "mascot"='little sycamores';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" real, "year_left" text, "conference_joined" text );. Question: "Can you tell me the Location that has the Mascot of lakers?". [/INST] SELECT "location" FROM "former_members" WHERE "mascot"='lakers';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_3_junior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );. Question: "What is the time of the rider from the 348cc K4 Honda team with a speed of 97.743mph?". [/INST] SELECT "time" FROM "race_3_junior_classic_race" WHERE "team"='348cc k4 honda' AND "speed"='97.743mph';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "What is the Lane of the swimmer with a Time of 8:34.25?". [/INST] SELECT "lane" FROM "heats" WHERE "time"='8:34.25';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "What is the Name of the swimmer with a Time of 9:04.86 in Heat 2?". [/INST] SELECT "name" FROM "heats" WHERE "heat"=2 AND "time"='9:04.86';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );. Question: "What is the Location of the Event in Round 1 with a Time of 1:25?". [/INST] SELECT "location" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "time"='1:25';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_players" ( "position" text, "appearances" real, "goals" real, "first_appearance" real, "last_appearance" real );. Question: "What is the average goals when the last appearance was before 1984, there were more than 17 appearances, the first appearance was before 1961 and the position was mf?". [/INST] SELECT AVG("goals") FROM "list_of_players" WHERE "last_appearance"<1984 AND "appearances">17 AND "first_appearance"<1961 AND "position"='mf';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" real, "year_left" real, "conference_joined" text );. Question: "what is the school that left in 1966?". [/INST] SELECT "school" FROM "former_members" WHERE "year_left"=1966;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" real, "year_left" real, "conference_joined" text );. Question: "what is the mascot for moores hill that joined later than 1952?". [/INST] SELECT "mascot" FROM "former_members" WHERE "year_joined">1952 AND "school"='moores hill';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" real, "year_left" real, "conference_joined" text );. Question: "what is the conference joined for the county 69 ripley in 1952 in versailles?". [/INST] SELECT "conference_joined" FROM "former_members" WHERE "county"='69 ripley' AND "year_joined"=1952 AND "location"='versailles';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" real, "year_left" real, "conference_joined" text );. Question: "who is the mascot of the county 78 switzerland?". [/INST] SELECT "mascot" FROM "former_members" WHERE "county"='78 switzerland';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "react" real, "time" real );. Question: "What is the total time of the athlete from Canada with a lane less than 8 and a rank less than 8?". [/INST] SELECT COUNT("time") FROM "semifinal_1" WHERE "lane"<8 AND "nationality"='canada' AND "rank"<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 "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "react" real, "time" real );. Question: "What is the total react number with a time less than 20.05 and a lane less than 6?". [/INST] SELECT COUNT("react") FROM "semifinal_1" WHERE "time"<20.05 AND "lane"<6;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "react" real, "time" real );. Question: "What is the average react of bryan barnett, who has a lane less than 2?". [/INST] SELECT AVG("react") FROM "semifinal_1" WHERE "name"='bryan barnett' AND "lane"<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 "former_members" ( "school" text, "city" text, "team_name" text, "county" text, "year_joined" text, "year_left" text );. Question: "What year did the Hornets leave the conference?". [/INST] SELECT "year_left" FROM "former_members" WHERE "team_name"='hornets';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "former_members" ( "school" text, "city" text, "team_name" text, "county" text, "year_joined" text, "year_left" text );. Question: "In what city was the team that left the conference in 1949 based?". [/INST] SELECT "city" FROM "former_members" WHERE "year_left"='1949';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.