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 "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real );. Question: "What place is David Graham in?". [/INST] SELECT "place" FROM "final_round" WHERE "player"='david graham';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the sum of the goals with less than 30 points, a position less than 10, and more than 57 goals against?". [/INST] SELECT SUM("goals_for") FROM "group_ii" WHERE "points"<30 AND "position"<10 AND "goals_against">57;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the lowest amount of draws with less than 12 wins and less than 30 played?". [/INST] SELECT MIN("draws") FROM "group_ii" WHERE "wins"<12 AND "played"<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 "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the highest amount of goals with more than 51 goals against and less than 30 played?". [/INST] SELECT MAX("goals_for") FROM "group_ii" WHERE "goals_against">51 AND "played"<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 "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the number of goals with less than 14 wins and a goal difference less than -4?". [/INST] SELECT "goals_for" FROM "group_ii" WHERE "wins"<14 AND "goal_difference"<-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 "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the average number of goals against with more than 12 wins, 12 losses, and a position greater than 3?". [/INST] SELECT AVG("goals_against") FROM "group_ii" WHERE "wins">12 AND "losses"=12 AND "position">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 "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the total number of losses with less than 73 goals for, less than 11 wins, more than 24 points, and a position greater than 15?". [/INST] SELECT COUNT("losses") FROM "group_ii" WHERE "goals_for"<73 AND "wins"<11 AND "points">24 AND "position">15;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text );. Question: "What is the sum of Goals, when Matches is less than 29?". [/INST] SELECT SUM("goals") FROM "top_goalkeepers" WHERE "matches"<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 "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text );. Question: "What is the highest Average, when Goals is "34", and when Matches is less than 37?". [/INST] SELECT MAX("average") FROM "top_goalkeepers" WHERE "goals"=34 AND "matches"<37;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_raiding_cruise" ( "date" text, "ship_name" text, "tonnage" text, "ship_type" text, "location" text, "disposition_of_ship" text );. Question: "With a tonnage of 225 what is the ship type?". [/INST] SELECT "ship_type" FROM "second_raiding_cruise" WHERE "tonnage"='225';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_raiding_cruise" ( "date" text, "ship_name" text, "tonnage" text, "ship_type" text, "location" text, "disposition_of_ship" text );. Question: "Where was the ship when the ship had captured as the disposition of ship and was carrying 225 tonnage?". [/INST] SELECT "location" FROM "second_raiding_cruise" WHERE "disposition_of_ship"='captured' AND "tonnage"='225';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_raiding_cruise" ( "date" text, "ship_name" text, "tonnage" text, "ship_type" text, "location" text, "disposition_of_ship" text );. Question: "For the ship that was a brig and located in the English Channel, what was the disposition of ship?". [/INST] SELECT "disposition_of_ship" FROM "second_raiding_cruise" WHERE "ship_type"='brig' AND "location"='english channel';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_raiding_cruise" ( "date" text, "ship_name" text, "tonnage" text, "ship_type" text, "location" text, "disposition_of_ship" text );. Question: "With 14 under the date, what is the tonnage of the ship?". [/INST] SELECT "tonnage" FROM "second_raiding_cruise" WHERE "date"='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 "second_raiding_cruise" ( "date" text, "ship_name" text, "tonnage" text, "ship_type" text, "location" text, "disposition_of_ship" text );. Question: "The ship named Bacchus with a tonnage of t had what disposition of ship?". [/INST] SELECT "disposition_of_ship" FROM "second_raiding_cruise" WHERE "tonnage"='t' AND "ship_name"='bacchus';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_raiding_cruise" ( "date" text, "ship_name" text, "tonnage" text, "ship_type" text, "location" text, "disposition_of_ship" text );. Question: "What date was a brig type ship located in SW Approaches?". [/INST] SELECT "date" FROM "second_raiding_cruise" WHERE "ship_type"='brig' AND "location"='sw approaches';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "attendance" ( "crowd" real, "venue" text, "home_team" text, "opponent" text, "round" text );. Question: "What was the attendance at Round 9?". [/INST] SELECT COUNT("crowd") FROM "attendance" WHERE "round"='round 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 "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real );. Question: "Which Number of electorates (2009) has a Constituency number of 46?". [/INST] SELECT AVG("number_of_electorates_2009") FROM "assembly_segments" WHERE "constituency_number"='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 "engines" ( "name" text, "code" text, "capacity" text, "configuration" text, "power" text, "torque" text, "top_speed" text, "acceleration_0_100km_h_0_62mph" text );. Question: "What is the capacity of code f4r?". [/INST] SELECT "capacity" FROM "engines" WHERE "code"='f4r';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "engines" ( "name" text, "code" text, "capacity" text, "configuration" text, "power" text, "torque" text, "top_speed" text, "acceleration_0_100km_h_0_62mph" text );. Question: "What is the code of 1.5 dci 110, which has a capacity of 1,461cc?". [/INST] SELECT "code" FROM "engines" WHERE "capacity"='1,461cc' AND "name"='1.5 dci 110';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "roster" ( "name" text, "position" text, "height" text, "weight" real, "year" text, "home_town" text );. Question: "Can you tell me the Name that has the Height of 6-5, and the Year of junior?". [/INST] SELECT "name" FROM "roster" WHERE "height"='6-5' AND "year"='junior';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "roster" ( "name" text, "position" text, "height" text, "weight" real, "year" text, "home_town" text );. Question: "Can you tell me the average Weight that has Height of 6-9?". [/INST] SELECT AVG("weight") FROM "roster" WHERE "height"='6-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 "2009_ladder" ( "lexton_plains" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "What team has fewer than 9 wins and less than 1593 against?". [/INST] SELECT "lexton_plains" FROM "2009_ladder" WHERE "wins"<9 AND "against"<1593;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2009_ladder" ( "lexton_plains" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "What is the most wins with 0 byes?". [/INST] SELECT MAX("wins") FROM "2009_ladder" WHERE "byes">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 "individual_clubs" ( "place" real, "name" text, "all_around" real, "clubs" real, "total" real );. Question: "What total has 10 as the clubs, with a place greater than 1?". [/INST] SELECT "total" FROM "individual_clubs" WHERE "clubs"=10 AND "place">1;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "individual_clubs" ( "place" real, "name" text, "all_around" real, "clubs" real, "total" real );. Question: "What are the lowest clubs that have a place greater than 5, with an all around greater than 9.7?". [/INST] SELECT MIN("clubs") FROM "individual_clubs" WHERE "place">5 AND "all_around">9.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 "individual_clubs" ( "place" real, "name" text, "all_around" real, "clubs" real, "total" real );. Question: "What is the highest total that has andrea sinko as the name, with an all around greater than 9.65?". [/INST] SELECT MAX("total") FROM "individual_clubs" WHERE "name"='andrea sinko' AND "all_around">9.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 "individual_clubs" ( "place" real, "name" text, "all_around" real, "clubs" real, "total" real );. Question: "How many places have bianka panova as the name, with clubs less than 10?". [/INST] SELECT COUNT("place") FROM "individual_clubs" WHERE "name"='bianka panova' AND "clubs"<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 "asia" ( "perpetrator" text, "date" text, "year" real, "location" text, "country" text, "killed" real, "injured" text );. Question: "What is Date, when Country is "China", and when Perpetrator is "Shi Yuejun , 35"?". [/INST] SELECT "date" FROM "asia" WHERE "country"='china' AND "perpetrator"='shi yuejun , 35';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "asia" ( "perpetrator" text, "date" text, "year" real, "location" text, "country" text, "killed" real, "injured" text );. Question: "What is Injured, when Country is "Afghanistan"?". [/INST] SELECT "injured" FROM "asia" WHERE "country"='afghanistan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "asia" ( "perpetrator" text, "date" text, "year" real, "location" text, "country" text, "killed" real, "injured" text );. Question: "What is Country, when Killed is "100.9", and when Year is greater than 1939.9?". [/INST] SELECT "country" FROM "asia" WHERE "killed"=100.9 AND "year">1939.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 "asia" ( "perpetrator" text, "date" text, "year" real, "location" text, "country" text, "killed" real, "injured" text );. Question: "What is the average Year, when Date is "04.01 April 1"?". [/INST] SELECT AVG("year") FROM "asia" WHERE "date"='04.01 april 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 "second_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text );. Question: "What is the total number of positions when there are more than 48 goals against, 1 of 29 points are played, and less than 34 games have been played?". [/INST] SELECT COUNT("position") FROM "second_division_final_table" WHERE "goals_against">48 AND "points_1"='29' AND "played"<34;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text );. Question: "What is the smallest number of goals against when 8 games were lost, and the goals for are 60?". [/INST] SELECT MIN("goals_against") FROM "second_division_final_table" WHERE "lost"=8 AND "goals_for"=60;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text );. Question: "What is the smallest number of goals against when there are 1 of 18 points, and more than 8 are drawn?". [/INST] SELECT MIN("goals_against") FROM "second_division_final_table" WHERE "points_1"='18' AND "drawn">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 "second_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text );. Question: "What is the total number of goals for when the drawn is less than 7, less than 21 games have been lost, and there are 1 of 33 points?". [/INST] SELECT COUNT("goals_for") FROM "second_division_final_table" WHERE "drawn"<7 AND "lost"<21 AND "points_1"='33';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "models" ( "model" text, "chassis" real, "engine" real, "year_from" real, "year_to" real );. Question: "Which Engine has a Model of sl500, and a Year From larger than 1999?". [/INST] SELECT MAX("engine") FROM "models" WHERE "model"='sl500' AND "year_from">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 "models" ( "model" text, "chassis" real, "engine" real, "year_from" real, "year_to" real );. Question: "Which Engine has a Model of sl500, and a Chassis smaller than 129.067?". [/INST] SELECT MIN("engine") FROM "models" WHERE "model"='sl500' AND "chassis"<129.067;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "models" ( "model" text, "chassis" real, "engine" real, "year_from" real, "year_to" real );. Question: "How many engines have a Model of sl600, and a Year From of 1994, and a Year To smaller than 1995?". [/INST] SELECT COUNT("engine") FROM "models" WHERE "model"='sl600' AND "year_from"=1994 AND "year_to"<1995;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "models" ( "model" text, "chassis" real, "engine" real, "year_from" real, "year_to" real );. Question: "Which Year To has an Engine of 119.972, and a Chassis smaller than 129.067?". [/INST] SELECT MIN("year_to") FROM "models" WHERE "engine"=119.972 AND "chassis"<129.067;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "monday_thursday_schedule" ( "time" text, "show_name" text, "local_networked" text, "ad_freq" text, "news_freq" text );. Question: "What Time has a Show Name of mornings with neil mitchell?". [/INST] SELECT "time" FROM "monday_thursday_schedule" WHERE "show_name"='mornings with neil mitchell';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "monday_thursday_schedule" ( "time" text, "show_name" text, "local_networked" text, "ad_freq" text, "news_freq" text );. Question: "What Time has Ad Freq of 15 minutes, and a Show Name of country today?". [/INST] SELECT "time" FROM "monday_thursday_schedule" WHERE "ad_freq"='15 minutes' AND "show_name"='country today';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "monday_thursday_schedule" ( "time" text, "show_name" text, "local_networked" text, "ad_freq" text, "news_freq" text );. Question: "What Time has a Show Name of mornings with neil mitchell?". [/INST] SELECT "time" FROM "monday_thursday_schedule" WHERE "show_name"='mornings with neil mitchell';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "monday_thursday_schedule" ( "time" text, "show_name" text, "local_networked" text, "ad_freq" text, "news_freq" text );. Question: "What Local/Networked has a Show Name of nightline?". [/INST] SELECT "local_networked" FROM "monday_thursday_schedule" WHERE "show_name"='nightline';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "monday_thursday_schedule" ( "time" text, "show_name" text, "local_networked" text, "ad_freq" text, "news_freq" text );. Question: "What News Freq has a Time of 1:00pm–4:00pm?". [/INST] SELECT "news_freq" FROM "monday_thursday_schedule" WHERE "time"='1:00pm–4:00pm';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "monday_thursday_schedule" ( "time" text, "show_name" text, "local_networked" text, "ad_freq" text, "news_freq" text );. Question: "What Ad Freq has a News Freq of 60 minutes, and a Local/Networked of local?". [/INST] SELECT "ad_freq" FROM "monday_thursday_schedule" WHERE "news_freq"='60 minutes' AND "local_networked"='local';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What was the ERP W for 96.7 MHz?". [/INST] SELECT "erp_w" FROM "translators" WHERE "frequency_m_hz"=96.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 "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What was the class for Appleton, Wisconsin?". [/INST] SELECT "class" FROM "translators" WHERE "city_of_license"='appleton, wisconsin';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "statistics" ( "country" text, "transfers_in" text, "transfers_out" text, "internal_transfers" text, "total_transfers" text );. Question: "What are the transfers in for Hungary?". [/INST] SELECT "transfers_in" FROM "statistics" WHERE "country"='hungary';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "statistics" ( "country" text, "transfers_in" text, "transfers_out" text, "internal_transfers" text, "total_transfers" text );. Question: "What are the Transfers out for Peru?". [/INST] SELECT "transfers_out" FROM "statistics" WHERE "country"='peru';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text );. Question: "WHAT POINTS 1 HAD A 22 LOST?". [/INST] SELECT "points_1" FROM "first_division_final_table" WHERE "lost"=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 "first_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text );. Question: "WHAT GOALS AGAINST HAD A GOAL FOR OF 46, AND PLAYED LESS THAN 38?". [/INST] SELECT SUM("goals_against") FROM "first_division_final_table" WHERE "goals_for"=46 AND "played"<38;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text );. Question: "WHAT IS THE POSITION WITH A LOST OF 6, FOR CAERNARFON TOWN?". [/INST] SELECT SUM("position") FROM "first_division_final_table" WHERE "lost"=6 AND "team"='caernarfon town';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text );. Question: "WHAT IS THE SUM PLAYED WITH POINTS 1 OF 53, AND POSITION LARGER THAN 3?". [/INST] SELECT SUM("played") FROM "first_division_final_table" WHERE "points_1"='53' AND "position">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 "first_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text );. Question: "WHAT IS THE LOST WITH A DRAWN 11, FOR LEEK TOWN?". [/INST] SELECT MAX("lost") FROM "first_division_final_table" WHERE "drawn"=11 AND "team"='leek town';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "yankee_stadium_new_york_a_l_66_n_l_39" ( "player" text, "team" text, "round_1" real, "round_2" text, "subtotal" real, "finals" text, "total" real );. Question: "Which player has a subtotal of more than 3 and more than 8 in round 1?". [/INST] SELECT "player" FROM "yankee_stadium_new_york_a_l_66_n_l_39" WHERE "subtotal">3 AND "round_1">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 "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" text );. Question: "What is the ranking for the United States when the money is $200?". [/INST] SELECT "place" FROM "final_leaderboard" WHERE "country"='united states' AND "money"='200';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" text );. Question: "What is the ranking when Archie Compston is the player and the money is $73?". [/INST] SELECT "place" FROM "final_leaderboard" WHERE "money"='73' AND "player"='archie compston';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" text );. Question: "Which country has a to par less than 19 and a score of 75-79-77-73=304?". [/INST] SELECT "country" FROM "final_leaderboard" WHERE "to_par"<19 AND "score"='75-79-77-73=304';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" text );. Question: "What is the score for the United States when Harry Hampton is the player and the money is $73?". [/INST] SELECT "score" FROM "final_leaderboard" WHERE "country"='united states' AND "money"='73' AND "player"='harry hampton';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "busiest_us_airports_by_total_passenger_b" ( "rank_2012" real, "iata_code" text, "major_city_served" text, "state" text, "2012" real, "2011" real, "2010" real, "2009" real, "2008" real, "2007" real, "2006" real, "2005" real );. Question: "When Philadelphia has a 2007 less than 20,796,173 and a 2008 more than 10,215,225, what is the smallest 2009?". [/INST] SELECT MIN("2009") FROM "busiest_us_airports_by_total_passenger_b" WHERE "2008">'10,215,225' AND "2007"<'20,796,173' AND "major_city_served"='philadelphia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "busiest_us_airports_by_total_passenger_b" ( "rank_2012" real, "iata_code" text, "major_city_served" text, "state" text, "2012" real, "2011" real, "2010" real, "2009" real, "2008" real, "2007" real, "2006" real, "2005" real );. Question: "What is the greatest 2010 for Miami, Fl?". [/INST] SELECT MAX("2010") FROM "busiest_us_airports_by_total_passenger_b" WHERE "state"='fl' AND "major_city_served"='miami';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "busiest_us_airports_by_total_passenger_b" ( "rank_2012" real, "iata_code" text, "major_city_served" text, "state" text, "2012" real, "2011" real, "2010" real, "2009" real, "2008" real, "2007" real, "2006" real, "2005" real );. Question: "For the IATA code of lax with 2009 less than 31,135,732 and 2011 less than 8,174,194, what is the sum of 2012?". [/INST] SELECT COUNT("2012") FROM "busiest_us_airports_by_total_passenger_b" WHERE "2011"<'8,174,194' AND "2009"<'31,135,732' AND "iata_code"='lax';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "remakes" ( "series" text, "platform" text, "japanese_release_date" text, "north_american_release_date" text, "european_release_date" text, "australia_release_date" text );. Question: "What is the North American release date of the remake with a European release date on 2013-03-20?". [/INST] SELECT "north_american_release_date" FROM "remakes" WHERE "european_release_date"='2013-03-20';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "remakes" ( "series" text, "platform" text, "japanese_release_date" text, "north_american_release_date" text, "european_release_date" text, "australia_release_date" text );. Question: "What is the series with a North American release date on 2013-09-03?". [/INST] SELECT "series" FROM "remakes" WHERE "north_american_release_date"='2013-09-03';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "chart_singles" ( "year" real, "us_billboard" real, "us_cash_box" text, "us_ac" text, "can_ac" text, "title" text );. Question: "What is the US cash box before 1978 with a US billboard of 35?". [/INST] SELECT "us_cash_box" FROM "chart_singles" WHERE "year"<1978 AND "us_billboard"=35;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What is the country of the player with a t6 place?". [/INST] SELECT "country" FROM "third_round" WHERE "place"='t6';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What is the place of the player with a 72-71-65=208 score?". [/INST] SELECT "place" FROM "third_round" WHERE "score"='72-71-65=208';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What country is player thomas bjørn from?". [/INST] SELECT "country" FROM "third_round" WHERE "player"='thomas bjørn';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What is the place of the player with a 66-68-70=204 score?". [/INST] SELECT "place" FROM "third_round" WHERE "score"='66-68-70=204';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the number of wins when the goals against is larger than 41, points is 29, and draws are larger than 5?". [/INST] SELECT COUNT("wins") FROM "group_ii" WHERE "goals_against">41 AND "points"=29 AND "draws">5;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the number of draws when played is smaller than 30?". [/INST] SELECT COUNT("draws") FROM "group_ii" WHERE "played"<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 "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the number of losses when the goal difference was -8, and position is smaller than 10?". [/INST] SELECT COUNT("losses") FROM "group_ii" WHERE "goal_difference"=-8 AND "position"<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 "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the wins number when the points were smaller than 27, and goals against was 41?". [/INST] SELECT SUM("wins") FROM "group_ii" WHERE "points"<27 AND "goals_against"=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 "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the losses when the goal difference is larger than 26?". [/INST] SELECT MAX("losses") FROM "group_ii" WHERE "goal_difference">26;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "What is the goals for when played is larger than 30?". [/INST] SELECT MIN("goals_for") FROM "group_ii" WHERE "played">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 "singles_11_6_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );. Question: "What is the score on 2 October 2011?". [/INST] SELECT "score" FROM "singles_11_6_5" WHERE "date"='2 october 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 "singles_11_6_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );. Question: "What is the surface of the tournament with a runner-up outcome and dudi sela as the opponent?". [/INST] SELECT "surface" FROM "singles_11_6_5" WHERE "outcome"='runner-up' AND "opponent"='dudi sela';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );. Question: "Who was the shooter for the WC Beijing event?". [/INST] SELECT "shooter" FROM "qualification" WHERE "event"='wc beijing';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );. Question: "With Olympic Bronze Medalist as the total what are the score points?". [/INST] SELECT "score_points" FROM "qualification" WHERE "total"='olympic bronze medalist';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );. Question: "With a total of 11, and 10 rank points, what are the score points?". [/INST] SELECT "score_points" FROM "qualification" WHERE "rank_points"='10' AND "total"='11';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );. Question: "Who is the shooter with 15 rank points, and 0 score points?". [/INST] SELECT "shooter" FROM "qualification" WHERE "rank_points"='15' AND "score_points"='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 "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );. Question: "With a total of 11, what is the score points?". [/INST] SELECT "score_points" FROM "qualification" WHERE "total"='11';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2012_ladder" ( "south_west_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "Which Losses have a South West DFL of branxholme-wallacedale, and less than 2 Byes?". [/INST] SELECT AVG("losses") FROM "2012_ladder" WHERE "south_west_dfl"='branxholme-wallacedale' AND "byes"<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 "2012_ladder" ( "south_west_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "Which draws have an average of 14 wins?". [/INST] SELECT AVG("draws") FROM "2012_ladder" WHERE "wins"=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 "2012_ladder" ( "south_west_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "How many wins have 16 losses and an Against smaller than 3213?". [/INST] SELECT SUM("wins") FROM "2012_ladder" WHERE "losses"=16 AND "against"<3213;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2012_ladder" ( "south_west_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "How many Draws have a South West DFL of tyrendarra, and less than 10 wins?". [/INST] SELECT SUM("draws") FROM "2012_ladder" WHERE "south_west_dfl"='tyrendarra' AND "wins"<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 "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "What Circuit has a Winning constructor of bugatti, and a Winning driver of edward bret?". [/INST] SELECT "circuit" FROM "other_grands_prix" WHERE "winning_constructor"='bugatti' AND "winning_driver"='edward bret';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "What Circuit has a Date of 25 july?". [/INST] SELECT "circuit" FROM "other_grands_prix" WHERE "date"='25 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 "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "What Date has a Name of thuin circuit?". [/INST] SELECT "date" FROM "other_grands_prix" WHERE "name"='thuin circuit';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "What Name has a Winning constructor of bugatti, and a Winning driver of louis chiron?". [/INST] SELECT "name" FROM "other_grands_prix" WHERE "winning_constructor"='bugatti' AND "winning_driver"='louis chiron';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "What Winning driver has a Name of mugello circuit?". [/INST] SELECT "winning_driver" FROM "other_grands_prix" WHERE "name"='mugello circuit';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "What Winning driver has a Winning constructor of talbot?". [/INST] SELECT "winning_driver" FROM "other_grands_prix" WHERE "winning_constructor"='talbot';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ties" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "attendance" real );. Question: "What is the away team of the match with a 356 attendance?". [/INST] SELECT "away_team" FROM "ties" WHERE "attendance"=356;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "Which player won in 1993?". [/INST] SELECT "player" FROM "missed_the_cut" WHERE "year_s_won"='1993';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "How many to pars were won in 1993?". [/INST] SELECT COUNT("to_par") FROM "missed_the_cut" WHERE "year_s_won"='1993';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "What is Zimbabwe's total with a to par higher than 5?". [/INST] SELECT AVG("total") FROM "missed_the_cut" WHERE "country"='zimbabwe' AND "to_par">5;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "What is the total for 1986 with a to par higher than 6?". [/INST] SELECT COUNT("total") FROM "missed_the_cut" WHERE "year_s_won"='1986' AND "to_par">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 "relegation_table" ( "team" text, "1982" text, "1983" text, "1984" real, "total_points" real, "seasons" real, "points_average" real );. Question: "What is the total for 1984 for the team with 100 points total and more than 3 seasons?". [/INST] SELECT SUM("1984") FROM "relegation_table" WHERE "total_points"=100 AND "seasons">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 "relegation_table" ( "team" text, "1982" text, "1983" text, "1984" real, "total_points" real, "seasons" real, "points_average" real );. Question: "What is the points total for the team with points average more than 34, 1984 score more than 37 and N/A in 1982?". [/INST] SELECT COUNT("total_points") FROM "relegation_table" WHERE "1982"='n/a' AND "points_average">34 AND "1984">37;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "relegation_table" ( "team" text, "1982" text, "1983" text, "1984" real, "total_points" real, "seasons" real, "points_average" real );. Question: "What team had 3 seasons and fewer than 27 in 1984?". [/INST] SELECT "team" FROM "relegation_table" WHERE "seasons"=3 AND "1984"<27;</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.