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 "grand_slam_tournament_performance_timeli" ( "tournament" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text, "win_pct" text );. Question: "What in 2007 has a 2008 of sf, and a 2010 of f?". [/INST] SELECT "2007" FROM "grand_slam_tournament_performance_timeli" WHERE "2008"='sf' AND "2010"='f';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text, "win_pct" text );. Question: "What in 2013 has a 2009 of 3r?". [/INST] SELECT "2013" FROM "grand_slam_tournament_performance_timeli" WHERE "2009"='3r';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text, "win_pct" text );. Question: "What in 2007 has a 2010 of qf, and a 2012 of w?". [/INST] SELECT "2007" FROM "grand_slam_tournament_performance_timeli" WHERE "2010"='qf' AND "2012"='w';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "What is the name of Team 2 with a 2nd leg of 4-6?". [/INST] SELECT "team_2" FROM "first_round" WHERE "2nd_leg"='4-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 "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "What is the name of Team 2 with a Team 1 of Al Qadsia?". [/INST] SELECT "team_2" FROM "first_round" WHERE "team_1"='al qadsia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "What is the 1st leg of the Al Fahaheel Team 1?". [/INST] SELECT "1st_leg" FROM "first_round" WHERE "team_1"='al fahaheel';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "What is the 1st leg of the match with a 2nd leg of 3-2?". [/INST] SELECT "1st_leg" FROM "first_round" WHERE "2nd_leg"='3-2';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_seven" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text );. Question: "What is the Ground with an Away that is central blues?". [/INST] SELECT "ground" FROM "round_seven" WHERE "away"='central blues';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_seven" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text );. Question: "What is the Away with a Time that is 14:00?". [/INST] SELECT "away" FROM "round_seven" WHERE "time"='14:00';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_seven" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text );. Question: "What is the Date with a Time that is 18:45?". [/INST] SELECT "date" FROM "round_seven" WHERE "time"='18:45';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_seven" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text );. Question: "What is the Score with a Date that is 2008-06-28?". [/INST] SELECT "score" FROM "round_seven" WHERE "date"='2008-06-28';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "european_golden_shoe_winners" ( "season" text, "nationality" text, "player" text, "club" text, "league" text, "goals" real, "points" text );. Question: "Which player was in the Omonia Nicosia club?". [/INST] SELECT "player" FROM "european_golden_shoe_winners" WHERE "club"='omonia nicosia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "european_golden_shoe_winners" ( "season" text, "nationality" text, "player" text, "club" text, "league" text, "goals" real, "points" text );. Question: "Which league's nationality was Italy when there were 62 points?". [/INST] SELECT "league" FROM "european_golden_shoe_winners" WHERE "nationality"='italy' AND "points"='62';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "tries_for" text, "tries_against" text );. Question: "What is the value for the item "Lost" when the value "Tries" is 47?". [/INST] SELECT "lost" FROM "league_table" WHERE "tries_for"='47';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "tries_for" text, "tries_against" text );. Question: "What is the value for the item "Tries" when the value of the item "Played" is 18 and the value of the item "Points" is 375?". [/INST] SELECT "tries_for" FROM "league_table" WHERE "played"='18' AND "points_against"='375';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "tries_for" text, "tries_against" text );. Question: "What is the value of the item "Points" when the value of the item "Points against" is 272?". [/INST] SELECT "points_for" FROM "league_table" WHERE "points_against"='272';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "brazil_s_30_busiest_airports_by_passenge" ( "rank" real, "location" text, "total_passengers" real, "annual_change" text, "capacity" real, "capacity_in_use" text );. Question: "Which location has a capacity that has a rank of 23?". [/INST] SELECT "capacity_in_use" FROM "brazil_s_30_busiest_airports_by_passenge" WHERE "rank"=23;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "brazil_s_30_busiest_airports_by_passenge" ( "rank" real, "location" text, "total_passengers" real, "annual_change" text, "capacity" real, "capacity_in_use" text );. Question: "What location has an in use capacity of 167,60%?". [/INST] SELECT MIN("capacity") FROM "brazil_s_30_busiest_airports_by_passenge" WHERE "capacity_in_use"='167,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 "list_of_united_states_national_ice_hocke" ( "position" text, "jersey_num" real, "name" text, "height_cm" real, "weight_kg" real, "birthdate" text, "birthplace" text, "2007_2008_team" text, "nhl_rights_if_any" text );. Question: "Which Height (cm) has a Birthplace of bloomfield hills, michigan?". [/INST] SELECT AVG("height_cm") FROM "list_of_united_states_national_ice_hocke" WHERE "birthplace"='bloomfield hills, michigan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "jersey_num" real, "name" text, "height_cm" real, "weight_kg" real, "birthdate" text, "birthplace" text, "2007_2008_team" text, "nhl_rights_if_any" text );. Question: "Which Weight (kg) has a NHL rights, if any of phoenix coyotes?". [/INST] SELECT COUNT("weight_kg") FROM "list_of_united_states_national_ice_hocke" WHERE "nhl_rights_if_any"='phoenix coyotes';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "jersey_num" real, "name" text, "height_cm" real, "weight_kg" real, "birthdate" text, "birthplace" text, "2007_2008_team" text, "nhl_rights_if_any" text );. Question: "Which Height (cm) has a Birthplace of new canaan, connecticut?". [/INST] SELECT COUNT("height_cm") FROM "list_of_united_states_national_ice_hocke" WHERE "birthplace"='new canaan, connecticut';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lner" ( "class" text, "wheel_arrangement" text, "railway" text, "number_at_doncaster" real, "number_at_lincoln" real );. Question: "Which Class has a Number at Lincoln smaller than 1 and a Wheel Arrangement of 0-6-0?". [/INST] SELECT "class" FROM "lner" WHERE "number_at_lincoln"<1 AND "wheel_arrangement"='0-6-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 "lner" ( "class" text, "wheel_arrangement" text, "railway" text, "number_at_doncaster" real, "number_at_lincoln" real );. Question: "Which Class has a Number at Lincoln larger than 0 and a Number at Doncaster of 8?". [/INST] SELECT "class" FROM "lner" WHERE "number_at_lincoln">0 AND "number_at_doncaster"=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 "table_of_largest_rogue_trader_losses" ( "name" text, "country" text, "date_s" text, "loss" text, "institution" text, "market_activity" text );. Question: "What was the loss for Boris Picano-Nacci?". [/INST] SELECT "loss" FROM "table_of_largest_rogue_trader_losses" WHERE "name"='boris picano-nacci';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mixed_doubles_finals_15_7_8" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "Which Score has smaller than 1994, and a Partner of elizabeth sayers smylie?". [/INST] SELECT "score" FROM "mixed_doubles_finals_15_7_8" WHERE "year"<1994 AND "partner"='elizabeth sayers smylie';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mixed_doubles_finals_15_7_8" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "Who was the Partner that was a winner, a Year smaller than 1993, and a Score of 6–4, 6–2?". [/INST] SELECT "partner" FROM "mixed_doubles_finals_15_7_8" WHERE "outcome"='winner' AND "year"<1993 AND "score"='6–4, 6–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 "lpga_tour_wins_11" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "What tournament had a victory of a 1 stroke margin and the final winning score 69-75-71-70?". [/INST] SELECT "tournament" FROM "lpga_tour_wins_11" WHERE "margin_of_victory"='1 stroke' AND "winning_score"='69-75-71-70';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "polling" ( "source" text, "date" text, "goberman" text, "loera" text, "merkley" text, "neville" text, "novick" text, "obrist" text, "other_undecided" text );. Question: "Which Loera has a Source of surveyusa, and a Date of may 16–may 18, 2008?". [/INST] SELECT "loera" FROM "polling" WHERE "source"='surveyusa' AND "date"='may 16–may 18, 2008';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "polling" ( "source" text, "date" text, "goberman" text, "loera" text, "merkley" text, "neville" text, "novick" text, "obrist" text, "other_undecided" text );. Question: "Which Goberman has a Date of april 28–april 30, 2008?". [/INST] SELECT "goberman" FROM "polling" WHERE "date"='april 28–april 30, 2008';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "polling" ( "source" text, "date" text, "goberman" text, "loera" text, "merkley" text, "neville" text, "novick" text, "obrist" text, "other_undecided" text );. Question: "Which Neville has a Novick of 23%?". [/INST] SELECT "neville" FROM "polling" WHERE "novick"='23%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "polling" ( "source" text, "date" text, "goberman" text, "loera" text, "merkley" text, "neville" text, "novick" text, "obrist" text, "other_undecided" text );. Question: "Which Goberman has an Obrist of 2%, and a Merkley of 34%?". [/INST] SELECT "goberman" FROM "polling" WHERE "obrist"='2%' AND "merkley"='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 "polling" ( "source" text, "date" text, "goberman" text, "loera" text, "merkley" text, "neville" text, "novick" text, "obrist" text, "other_undecided" text );. Question: "Which Novick has a Source of surveyusa, and a Neville of 8%?". [/INST] SELECT "novick" FROM "polling" WHERE "source"='surveyusa' AND "neville"='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 "polling" ( "source" text, "date" text, "goberman" text, "loera" text, "merkley" text, "neville" text, "novick" text, "obrist" text, "other_undecided" text );. Question: "Which Date has a Novick of 26%?". [/INST] SELECT "date" FROM "polling" WHERE "novick"='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 "career_coaching_record" ( "season" text, "coach" text, "overall" text, "conference" text, "big_ten" text, "national" text );. Question: "What is the Coach with a Big Ten that is 2nd (79)?". [/INST] SELECT "coach" FROM "career_coaching_record" WHERE "big_ten"='2nd (79)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_coaching_record" ( "season" text, "coach" text, "overall" text, "conference" text, "big_ten" text, "national" text );. Question: "What is the Season with a Big Ten that is 2nd (386)?". [/INST] SELECT "season" FROM "career_coaching_record" WHERE "big_ten"='2nd (386)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_coaching_record" ( "season" text, "coach" text, "overall" text, "conference" text, "big_ten" text, "national" text );. Question: "What is the Coach with a Big Ten that is 3rd (278)?". [/INST] SELECT "coach" FROM "career_coaching_record" WHERE "big_ten"='3rd (278)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_coaching_record" ( "season" text, "coach" text, "overall" text, "conference" text, "big_ten" text, "national" text );. Question: "What is the Coach with a Big Ten that is 1st (148)?". [/INST] SELECT "coach" FROM "career_coaching_record" WHERE "big_ten"='1st (148)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "rank" real, "college" text, "first_season" real, "seasons" real, "wins" real, "losses" real );. Question: "What is the total of First Season games with 1537 Wins and a Season greater than 109?". [/INST] SELECT SUM("first_season") FROM "see_also" WHERE "wins"=1537 AND "seasons">109;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "rank" real, "college" text, "first_season" real, "seasons" real, "wins" real, "losses" real );. Question: "How many wins were there for Washington State College with losses greater than 980 and a first season before 1906 and rank greater than 42?". [/INST] SELECT COUNT("wins") FROM "see_also" WHERE "losses">980 AND "first_season"<1906 AND "college"='washington state' AND "rank">42;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "rank" real, "college" text, "first_season" real, "seasons" real, "wins" real, "losses" real );. Question: "What is the total number of rank with losses less than 992, North Carolina State College and a season greater than 101?". [/INST] SELECT COUNT("rank") FROM "see_also" WHERE "losses"<992 AND "college"='north carolina state' AND "seasons">101;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_republic" ( "rank" real, "republic" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the total number of bronzes associated with 1 silver, ranks under 6 and under 6 golds?". [/INST] SELECT SUM("bronze") FROM "medals_by_republic" WHERE "silver"=1 AND "rank"<6 AND "gold"<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 "medals_by_republic" ( "rank" real, "republic" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the highest number of bronzes for teams ranked number 7 with more than 0 silver?". [/INST] SELECT MAX("bronze") FROM "medals_by_republic" WHERE "silver">0 AND "rank"=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 "medals_by_republic" ( "rank" real, "republic" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the average total for teams with more than 1 gold, ranked over 3 and more than 3 bronze?". [/INST] SELECT AVG("total") FROM "medals_by_republic" WHERE "gold">1 AND "rank">3 AND "bronze">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 "medals_by_republic" ( "rank" real, "republic" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the sum of bronzes for teams with more than 2 gold, ranked under 3, and less than 22 silver?". [/INST] SELECT SUM("bronze") FROM "medals_by_republic" WHERE "gold">2 AND "rank"<3 AND "silver"<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 "medals_by_republic" ( "rank" real, "republic" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the sum of silvers for teams with ranks over 3 and totals under 2?". [/INST] SELECT SUM("silver") FROM "medals_by_republic" WHERE "rank">3 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 "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real );. Question: "What is the number of Games for the Maccabi Tel Aviv Team with less than 208 Rebounds?". [/INST] SELECT AVG("games") FROM "rebounds" WHERE "team"='maccabi tel aviv' AND "rebounds"<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 "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real );. Question: "How many Rebounds did Novica Veličković get in less than 22 Games?". [/INST] SELECT SUM("rebounds") FROM "rebounds" WHERE "name"='novica veličković' AND "games"<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 "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real );. Question: "How many Games for Terence Morris?". [/INST] SELECT "games" FROM "rebounds" WHERE "name"='terence morris';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real );. Question: "What is the number of Games for Partizan Belgrade player Nikola Peković with a Rank of more than 4?". [/INST] SELECT MIN("games") FROM "rebounds" WHERE "team"='partizan belgrade' AND "name"='nikola peković' AND "rank">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 "accolades" ( "publication" text, "country" text, "accolade" text, "year" real, "rank" text );. Question: "Which year's rank was #4 when the country was the US?". [/INST] SELECT "year" FROM "accolades" WHERE "rank"='#4' AND "country"='us';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "accolades" ( "publication" text, "country" text, "accolade" text, "year" real, "rank" text );. Question: "Which publication happened in the UK?". [/INST] SELECT "publication" FROM "accolades" WHERE "country"='uk';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "accolades" ( "publication" text, "country" text, "accolade" text, "year" real, "rank" text );. Question: "Which rank's country is the US when the accolade is 40 best albums of the year?". [/INST] SELECT "rank" FROM "accolades" WHERE "country"='us' AND "accolade"='40 best albums of the year';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_of_raiding_history" ( "date" text, "name" text, "nationality" text, "tonnage_grt" real, "fate" text );. Question: "What is the nationality of the HMS Cheshire?". [/INST] SELECT "nationality" FROM "summary_of_raiding_history" WHERE "name"='hms cheshire';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_titles_4" ( "outcome" text, "date" real, "championship" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "What was the final score with Guillermo Vilas as the opponent in the final, that happened after 1972?". [/INST] SELECT "score_in_the_final" FROM "singles_titles_4" WHERE "opponent_in_the_final"='guillermo vilas' AND "date">1972;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );. Question: "Which points has the driver Paul Tracy?". [/INST] SELECT "points" FROM "race" WHERE "driver"='paul tracy';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );. Question: "What grid has 78 laps, and Ronnie Bremer as driver?". [/INST] SELECT "grid" FROM "race" WHERE "laps"=78 AND "driver"='ronnie bremer';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );. Question: "Who scored with a grid of 10 and the highest amount of laps?". [/INST] SELECT MAX("laps") FROM "race" 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 "pro_final_results" ( "event" text, "winner" text, "second" text, "third" text, "fourth" text );. Question: "Who was Fourth in the 2008 Telstra Men's Pro Event?". [/INST] SELECT "fourth" FROM "pro_final_results" WHERE "event"='2008 telstra men''s pro';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pro_final_results" ( "event" text, "winner" text, "second" text, "third" text, "fourth" text );. Question: "Who was the Winner when Selby Riddle came in Fourth?". [/INST] SELECT "winner" FROM "pro_final_results" WHERE "fourth"='selby riddle';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pro_final_results" ( "event" text, "winner" text, "second" text, "third" text, "fourth" text );. Question: "Who was in Second Place with Isabelle Brayley came in Fourth?". [/INST] SELECT "second" FROM "pro_final_results" WHERE "fourth"='isabelle brayley';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "freshwater_withdrawal_by_country_and_sec" ( "country" text, "total_freshwater_withdrawal_km_3_yr" real, "per_capita_withdrawal_m_3_p_yr" real, "domestic_use_m_3_p_yr_in_pct" text, "industrial_use_m_3_p_yr_in_pct" text, "agricultural_use_m_3_p_yr_in_pct" text );. Question: "What is the average Total Freshwater Withdrawal (km 3 /yr), when Industrial Use (m 3 /p/yr)(in %) is 337(63%), and when Per Capita Withdrawal (m 3 /p/yr) is greater than 535?". [/INST] SELECT AVG("total_freshwater_withdrawal_km_3_yr") FROM "freshwater_withdrawal_by_country_and_sec" WHERE "industrial_use_m_3_p_yr_in_pct"='337(63%)' AND "per_capita_withdrawal_m_3_p_yr">535;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "freshwater_withdrawal_by_country_and_sec" ( "country" text, "total_freshwater_withdrawal_km_3_yr" real, "per_capita_withdrawal_m_3_p_yr" real, "domestic_use_m_3_p_yr_in_pct" text, "industrial_use_m_3_p_yr_in_pct" text, "agricultural_use_m_3_p_yr_in_pct" text );. Question: "What is the highest Per Capita Withdrawal (m 3 /p/yr), when Agricultural Use (m 3 /p/yr)(in %) is 1363(92%), and when Total Freshwater Withdrawal (km 3 /yr) is less than 42.7?". [/INST] SELECT MAX("per_capita_withdrawal_m_3_p_yr") FROM "freshwater_withdrawal_by_country_and_sec" WHERE "agricultural_use_m_3_p_yr_in_pct"='1363(92%)' AND "total_freshwater_withdrawal_km_3_yr"<42.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 "freshwater_withdrawal_by_country_and_sec" ( "country" text, "total_freshwater_withdrawal_km_3_yr" real, "per_capita_withdrawal_m_3_p_yr" real, "domestic_use_m_3_p_yr_in_pct" text, "industrial_use_m_3_p_yr_in_pct" text, "agricultural_use_m_3_p_yr_in_pct" text );. Question: "What is Agricultural Use (m 3 /p/yr)(in %), when Per Capita Withdrawal (m 3 /p/yr) is greater than 923, and when Domestic Use (m 3 /p/yr)(in %) is 73(7%)?". [/INST] SELECT "agricultural_use_m_3_p_yr_in_pct" FROM "freshwater_withdrawal_by_country_and_sec" WHERE "per_capita_withdrawal_m_3_p_yr">923 AND "domestic_use_m_3_p_yr_in_pct"='73(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 "freshwater_withdrawal_by_country_and_sec" ( "country" text, "total_freshwater_withdrawal_km_3_yr" real, "per_capita_withdrawal_m_3_p_yr" real, "domestic_use_m_3_p_yr_in_pct" text, "industrial_use_m_3_p_yr_in_pct" text, "agricultural_use_m_3_p_yr_in_pct" text );. Question: "What is Industrial Use (m 3 /p/yr)(in %), when Total Freshwater Withdrawal (km 3/yr) is less than 82.75, and when Agricultural Use (m 3 /p/yr)(in %) is 1363(92%)?". [/INST] SELECT "industrial_use_m_3_p_yr_in_pct" FROM "freshwater_withdrawal_by_country_and_sec" WHERE "total_freshwater_withdrawal_km_3_yr"<82.75 AND "agricultural_use_m_3_p_yr_in_pct"='1363(92%)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );. Question: "Who was the leading score in the game at the Warriors?". [/INST] SELECT "leading_scorer" FROM "january" WHERE "home"='warriors';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "How many average cuts made when 11 is the Top-10?". [/INST] SELECT AVG("cuts_made") FROM "summary" WHERE "top_10"=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 "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );. Question: "When the wins are less than 0 and the Top-5 1 what is the average cuts?". [/INST] SELECT AVG("cuts_made") FROM "summary" WHERE "top_5"=1 AND "wins"<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 "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );. Question: "What is the average Top-10 with a greater than 11 Top-25 and a less than 2 wins?". [/INST] SELECT AVG("top_10") FROM "summary" WHERE "top_25">11 AND "wins"<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: "What is the total of wins when the cuts made is 76 and the events greater than 115?". [/INST] SELECT SUM("wins") FROM "summary" WHERE "cuts_made"=76 AND "events">115;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What are the largest cuts made when the events are less than 21?". [/INST] SELECT MAX("cuts_made") FROM "summary" WHERE "events"<21;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_25" real, "events" real, "cuts_made" real );. Question: "What is the lowest Top-25 that has 3 Events and Wins greater than 0?". [/INST] SELECT MIN("top_25") FROM "summary" WHERE "events"=3 AND "wins">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 "summary" ( "tournament" text, "wins" real, "top_25" real, "events" real, "cuts_made" real );. Question: "What is the Wins of the Top-25 of 1 and 7 Events?". [/INST] SELECT "wins" FROM "summary" WHERE "top_25"=1 AND "events"=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 "summary" ( "tournament" text, "wins" real, "top_25" real, "events" real, "cuts_made" real );. Question: "What is the lowest Top-25 with Wins less than 0?". [/INST] SELECT MIN("top_25") FROM "summary" WHERE "wins"<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 "summary" ( "tournament" text, "wins" real, "top_25" real, "events" real, "cuts_made" real );. Question: "What is the total number of cuts made of tournaments with 2 Events?". [/INST] SELECT COUNT("cuts_made") FROM "summary" WHERE "events"=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 "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text );. Question: "Which Bleeding has a Condition of congenital afibrinogenemia?". [/INST] SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='congenital afibrinogenemia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text );. Question: "which Partial thromboplastin time has a Condition of liver failure , early?". [/INST] SELECT "partial_thromboplastin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='liver failure , early';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text );. Question: "Which Condition has an unaffected Partial thromboplastin time, Platelet count, and a Prothrombin time?". [/INST] SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='unaffected' AND "platelet_count"='unaffected' AND "prothrombin_time"='unaffected';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text );. Question: "Which Condition has an unaffected Prothrombin time and a Bleeding time, and a Partial thromboplastin time of prolonged?". [/INST] SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "prothrombin_time"='unaffected' AND "bleeding_time"='unaffected' AND "partial_thromboplastin_time"='prolonged';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wins_5" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_s_up" text );. Question: "What margin was in after 1981, and was Roberto De Vicenzo runner-up?". [/INST] SELECT "margin" FROM "wins_5" WHERE "year">1981 AND "runner_s_up"='roberto de vicenzo';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wins_5" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_s_up" text );. Question: "What championship was in 1985?". [/INST] SELECT "championship" FROM "wins_5" WHERE "year"=1985;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_count" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the number of bronze medals when the total medals were 78 and there were less than 12 golds?". [/INST] SELECT SUM("bronze") FROM "medal_count" WHERE "total"=78 AND "gold"<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 "medal_count" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the average number of gold medals when the total was 1335 medals, with more than 469 bronzes and more than 14 silvers?". [/INST] SELECT AVG("gold") FROM "medal_count" WHERE "silver">14 AND "total"=1335 AND "bronze">469;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_count" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the total amount of gold medals when there were more than 20 silvers and there were 135 bronze medals?". [/INST] SELECT COUNT("gold") FROM "medal_count" WHERE "silver">20 AND "bronze"=135;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the average number of bronze medals for total of all nations?". [/INST] SELECT AVG("bronze") FROM "medal_table" WHERE "nation"='total';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the sum of gold medals for a rank of 14?". [/INST] SELECT SUM("gold") FROM "medal_table" WHERE "rank"='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 "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Which rank has 1 silver medal and more than 1 gold medal?". [/INST] SELECT "rank" FROM "medal_table" WHERE "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 "calendar" ( "round" text, "main_date" text, "number_of_fixtures" real, "clubs" text, "new_entries_this_round" text );. Question: "What is the Clubs when there are 4 for the number of fixtures?". [/INST] SELECT "clubs" FROM "calendar" WHERE "number_of_fixtures"=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 "calendar" ( "round" text, "main_date" text, "number_of_fixtures" real, "clubs" text, "new_entries_this_round" text );. Question: "What is the sum of Number of fixtures when the rounds shows quarter-finals?". [/INST] SELECT SUM("number_of_fixtures") FROM "calendar" WHERE "round"='quarter-finals';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "calendar" ( "round" text, "main_date" text, "number_of_fixtures" real, "clubs" text, "new_entries_this_round" text );. Question: "What is the New entries this round when the round is the semi-finals?". [/INST] SELECT "new_entries_this_round" FROM "calendar" WHERE "round"='semi-finals';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "calendar" ( "round" text, "main_date" text, "number_of_fixtures" real, "clubs" text, "new_entries_this_round" text );. Question: "What is the Round when the number of fixtures is more than 2, and the Main date of 7 and 28 november 2007?". [/INST] SELECT "round" FROM "calendar" WHERE "number_of_fixtures">2 AND "main_date"='7 and 28 november 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 "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );. Question: "What is the event average for a top-25 smaller than 0?". [/INST] SELECT AVG("events") FROM "summary" WHERE "top_25"<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 "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );. Question: "What are the highest wins with cuts smaller than 6, events of 4 and a top-5 smaller than 0?". [/INST] SELECT MAX("wins") FROM "summary" WHERE "cuts_made"<6 AND "events"=4 AND "top_5"<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 "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );. Question: "What are the lowest top-5 with a top-25 larger than 4, 29 cuts and a top-10 larger than 18?". [/INST] SELECT MIN("top_5") FROM "summary" WHERE "top_25">4 AND "cuts_made"=29 AND "top_10">18;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );. Question: "What is the lowest for top-25 with events smaller than 42 in a U.S. Open with a top-10 smaller than 5?". [/INST] SELECT MIN("top_25") FROM "summary" WHERE "events"<42 AND "tournament"='u.s. open' AND "top_10"<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 "list_of_united_states_national_ice_hocke" ( "position" text, "jersey_num" real, "name" text, "height_in" real, "weight_lb" text, "birthdate" text, "birthplace" text, "2010_2011_team" text );. Question: "Which birthplace's height in inches was more than 192 when the position was d and the birthday was April 5, 1983?". [/INST] SELECT "birthplace" FROM "list_of_united_states_national_ice_hocke" WHERE "height_in">192 AND "position"='d' AND "birthdate"='april 5, 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 "k" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text );. Question: "What nationality has steve kerr as the player?". [/INST] SELECT "nationality" FROM "k" WHERE "player"='steve kerr';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "k" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text );. Question: "What years in Orlando have the United States as the nationality, with concord hs as the school/club team?". [/INST] SELECT "years_in_orlando" FROM "k" WHERE "nationality"='united states' AND "school_club_team"='concord hs';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "k" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text );. Question: "Which player has montana as the school/club team?". [/INST] SELECT "player" FROM "k" WHERE "school_club_team"='montana';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "k" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text );. Question: "What nationality has jon koncak as the player?". [/INST] SELECT "nationality" FROM "k" WHERE "player"='jon koncak';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "k" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text );. Question: "What years in orlando have the United States as the nationality, and montana as the school/club team?". [/INST] SELECT "years_in_orlando" FROM "k" WHERE "nationality"='united states' AND "school_club_team"='montana';</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.