text
stringlengths 411
1.74k
|
---|
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_30120664_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "name the civil parish for garryduff". [/INST] SELECT "civil_parish" FROM "table1_30120664_1" WHERE "townland"='Garryduff';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_30120664_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "Name the area for civil parish ballynoe and killasseragh". [/INST] SELECT "area_acres" FROM "table1_30120664_1" WHERE "civil_parish"='Ballynoe' AND "townland"='Killasseragh';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_30121046_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "What is the poor law union of the Kilmaloda townland?". [/INST] SELECT "poor_law_union" FROM "table1_30121046_1" WHERE "townland"='Kilmaloda';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_30121046_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "What is the poor law union of the Lackenagobidane townland?". [/INST] SELECT "poor_law_union" FROM "table1_30121046_1" WHERE "townland"='Lackenagobidane';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_30121046_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "What is the poor law union of the Ardacrow townland?". [/INST] SELECT "poor_law_union" FROM "table1_30121046_1" WHERE "townland"='Ardacrow';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_30121046_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "What is the maximum area (in acres) of the Knockacullen townland?". [/INST] SELECT MAX("area_acres") FROM "table1_30121046_1" WHERE "townland"='Knockacullen';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_30121082_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "What are the civil parishes of the Loughmarsh townland?". [/INST] SELECT "civil_parish" FROM "table1_30121082_1" WHERE "townland"='Loughmarsh';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_30121082_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "What is the greatest area when the Poor Law Union is Skibbereen and the Civil Parish is Tullagh?". [/INST] SELECT MAX("area_acres") FROM "table1_30121082_1" WHERE "poor_law_union"='Skibbereen' AND "civil_parish"='Tullagh';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_30121082_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "What are the areas (in acres) of the Kilnahera East townland?". [/INST] SELECT "area_acres" FROM "table1_30121082_1" WHERE "townland"='Kilnahera East';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_30121082_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "What are the Baronies when the area (in acres) is 276?". [/INST] SELECT "barony" FROM "table1_30121082_1" WHERE "area_acres"=276;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_30121082_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "What are the Poor Law Unions when the area (in acres) is 142?". [/INST] SELECT "poor_law_union" FROM "table1_30121082_1" WHERE "area_acres"=142;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ncaa_championship_game_appearances" ( "rank" real, "school" text, "appearances" real, "wins" real, "losses" real );. Question: "Tell me the average Rank for lossess less than 6 and wins less than 11 for michigan state". [/INST] SELECT AVG("rank") FROM "ncaa_championship_game_appearances" WHERE "losses"<6 AND "wins"<11 AND "school"='michigan state';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ncaa_championship_game_appearances" ( "rank" real, "school" text, "appearances" real, "wins" real, "losses" real );. Question: "Tell me the sum of losses for wins less than 2 and rank of 10 with appearances larger than 3". [/INST] SELECT SUM("losses") FROM "ncaa_championship_game_appearances" WHERE "wins"<2 AND "rank"=10 AND "appearances">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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Which Rank number has a Silver of 0, Gold of 2 and total smaller than 2?". [/INST] SELECT COUNT("rank") FROM "medal_table" WHERE "silver"=0 AND "gold"=2 AND "total"<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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the lowest Total containing a Bronze of 0 and Rank smaller than 2?". [/INST] SELECT MIN("total") FROM "medal_table" WHERE "bronze"=0 AND "rank"<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 "schedule_results" ( "date" text, "track" text, "event_name" text, "pole_winner" text, "race_winner" text );. Question: "Tell me the track for june 9". [/INST] SELECT "track" FROM "schedule_results" WHERE "date"='june 9';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule_results" ( "date" text, "track" text, "event_name" text, "pole_winner" text, "race_winner" text );. Question: "Tell me the track for scott lagasse jr.". [/INST] SELECT "track" FROM "schedule_results" WHERE "race_winner"='scott lagasse jr.';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_results" ( "date" text, "track" text, "event_name" text, "pole_winner" text, "race_winner" text );. Question: "Tell me the event name for michael mcdowell and billy leslie". [/INST] SELECT "event_name" FROM "schedule_results" WHERE "pole_winner"='michael mcdowell' AND "race_winner"='billy leslie';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_results" ( "date" text, "track" text, "event_name" text, "pole_winner" text, "race_winner" text );. Question: "Tell me the pole winner of may 12". [/INST] SELECT "pole_winner" FROM "schedule_results" WHERE "date"='may 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 "tfr_by_federal_subjects" ( "year" real, "azerbaijan" real, "armenia" real, "belarus" real, "georgia" real, "kazakhstan" real, "kyrghizstan" real, "latvia" real, "lithuania" real, "moldova" real, "russia" real, "tajikistan" real, "turkmenikstan" real, "uzbekistan" real, "ukraine" real, "estonia" real );. Question: "Tell me the lowest kazakhstan for kyrghizstan of 4.62 and belarus less than 2.46". [/INST] SELECT MIN("kazakhstan") FROM "tfr_by_federal_subjects" WHERE "kyrghizstan"=4.62 AND "belarus"<2.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 "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Tell me the lowest gold for rank of 6 and total less than 2". [/INST] SELECT MIN("gold") FROM "medals_table" WHERE "rank"='6' AND "total"<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 "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Tell me the rank for bronze less than 17 and gold less than 1". [/INST] SELECT "rank" FROM "medals_table" WHERE "bronze"<17 AND "silver">1 AND "gold"<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 "team_representatives" ( "player" text, "w_l_total" text, "w_l_singles" text, "w_l_doubles" text, "ties" real, "debut" real, "years_played" real );. Question: "Tell me the WL doubles with a debut of 1999". [/INST] SELECT "w_l_doubles" FROM "team_representatives" WHERE "debut"=1999;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" real, "regional_finals" real );. Question: "For the Hockey East conference, what is the total number of win percentages when there are less than 4 bids?". [/INST] SELECT COUNT("win_pct") FROM "record_by_conference" WHERE "conference"='hockey east' AND "num_of_bids"<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 "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" real, "regional_finals" real );. Question: "What is the average Regional Finals score when the record is 3-2 and there are more than 3 bids?". [/INST] SELECT AVG("regional_finals") FROM "record_by_conference" WHERE "record"='3-2' AND "num_of_bids">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 "reserves_team" ( "year" text, "competition" text, "opponent" text, "score" text, "venue" text );. Question: "In what competition was the score reported as 12.8 (80) - 8.7 (55)?". [/INST] SELECT "competition" FROM "reserves_team" WHERE "score"='12.8 (80) - 8.7 (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 "reserves_team" ( "year" text, "competition" text, "opponent" text, "score" text, "venue" text );. Question: "At what venue was there a competition with a score reported as 7.14 (56) - 4.5 (29)?". [/INST] SELECT "venue" FROM "reserves_team" WHERE "score"='7.14 (56) - 4.5 (29)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "reserves_team" ( "year" text, "competition" text, "opponent" text, "score" text, "venue" text );. Question: "At what venue did the team from Collingwood score 7.14 (56) - 4.5 (29)?". [/INST] SELECT "venue" FROM "reserves_team" WHERE "opponent"='collingwood' AND "score"='7.14 (56) - 4.5 (29)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_five" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text );. Question: "What team does Jimmy Frazelle play on?". [/INST] SELECT "mls_team" FROM "round_five" WHERE "player"='jimmy frazelle';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_five" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text );. Question: "Which MLS team has the #41 pick?". [/INST] SELECT "mls_team" FROM "round_five" WHERE "pick_num"=41;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_five" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text );. Question: "What position has UCLA pick that is larger than #47?". [/INST] SELECT "position" FROM "round_five" WHERE "pick_num">47 AND "affiliation"='ucla';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_five" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text );. Question: "What is the position of the Colorado Rapids team?". [/INST] SELECT "position" FROM "round_five" WHERE "mls_team"='colorado rapids';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "aircraft_inventory" ( "aircraft" text, "origin" text, "type" text, "versions" text, "in_service" text );. Question: "Tell me the service for versions l-410uvp". [/INST] SELECT "in_service" FROM "aircraft_inventory" WHERE "versions"='l-410uvp';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "aircraft_inventory" ( "aircraft" text, "origin" text, "type" text, "versions" text, "in_service" text );. Question: "Tell me the versions for czechoslovakia?". [/INST] SELECT "versions" FROM "aircraft_inventory" WHERE "origin"='czechoslovakia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "aircraft_inventory" ( "aircraft" text, "origin" text, "type" text, "versions" text, "in_service" text );. Question: "Tell me the aircraft for pzl-104". [/INST] SELECT "aircraft" FROM "aircraft_inventory" WHERE "versions"='pzl-104';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "aircraft_inventory" ( "aircraft" text, "origin" text, "type" text, "versions" text, "in_service" text );. Question: "Tell me the origin for mi-2". [/INST] SELECT "origin" FROM "aircraft_inventory" WHERE "versions"='mi-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 "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );. Question: "Tell me the total number of top 25 for wins less than 1 and cuts made of 22". [/INST] SELECT COUNT("top_25") FROM "summary" WHERE "cuts_made"=22 AND "wins"<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 "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );. Question: "Tell me the total number of events for tournament of masters tournament and top 25 less than 6". [/INST] SELECT COUNT("events") FROM "summary" WHERE "tournament"='masters tournament' AND "top_25"<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 "year_by_year" ( "year" real, "league" text, "reg_season" text, "playoffs" text, "open_cup" text );. Question: "What was the earliest year for the USISL Pro League?". [/INST] SELECT MIN("year") FROM "year_by_year" WHERE "league"='usisl pro 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 "lukoil_oil_production_by_region_million_" ( "region" text, "2004" text, "2005" text, "2006" text, "2007" text, "2009" text, "2010" text, "2011" text );. Question: "What is the 2007 Lukoil oil prodroduction when in 2010 oil production 3.137 million tonnes?". [/INST] SELECT "2007" FROM "lukoil_oil_production_by_region_million_" WHERE "2010"='3.137';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lukoil_oil_production_by_region_million_" ( "region" text, "2004" text, "2005" text, "2006" text, "2007" text, "2009" text, "2010" text, "2011" text );. Question: "What is the 2010 Lukoil oil prodroduction when in 2009 oil production 21.662 million tonnes?". [/INST] SELECT "2010" FROM "lukoil_oil_production_by_region_million_" WHERE "2009"='21.662';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lukoil_oil_production_by_region_million_" ( "region" text, "2004" text, "2005" text, "2006" text, "2007" text, "2009" text, "2010" text, "2011" text );. Question: "What is the 2004 Lukoil oil prodroduction when in 2011 oil production 90.917 million tonnes?". [/INST] SELECT "2004" FROM "lukoil_oil_production_by_region_million_" WHERE "2011"='90.917';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lukoil_oil_production_by_region_million_" ( "region" text, "2004" text, "2005" text, "2006" text, "2007" text, "2009" text, "2010" text, "2011" text );. Question: "What is the 2005 Lukoil oil prodroduction when in 2007 oil production 91.100 million tonnes?". [/INST] SELECT "2005" FROM "lukoil_oil_production_by_region_million_" WHERE "2007"='91.100';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lukoil_oil_production_by_region_million_" ( "region" text, "2004" text, "2005" text, "2006" text, "2007" text, "2009" text, "2010" text, "2011" text );. Question: "What is the 2005 Lukoil oil prodroduction when in 2007 oil production 5.545 million tonnes?". [/INST] SELECT "2005" FROM "lukoil_oil_production_by_region_million_" WHERE "2007"='5.545';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_home_runs_by_a_pitcher_in_a_season_" ( "player" text, "home_runs" real, "season_total" real, "year" real, "team" text );. Question: "Tell me the highest home runs for cleveland indians years before 1931". [/INST] SELECT MAX("home_runs") FROM "most_home_runs_by_a_pitcher_in_a_season_" WHERE "team"='cleveland indians' AND "year"<1931;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What nation has the lowest gold average that has a rank over 9?". [/INST] SELECT MIN("gold") FROM "medal_table" WHERE "rank">9;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2000s" ( "year" real, "english_title" text, "original_title" text, "country" text, "director" text );. Question: "Tell me the country for julian schnabel". [/INST] SELECT "country" FROM "2000s" WHERE "director"='julian schnabel';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2000s" ( "year" real, "english_title" text, "original_title" text, "country" text, "director" text );. Question: "Name the title of jean-pierre jeunet". [/INST] SELECT "english_title" FROM "2000s" WHERE "director"='jean-pierre jeunet';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ac_dc_ac_transmission" ( "model" text, "build_year" text, "top_speed_in_operation_km_h" real, "power_output_k_w" text, "builder_family" text, "total_production" text );. Question: "What is the power output (kw) of model hxd2b?". [/INST] SELECT "power_output_k_w" FROM "ac_dc_ac_transmission" WHERE "model"='hxd2b';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ac_dc_ac_transmission" ( "model" text, "build_year" text, "top_speed_in_operation_km_h" real, "power_output_k_w" text, "builder_family" text, "total_production" text );. Question: "What model has a builder of zhuzhou, and a power output of 9600 (kw)?". [/INST] SELECT "model" FROM "ac_dc_ac_transmission" WHERE "builder_family"='zhuzhou' AND "power_output_k_w"='9600';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ac_dc_ac_transmission" ( "model" text, "build_year" text, "top_speed_in_operation_km_h" real, "power_output_k_w" text, "builder_family" text, "total_production" text );. Question: "What is the power output (kw) of model hxd3d?". [/INST] SELECT "power_output_k_w" FROM "ac_dc_ac_transmission" WHERE "model"='hxd3d';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ac_dc_ac_transmission" ( "model" text, "build_year" text, "top_speed_in_operation_km_h" real, "power_output_k_w" text, "builder_family" text, "total_production" text );. Question: "What is the power output (kw) of builder zhuzhou, model hxd1d, with a total production of 2?". [/INST] SELECT "power_output_k_w" FROM "ac_dc_ac_transmission" WHERE "total_production"='2' AND "builder_family"='zhuzhou' AND "model"='hxd1d';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medals_by_country" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Name the average bronze for total less than 1". [/INST] SELECT AVG("bronze") FROM "medals_by_country" WHERE "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 "external_links" ( "year" real, "recipient" text, "role" text, "play" text, "production" text );. Question: "Name the recipient of much ado about nothing for 1973". [/INST] SELECT "recipient" FROM "external_links" WHERE "play"='much ado about nothing' AND "year"=1973;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "year" real, "recipient" text, "role" text, "play" text, "production" text );. Question: "Name the recipientof the year for 1976". [/INST] SELECT "recipient" FROM "external_links" WHERE "year"=1976;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "year" real, "recipient" text, "role" text, "play" text, "production" text );. Question: "Name the play for 1976". [/INST] SELECT "play" FROM "external_links" WHERE "year"=1976;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "year" real, "recipient" text, "role" text, "play" text, "production" text );. Question: "Name the average year for much ado about nothing and recipient of ray virta". [/INST] SELECT AVG("year") FROM "external_links" WHERE "play"='much ado about nothing' AND "recipient"='ray virta';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tv" ( "channel" real, "frequency" text, "power" text, "modulation" text, "erraor_protection_mode" text, "guard" text, "data_rate" text );. Question: "On channel 32, when the power is 32 kW horizontal, what is the modulation?". [/INST] SELECT "modulation" FROM "tv" WHERE "power"='32 kw horizontal' AND "channel"=32;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tv" ( "channel" real, "frequency" text, "power" text, "modulation" text, "erraor_protection_mode" text, "guard" text, "data_rate" text );. Question: "On channel 32, when the power is 32 kW horizontal, what is the frequency?". [/INST] SELECT "frequency" FROM "tv" WHERE "power"='32 kw horizontal' AND "channel"=32;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lpga_tour_record" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "top_10s" real, "best_finish" text, "earnings" text, "scoring_average" real );. Question: "Tell me the highest wins for year less than 2000 and best finish of 4 and tournaments played less than 3". [/INST] SELECT MAX("wins") FROM "lpga_tour_record" WHERE "year"<2000 AND "best_finish"='4' AND "tournaments_played"<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 "lpga_tour_record" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "top_10s" real, "best_finish" text, "earnings" text, "scoring_average" real );. Question: "Tell me the scoring average for year less than 1998 and wins more than 3". [/INST] SELECT "scoring_average" FROM "lpga_tour_record" WHERE "year"<1998 AND "wins">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" real );. Question: "What happened on November 20, 1983 before week 15?". [/INST] SELECT "result" FROM "schedule" WHERE "week"<15 AND "date"='november 20, 1983';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners_since_1991" ( "year" real, "winner" text, "jockey" text, "trainer" text, "time" text, "grade" text );. Question: "Who won under Gary Simms?". [/INST] SELECT "winner" FROM "winners_since_1991" WHERE "trainer"='gary simms';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners_since_1991" ( "year" real, "winner" text, "jockey" text, "trainer" text, "time" text, "grade" text );. Question: "Which trainer had a time of 1:10.09 with a year less than 2009?". [/INST] SELECT "trainer" FROM "winners_since_1991" WHERE "year"<2009 AND "time"='1:10.09';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners_since_1991" ( "year" real, "winner" text, "jockey" text, "trainer" text, "time" text, "grade" text );. Question: "Which trainer won the hyroglyphic in a year that was before 2010?". [/INST] SELECT "trainer" FROM "winners_since_1991" WHERE "year"<2010 AND "winner"='hyroglyphic';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners_since_1991" ( "year" real, "winner" text, "jockey" text, "trainer" text, "time" text, "grade" text );. Question: "What was the time for Screen Your Friend?". [/INST] SELECT "time" FROM "winners_since_1991" WHERE "winner"='screen your friend';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1970_isle_of_man_sidecar_500cc_tt_final_" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real );. Question: "Which places have points larger than 10?". [/INST] SELECT MIN("points") FROM "1970_isle_of_man_sidecar_500cc_tt_final_" 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 "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real );. Question: "What is the total grid number when Fonsi Nieto had more than 22 laps?". [/INST] SELECT COUNT("grid") FROM "superbike_race_2_classification" WHERE "rider"='fonsi nieto' AND "laps">22;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real );. Question: "When the grid number is 10, what is the total number of laps?". [/INST] SELECT COUNT("laps") FROM "superbike_race_2_classification" WHERE "grid"=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 "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real );. Question: "Which bike did Jiri Drazdak ride when he had a grid number larger than 14 and less than 22 laps?". [/INST] SELECT "bike" FROM "superbike_race_2_classification" WHERE "grid">14 AND "laps"<22 AND "rider"='jiri drazdak';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "non_championship_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "Tell me the winning driver for pau grand prix". [/INST] SELECT "winning_driver" FROM "non_championship_grands_prix" WHERE "name"='pau grand prix';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "non_championship_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "Tell me the report for 30 july". [/INST] SELECT "report" FROM "non_championship_grands_prix" WHERE "date"='30 july';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "non_championship_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "Tell me the report for 10 april". [/INST] SELECT "report" FROM "non_championship_grands_prix" WHERE "date"='10 april';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "non_championship_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "Tell me the winning constructor for the paris cup". [/INST] SELECT "winning_constructor" FROM "non_championship_grands_prix" WHERE "name"='paris cup';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "podium_finishes" ( "class" text, "date" text, "race" text, "driver" text, "position" real, "team" text );. Question: "what date has the class of non-championship f2 as well as a driver name josé froilán gonzález that has a position larger than 2?". [/INST] SELECT "date" FROM "podium_finishes" WHERE "class"='non-championship f2' AND "driver"='josé froilán gonzález' AND "position">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 "podium_finishes" ( "class" text, "date" text, "race" text, "driver" text, "position" real, "team" text );. Question: "what team has a drive name emmanuel de graffenried and a position larger than 1 as well as the date of 9/1953?". [/INST] SELECT "team" FROM "podium_finishes" WHERE "position">1 AND "date"='9/1953' AND "driver"='emmanuel de graffenried';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "podium_finishes" ( "class" text, "date" text, "race" text, "driver" text, "position" real, "team" text );. Question: "what class has the date of 8/1954?". [/INST] SELECT "class" FROM "podium_finishes" WHERE "date"='8/1954';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "podium_finishes" ( "class" text, "date" text, "race" text, "driver" text, "position" real, "team" text );. Question: "what driver has a team of officine alfieri maserati and belongs to the class of non-championship f2 and has a position of 2, as well as a date of 9/1952?". [/INST] SELECT "driver" FROM "podium_finishes" WHERE "team"='officine alfieri maserati' AND "class"='non-championship f2' AND "position"=2 AND "date"='9/1952';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" real );. Question: "How many people attended the game with a result of w 16-13 and a week earlier than 12?". [/INST] SELECT MAX("attendance") FROM "schedule" WHERE "result"='w 16-13' AND "week"<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 "managers" ( "name" text, "nt_career" text, "played" real, "drawn" real, "lost" real, "win_pct" real, "drawn_pct" real, "lost_pct" real );. Question: "How many values for Lost% occur when the value for drawn is 8 and less than 14 lost?". [/INST] SELECT COUNT("lost_pct") FROM "managers" WHERE "drawn"=8 AND "lost"<14;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sheffield_united" ( "division" text, "league_apps" real, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real );. Question: "It has fa cup goals larger than 0 and total goals of 0, what is the average total apps?". [/INST] SELECT AVG("total_apps") FROM "sheffield_united" WHERE "total_goals"=0 AND "fa_cup_goals">0;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sheffield_united" ( "division" text, "league_apps" real, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real );. Question: "It has a FA Cup Goals smaller than 4, and a FA Cup Apps larger than 7, what is the total number of total apps?". [/INST] SELECT COUNT("total_apps") FROM "sheffield_united" WHERE "fa_cup_goals"<4 AND "fa_cup_apps">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 "sheffield_united" ( "division" text, "league_apps" real, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real );. Question: "The total goals have a FA Cup Apps larger than 1, and a Total Apps of 37, and a League Apps smaller than 30?, what is the total number?". [/INST] SELECT COUNT("total_goals") FROM "sheffield_united" WHERE "fa_cup_apps">1 AND "total_apps"=37 AND "league_apps"<30;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" real, "record" text );. Question: "What is the result when the record was 1-0 and it was earlier than week 4?". [/INST] SELECT "result" FROM "schedule" WHERE "week"<4 AND "record"='1-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 "1976_engines" ( "engine" text, "horsepower" text, "torque" text, "carburetor" text, "compression_ratio" text, "bore_stroke" text, "vin_code" text );. Question: "What are the bore & stroke specifications for an engine with 4-barrel carburetor and VIN code of A?". [/INST] SELECT "bore_stroke" FROM "1976_engines" WHERE "carburetor"='4-barrel' AND "vin_code"='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 "friendlies" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" text );. Question: "Which opponent has unknown attendance, and lost 2-0?". [/INST] SELECT "opponent" FROM "friendlies" WHERE "attendance"='unknown' AND "result"='lost 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 "friendlies" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" text );. Question: "What is the result from the Leeds United opponent?". [/INST] SELECT "result" FROM "friendlies" WHERE "opponent"='leeds united';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "friendlies" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" text );. Question: "What is the attendance rate for the Middlesbrough opponent?". [/INST] SELECT "attendance" FROM "friendlies" WHERE "opponent"='middlesbrough';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "atolls" ( "latin_letter" text, "code_abbr" text, "local_letter" text, "code_name" text, "official_name" text, "capital" text );. Question: "The capital of funadhoo has what local letter?". [/INST] SELECT "local_letter" FROM "atolls" WHERE "capital"='funadhoo';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "tournament" text, "venue" text, "result" text, "extra" text );. Question: "Tell me the venue for extra of short race and year less than 1999". [/INST] SELECT "venue" FROM "achievements" WHERE "extra"='short race' AND "year"<1999;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text );. Question: "Tell me the sum of year for 5th result". [/INST] SELECT SUM("year") FROM "achievements" WHERE "result"='5th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "tournament" text, "venue" text, "result" text, "extra" text );. Question: "Tell me the extra for tournament of olympic games". [/INST] SELECT "extra" FROM "achievements" WHERE "tournament"='olympic games';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "tournament" text, "venue" text, "result" text, "extra" text );. Question: "Tell me the highest year for result of 9th". [/INST] SELECT MAX("year") FROM "achievements" WHERE "result"='9th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nomenclature_of_t3_ss_proteins" ( "function_genus" text, "shigella" text, "salmonella" text, "yersinia" text, "escherichia" text );. Question: "Tell me the shigella for yersinia yopb". [/INST] SELECT "shigella" FROM "nomenclature_of_t3_ss_proteins" WHERE "yersinia"='yopb';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nomenclature_of_t3_ss_proteins" ( "function_genus" text, "shigella" text, "salmonella" text, "yersinia" text, "escherichia" text );. Question: "Tell me the shigella and yscn". [/INST] SELECT "shigella" FROM "nomenclature_of_t3_ss_proteins" WHERE "yersinia"='yscn';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "tv_time" text, "attendance" text );. Question: "Tell me the opponent for november 24, 1996". [/INST] SELECT "opponent" FROM "schedule" WHERE "date"='november 24, 1996';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "tv_time" text, "attendance" text );. Question: "Tell me the tv time for attendance of 60,894". [/INST] SELECT "tv_time" FROM "schedule" WHERE "attendance"='60,894';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "tv_time" text, "attendance" text );. Question: "Tell me the lowest week for attendance of 60,894". [/INST] SELECT MIN("week") FROM "schedule" WHERE "attendance"='60,894';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "local_ensembles" ( "area" text, "advertisement_date" text, "block" text, "winning_applicant" text, "ensemble_name" text );. Question: "Which Ensemble Name has the Advertisement date October 2007?". [/INST] SELECT "ensemble_name" FROM "local_ensembles" WHERE "advertisement_date"='october 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 "local_ensembles" ( "area" text, "advertisement_date" text, "block" text, "winning_applicant" text, "ensemble_name" text );. Question: "Who is the Winning Applicant of Block 10B in Derbyshire Area?". [/INST] SELECT "winning_applicant" FROM "local_ensembles" WHERE "block"='10b' AND "area"='derbyshire';</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.