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 "women_s_doubles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text );. Question: "What's the 2013 result for the grand slam tournaments?". [/INST] SELECT "2013" FROM "women_s_doubles_performance_timeline" WHERE "tournament"='grand slam tournaments';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text );. Question: "What's the 2010 result when 2006 is a?". [/INST] SELECT "2010" FROM "women_s_doubles_performance_timeline" WHERE "2006"='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 "women_s_doubles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text );. Question: "What tournament has a 2003 of a?". [/INST] SELECT "tournament" FROM "women_s_doubles_performance_timeline" WHERE "2003"='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 "women_s_doubles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text );. Question: "What's the 2007 result when 2003 is a?". [/INST] SELECT "2007" FROM "women_s_doubles_performance_timeline" WHERE "2003"='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 "women_s_doubles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text );. Question: "What's the 2011 result when 2010 is 2r and 2013 is w?". [/INST] SELECT "2011" FROM "women_s_doubles_performance_timeline" WHERE "2010"='2r' AND "2013"='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 "women_s_doubles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text );. Question: "What's the 2005 result when 2001 is sf?". [/INST] SELECT "2005" FROM "women_s_doubles_performance_timeline" WHERE "2001"='sf';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_division" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real );. Question: "When the wolverhampton wanderers were the opponent, with a crowd larger than 41,415, what was the result?". [/INST] SELECT "result" FROM "first_division" WHERE "attendance">'41,415' AND "opponent"='wolverhampton wanderers';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "title_holders_from_1992_until_1999" ( "year" real, "binibining_pilipinas_universe" text, "binibining_pilipinas_world" text, "binibining_pilipinas_international" text, "miss_maja_pilipinas" text, "first_runner_up" text, "second_runner_up" text );. Question: "Which Binibining Pilipinas-World has a Second runner-up of sonia santiago?". [/INST] SELECT "binibining_pilipinas_world" FROM "title_holders_from_1992_until_1999" WHERE "second_runner_up"='sonia santiago';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "title_holders_from_1992_until_1999" ( "year" real, "binibining_pilipinas_universe" text, "binibining_pilipinas_world" text, "binibining_pilipinas_international" text, "miss_maja_pilipinas" text, "first_runner_up" text, "second_runner_up" text );. Question: "Which Year has a Binibining Pilipinas International of alma concepcion?". [/INST] SELECT "year" FROM "title_holders_from_1992_until_1999" WHERE "binibining_pilipinas_international"='alma concepcion';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "title_holders_from_1992_until_1999" ( "year" real, "binibining_pilipinas_universe" text, "binibining_pilipinas_world" text, "binibining_pilipinas_international" text, "miss_maja_pilipinas" text, "first_runner_up" text, "second_runner_up" text );. Question: "Which Binibining Pilipinas International has a Binibining Pilipinas-World of sharmaine gutierrez?". [/INST] SELECT "binibining_pilipinas_international" FROM "title_holders_from_1992_until_1999" WHERE "binibining_pilipinas_world"='sharmaine gutierrez';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "date" text, "opponent" text, "site" text, "result" text, "attendance" text );. Question: "Which Result has a Site of rice stadium • houston, tx?". [/INST] SELECT "result" FROM "schedule" WHERE "site"='rice stadium • houston, tx';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "date" text, "opponent" text, "site" text, "result" text, "attendance" text );. Question: "What Opponent has a Site of razorback stadium • fayetteville, ar, and a Date of october 7, 1967?". [/INST] SELECT "opponent" FROM "schedule" WHERE "site"='razorback stadium • fayetteville, ar' AND "date"='october 7, 1967';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "date" text, "opponent" text, "site" text, "result" text, "attendance" text );. Question: "What Opponent has a Site of war memorial stadium • little rock, ar, and a Result of l6–7?". [/INST] SELECT "opponent" FROM "schedule" WHERE "site"='war memorial stadium • little rock, ar' AND "result"='l6–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 "schedule" ( "date" text, "opponent" text, "site" text, "result" text, "attendance" text );. Question: "What Result has a Date of october 14, 1967?". [/INST] SELECT "result" FROM "schedule" WHERE "date"='october 14, 1967';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "date" text, "opponent" text, "site" text, "result" text, "attendance" text );. Question: "What Attendance has a Result of l12–21?". [/INST] SELECT "attendance" FROM "schedule" WHERE "result"='l12–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 "schedule" ( "date" text, "opponent" text, "site" text, "result" text, "attendance" text );. Question: "What Site has Attendance of 53,000, and a Date of october 21, 1967?". [/INST] SELECT "site" FROM "schedule" WHERE "attendance"='53,000' AND "date"='october 21, 1967';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "recording_and_release_details" ( "region" text, "date" text, "label" text, "format_s" text, "catalog" text );. Question: "What region is the toshiba emi label with a cd format?". [/INST] SELECT "region" FROM "recording_and_release_details" WHERE "format_s"='cd' AND "label"='toshiba emi';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "recording_and_release_details" ( "region" text, "date" text, "label" text, "format_s" text, "catalog" text );. Question: "What is the dage of catalog asw 28033?". [/INST] SELECT "date" FROM "recording_and_release_details" WHERE "catalog"='asw 28033';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "recording_and_release_details" ( "region" text, "date" text, "label" text, "format_s" text, "catalog" text );. Question: "What is the date with a Japan region?". [/INST] SELECT "date" FROM "recording_and_release_details" WHERE "region"='japan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "recording_and_release_details" ( "region" text, "date" text, "label" text, "format_s" text, "catalog" text );. Question: "What region has a lp format on 4 August 2008?". [/INST] SELECT "region" FROM "recording_and_release_details" WHERE "format_s"='lp' AND "date"='4 august 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 "recording_and_release_details" ( "region" text, "date" text, "label" text, "format_s" text, "catalog" text );. Question: "What region is on 11 August 2008?". [/INST] SELECT "region" FROM "recording_and_release_details" WHERE "date"='11 august 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 "odi_centuries" ( "score" text, "pos" real, "inn" real, "venue" text, "h_a_n" text );. Question: "What is the position with a neutral H/A/N and more than 2 innings?". [/INST] SELECT AVG("pos") FROM "odi_centuries" WHERE "h_a_n"='neutral' AND "inn">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 "odi_centuries" ( "score" text, "pos" real, "inn" real, "venue" text, "h_a_n" text );. Question: "Which venue has a neutral H/A/N, lower than position 3 and a score of 141?". [/INST] SELECT "venue" FROM "odi_centuries" WHERE "h_a_n"='neutral' AND "pos"<3 AND "score"='141';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "odi_centuries" ( "score" text, "pos" real, "inn" real, "venue" text, "h_a_n" text );. Question: "Which H/A/N has a score of 105*♠?". [/INST] SELECT "h_a_n" FROM "odi_centuries" WHERE "score"='105*♠';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "relegation_table" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" text );. Question: "What is the average goals scored when less than 34 were played and there were more than 2 draws?". [/INST] SELECT AVG("goals_scored") FROM "relegation_table" WHERE "played"<34 AND "draw">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 "relegation_table" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" text );. Question: "What is the average goals scored of the team who scored 44 points and placed higher than 5?". [/INST] SELECT AVG("goals_scored") FROM "relegation_table" WHERE "points"='44' AND "place">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 "relegation_table" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" text );. Question: "What is the lowest place of the team who conceded 36 goals and lost more than 6 times?". [/INST] SELECT MIN("place") FROM "relegation_table" WHERE "goals_conceded"=36 AND "lost">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 "quarterbacks_sorted_by_win_percentage" ( "quarterback" text, "games" real, "teams" text, "wins" real, "losses" real, "percent" real );. Question: "what is games when the losses is more than 1, percent is 0.5 and wins is 2?". [/INST] SELECT "games" FROM "quarterbacks_sorted_by_win_percentage" WHERE "losses">1 AND "percent"=0.5 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 "quarterbacks_sorted_by_win_percentage" ( "quarterback" text, "games" real, "teams" text, "wins" real, "losses" real, "percent" real );. Question: "what is the average wins when percent is more than 0.4 and teams is chargers~?". [/INST] SELECT AVG("wins") FROM "quarterbacks_sorted_by_win_percentage" WHERE "percent">0.4 AND "teams"='chargers~';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "quarterbacks_sorted_by_win_percentage" ( "quarterback" text, "games" real, "teams" text, "wins" real, "losses" real, "percent" real );. Question: "What is the average wins when teams is lions and the percent is more than 0?". [/INST] SELECT AVG("wins") FROM "quarterbacks_sorted_by_win_percentage" WHERE "teams"='lions' AND "percent">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 "quarterbacks_sorted_by_win_percentage" ( "quarterback" text, "games" real, "teams" text, "wins" real, "losses" real, "percent" real );. Question: "what is the highest wins when the losses is less than 1, team is rams and the games is more than 8?". [/INST] SELECT MAX("wins") FROM "quarterbacks_sorted_by_win_percentage" WHERE "losses"<1 AND "teams"='rams' AND "games">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 "singles_6_3_titles_3_runner_ups" ( "outcome" text, "date" text, "category" text, "surface" text, "opponent" text, "score" text );. Question: "What category is Matthew Barton?". [/INST] SELECT "category" FROM "singles_6_3_titles_3_runner_ups" WHERE "opponent"='matthew barton';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ships_in_class" ( "bow_number" text, "ship_name" text, "launched" text, "commissioned" text, "service" text );. Question: "When did the ship commissioned in November 1975 with a bow number of ps-18 launch?". [/INST] SELECT "launched" FROM "ships_in_class" WHERE "commissioned"='november 1975' AND "bow_number"='ps-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 "ships_in_class" ( "bow_number" text, "ship_name" text, "launched" text, "commissioned" text, "service" text );. Question: "When did the ship that was commissioned July 1948 with a bow number of ps-31 launch?". [/INST] SELECT "launched" FROM "ships_in_class" WHERE "commissioned"='july 1948' AND "bow_number"='ps-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 "ships_in_class" ( "bow_number" text, "ship_name" text, "launched" text, "commissioned" text, "service" text );. Question: "When was the ship BRP Miguel Malvar commissioned?". [/INST] SELECT "commissioned" FROM "ships_in_class" WHERE "ship_name"='brp miguel malvar';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parishes" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text );. Question: "What parish has the lowest area and a population of more than 1,776 and a 579 of 5,008 census ranking?". [/INST] SELECT MIN("area_km_2") FROM "parishes" WHERE "population">'1,776' AND "census_ranking"='579 of 5,008';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parishes" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text );. Question: "What is the population of northfield parish that has an area less than 342.4?". [/INST] SELECT SUM("population") FROM "parishes" WHERE "area_km_2"<342.4 AND "official_name"='northfield';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parishes" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text );. Question: "What is the population of the parish with a census ranking of 579 of 5,008?". [/INST] SELECT SUM("population") FROM "parishes" WHERE "census_ranking"='579 of 5,008';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parishes" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text );. Question: "What is the population of the parish that has an area of 304.06?". [/INST] SELECT SUM("population") FROM "parishes" WHERE "area_km_2"=304.06;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );. Question: "What is the earliest year the world junior championships has 1500 m notes?". [/INST] SELECT MIN("year") FROM "achievements" WHERE "notes"='1500 m' AND "competition"='world junior championships';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );. Question: "Which venue had 5000 m notes in 2009 with a 1st position?". [/INST] SELECT "venue" FROM "achievements" WHERE "notes"='5000 m' AND "year"=2009 AND "position"='1st';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );. Question: "What is the average year with 7th (heats) position?". [/INST] SELECT AVG("year") FROM "achievements" WHERE "position"='7th (heats)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );. Question: "What Method was used with opponent Kenneth Allen?". [/INST] SELECT "method" FROM "mixed_martial_arts_record" WHERE "opponent"='kenneth allen';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_dmfas_programme_managers_and_chi" ( "number" real, "name" text, "dates_in_office" text, "country_of_origin" text, "remarks" text );. Question: "What is the remark for Norway?". [/INST] SELECT "remarks" FROM "list_of_dmfas_programme_managers_and_chi" WHERE "country_of_origin"='norway';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );. Question: "How many people attended the game against the Kaizer Chiefs?". [/INST] SELECT SUM("attendance") FROM "pre_season_and_friendlies" WHERE "opponents"='kaizer chiefs';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );. Question: "What is the result F-A with an H/A of h and more than 31,727 attending?". [/INST] SELECT "result_f_a" FROM "pre_season_and_friendlies" WHERE "h_a"='h' AND "attendance">'31,727';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );. Question: "What was the result F-A with more than 11,372 attending and an H/A of n?". [/INST] SELECT "result_f_a" FROM "pre_season_and_friendlies" WHERE "attendance">'11,372' AND "h_a"='n';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );. Question: "What is Player, when College/Junior/Club Team (League) is "Val d'Or Foreurs ( QMJHL )"?". [/INST] SELECT "player" FROM "2011_draft_picks" WHERE "college_junior_club_team_league"='val d''or foreurs ( qmjhl )';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );. Question: "What is the Position, when Player is "Magnus Nygren"?". [/INST] SELECT "position" FROM "2011_draft_picks" WHERE "player"='magnus nygren';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );. Question: "What is Position, when Round is less than 5, when Nationality is "Canada", and when College/Junior/Club Team (League) is "Saint John Sea Dogs ( QMJHL )"?". [/INST] SELECT "position" FROM "2011_draft_picks" WHERE "round"<5 AND "nationality"='canada' AND "college_junior_club_team_league"='saint john sea dogs ( qmjhl )';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );. Question: "What is College/Junior/Club Team (League), when Position is "Defence", when Nationality is "Canada", when Round is less than 5, and when Player is "Josiah Didier"?". [/INST] SELECT "college_junior_club_team_league" FROM "2011_draft_picks" WHERE "position"='defence' AND "nationality"='canada' AND "round"<5 AND "player"='josiah didier';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "count the the average Total of ian baker-finch?". [/INST] SELECT AVG("total") FROM "missed_the_cut" WHERE "player"='ian baker-finch';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "Which Country has a Year(s) won of 1963?". [/INST] SELECT "country" FROM "missed_the_cut" WHERE "year_s_won"='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 "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );. Question: "What is Greg Norman's score?". [/INST] SELECT "score" FROM "final_leaderboard" WHERE "player"='greg norman';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );. Question: "What place is John Cook in?". [/INST] SELECT "place" FROM "final_leaderboard" WHERE "player"='john cook';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );. Question: "What is the money for the player with a score of 68-69-67-73=277?". [/INST] SELECT "money" FROM "final_leaderboard" WHERE "score"='68-69-67-73=277';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );. Question: "What is the to par of the player with a 72-71-65-69=277 score?". [/INST] SELECT "to_par" FROM "final_round" WHERE "score"='72-71-65-69=277';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );. Question: "What is the country of the player with playoff money and a score of 66-67-70-67=270?". [/INST] SELECT "country" FROM "final_round" WHERE "money"='playoff' AND "score"='66-67-70-67=270';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );. Question: "How much money does the player with a score of 76-70-65-68=279 have?". [/INST] SELECT "money" FROM "final_round" WHERE "score"='76-70-65-68=279';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );. Question: "What is the score of player darren clarke, who has $112,500?". [/INST] SELECT "score" FROM "final_round" WHERE "money"='112,500' AND "player"='darren clarke';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );. Question: "What is the to par of player notah begay iii from the United States?". [/INST] SELECT "to_par" FROM "final_round" WHERE "country"='united states' AND "player"='notah begay iii';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semi_final_2_31_january_2009" ( "draw" real, "artist" text, "song" text, "results" text, "place" text );. Question: "What song has a draw more than 4 in 1st place?". [/INST] SELECT "song" FROM "semi_final_2_31_january_2009" WHERE "draw">4 AND "place"='1st';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semi_final_2_31_january_2009" ( "draw" real, "artist" text, "song" text, "results" text, "place" text );. Question: "What is the artist for the song "alt har en mening nå"?". [/INST] SELECT "artist" FROM "semi_final_2_31_january_2009" WHERE "song"='\"alt har en mening nå\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semi_final_2_31_january_2009" ( "draw" real, "artist" text, "song" text, "results" text, "place" text );. Question: "What is the result of the song "ride"?". [/INST] SELECT "results" FROM "semi_final_2_31_january_2009" WHERE "song"='\"ride\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "m_ps_1832_1885_macclesfield_parliamentar" ( "election" real, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text );. Question: "Which 1st member has Thomas Grimsditch as a 2nd member?". [/INST] SELECT "1st_member" FROM "m_ps_1832_1885_macclesfield_parliamentar" WHERE "2nd_member"='thomas grimsditch';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "m_ps_1832_1885_macclesfield_parliamentar" ( "election" real, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text );. Question: "What is all the total election that has conservative as 2nd party?". [/INST] SELECT SUM("election") FROM "m_ps_1832_1885_macclesfield_parliamentar" WHERE "2nd_party"='conservative';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "m_ps_1832_1885_macclesfield_parliamentar" ( "election" real, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text );. Question: "Which 1st party has John Brocklehurst as 1st member, Edward Christopher Egerton 2nd memeber, and election smaller than 1880?". [/INST] SELECT "1st_party" FROM "m_ps_1832_1885_macclesfield_parliamentar" WHERE "election"<1880 AND "1st_member"='john brocklehurst' AND "2nd_member"='edward christopher egerton';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "m_ps_1832_1885_macclesfield_parliamentar" ( "election" real, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text );. Question: "Which 1st party has 2nd party conservative, election smaller than 1852, and Thomas Grimsditch as 2nd member?". [/INST] SELECT "1st_party" FROM "m_ps_1832_1885_macclesfield_parliamentar" WHERE "2nd_party"='conservative' AND "election"<1852 AND "2nd_member"='thomas grimsditch';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_squad" ( "name" text, "pos" text, "height" text, "weight" text, "2012_club" text );. Question: "Name the Weight of ádám steinmetz category:articles with hcards?". [/INST] SELECT "weight" FROM "current_squad" WHERE "name"='ádám steinmetz category:articles with hcards';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_squad" ( "name" text, "pos" text, "height" text, "weight" text, "2012_club" text );. Question: "Name the Weight which has a 2012 club of pro recco, and a Name of tamás kásás category:articles with hcards?". [/INST] SELECT "weight" FROM "current_squad" WHERE "2012_club"='pro recco' AND "name"='tamás kásás category:articles with hcards';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_squad" ( "name" text, "pos" text, "height" text, "weight" text, "2012_club" text );. Question: "Name the Weight which has a Name of balázs hárai category:articles with hcards?". [/INST] SELECT "weight" FROM "current_squad" WHERE "name"='balázs hárai category:articles with hcards';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_squad" ( "name" text, "pos" text, "height" text, "weight" text, "2012_club" text );. Question: "Name the 012 club which has of norbert hosnyánszky category:articles with hcards?". [/INST] SELECT "2012_club" FROM "current_squad" WHERE "name"='norbert hosnyánszky category:articles with hcards';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2005" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );. Question: "What is the lowest Against, when Venue is "Twickenham , London", when Status is "Six Nations", and when Opposing Teams is "France"?". [/INST] SELECT MIN("against") FROM "2005" WHERE "venue"='twickenham , london' AND "status"='six nations' AND "opposing_teams"='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 "2005" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );. Question: "What is the total number of Against, when Date is "27/02/2005"?". [/INST] SELECT COUNT("against") FROM "2005" WHERE "date"='27/02/2005';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2005" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );. Question: "What is the highest Against, when Date is "27/02/2005"?". [/INST] SELECT MAX("against") FROM "2005" WHERE "date"='27/02/2005';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2005" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );. Question: "What is Status, when Opposing Teams is "Italy"?". [/INST] SELECT "status" FROM "2005" WHERE "opposing_teams"='italy';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "huchra_et_al_1982_members_of_the_dorado_" ( "name" text, "type" text, "r_a_j2000" text, "dec_j2000" text, "redshift_km_s" text, "apparent_magnitude" real );. Question: "Which Name has Apparent Magnitude smaller than 11.4, and R.A. (J2000) of 04h17m35.8s?". [/INST] SELECT "name" FROM "huchra_et_al_1982_members_of_the_dorado_" WHERE "apparent_magnitude"<11.4 AND "r_a_j2000"='04h17m35.8s';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "huchra_et_al_1982_members_of_the_dorado_" ( "name" text, "type" text, "r_a_j2000" text, "dec_j2000" text, "redshift_km_s" text, "apparent_magnitude" real );. Question: "Which R.A. (J2000) has a Name of ngc 1543?". [/INST] SELECT "r_a_j2000" FROM "huchra_et_al_1982_members_of_the_dorado_" WHERE "name"='ngc 1543';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "huchra_et_al_1982_members_of_the_dorado_" ( "name" text, "type" text, "r_a_j2000" text, "dec_j2000" text, "redshift_km_s" text, "apparent_magnitude" real );. Question: "Which Dec. (J2000) has a Redshift (km/ s) of 1331 ± 3?". [/INST] SELECT "dec_j2000" FROM "huchra_et_al_1982_members_of_the_dorado_" WHERE "redshift_km_s"='1331 ± 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 "huchra_et_al_1982_members_of_the_dorado_" ( "name" text, "type" text, "r_a_j2000" text, "dec_j2000" text, "redshift_km_s" text, "apparent_magnitude" real );. Question: "Which R.A. (J2000) has a Name of ngc 1515?". [/INST] SELECT "r_a_j2000" FROM "huchra_et_al_1982_members_of_the_dorado_" WHERE "name"='ngc 1515';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "huchra_et_al_1982_members_of_the_dorado_" ( "name" text, "type" text, "r_a_j2000" text, "dec_j2000" text, "redshift_km_s" text, "apparent_magnitude" real );. Question: "Which R.A. (J2000) has Apparent Magnitude of 11.7, and Dec. (J2000) of °07′06″?". [/INST] SELECT "r_a_j2000" FROM "huchra_et_al_1982_members_of_the_dorado_" WHERE "apparent_magnitude"=11.7 AND "dec_j2000"='°07′06″';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "Which player had a To par of +11?". [/INST] SELECT "player" FROM "made_the_cut" WHERE "to_par"='+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 "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "Who won in 1997 with a finish of t48?". [/INST] SELECT "player" FROM "made_the_cut" WHERE "finish"='t48' AND "year_s_won"='1997';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What player from the United States had a total of 297?". [/INST] SELECT "player" FROM "made_the_cut" WHERE "country"='united states' AND "total"=297;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "Which country won in 1988?". [/INST] SELECT "country" FROM "made_the_cut" WHERE "year_s_won"='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 "deputy_ministers" ( "minister" text, "party" text, "governments" text, "term_start" text, "term_end" text );. Question: "Which party had a term start of 5 august 1999?". [/INST] SELECT "party" FROM "deputy_ministers" WHERE "term_start"='5 august 1999';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "deputy_ministers" ( "minister" text, "party" text, "governments" text, "term_start" text, "term_end" text );. Question: "What term end had minister Danny Ayalon?". [/INST] SELECT "term_end" FROM "deputy_ministers" WHERE "minister"='danny ayalon';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "deputy_ministers" ( "minister" text, "party" text, "governments" text, "term_start" text, "term_end" text );. Question: "Which goverment had a party of yisrael beiteinu?". [/INST] SELECT "governments" FROM "deputy_ministers" WHERE "party"='yisrael beiteinu';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "deputy_ministers" ( "minister" text, "party" text, "governments" text, "term_start" text, "term_end" text );. Question: "Who was the minister of the labor party and had 26 goverments?". [/INST] SELECT "minister" FROM "deputy_ministers" WHERE "party"='labor party' AND "governments"='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 "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated" text, "result" text );. Question: "What is the category that came before 2011?". [/INST] SELECT "category" FROM "awards_and_nominations" WHERE "year"<2011;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated" text, "result" text );. Question: "What is the year of the Premios Carlos Gardel 2009 award?". [/INST] SELECT "year" FROM "awards_and_nominations" WHERE "award"='premios carlos gardel 2009';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "delegates" ( "province_community" text, "contestant" text, "height" text, "hometown" text, "geographical_regions" text );. Question: "What is Andrea Suarez Lazaro's height?". [/INST] SELECT "height" FROM "delegates" WHERE "contestant"='andrea suarez lazaro';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "delegates" ( "province_community" text, "contestant" text, "height" text, "hometown" text, "geographical_regions" text );. Question: "What is niurbi encarnación ynoa's height?". [/INST] SELECT "height" FROM "delegates" WHERE "contestant"='niurbi encarnación ynoa';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "delegates" ( "province_community" text, "contestant" text, "height" text, "hometown" text, "geographical_regions" text );. Question: "What is the province for Jamao Afuera?". [/INST] SELECT "province_community" FROM "delegates" WHERE "hometown"='jamao afuera';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "delegates" ( "province_community" text, "contestant" text, "height" text, "hometown" text, "geographical_regions" text );. Question: "What is the hometown for Santiago?". [/INST] SELECT "hometown" FROM "delegates" WHERE "province_community"='santiago';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "delegates" ( "province_community" text, "contestant" text, "height" text, "hometown" text, "geographical_regions" text );. Question: "What is the geographical region for hometown Imbert?". [/INST] SELECT "geographical_regions" FROM "delegates" WHERE "hometown"='imbert';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ships_attacked" ( "date" text, "time" text, "name_of_ship" text, "flag" text, "tonnage" real, "fate" text );. Question: "What is the Name of the Ship attacked on 20February1942?". [/INST] SELECT "name_of_ship" FROM "ships_attacked" WHERE "date"='20february1942';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ships_attacked" ( "date" text, "time" text, "name_of_ship" text, "flag" text, "tonnage" real, "fate" text );. Question: "Which ship was sunk at 01:00?". [/INST] SELECT "name_of_ship" FROM "ships_attacked" WHERE "fate"='sunk at' AND "time"='01: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 "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What is the to par for the 68-72-73=213 score?". [/INST] SELECT "to_par" FROM "third_round" WHERE "score"='68-72-73=213';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What is the to par for the 69-70-72=211 score?". [/INST] SELECT "to_par" FROM "third_round" WHERE "score"='69-70-72=211';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.