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 "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "Which Date has a Road Team of new york, and a Result of 79-75?". [/INST] SELECT "date" FROM "nba_finals" WHERE "road_team"='new york' AND "result"='79-75';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text );. Question: "What was the highest assists for game 3?". [/INST] SELECT "high_assists" FROM "playoffs" WHERE "game"=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 "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What country is player ed sneed, who has a to par of +3, from?". [/INST] SELECT "country" FROM "second_round" WHERE "to_par"='+3' AND "player"='ed sneed';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What is the to par of player ed sneed, who has a t5 place?". [/INST] SELECT "to_par" FROM "second_round" WHERE "place"='t5' AND "player"='ed sneed';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Who is the player with a 70-75=145 score?". [/INST] SELECT "player" FROM "second_round" WHERE "score"='70-75=145';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What is the to par of player tom weiskopf, who has a 71-74=145 score?". [/INST] SELECT "to_par" FROM "second_round" WHERE "score"='71-74=145' AND "player"='tom weiskopf';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Who is the player with a t5 place and a 75-70=145 score?". [/INST] SELECT "player" FROM "second_round" WHERE "place"='t5' AND "score"='75-70=145';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What is the country of player ed sneed with a to par of +3?". [/INST] SELECT "country" FROM "second_round" WHERE "to_par"='+3' AND "player"='ed sneed';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_standings" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real );. Question: "What is the Score of the game with a Record of 31–37–9?". [/INST] SELECT "score" FROM "final_standings" WHERE "record"='31–37–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 "final_standings" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real );. Question: "What is the Score of the Pittsburgh Home game on March 3 with 61 Points?". [/INST] SELECT "score" FROM "final_standings" WHERE "home"='pittsburgh' AND "points"=61 AND "date"='march 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 "final_standings" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real );. Question: "What is the Date of the game in Vancouver?". [/INST] SELECT "date" FROM "final_standings" WHERE "home"='vancouver';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results" ( "team" text, "athletes" text, "run_1" text, "run_2" text, "run_3" text, "run_4" text, "final" text );. Question: "Which Run 4 has Athletes of alexandru frimu & costel rădulescu?". [/INST] SELECT "run_4" FROM "results" WHERE "athletes"='alexandru frimu & costel rădulescu';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results" ( "team" text, "athletes" text, "run_1" text, "run_2" text, "run_3" text, "run_4" text, "final" text );. Question: "Which Final has a Team of liechtenstein (lie) liechtenstein i?". [/INST] SELECT "final" FROM "results" WHERE "team"='liechtenstein (lie) liechtenstein i';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results" ( "team" text, "athletes" text, "run_1" text, "run_2" text, "run_3" text, "run_4" text, "final" text );. Question: "Which Run 2 has a Run 1 of 1:30.03?". [/INST] SELECT "run_2" FROM "results" WHERE "run_1"='1:30.03';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results" ( "team" text, "athletes" text, "run_1" text, "run_2" text, "run_3" text, "run_4" text, "final" text );. Question: "Which Run 4 has a Run 3 of 1:26.63?". [/INST] SELECT "run_4" FROM "results" WHERE "run_3"='1:26.63';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results" ( "team" text, "athletes" text, "run_1" text, "run_2" text, "run_3" text, "run_4" text, "final" text );. Question: "Which Run 4 has a Run 1 of 1:25.82?". [/INST] SELECT "run_4" FROM "results" WHERE "run_1"='1:25.82';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results" ( "team" text, "athletes" text, "run_1" text, "run_2" text, "run_3" text, "run_4" text, "final" text );. Question: "Which Final has a Run 2 of 1:27.58?". [/INST] SELECT "final" FROM "results" WHERE "run_2"='1:27.58';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "year" real, "championship" text, "partner" text, "opponents_in_the_final" text, "score" text );. Question: "which opponents in the u.s. championships played after 1945 and had a score of 3–6, 6–4, 2–6, 6–3, 20–18?". [/INST] SELECT "opponents_in_the_final" FROM "doubles" WHERE "championship"='u.s. championships' AND "year">1945 AND "score"='3–6, 6–4, 2–6, 6–3, 20–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 "doubles" ( "year" real, "championship" text, "partner" text, "opponents_in_the_final" text, "score" text );. Question: "what is the most recent year gardnar mulloy played as a partner and score was 12–10, 8–10, 12–10, 6–2?". [/INST] SELECT MAX("year") FROM "doubles" WHERE "partner"='gardnar mulloy' AND "score"='12–10, 8–10, 12–10, 6–2';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "country" text, "builder" text, "location" text, "ship" text, "class_type" text );. Question: "What Ship was Built by Cammell Laird?". [/INST] SELECT "ship" FROM "references" WHERE "builder"='cammell laird';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "country" text, "builder" text, "location" text, "ship" text, "class_type" text );. Question: "What Country is the John S. McCain Ship from?". [/INST] SELECT "country" FROM "references" WHERE "ship"='john s. mccain';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "country" text, "builder" text, "location" text, "ship" text, "class_type" text );. Question: "What is the Cargo Ship located at Birkenhead?". [/INST] SELECT "ship" FROM "references" WHERE "class_type"='cargo ship' AND "location"='birkenhead';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "territories" ( "state" text, "membership" real, "population" real, "pct_lds" text, "total_congregations" real );. Question: "What is the highest Population, when % LDS is 0.54%, and when Total Congregations is greater than 2?". [/INST] SELECT MAX("population") FROM "territories" WHERE "pct_lds"='0.54%' AND "total_congregations">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 "territories" ( "state" text, "membership" real, "population" real, "pct_lds" text, "total_congregations" real );. Question: "What is the total number of Total Congregations, when % LDS is 0.54%, and when Population is greater than 105,275?". [/INST] SELECT COUNT("total_congregations") FROM "territories" WHERE "pct_lds"='0.54%' AND "population">'105,275';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "territories" ( "state" text, "membership" real, "population" real, "pct_lds" text, "total_congregations" real );. Question: "What is the highest Population, when State is Puerto Rico, and when Total Congregations is greater than 41?". [/INST] SELECT MAX("population") FROM "territories" WHERE "state"='puerto rico' AND "total_congregations">41;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "territories" ( "state" text, "membership" real, "population" real, "pct_lds" text, "total_congregations" real );. Question: "What is Population, when Total Congregations is less than 4, and when % LDS is 0.54%?". [/INST] SELECT "population" FROM "territories" WHERE "total_congregations"<4 AND "pct_lds"='0.54%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "characters_and_cast" ( "actor_in_london_2002" text, "actor_in_new_york_2006" text, "actor_in_moscow_2007" text, "voyage" text, "shipwreck" text );. Question: "Who was the actor in Moscow who did the part done by John Carlisle in London in 2002?". [/INST] SELECT "actor_in_moscow_2007" FROM "characters_and_cast" WHERE "actor_in_london_2002"='john carlisle';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "characters_and_cast" ( "actor_in_london_2002" text, "actor_in_new_york_2006" text, "actor_in_moscow_2007" text, "voyage" text, "shipwreck" text );. Question: "Who was the actor in London in 2002 with the shipwreck of Leonty Ibayev?". [/INST] SELECT "actor_in_london_2002" FROM "characters_and_cast" WHERE "shipwreck"='leonty ibayev';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "characters_and_cast" ( "actor_in_london_2002" text, "actor_in_new_york_2006" text, "actor_in_moscow_2007" text, "voyage" text, "shipwreck" text );. Question: "Who was the Actor in the New York production in 2006 for the row with Ramilya Iskander performing in Moscow in 2007?". [/INST] SELECT "actor_in_new_york_2006" FROM "characters_and_cast" WHERE "actor_in_moscow_2007"='ramilya iskander';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "characters_and_cast" ( "actor_in_london_2002" text, "actor_in_new_york_2006" text, "actor_in_moscow_2007" text, "voyage" text, "shipwreck" text );. Question: "Who was the 2007 actor from Moscow for the voyage of Varenka Bakunin?". [/INST] SELECT "actor_in_moscow_2007" FROM "characters_and_cast" WHERE "voyage"='varenka bakunin';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "characters_and_cast" ( "actor_in_london_2002" text, "actor_in_new_york_2006" text, "actor_in_moscow_2007" text, "voyage" text, "shipwreck" text );. Question: "Who was the 2007 actor from Moscow for the shipwreck of Leonty Ibayev?". [/INST] SELECT "actor_in_moscow_2007" FROM "characters_and_cast" WHERE "shipwreck"='leonty ibayev';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "gold_division" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "nickname" text );. Question: "Which institution is private/catholic?". [/INST] SELECT "institution" FROM "gold_division" WHERE "affiliation"='private/catholic';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "gold_division" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "nickname" text );. Question: "What is the average enrollment of the Redbirds' school?". [/INST] SELECT AVG("enrollment") FROM "gold_division" WHERE "nickname"='redbirds';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "gold_division" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "nickname" text );. Question: "What is Southern Illinois University Edwardsville's affiliation?". [/INST] SELECT "affiliation" FROM "gold_division" WHERE "institution"='southern illinois university edwardsville';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text );. Question: "With a 0-2 series, what is the high points?". [/INST] SELECT "high_points" FROM "playoffs" WHERE "series"='0-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 "early_old_swedish" ( "masculine_a_stems" text, "masculine_u_stems" text, "feminine_stems" text, "neuter_a_stems" text, "masculine_an_stems" text, "feminine_n_stems" text );. Question: "What is the an-stem for the word which has an ö-stems of siangar and an u-stem ending of syni?". [/INST] SELECT "masculine_an_stems" FROM "early_old_swedish" WHERE "feminine_stems"='siangar' AND "masculine_u_stems"='syni';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "early_old_swedish" ( "masculine_a_stems" text, "masculine_u_stems" text, "feminine_stems" text, "neuter_a_stems" text, "masculine_an_stems" text, "feminine_n_stems" text );. Question: "What ending does siangu get for ön?". [/INST] SELECT "feminine_n_stems" FROM "early_old_swedish" WHERE "feminine_stems"='siangu';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "early_old_swedish" ( "masculine_a_stems" text, "masculine_u_stems" text, "feminine_stems" text, "neuter_a_stems" text, "masculine_an_stems" text, "feminine_n_stems" text );. Question: "What is the u form of the word with a neuter form of skip and a masculine a-ending of fisker?". [/INST] SELECT "masculine_u_stems" FROM "early_old_swedish" WHERE "neuter_a_stems"='skip' AND "masculine_a_stems"='fisker';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "early_old_swedish" ( "masculine_a_stems" text, "masculine_u_stems" text, "feminine_stems" text, "neuter_a_stems" text, "masculine_an_stems" text, "feminine_n_stems" text );. Question: "What is the masculine an form for the word with a feminine ö ending of siangar and a masculine u ending of sunar?". [/INST] SELECT "masculine_an_stems" FROM "early_old_swedish" WHERE "feminine_stems"='siangar' AND "masculine_u_stems"='sunar';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "early_old_swedish" ( "masculine_a_stems" text, "masculine_u_stems" text, "feminine_stems" text, "neuter_a_stems" text, "masculine_an_stems" text, "feminine_n_stems" text );. Question: "What is the masculine u form for the old Swedish word with a neuter a form of skipum?". [/INST] SELECT "masculine_u_stems" FROM "early_old_swedish" WHERE "neuter_a_stems"='skipum';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pga_tour_wins_5" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_up" text );. Question: "A tournament on which date has a margin of victory of 2 strokes and a par of −16?". [/INST] SELECT "date" FROM "pga_tour_wins_5" WHERE "margin_of_victory"='2 strokes' AND "to_par"='−16';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pga_tour_wins_5" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_up" text );. Question: "Who was the runner-up in the tournament that has a margin of victory of 2 strokes, and a To par of −16?". [/INST] SELECT "runner_up" FROM "pga_tour_wins_5" WHERE "margin_of_victory"='2 strokes' AND "to_par"='−16';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pga_tour_wins_5" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_up" text );. Question: "What was the to par of the tournament that had Ken Duke as a runner-up?". [/INST] SELECT "to_par" FROM "pga_tour_wins_5" WHERE "runner_up"='ken duke';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pga_tour_wins_5" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_up" text );. Question: "What was the margin of victory when Brandt Snedeker was runner-up?". [/INST] SELECT "margin_of_victory" FROM "pga_tour_wins_5" WHERE "runner_up"='brandt snedeker';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pga_tour_wins_5" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_up" text );. Question: "What is the date that has a winning score of 67-70-68-67=272?". [/INST] SELECT "date" FROM "pga_tour_wins_5" WHERE "winning_score"='67-70-68-67=272';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "subdivisions" ( "year" real, "b_tzow" real, "schwante" real, "vehlefanz" real, "neu_vehlefanz" real, "marwitz" real, "b_renklau" real, "eichst_dt" real );. Question: "What year has a Schwante smaller than 2.043, an Eichstädt smaller than 848, and a Bärenklau smaller than 1.262?". [/INST] SELECT COUNT("year") FROM "subdivisions" WHERE "schwante"<2.043 AND "eichst_dt"<848 AND "b_renklau"<1.262;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "february" real, "opponent" text, "score" text, "decision" text, "record" text );. Question: "What's the score for a game over 56 with a record of 29-24-7 with a lundqvist decision?". [/INST] SELECT "score" FROM "schedule_and_results" WHERE "game">56 AND "decision"='lundqvist' AND "record"='29-24-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 "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text );. Question: "What is the High rebounds with a Series with 4–2?". [/INST] SELECT "high_rebounds" FROM "playoffs" WHERE "series"='4–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 "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text );. Question: "What is the High rebounds with a High assists with bryant (7), and a Team of @ utah?". [/INST] SELECT "high_rebounds" FROM "playoffs" WHERE "high_assists"='bryant (7)' AND "team"='@ utah';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text );. Question: "What is the Series with a High rebounds with gasol (10)?". [/INST] SELECT "series" FROM "playoffs" WHERE "high_rebounds"='gasol (10)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senate_composition_before_the_elections" ( "d_49" text, "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text, "d_40" text );. Question: "Tell me the D 49 and D 46 of r 13". [/INST] SELECT "d_49" FROM "senate_composition_before_the_elections" WHERE "d_46"='r 13';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senate_composition_before_the_elections" ( "d_49" text, "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text, "d_40" text );. Question: "I want the D 40 with D 44 of d 15". [/INST] SELECT "d_40" FROM "senate_composition_before_the_elections" WHERE "d_44"='d 15';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senate_composition_before_the_elections" ( "d_49" text, "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text, "d_40" text );. Question: "I want the D 45 and D 42 of r 22". [/INST] SELECT "d_45" FROM "senate_composition_before_the_elections" WHERE "d_42"='r 22';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senate_composition_before_the_elections" ( "d_49" text, "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text, "d_40" text );. Question: "I want the D 46 for D 45 of r 5". [/INST] SELECT "d_46" FROM "senate_composition_before_the_elections" WHERE "d_45"='r 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 "senate_composition_before_the_elections" ( "d_49" text, "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text, "d_40" text );. Question: "I want the D 47 for D 41 being r 21". [/INST] SELECT "d_47" FROM "senate_composition_before_the_elections" WHERE "d_41"='r 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 "roster" ( "name" text, "position" text, "height" text, "weight" real, "year" text, "home_town" text, "high_school" text );. Question: "What is the Name with a Year of junior, and a High School with wheatley?". [/INST] SELECT "name" FROM "roster" WHERE "year"='junior' AND "high_school"='wheatley';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "roster" ( "name" text, "position" text, "height" text, "weight" real, "year" text, "home_town" text, "high_school" text );. Question: "What is the Home Town with a Name with rob cunningham?". [/INST] SELECT "home_town" FROM "roster" WHERE "name"='rob cunningham';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "roster" ( "name" text, "position" text, "height" text, "weight" real, "year" text, "home_town" text, "high_school" text );. Question: "What is the Position with a Year with freshman, and a Weight larger than 210?". [/INST] SELECT "position" FROM "roster" WHERE "year"='freshman' AND "weight">210;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "roster" ( "name" text, "position" text, "height" text, "weight" real, "year" text, "home_town" text, "high_school" text );. Question: "What is the Home Town with a Year of freshman, and a Height with 6–6?". [/INST] SELECT "home_town" FROM "roster" WHERE "year"='freshman' AND "height"='6–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 "roster" ( "name" text, "position" text, "height" text, "weight" real, "year" text, "home_town" text, "high_school" text );. Question: "What is the Name with a Year with freshman, and a Home Town with los angeles, ca, and a Height of 6–4?". [/INST] SELECT "name" FROM "roster" WHERE "year"='freshman' AND "home_town"='los angeles, ca' AND "height"='6–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 "international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the Result for Goal 3?". [/INST] SELECT "result" FROM "international_goals" WHERE "goal"=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 "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real );. Question: "What is the average ties when the team is montreal victorias and the games played is more than 8?". [/INST] SELECT AVG("ties") FROM "final_standing" WHERE "team"='montreal victorias' AND "games_played">8;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real );. Question: "what is the average losses when the wins is 3?". [/INST] SELECT AVG("losses") FROM "final_standing" WHERE "wins"=3;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real );. Question: "what is the highest goals against when the wins is less than 1?". [/INST] SELECT MAX("goals_against") FROM "final_standing" WHERE "wins"<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 "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real );. Question: "what is the total number of goals for when the ties is more than 0, the goals against is more than 35 and the wins is less than 2?". [/INST] SELECT COUNT("goals_for") FROM "final_standing" WHERE "ties">0 AND "goals_against">35 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 "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real );. Question: "what is the sum of the losses when the goals against is less than 34 and the games played is less than 8?". [/INST] SELECT SUM("losses") FROM "final_standing" WHERE "goals_against"<34 AND "games_played"<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 "list_of_computer_system_emulators" ( "name" text, "actual_version" text, "system" text, "platform" text, "license" text );. Question: "What is the name of the platform used for various computers and consoles?". [/INST] SELECT "platform" FROM "list_of_computer_system_emulators" WHERE "system"='various computers and consoles';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_computer_system_emulators" ( "name" text, "actual_version" text, "system" text, "platform" text, "license" text );. Question: "Which system is named ELKJS?". [/INST] SELECT "system" FROM "list_of_computer_system_emulators" WHERE "name"='elkjs';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_computer_system_emulators" ( "name" text, "actual_version" text, "system" text, "platform" text, "license" text );. Question: "What is the system called that is named ELKJS?". [/INST] SELECT "system" FROM "list_of_computer_system_emulators" WHERE "name"='elkjs';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fleet" ( "diagram_s" text, "quantity" real, "numbers" text, "completed" real, "length" text );. Question: "What are the numbers for the item completed earlier than 1904?". [/INST] SELECT "numbers" FROM "fleet" WHERE "completed"<1904;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fleet" ( "diagram_s" text, "quantity" real, "numbers" text, "completed" real, "length" text );. Question: "For the item with more than 10, and numbers of 53-58, 61-72, what is the lowest completed?". [/INST] SELECT MIN("completed") FROM "fleet" WHERE "quantity">10 AND "numbers"='53-58, 61-72';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fleet" ( "diagram_s" text, "quantity" real, "numbers" text, "completed" real, "length" text );. Question: "What is the quantity of the item with the numbers of 29-36?". [/INST] SELECT AVG("quantity") FROM "fleet" WHERE "numbers"='29-36';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );. Question: "How many reg GP for rick vaive in round 1?". [/INST] SELECT SUM("reg_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='rick vaive' AND "rd_num">1;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );. Question: "How many reg GP for rick vaive in round 1?". [/INST] SELECT SUM("reg_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='rick vaive' AND "rd_num"<1;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );. Question: "How many rounds exist for picks under 5?". [/INST] SELECT COUNT("rd_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "pick_num"<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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text );. Question: "Who did the Jets play in their post-week 15 game?". [/INST] SELECT "opponent" FROM "schedule" WHERE "week">15;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text );. Question: "Who did the Jets play in their pre-week 9 game at the Robert F. Kennedy memorial stadium?". [/INST] SELECT "opponent" FROM "schedule" WHERE "week"<9 AND "game_site"='robert f. kennedy memorial stadium';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What was the date of the game when the Canadiens had a record of 31–19–9?". [/INST] SELECT "date" FROM "february" WHERE "record"='31–19–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 "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "Who was the visiting team at the game when the Canadiens had a record of 30–19–9?". [/INST] SELECT "visitor" FROM "february" WHERE "record"='30–19–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 "nfl_draft" ( "pick" real, "round" text, "player" text, "position" text, "school" text );. Question: "What school did bo jackson attend?". [/INST] SELECT "school" FROM "nfl_draft" WHERE "player"='bo jackson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "pick" real, "round" text, "player" text, "position" text, "school" text );. Question: "What was the highest guard picked?". [/INST] SELECT MAX("pick") FROM "nfl_draft" WHERE "position"='guard';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "pick" real, "round" text, "player" text, "position" text, "school" text );. Question: "What is the highest pick for a player from auburn?". [/INST] SELECT MAX("pick") FROM "nfl_draft" WHERE "school"='auburn';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 low code for glen harvie with a population greater than 2,774?". [/INST] SELECT MIN("code") FROM "main_places" WHERE "population">'2,774' AND "place"='glen harvie';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "a" ( "rider" text, "horse" text, "faults" text, "round_1_points" text, "total" real );. Question: "Tell me the rider with 18.185 points round 1". [/INST] SELECT "rider" FROM "a" WHERE "round_1_points"='18.185';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "a" ( "rider" text, "horse" text, "faults" text, "round_1_points" text, "total" real );. Question: "Tell me the most total for horse of carlson". [/INST] SELECT MAX("total") FROM "a" WHERE "horse"='carlson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "a" ( "rider" text, "horse" text, "faults" text, "round_1_points" text, "total" real );. Question: "Tell me the rider that had round 1 points of 7.465 and total more than 16.615". [/INST] SELECT "rider" FROM "a" WHERE "total">16.615 AND "round_1_points"='7.465';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 were the assists on April 8 in game less than 78?". [/INST] SELECT "high_assists" FROM "game_log" WHERE "game"<78 AND "date"='april 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 "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 score of game 82?". [/INST] SELECT "score" FROM "game_log" WHERE "game"=82;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is Essendon's home team that has an away crowd size larger than 19,491?". [/INST] SELECT "away_team" FROM "round_11" WHERE "crowd">'19,491' AND "home_team"='essendon';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When did an away team score 15.7 (97)?". [/INST] SELECT "date" FROM "round_11" WHERE "away_team_score"='15.7 (97)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When was there a game at Kardinia Park?". [/INST] SELECT "date" FROM "round_11" WHERE "venue"='kardinia park';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "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: "who had the high points when chris bosh (13) had the high rebounds?". [/INST] SELECT "high_points" FROM "game_log" WHERE "high_rebounds"='chris bosh (13)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "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 is the score when the team is @ cleveland?". [/INST] SELECT "score" FROM "game_log" WHERE "team"='@ cleveland';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "who had the high rebounds when the game number was 6?". [/INST] SELECT "high_rebounds" FROM "game_log" WHERE "game"=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 "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What was the score when the NY Islanders was the visiting team?". [/INST] SELECT "score" FROM "february" WHERE "visitor"='ny islanders';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What was the record when the visiting team was Ottawa?". [/INST] SELECT "record" FROM "february" WHERE "visitor"='ottawa';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "boundary_review" ( "party" text, "constituency_seats" real, "regional_seats" real, "total_seats" real, "seat_change" text );. Question: "What is the full number of Total Seats with a constituency seat number bigger than 0 with the Liberal Democrat party, and the Regional seat number is smaller than 6?". [/INST] SELECT SUM("total_seats") FROM "boundary_review" WHERE "constituency_seats">0 AND "party"='liberal democrat' AND "regional_seats"<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 "boundary_review" ( "party" text, "constituency_seats" real, "regional_seats" real, "total_seats" real, "seat_change" text );. Question: "How many regional seats were there with the SNP party and where the number of total seats was bigger than 46?". [/INST] SELECT COUNT("regional_seats") FROM "boundary_review" WHERE "party"='snp' AND "total_seats">46;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "Which team was the visitor on January 10?". [/INST] SELECT "visitor" FROM "regular_season" WHERE "date"='january 10';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What was the date that the decision was Niittymaki, the attendance larger than 19,207, and the record 28–17–5?". [/INST] SELECT "date" FROM "regular_season" WHERE "decision"='niittymaki' AND "attendance">'19,207' AND "record"='28–17–5';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.