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 "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What was the total amount of points in 1978 with a Chassis of arrows fa1?". [/INST] SELECT SUM("points") FROM "complete_formula_one_world_championship_" WHERE "year"=1978 AND "chassis"='arrows fa1';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1995_96_season_as_a_three_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text );. Question: "What venue hosted the stan fox stakes?". [/INST] SELECT "venue" FROM "1995_96_season_as_a_three_year_old" WHERE "race"='stan fox stakes';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "series" text );. Question: "When was the game with the loss of Moore (0-1)?". [/INST] SELECT "date" FROM "game_log" WHERE "loss"='moore (0-1)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_totals" ( "season" real, "team" text, "games" real, "minutes" real, "points" real, "rebounds" real, "assists" real, "steals" real, "blocks" real );. Question: "What is the earliest year that Assists were less than 13 and minutes were under 91?". [/INST] SELECT MIN("season") FROM "career_totals" WHERE "assists"<13 AND "minutes"<91;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "passing_rates" ( "exam" text, "2006_first_time" text, "2006_all" text, "2007_first_time" text, "2007_all" text, "2008_first_time" text, "2008_all" text, "2009_first_time" text, "2009_all" text, "2010_first_time" text, "2011_first_time" text, "2012_first_time" text );. Question: "What is the percentage for 2008 First time when in 2006 it was 85%?". [/INST] SELECT "2008_first_time" FROM "passing_rates" WHERE "2006_first_time"='85%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "passing_rates" ( "exam" text, "2006_first_time" text, "2006_all" text, "2007_first_time" text, "2007_all" text, "2008_first_time" text, "2008_all" text, "2009_first_time" text, "2009_all" text, "2010_first_time" text, "2011_first_time" text, "2012_first_time" text );. Question: "What is the percentage for all in 2008 when all in 2007 was 69%?". [/INST] SELECT "2008_all" FROM "passing_rates" WHERE "2007_all"='69%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "passing_rates" ( "exam" text, "2006_first_time" text, "2006_all" text, "2007_first_time" text, "2007_all" text, "2008_first_time" text, "2008_all" text, "2009_first_time" text, "2009_all" text, "2010_first_time" text, "2011_first_time" text, "2012_first_time" text );. Question: "What is the percentage for first time 2011 when the first time in 2009 is 68%?". [/INST] SELECT "2011_first_time" FROM "passing_rates" WHERE "2009_all"='68%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "passing_rates" ( "exam" text, "2006_first_time" text, "2006_all" text, "2007_first_time" text, "2007_all" text, "2008_first_time" text, "2008_all" text, "2009_first_time" text, "2009_all" text, "2010_first_time" text, "2011_first_time" text, "2012_first_time" text );. Question: "What is the percentage for all 2008 when all in 2007 is 69%?". [/INST] SELECT "2008_all" FROM "passing_rates" WHERE "2007_all"='69%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "passing_rates" ( "exam" text, "2006_first_time" text, "2006_all" text, "2007_first_time" text, "2007_all" text, "2008_first_time" text, "2008_all" text, "2009_first_time" text, "2009_all" text, "2010_first_time" text, "2011_first_time" text, "2012_first_time" text );. Question: "What is the percentage for first time in 2012 when it was 82% for all in 2009?". [/INST] SELECT "2012_first_time" FROM "passing_rates" WHERE "2009_all"='82%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "passing_rates" ( "exam" text, "2006_first_time" text, "2006_all" text, "2007_first_time" text, "2007_all" text, "2008_first_time" text, "2008_all" text, "2009_first_time" text, "2009_all" text, "2010_first_time" text, "2011_first_time" text, "2012_first_time" text );. Question: "What is the percentage for all in 2007 when all in 2006 was 65%?". [/INST] SELECT "2007_all" FROM "passing_rates" WHERE "2006_all"='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 "australia_in_west_indies" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text );. Question: "Which venues resulted in a draw?". [/INST] SELECT "venue" FROM "australia_in_west_indies" WHERE "result"='draw';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "australia_in_west_indies" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text );. Question: "What dates had matches at the venue Sabina Park?". [/INST] SELECT "date" FROM "australia_in_west_indies" WHERE "venue"='sabina park';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "australia_in_west_indies" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text );. Question: "What dates contained matches at the venue Bourda?". [/INST] SELECT "date" FROM "australia_in_west_indies" WHERE "venue"='bourda';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "How many cuts did he make in the tournament with 3 top 25s and under 13 events?". [/INST] SELECT MAX("cuts_made") FROM "summary" WHERE "top_25"=3 AND "events"<13;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "How many cuts made in the tournament he played 13 times?". [/INST] SELECT SUM("cuts_made") FROM "summary" WHERE "events">13;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "How many cuts did he make at the PGA championship in 3 events?". [/INST] SELECT MAX("cuts_made") FROM "summary" WHERE "tournament"='pga championship' AND "events">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 "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );. Question: "What is the highest number of points scored by minardi team usa in more than 13 laps?". [/INST] SELECT MAX("points") FROM "race" WHERE "laps">13 AND "team"='minardi team usa';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 is mario domínguez's average Grid?". [/INST] SELECT AVG("grid") FROM "race" WHERE "driver"='mario domínguez';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "Which opponent plays on September 19?". [/INST] SELECT "opponent" FROM "game_log" WHERE "date"='september 19';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text );. Question: "Name the call sign with frequency of 89.5". [/INST] SELECT "call_sign" FROM "translators" WHERE "frequency_m_hz"=89.5;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text );. Question: "Name the sum of frequency will call sign of k259aw". [/INST] SELECT SUM("frequency_m_hz") FROM "translators" WHERE "call_sign"='k259aw';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_configuration" ( "rocket" text, "country" text, "type" text, "launches" real, "successes" real, "failures" real, "partial_failures" real );. Question: "What's the total failures among rockets that had more than 3 successes, type ariane 5 and more than 0 partial failures?". [/INST] SELECT COUNT("failures") FROM "by_configuration" WHERE "successes">3 AND "type"='ariane 5' AND "partial_failures">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 "by_configuration" ( "rocket" text, "country" text, "type" text, "launches" real, "successes" real, "failures" real, "partial_failures" real );. Question: "What is the number of successes for rockets that have more than 3 launches, were based in Russia, are type soyuz and a rocket type of soyuz-u?". [/INST] SELECT COUNT("successes") FROM "by_configuration" WHERE "launches">3 AND "country"='russia' AND "type"='soyuz' AND "rocket"='soyuz-u';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "all_in_the_family_till_death_us_do_part" ( "region_country" text, "local_name" text, "network" text, "dates_aired" text, "starring" text );. Question: "What dates did the episodes air in the United States?". [/INST] SELECT "dates_aired" FROM "all_in_the_family_till_death_us_do_part" WHERE "region_country"='united states';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "all_in_the_family_till_death_us_do_part" ( "region_country" text, "local_name" text, "network" text, "dates_aired" text, "starring" text );. Question: "Who was the star for the Vara network?". [/INST] SELECT "starring" FROM "all_in_the_family_till_death_us_do_part" WHERE "network"='vara';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "all_in_the_family_till_death_us_do_part" ( "region_country" text, "local_name" text, "network" text, "dates_aired" text, "starring" text );. Question: "What is the local name for the episodes that aired in 1981?". [/INST] SELECT "local_name" FROM "all_in_the_family_till_death_us_do_part" WHERE "dates_aired"='1981';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "all_in_the_family_till_death_us_do_part" ( "region_country" text, "local_name" text, "network" text, "dates_aired" text, "starring" text );. Question: "What is the name of the network in the United Kingdom which aired in 1985–1992?". [/INST] SELECT "network" FROM "all_in_the_family_till_death_us_do_part" WHERE "region_country"='united kingdom' AND "dates_aired"='1985–1992';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_overall_appearances" ( "ranking" real, "nationality" text, "name" text, "years" text, "total_appearances_league_only" text );. Question: "How many total appearances (league only) have a name of gavin dykes?". [/INST] SELECT "total_appearances_league_only" FROM "most_overall_appearances" WHERE "name"='gavin dykes';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_overall_appearances" ( "ranking" real, "nationality" text, "name" text, "years" text, "total_appearances_league_only" text );. Question: "What nationality has a ranking less than 7 with tony stenson as the name?". [/INST] SELECT "nationality" FROM "most_overall_appearances" WHERE "ranking"<7 AND "name"='tony stenson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "What is the lowest score that Bob Tway get when he placed t5?". [/INST] SELECT MIN("score") FROM "first_round" WHERE "place"='t5' AND "player"='bob tway';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "What is the record for May 31?". [/INST] SELECT "record" FROM "game_log" WHERE "date"='may 31';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "When the record is 16-20 and attendance is greater than 32,342, what is the score?". [/INST] SELECT "score" FROM "game_log" WHERE "attendance">'32,342' AND "record"='16-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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "Who lost on May 31?". [/INST] SELECT "loss" FROM "game_log" WHERE "date"='may 31';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "For record 25-24, what is the sum of attendance?". [/INST] SELECT COUNT("attendance") FROM "game_log" WHERE "record"='25-24';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "When was the record 27-25?". [/INST] SELECT "date" FROM "game_log" WHERE "record"='27-25';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_winners" ( "season" text, "date" text, "driver" text, "chassis" text, "engine" text, "series" text, "report" text );. Question: "Which engine is responsible for the USAC Championship Car?". [/INST] SELECT "engine" FROM "race_winners" WHERE "series"='usac championship car';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Which team lost 0-3 and 0-5?". [/INST] SELECT "team_1" FROM "first_round" WHERE "2nd_leg"='0-3' AND "1st_leg"='0-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 "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "What was the 2nd leg score between Patronage Sainte-Anne and Asante Kotoko?". [/INST] SELECT "2nd_leg" FROM "first_round" WHERE "team_1"='asante kotoko';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Which teams had an aggregate score of 3-4?". [/INST] SELECT "team_1" FROM "first_round" WHERE "agg"='3-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 "fm_stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "facility_id" real, "erp_power_w" real, "height_m_ft" text, "class" text, "fcc_info" text );. Question: "What is the lowest facility ID that's in Beckley?". [/INST] SELECT MIN("facility_id") FROM "fm_stations" WHERE "city_of_license"='beckley';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fm_stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "facility_id" real, "erp_power_w" real, "height_m_ft" text, "class" text, "fcc_info" text );. Question: "What city has the A Class licence?". [/INST] SELECT "city_of_license" FROM "fm_stations" WHERE "class"='a';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "m2_f1_flights" ( "vehicle_flight_num" text, "date" text, "pilot" text, "velocity_km_h" real, "altitude_m" real );. Question: "on august 16, 1963, what is the velocity?". [/INST] SELECT SUM("velocity_km_h") FROM "m2_f1_flights" WHERE "date"='august 16, 1963';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "game" real, "date" text, "location" text, "time" text, "attendance" real );. Question: "What is the highest game number that had a time of 2:44?". [/INST] SELECT MAX("game") FROM "summary" WHERE "time"='2:44';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performances_by_clubs" ( "nation" text, "winners" real, "runners_up" real, "3rd_place" real, "4th_place" real );. Question: "Name the average 3rd place with winners of 0, 4th place of 0 and nation of pahang fa". [/INST] SELECT AVG("3rd_place") FROM "performances_by_clubs" WHERE "winners"=0 AND "4th_place"=0 AND "nation"='pahang fa';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performances_by_clubs" ( "nation" text, "winners" real, "runners_up" real, "3rd_place" real, "4th_place" real );. Question: "Name the highest 3rd place for nation of perak fa". [/INST] SELECT MAX("3rd_place") FROM "performances_by_clubs" WHERE "nation"='perak fa';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the gold medal count for the country with a total greater than 32 and more than 128 silvers?". [/INST] SELECT AVG("gold") FROM "medal_count" WHERE "total">32 AND "silver">128;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the maximum number of silvers for a country with fewer than 12 golds and a total less than 8?". [/INST] SELECT MAX("silver") FROM "medal_count" WHERE "gold"<12 AND "total"<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 "c" ( "rider" text, "years_active" text, "races" real, "wins" real, "2nd_pl" real, "3rd_pl" real, "titles" real );. Question: "What is the total number of wins for riders with fewer than 56 races and more than 0 titles?". [/INST] SELECT COUNT("wins") FROM "c" WHERE "races"<56 AND "titles">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: "Name the tournament for top-5 more thn 1 and top-25 of 13 with wins of 3". [/INST] SELECT "tournament" FROM "summary" WHERE "top_5">1 AND "top_25"=13 AND "wins"=3;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );. Question: "Name the average cuts for top-25 more than 13 and top-5 less than 11". [/INST] SELECT AVG("cuts_made") FROM "summary" WHERE "top_25">13 AND "top_5"<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: "Name the total number of wins with top-25 of 10 and events less than 26". [/INST] SELECT COUNT("wins") FROM "summary" WHERE "top_25"=10 AND "events"<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 "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );. Question: "Name the sum of top-25 for pga championship and top-5 less than 1". [/INST] SELECT SUM("top_25") FROM "summary" WHERE "tournament"='pga championship' AND "top_5"<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 "appearances_in_tour_de_france_since_1947" ( "year" real, "stage" text, "category" text, "start" text, "finish" text, "leader_at_the_summit" text );. Question: "What stage has a start of saint-girons in 1988?". [/INST] SELECT "stage" FROM "appearances_in_tour_de_france_since_1947" WHERE "start"='saint-girons' AND "year"=1988;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "appearances_in_tour_de_france_since_1947" ( "year" real, "stage" text, "category" text, "start" text, "finish" text, "leader_at_the_summit" text );. Question: "What category was in 1964?". [/INST] SELECT "category" FROM "appearances_in_tour_de_france_since_1947" WHERE "year"=1964;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "volume_issue" text, "issue_date_s" text, "weeks_on_top" text, "song" text, "artist" text );. Question: "Volume:Issue of 5:16 has what song listed?". [/INST] SELECT "song" FROM "see_also" WHERE "volume_issue"='5:16';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "volume_issue" text, "issue_date_s" text, "weeks_on_top" text, "song" text, "artist" text );. Question: "An artist of the Beatles with an issue date(s) of 19 September has what as the listed weeks on top?". [/INST] SELECT "weeks_on_top" FROM "see_also" WHERE "artist"='the beatles' AND "issue_date_s"='19 september';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "volume_issue" text, "issue_date_s" text, "weeks_on_top" text, "song" text, "artist" text );. Question: "With an issue date(s) of 12 September, what is in the column for Weeks on Top?". [/INST] SELECT "weeks_on_top" FROM "see_also" WHERE "issue_date_s"='12 september';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "personnel_and_kits" ( "club" text, "manager" text, "captain" text, "manufacturer" text, "sponsor" text );. Question: "What Premier League Manager has an Adidas sponsor and a Newcastle United club?". [/INST] SELECT "manager" FROM "personnel_and_kits" WHERE "manufacturer"='adidas' AND "club"='newcastle united';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "personnel_and_kits" ( "club" text, "manager" text, "captain" text, "manufacturer" text, "sponsor" text );. Question: "Which Manchester United captain is sponsored by Nike?". [/INST] SELECT "captain" FROM "personnel_and_kits" WHERE "manufacturer"='nike' AND "club"='manchester united';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "personnel_and_kits" ( "club" text, "manager" text, "captain" text, "manufacturer" text, "sponsor" text );. Question: "Who is Dean Whitehead's manager?". [/INST] SELECT "manager" FROM "personnel_and_kits" WHERE "captain"='dean whitehead';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "personnel_and_kits" ( "club" text, "manager" text, "captain" text, "manufacturer" text, "sponsor" text );. Question: "In which club is Ledley King a captain?". [/INST] SELECT "club" FROM "personnel_and_kits" WHERE "captain"='ledley king';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "personnel_and_kits" ( "club" text, "manager" text, "captain" text, "manufacturer" text, "sponsor" text );. Question: "Who is the captain of Middlesbrough?". [/INST] SELECT "captain" FROM "personnel_and_kits" WHERE "club"='middlesbrough';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "television" ( "dish" text, "callsign" text, "network" text, "resolution" text, "city_of_license" text, "official_website" text );. Question: "Name the city of license with resolution of sd 480i and official website of telemundo.com". [/INST] SELECT "city_of_license" FROM "television" WHERE "resolution"='sd 480i' AND "official_website"='telemundo.com';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "television" ( "dish" text, "callsign" text, "network" text, "resolution" text, "city_of_license" text, "official_website" text );. Question: "Name the dish for resolution of sd 480i and network of bvb". [/INST] SELECT "dish" FROM "television" WHERE "resolution"='sd 480i' AND "network"='bvb';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "television" ( "dish" text, "callsign" text, "network" text, "resolution" text, "city_of_license" text, "official_website" text );. Question: "Name the resolution for dish of 5270". [/INST] SELECT "resolution" FROM "television" WHERE "dish"='5270';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "television" ( "dish" text, "callsign" text, "network" text, "resolution" text, "city_of_license" text, "official_website" text );. Question: "Name the official website which has dish of • and callsign of kvtv". [/INST] SELECT "official_website" FROM "television" WHERE "dish"='•' AND "callsign"='kvtv';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "television" ( "dish" text, "callsign" text, "network" text, "resolution" text, "city_of_license" text, "official_website" text );. Question: "Name the resolution for ketftv.com and callsign of kldo-dt2". [/INST] SELECT "resolution" FROM "television" WHERE "official_website"='ketftv.com' AND "callsign"='kldo-dt2';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "television" ( "dish" text, "callsign" text, "network" text, "resolution" text, "city_of_license" text, "official_website" text );. Question: "Name the resolution with dish of 8126". [/INST] SELECT "resolution" FROM "television" WHERE "dish"='8126';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "team" text, "chassis" text, "engine" text, "points" real );. Question: "What are the highest points for the team of marlboro brm with brm p180 as the chassis?". [/INST] SELECT MAX("points") FROM "complete_formula_one_world_championship_" WHERE "team"='marlboro brm' AND "chassis"='brm p180';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "team" text, "chassis" text, "engine" text, "points" real );. Question: "Which chassis has marlboro brm as the team?". [/INST] SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "team"='marlboro brm';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What place did Jimmy Reece start from when he ranked 12?". [/INST] SELECT "start" FROM "indy_500_results" WHERE "rank"='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 "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What place did Jimmy Reece finish in 1957?". [/INST] SELECT "finish" FROM "indy_500_results" WHERE "year"='1957';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2001" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text );. Question: "what is the Sydney that has Adelaide, Gold Coast, Melbourne, and Auckland are all yes?". [/INST] SELECT "sydney" FROM "2001" WHERE "adelaide"='yes' AND "gold_coast"='yes' AND "melbourne"='yes' AND "auckland"='yes';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2001" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text );. Question: "What is The Melbourne with a No- Gold Coast". [/INST] SELECT "melbourne" FROM "2001" WHERE "gold_coast"='no';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1_seat" ( "riding" text, "candidate_s_name" text, "gender" text, "votes" real, "rank" text );. Question: "What is the rank of the candidate with more than 2,211 votes?". [/INST] SELECT "rank" FROM "1_seat" WHERE "votes">'2,211';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "transfer_fee" text );. Question: "What the since year of the player with a transfer fee of £ 75k?". [/INST] SELECT "since" FROM "squad_information" WHERE "transfer_fee"='£ 75k';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "transfer_fee" text );. Question: "What is the since year for the player with more than 3 goals and a transfer fee of £400k?". [/INST] SELECT "since" FROM "squad_information" WHERE "goals">3 AND "transfer_fee"='£400k';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "transfer_fee" text );. Question: "What is the nationality of the player with a transfer fee of £400k?". [/INST] SELECT "nat" FROM "squad_information" WHERE "transfer_fee"='£400k';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "transfer_fee" text );. Question: "What is the average goals Sawyer has?". [/INST] SELECT AVG("goals") FROM "squad_information" WHERE "name"='sawyer';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "apertura_2006_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "What were the goal conceded that had a lost greater than 8 and more than 17 points?". [/INST] SELECT MAX("goals_conceded") FROM "apertura_2006_standings" WHERE "lost">8 AND "points">17;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "apertura_2006_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "For Once Municipal, what were the goals scored that had less than 27 points and greater than place 1?". [/INST] SELECT AVG("goals_scored") FROM "apertura_2006_standings" WHERE "place">1 AND "team"='once municipal' AND "points"<27;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "apertura_2006_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "How many points were in a game that had a lost of 5, greater than place 2, and 27 goals conceded?". [/INST] SELECT COUNT("points") FROM "apertura_2006_standings" WHERE "goals_conceded"=27 AND "lost"=5 AND "place">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 "apertura_2006_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "What is the lowest amount of goals scored that has more than 19 goal conceded and played less than 18?". [/INST] SELECT MIN("goals_scored") FROM "apertura_2006_standings" WHERE "goals_conceded">19 AND "played"<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 "apertura_2006_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "What are the number of goals conceded that has a played greater than 18?". [/INST] SELECT COUNT("goals_conceded") FROM "apertura_2006_standings" WHERE "played">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 "apertura_2006_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "What's the place that Once Municipal has a lost greater than 3?". [/INST] SELECT AVG("place") FROM "apertura_2006_standings" WHERE "team"='once municipal' AND "lost">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 "appearances_in_the_tour_de_france_since_" ( "year" real, "stage" real, "category" text, "start" text, "finish" text, "leader_at_the_summit" text );. Question: "Give the Finish for years after 2007.". [/INST] SELECT "finish" FROM "appearances_in_the_tour_de_france_since_" WHERE "year">2007;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "appearances_in_the_tour_de_france_since_" ( "year" real, "stage" real, "category" text, "start" text, "finish" text, "leader_at_the_summit" text );. Question: "Give the Finish for a Stage that is larger than 15". [/INST] SELECT "finish" FROM "appearances_in_the_tour_de_france_since_" WHERE "stage">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 "appearances_in_the_tour_de_france_since_" ( "year" real, "stage" real, "category" text, "start" text, "finish" text, "leader_at_the_summit" text );. Question: "Name the start of an event in Catagory 2 of the year 1947.". [/INST] SELECT "start" FROM "appearances_in_the_tour_de_france_since_" WHERE "category"='2' AND "year"=1947;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "world_war_i" ( "estimate" real, "name" text, "nat" text, "ship_type" text, "principal_victims" text, "date" text );. Question: "What is the nationality of the ship when the principle victims are civilians?". [/INST] SELECT "nat" FROM "world_war_i" WHERE "principal_victims"='civilians';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "world_war_i" ( "estimate" real, "name" text, "nat" text, "ship_type" text, "principal_victims" text, "date" text );. Question: "what is the name of the battleship with the battle listed on May 13, 1915?". [/INST] SELECT "name" FROM "world_war_i" WHERE "ship_type"='battleship' AND "date"='may 13, 1915';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_singles_performance_timeline" ( "tournament" text, "2000" text, "2001" text, "2002" text, "career_sr" text, "career_win_loss" text );. Question: "In what year 2000 tournment did Angeles Montolio have a career win-loss record of 2-4?". [/INST] SELECT "tournament" FROM "grand_slam_singles_performance_timeline" WHERE "2000"='2-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 "grand_slam_singles_performance_timeline" ( "tournament" text, "2000" text, "2001" text, "2002" text, "career_sr" text, "career_win_loss" text );. Question: "Which career win-loss record has a 1r in 2002, a 2r in 2000 and a 2r in 2001?". [/INST] SELECT "career_win_loss" FROM "grand_slam_singles_performance_timeline" WHERE "2002"='1r' AND "2000"='2r' AND "2001"='2r';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "charting_top_10_singles" ( "title" text, "album" text, "country" text, "peak_position" real, "weeks_on_chart" real );. Question: "What is the title of the single with the peak position of 10 and weeks on chart is less than 19?". [/INST] SELECT "title" FROM "charting_top_10_singles" WHERE "peak_position"=10 AND "weeks_on_chart"<19;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "charting_top_10_singles" ( "title" text, "album" text, "country" text, "peak_position" real, "weeks_on_chart" real );. Question: "what is the weeks on chart for the single from france?". [/INST] SELECT "weeks_on_chart" FROM "charting_top_10_singles" WHERE "country"='france';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "charting_top_10_singles" ( "title" text, "album" text, "country" text, "peak_position" real, "weeks_on_chart" real );. Question: "what is the country with the album best of and weeks on chart is less than 5?". [/INST] SELECT "country" FROM "charting_top_10_singles" WHERE "album"='best of' AND "weeks_on_chart"<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 "charting_top_10_singles" ( "title" text, "album" text, "country" text, "peak_position" real, "weeks_on_chart" real );. Question: "What is the title of the single with the peak position of 10 and from France?". [/INST] SELECT "title" FROM "charting_top_10_singles" WHERE "peak_position"=10 AND "country"='france';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "charting_top_10_singles" ( "title" text, "album" text, "country" text, "peak_position" real, "weeks_on_chart" real );. Question: "what is the most weeks on chart when the peak position is less than 5 and from Sweden?". [/INST] SELECT MAX("weeks_on_chart") FROM "charting_top_10_singles" WHERE "peak_position"<5 AND "country"='sweden';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Name the total number of golds when total is 1 and silver is 1". [/INST] SELECT COUNT("gold") FROM "medal_table" WHERE "total"=1 AND "silver"=1;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Name the total number of ranks when total is less than 1". [/INST] SELECT COUNT("rank") FROM "medal_table" WHERE "total"<1;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_fatal_accidents_involving_compet" ( "rider" text, "date" text, "place" text, "race" text, "event" text, "machine" text );. Question: "Harry l Stephen rides a Norton machine on what date?". [/INST] SELECT "date" FROM "list_of_fatal_accidents_involving_compet" WHERE "machine"='norton' AND "rider"='harry l stephen';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.