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 "ships_attacked" ( "date" text, "name_of_ship" text, "flag" text, "tonnage" real, "fate" text );. Question: "What is the average tonnage of the ship named proletarij?". [/INST] SELECT AVG("tonnage") FROM "ships_attacked" WHERE "name_of_ship"='proletarij';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 area in square kilometers of Studholm?". [/INST] SELECT COUNT("area_km_2") FROM "parishes" WHERE "official_name"='studholm';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "For what week was the attendance 40,429?". [/INST] SELECT SUM("week") FROM "schedule" WHERE "attendance"='40,429';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "The Detroit Lions were played against what week?". [/INST] SELECT "week" FROM "schedule" WHERE "opponent"='detroit lions';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "On September 10, 1989 how many people attended the game?". [/INST] SELECT "attendance" FROM "schedule" WHERE "date"='september 10, 1989';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "polling" ( "poll_source" text, "dates_administered" text, "arlen_specter" text, "pat_toomey" text, "tom_ridge" text, "peg_luksik" text );. Question: "Which Tom Ridge* has a Pat Toomey of 60%, and a Poll source of suffolk?". [/INST] SELECT "tom_ridge" FROM "polling" WHERE "pat_toomey"='60%' AND "poll_source"='suffolk';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "polling" ( "poll_source" text, "dates_administered" text, "arlen_specter" text, "pat_toomey" text, "tom_ridge" text, "peg_luksik" text );. Question: "Which Poll source has a Peg Luksik of 9%, and Dates administered of may 12, 2010?". [/INST] SELECT "poll_source" FROM "polling" WHERE "peg_luksik"='9%' AND "dates_administered"='may 12, 2010';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "polling" ( "poll_source" text, "dates_administered" text, "arlen_specter" text, "pat_toomey" text, "tom_ridge" text, "peg_luksik" text );. Question: "Which Poll source has Pat Toomey of 23%?". [/INST] SELECT "poll_source" FROM "polling" WHERE "pat_toomey"='23%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "polling" ( "poll_source" text, "dates_administered" text, "arlen_specter" text, "pat_toomey" text, "tom_ridge" text, "peg_luksik" text );. Question: "Which Dates administered has an Arlen Specter* of ––, and a Peg Luksik of 9%?". [/INST] SELECT "dates_administered" FROM "polling" WHERE "arlen_specter"='––' AND "peg_luksik"='9%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "polling" ( "poll_source" text, "dates_administered" text, "arlen_specter" text, "pat_toomey" text, "tom_ridge" text, "peg_luksik" text );. Question: "Which Tom Ridge* has a Poll source of research 2000, and an Arlen Specter* of 43%?". [/INST] SELECT "tom_ridge" FROM "polling" WHERE "poll_source"='research 2000' AND "arlen_specter"='43%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "polling" ( "poll_source" text, "dates_administered" text, "arlen_specter" text, "pat_toomey" text, "tom_ridge" text, "peg_luksik" text );. Question: "Which Poll source has an Arlen Specter* of ––, and a Tom Ridge* of 60%?". [/INST] SELECT "poll_source" FROM "polling" WHERE "arlen_specter"='––' AND "tom_ridge"='60%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How many total silvers does Russia have?". [/INST] SELECT COUNT("silver") FROM "medal_table" WHERE "nation"='russia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the average number of bronze medals of the Philippines, which has more than 0 gold?". [/INST] SELECT AVG("bronze") FROM "medal_table" WHERE "nation"='philippines' AND "gold">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 "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the average number of bronze of the nation with more than 1 gold and 1 silver medal?". [/INST] SELECT AVG("bronze") FROM "medal_table" WHERE "gold">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" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the average total medals of the nation ranked 1 with less than 1 silver?". [/INST] SELECT AVG("total") FROM "medal_table" WHERE "rank"='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" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the lowest number of gold medals the nation with less than 0 silver medals has?". [/INST] SELECT MIN("gold") FROM "medal_table" WHERE "silver"<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 "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What was the Location/Attendance on september 11?". [/INST] SELECT "location_attendance" FROM "regular_season" WHERE "date"='september 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 "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What were the high rebounds on september 11?". [/INST] SELECT "high_rebounds" FROM "regular_season" WHERE "date"='september 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 "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "When did indiana play?". [/INST] SELECT "date" FROM "regular_season" WHERE "opponent"='indiana';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Which Location/Attendance has High rebounds of lennox (7)?". [/INST] SELECT "location_attendance" FROM "regular_season" WHERE "high_rebounds"='lennox (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 "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What team has tony parker (10) as the high assists, kurt thomas (12) as the high rebounds?". [/INST] SELECT "team" FROM "game_log" WHERE "high_assists"='tony parker (10)' AND "high_rebounds"='kurt thomas (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 "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What score has tim duncan (14) as the high rebounds?". [/INST] SELECT "score" FROM "game_log" WHERE "high_rebounds"='tim duncan (14)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the lowest round for an overall pick of 349 with a pick number in the round over 11?". [/INST] SELECT MIN("round") FROM "washington_redskins_draft_history" WHERE "overall"=349 AND "pick">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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "location" text );. Question: "Where was the fight located that lasted 1 round against luiz claudio das dores?". [/INST] SELECT "location" FROM "mixed_martial_arts_record" WHERE "round"='1' AND "opponent"='luiz claudio das dores';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Which date was game 35 on?". [/INST] SELECT "date" FROM "game_log" WHERE "game"=35;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What was the record after game 37?". [/INST] SELECT "record" FROM "game_log" WHERE "game"=37;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_titles_11" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );. Question: "What is the score of the tournament with olivier delaître as the opponent in the final?". [/INST] SELECT "score" FROM "singles_titles_11" WHERE "opponent_in_the_final"='olivier delaître';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_titles_11" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );. Question: "What is the date of the tournament with olivier delaître as the opponent in the final?". [/INST] SELECT "date" FROM "singles_titles_11" WHERE "opponent_in_the_final"='olivier delaître';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_titles_11" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );. Question: "What is the surface of the tournament with cédric pioline as the opponent in the final?". [/INST] SELECT "surface" FROM "singles_titles_11" WHERE "opponent_in_the_final"='cédric pioline';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sudamericano_femenino_record" ( "year" text, "result" text, "matches" text, "wins" text, "draws" text, "losses" text );. Question: "What was the result for the team with 3 draws?". [/INST] SELECT "result" FROM "sudamericano_femenino_record" WHERE "draws"='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 "sudamericano_femenino_record" ( "year" text, "result" text, "matches" text, "wins" text, "draws" text, "losses" text );. Question: "How many draws were there in 2006?". [/INST] SELECT "draws" FROM "sudamericano_femenino_record" WHERE "year"='2006';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sudamericano_femenino_record" ( "year" text, "result" text, "matches" text, "wins" text, "draws" text, "losses" text );. Question: "What were the matches where the teams finished in the first group stage, in 1998?". [/INST] SELECT "matches" FROM "sudamericano_femenino_record" WHERE "result"='first group stage' AND "year"='1998';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "language_s" text, "director" text, "result" text );. Question: "What year was Zona Sur nominated?". [/INST] SELECT "year_ceremony" FROM "submissions" WHERE "original_title"='zona sur';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "language_s" text, "director" text, "result" text );. Question: "What is Dependencia Sexual's film title that was used in its nomination?". [/INST] SELECT "film_title_used_in_nomination" FROM "submissions" WHERE "original_title"='dependencia sexual';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "language_s" text, "director" text, "result" text );. Question: "What was Zona Sur's result after being considered for nomination?". [/INST] SELECT "result" FROM "submissions" WHERE "original_title"='zona sur';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rushing" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" real );. Question: "How many losses did leon patton have with the longest gain higher than 45?". [/INST] SELECT COUNT("loss") FROM "rushing" WHERE "name"='leon patton' AND "long">45;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );. Question: "what is the average top-5 when the cuts made is more than 34?". [/INST] SELECT AVG("top_5") FROM "summary" WHERE "cuts_made">34;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );. Question: "what is the sum of wins when events is 13 and top-5 is less than 1?". [/INST] SELECT SUM("wins") FROM "summary" WHERE "events"=13 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 "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );. Question: "what is the highest events when the cuts made is less than 34, the top-25 is less than 5 and the top-10 is more than 1?". [/INST] SELECT MAX("events") FROM "summary" WHERE "cuts_made"<34 AND "top_25"<5 AND "top_10">1;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );. Question: "what is the average top-10 when the cuts made is less than 9 and the events is more than 14?". [/INST] SELECT AVG("top_10") FROM "summary" WHERE "cuts_made"<9 AND "events">14;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_recent_world_s_grand_champions" ( "year" text, "2009" text, "2008" text, "2007" text, "2006" text, "2005" text, "2004" text, "2003" text );. Question: "What is the 2008 for 2009 heartland high tech?". [/INST] SELECT "2008" FROM "list_of_recent_world_s_grand_champions" WHERE "2009"='heartland high tech';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_recent_world_s_grand_champions" ( "year" text, "2009" text, "2008" text, "2007" text, "2006" text, "2005" text, "2004" text, "2003" text );. Question: "What is the 2007 with ch callaway's copyright in 2003?". [/INST] SELECT "2007" FROM "list_of_recent_world_s_grand_champions" WHERE "2003"='ch callaway''s copyright';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_recent_world_s_grand_champions" ( "year" text, "2009" text, "2008" text, "2007" text, "2006" text, "2005" text, "2004" text, "2003" text );. Question: "What year is the 2007 big red?". [/INST] SELECT "year" FROM "list_of_recent_world_s_grand_champions" WHERE "2007"='big red';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_recent_world_s_grand_champions" ( "year" text, "2009" text, "2008" text, "2007" text, "2006" text, "2005" text, "2004" text, "2003" text );. Question: "What year is the 2004 shake don't stir?". [/INST] SELECT "year" FROM "list_of_recent_world_s_grand_champions" WHERE "2004"='shake don''t stir';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_recent_world_s_grand_champions" ( "year" text, "2009" text, "2008" text, "2007" text, "2006" text, "2005" text, "2004" text, "2003" text );. Question: "What is the 2007 for the 2003 desert prince?". [/INST] SELECT "2007" FROM "list_of_recent_world_s_grand_champions" WHERE "2003"='desert prince';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_recent_world_s_grand_champions" ( "year" text, "2009" text, "2008" text, "2007" text, "2006" text, "2005" text, "2004" text, "2003" text );. Question: "What is the 2008 for the 2009 ch our charming lady?". [/INST] SELECT "2008" FROM "list_of_recent_world_s_grand_champions" WHERE "2009"='ch our charming lady';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "d_mesons" ( "particle_name" text, "particle_symbol" text, "antiparticle_symbol" text, "quark_content" text, "rest_mass_me_v_c_2" text, "j_p_c" text, "mean_lifetime_s" text, "commonly_decays_to_5pct_of_decays" text );. Question: "What is the j p c that commonly decays (>5% of decays) d 0 + π 0 or d 0 + γ?". [/INST] SELECT "j_p_c" FROM "d_mesons" WHERE "commonly_decays_to_5pct_of_decays"='d 0 + π 0 or d 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 "d_mesons" ( "particle_name" text, "particle_symbol" text, "antiparticle_symbol" text, "quark_content" text, "rest_mass_me_v_c_2" text, "j_p_c" text, "mean_lifetime_s" text, "commonly_decays_to_5pct_of_decays" text );. Question: "What is the antiparticle symbol with a rest mess (mev/c2) of .47 ± .33?". [/INST] SELECT "antiparticle_symbol" FROM "d_mesons" WHERE "rest_mass_me_v_c_2"='.47 ± .33';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_finals_24_10_14" ( "outcome" text, "date" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );. Question: "What was the surface in 1981?". [/INST] SELECT "surface" FROM "doubles_finals_24_10_14" WHERE "date"=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 "doubles_finals_24_10_14" ( "outcome" text, "date" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );. Question: "What is the outcome on a hard surface, when the score in the final was 4–6, 3–6?". [/INST] SELECT "outcome" FROM "doubles_finals_24_10_14" WHERE "surface"='hard' AND "score_in_the_final"='4–6, 3–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 "goal_scorers" ( "name" text, "championship" real, "fa_cup" real, "league_cup" real, "total" real );. Question: "What is the total championships that the league cup is less than 0?". [/INST] SELECT SUM("championship") FROM "goal_scorers" WHERE "league_cup"<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 "goal_scorers" ( "name" text, "championship" real, "fa_cup" real, "league_cup" real, "total" real );. Question: "What is the total championships of James Henry that has a league cup more than 1?". [/INST] SELECT SUM("championship") FROM "goal_scorers" WHERE "league_cup">1 AND "name"='james henry';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "goal_scorers" ( "name" text, "championship" real, "fa_cup" real, "league_cup" real, "total" real );. Question: "What is the championship of Jem Karacan that has a total of 2 and a league cup more than 0?". [/INST] SELECT "championship" FROM "goal_scorers" WHERE "total"=2 AND "league_cup">0 AND "name"='jem karacan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_summary" ( "season" text, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text );. Question: "In which season did he have 0 Poles and 19th position in the GP2 Series?". [/INST] SELECT "season" FROM "career_summary" WHERE "poles"='0' AND "series"='gp2 series' AND "position"='19th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_summary" ( "season" text, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text );. Question: "What was his position in 2009 with 1 win?". [/INST] SELECT "position" FROM "career_summary" WHERE "wins"='1' AND "season"='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 "career_summary" ( "season" text, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text );. Question: "How many races did he do in the year he had 8 points?". [/INST] SELECT "races" FROM "career_summary" WHERE "points"='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 "career_summary" ( "season" text, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text );. Question: "What were the points in the year when his Wins were 0, his Podiums were 0, and he drove in 4 races?". [/INST] SELECT "points" FROM "career_summary" WHERE "wins"='0' AND "podiums"='0' AND "races"='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 "career_summary" ( "season" text, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text );. Question: "What were the points in the year when his Podiums were 5?". [/INST] SELECT "points" FROM "career_summary" WHERE "podiums"='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 "career_summary" ( "season" text, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text );. Question: "What was the F/Laps when the Wins were 0 and the Position was 4th?". [/INST] SELECT "f_laps" FROM "career_summary" WHERE "wins"='0' AND "position"='4th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "score" text, "result" text, "record" text );. Question: "What was the Result on May 30?". [/INST] SELECT "result" FROM "season_schedule" WHERE "date"='may 30';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "score" text, "result" text, "record" text );. Question: "What was the Result on July 24?". [/INST] SELECT "result" FROM "season_schedule" WHERE "date"='july 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 "season_schedule" ( "date" text, "opponent" text, "score" text, "result" text, "record" text );. Question: "What was the Score of the game with a Record of 0-1?". [/INST] SELECT "score" FROM "season_schedule" WHERE "record"='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 "season_schedule" ( "date" text, "opponent" text, "score" text, "result" text, "record" text );. Question: "What is the Record of the game on June 24?". [/INST] SELECT "record" FROM "season_schedule" WHERE "date"='june 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 "season_schedule" ( "date" text, "opponent" text, "score" text, "result" text, "record" text );. Question: "What is the Date of the game with a Loss and Record of 7-9?". [/INST] SELECT "date" FROM "season_schedule" WHERE "result"='loss' AND "record"='7-9';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "score" text, "result" text, "record" text );. Question: "What is the Record on July 12?". [/INST] SELECT "record" FROM "season_schedule" WHERE "date"='july 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 "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What player has a total of 290 points?". [/INST] SELECT "player" FROM "made_the_cut" WHERE "total"=290;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 is the year that Hale Irwin won with 285 points?". [/INST] SELECT "year_s_won" FROM "made_the_cut" WHERE "total"=285 AND "player"='hale irwin';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_performance_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text );. Question: "Which year has a 2011 of 1r?". [/INST] SELECT "2008" FROM "singles_performance_timeline" WHERE "2011"='1r';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_performance_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text );. Question: "Which tournament has a 2013 of 1r, and a 2012 of 1r?". [/INST] SELECT "tournament" FROM "singles_performance_timeline" WHERE "2013"='1r' AND "2012"='1r';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_performance_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text );. Question: "Which year has a 2003 of lq?". [/INST] SELECT "2009" FROM "singles_performance_timeline" WHERE "2003"='lq';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text, "attendance" text );. Question: "WHAT IS THE WEEK WITH AN ATTENDANCE OF 75,555?". [/INST] SELECT SUM("week") FROM "schedule" WHERE "attendance"='75,555';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text, "attendance" text );. Question: "WHAT IS THE RESULT WHEN THE OPPONENT WAS CHICAGO BEARS?". [/INST] SELECT "result" FROM "schedule" WHERE "opponent"='chicago bears';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text, "attendance" text );. Question: "WHAT IS THE TV TIME WOTH A WEEK BIGGER THAN 15, WITH THE OAKLAND RAIDERS AS OPPONENT?". [/INST] SELECT "tv_time" FROM "schedule" WHERE "week">15 AND "opponent"='oakland raiders';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text, "attendance" text );. Question: "WHAT IS THE TV TIME FOR NOVEMBER 10, 1996?". [/INST] SELECT "tv_time" FROM "schedule" WHERE "date"='november 10, 1996';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_15_8_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text );. Question: "What was the date for the match where Tweedie-Yates' partner was jodi kenoyer?". [/INST] SELECT "date" FROM "doubles_15_8_7" WHERE "partner"='jodi kenoyer';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_15_8_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text );. Question: "Who were the opponents during the final when christina wheeler was partner?". [/INST] SELECT "opponents_in_the_final" FROM "doubles_15_8_7" WHERE "partner"='christina wheeler';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" real, "finish" text );. Question: "What is Country, when Total is less than 290, and when Year(s) Won is 1960?". [/INST] SELECT "country" FROM "made_the_cut" WHERE "total"<290 AND "year_s_won"='1960';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" real, "finish" text );. Question: "What is the total number of Total, when To Par is 12?". [/INST] SELECT COUNT("total") FROM "made_the_cut" WHERE "to_par"=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 "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real, "finish" text );. Question: "What is Player, when Total is 292?". [/INST] SELECT "player" FROM "made_the_cut" WHERE "total"=292;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" real, "finish" text );. Question: "What is Player, when Year(s) Won is 1955?". [/INST] SELECT "player" FROM "made_the_cut" WHERE "year_s_won"='1955';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_08_tournament_recap" ( "date" text, "event" text, "city" text, "oil_pattern" text, "winner_title_num" text, "runner_up" text, "score" text );. Question: "Which Oil Pattern has a Winner (Title #) of mike wolfe (3)?". [/INST] SELECT "oil_pattern" FROM "2007_08_tournament_recap" WHERE "winner_title_num"='mike wolfe (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 "2007_08_tournament_recap" ( "date" text, "event" text, "city" text, "oil_pattern" text, "winner_title_num" text, "runner_up" text, "score" text );. Question: "Which Score has an Event of constructionjobs.com classic?". [/INST] SELECT "score" FROM "2007_08_tournament_recap" WHERE "event"='constructionjobs.com classic';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_08_tournament_recap" ( "date" text, "event" text, "city" text, "oil_pattern" text, "winner_title_num" text, "runner_up" text, "score" text );. Question: "Name the Event which has a Winner (Title #) of parker bohn iii (31)?". [/INST] SELECT "event" FROM "2007_08_tournament_recap" WHERE "winner_title_num"='parker bohn iii (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 "2007_08_tournament_recap" ( "date" text, "event" text, "city" text, "oil_pattern" text, "winner_title_num" text, "runner_up" text, "score" text );. Question: "Name the Date when has robert smith (7)?". [/INST] SELECT "date" FROM "2007_08_tournament_recap" WHERE "winner_title_num"='robert smith (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 "2007_08_tournament_recap" ( "date" text, "event" text, "city" text, "oil_pattern" text, "winner_title_num" text, "runner_up" text, "score" text );. Question: "Name the Event which has a Score of 209-197?". [/INST] SELECT "event" FROM "2007_08_tournament_recap" WHERE "score"='209-197';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_08_tournament_recap" ( "date" text, "event" text, "city" text, "oil_pattern" text, "winner_title_num" text, "runner_up" text, "score" text );. Question: "Name the Date which has a Oil Pattern of chameleon, and a Event of lake county indiana classic?". [/INST] SELECT "date" FROM "2007_08_tournament_recap" WHERE "oil_pattern"='chameleon' AND "event"='lake county indiana classic';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Which Rank has a Nation of south korea, and a Silver larger than 0?". [/INST] SELECT SUM("rank") FROM "medals_table" WHERE "nation"='south korea' AND "silver">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 "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Which Bronze has a Rank of 3, and a Silver larger than 0?". [/INST] SELECT MIN("bronze") FROM "medals_table" WHERE "rank"=3 AND "silver">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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );. Question: "Who was the opponent when there was a TKO method?". [/INST] SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "method"='tko';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 was the round that Sergio Vinagre had a time of 5:00?". [/INST] SELECT MAX("round") FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "opponent"='sergio vinagre';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 round was it when the method was TKO (would not stand up from Butt Scoot)?". [/INST] SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "method"='tko (would not stand up from butt scoot)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text );. Question: "What was the record after the game before Jan 7?". [/INST] SELECT "record" FROM "schedule_and_results" WHERE "january"<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 "broadcast_history_and_ratings" ( "season" real, "season_premiere" text, "season_finale" text, "tv_season" text, "ranking" text, "households_in_millions" text );. Question: "Which TV season has a Season larger than 2, and a Ranking of #5?". [/INST] SELECT "tv_season" FROM "broadcast_history_and_ratings" WHERE "season">2 AND "ranking"='#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 "broadcast_history_and_ratings" ( "season" real, "season_premiere" text, "season_finale" text, "tv_season" text, "ranking" text, "households_in_millions" text );. Question: "Which TV season has a Season smaller than 8, and a Household (in millions) of 15.92 (17.1 rating)?". [/INST] SELECT "tv_season" FROM "broadcast_history_and_ratings" WHERE "season"<8 AND "households_in_millions"='15.92 (17.1 rating)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "broadcast_history_and_ratings" ( "season" real, "season_premiere" text, "season_finale" text, "tv_season" text, "ranking" text, "households_in_millions" text );. Question: "Which TV season has Households (in millions) of 30.503 (34.9 rating)?". [/INST] SELECT "tv_season" FROM "broadcast_history_and_ratings" WHERE "households_in_millions"='30.503 (34.9 rating)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text );. Question: "What is the total number of area listed for cannonvale with a population less than 409?". [/INST] SELECT COUNT("area_km_2") FROM "main_places" WHERE "population"<409 AND "place"='cannonvale';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text );. Question: "What is the lowest code number for the remainder of the municipality that has an area bigger than 15.34 squared kilometers, a population greater than 762 and a language of xhosa spoken?". [/INST] SELECT MIN("code") FROM "main_places" WHERE "population">762 AND "most_spoken_language"='xhosa' AND "area_km_2">15.34 AND "place"='remainder of the municipality';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text );. Question: "What is the total code number for places with a population greater than 87,585?". [/INST] SELECT COUNT("code") FROM "main_places" WHERE "population">'87,585';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text );. Question: "What is the lowest area for cannonvale that speaks afrikaans?". [/INST] SELECT MIN("area_km_2") FROM "main_places" WHERE "most_spoken_language"='afrikaans' AND "place"='cannonvale';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text );. Question: "What is the place that speaks xhosa, has a population less than 87,585, an area smaller than 1.28 squared kilometers, and a code larger than 27504?". [/INST] SELECT "place" FROM "main_places" WHERE "population"<'87,585' AND "area_km_2"<1.28 AND "code">27504 AND "most_spoken_language"='xhosa';</s> |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.