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 "results_and_fixtures" ( "date" text, "venue" text, "opponents" text, "score" text, "competition" text );. Question: "Which Score has Opponents of pkns fc, and a Date of january 8, 2006?". [/INST] SELECT "score" FROM "results_and_fixtures" WHERE "opponents"='pkns fc' AND "date"='january 8, 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 "results_and_fixtures" ( "date" text, "venue" text, "opponents" text, "score" text, "competition" text );. Question: "Which Date has a Competition of pl group b, and Opponents of police, and a Venue of selayang municipal council stadium?". [/INST] SELECT "date" FROM "results_and_fixtures" WHERE "competition"='pl group b' AND "opponents"='police' AND "venue"='selayang municipal council 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 "results_and_fixtures" ( "date" text, "venue" text, "opponents" text, "score" text, "competition" text );. Question: "Which Competition has Opponents of pkns fc, and a Score of 0-0?". [/INST] SELECT "competition" FROM "results_and_fixtures" WHERE "opponents"='pkns fc' AND "score"='0-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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" real );. Question: "How many people attended the game at the miami orange bowl?". [/INST] SELECT SUM("attendance") FROM "schedule" WHERE "game_site"='miami orange bowl';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text, "attendance" real, "record" text );. Question: "What was the attendance at game with a loss of Josh Hall (0–1)?". [/INST] SELECT "attendance" FROM "game_log" WHERE "loss"='josh hall (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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text, "attendance" real, "record" text );. Question: "What was the score of the game that had a loss of Chad Fox (3–3)?". [/INST] SELECT "score" FROM "game_log" WHERE "loss"='chad fox (3–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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "What's the attendance of the game where there was a Loss of Yates (3-2)?". [/INST] SELECT "attendance" FROM "game_log" WHERE "loss"='yates (3-2)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "versions" ( "i_work_version" text, "keynote_version" real, "pages_version" real, "numbers_version" text, "release_date" text );. Question: "What's the latest keynote version of version 2.3 of numbers with pages greater than 4.3?". [/INST] SELECT MAX("keynote_version") FROM "versions" WHERE "numbers_version"='2.3' AND "pages_version">4.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 "versions" ( "i_work_version" text, "keynote_version" real, "pages_version" real, "numbers_version" text, "release_date" text );. Question: "What version of iWork was released on October 22, 2013 with a pages version greater than 2?". [/INST] SELECT "i_work_version" FROM "versions" WHERE "release_date"='october 22, 2013' AND "pages_version">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 "ncaa_tournament" ( "rank" real, "player" text, "year" real, "game" text, "points" real );. Question: "Which Rank is the lowest one that has Points larger than 52, and a Year larger than 1970?". [/INST] SELECT MIN("rank") FROM "ncaa_tournament" WHERE "points">52 AND "year">1970;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "february" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "Which opponent has a game larger than 61, february smaller than 28, and fewer points than 69?". [/INST] SELECT "opponent" FROM "regular_season" WHERE "game">61 AND "february"<28 AND "points"<69;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "How many games have a record of 30–25–9 and more points than 69?". [/INST] SELECT COUNT("game") FROM "regular_season" WHERE "record"='30–25–9' AND "points">69;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "How many february games had a record of 29–24–9?". [/INST] SELECT AVG("february") FROM "regular_season" WHERE "record"='29–24–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 "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What numbered pick was the player from texas?". [/INST] SELECT COUNT("pick_num") FROM "atlanta_falcons_draft_history" WHERE "college"='texas';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "conference_championships" ( "year" text, "overall_record" text, "conference_record" text, "coach" text, "conference" text );. Question: "What is the conference record for the year of 1971?". [/INST] SELECT "conference_record" FROM "conference_championships" WHERE "year"='1971';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_members_of_the_southern_maryland" ( "district" text, "counties_represented" text, "delegate" text, "party" text, "first_elected" real, "committee" text );. Question: "When first elected was 2006, who was the delegate?". [/INST] SELECT "delegate" FROM "current_members_of_the_southern_maryland" WHERE "first_elected"=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 "current_members_of_the_southern_maryland" ( "district" text, "counties_represented" text, "delegate" text, "party" text, "first_elected" real, "committee" text );. Question: "Which was the district that had first elected greater than 2006 and is democratic?". [/INST] SELECT "district" FROM "current_members_of_the_southern_maryland" WHERE "party"='democratic' AND "first_elected">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 "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text );. Question: "Name the score for game more than 6 and before october 28". [/INST] SELECT "score" FROM "schedule_and_results" WHERE "game">6 AND "october"<28;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text );. Question: "Name the least game for october 21". [/INST] SELECT MIN("game") FROM "schedule_and_results" WHERE "october"=21;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text );. Question: "Name the least game for record of 5-1-3". [/INST] SELECT MIN("game") FROM "schedule_and_results" WHERE "record"='5-1-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 "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text );. Question: "Name the most october for game less than 1". [/INST] SELECT MAX("october") FROM "schedule_and_results" WHERE "game"<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 "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text );. Question: "Name the least game for record of 1-0-2". [/INST] SELECT MIN("game") FROM "schedule_and_results" WHERE "record"='1-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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Which Bronze is the highest one that has a Rank larger than 1, and a Nation of dominican republic, and a Total larger than 4?". [/INST] SELECT MAX("bronze") FROM "medal_table" WHERE "rank">1 AND "nation"='dominican republic' AND "total">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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Which Total is the lowest one that has a Rank smaller than 1?". [/INST] SELECT MIN("total") FROM "medal_table" WHERE "rank"<1;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Which Total is the lowest one that has a Rank smaller than 2, and a Silver smaller than 15?". [/INST] SELECT MIN("total") FROM "medal_table" WHERE "rank"<2 AND "silver"<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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Which Silver has a Gold of 2, and a Nation of puerto rico, and a Total smaller than 12?". [/INST] SELECT SUM("silver") FROM "medal_table" WHERE "gold"=2 AND "nation"='puerto rico' AND "total"<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 "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "Which Men's doubles have a Year smaller than 1960, and Men's singles of noel b. radford?". [/INST] SELECT "men_s_doubles" FROM "previous_winners" WHERE "year"<1960 AND "men_s_singles"='noel b. radford';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "official_versions" ( "version" text, "length" text, "album" text, "remixed_by" text, "year" real );. Question: "Album of les mots had what lowest year?". [/INST] SELECT MIN("year") FROM "official_versions" WHERE "album"='les mots';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "landesligas_from_1963_to_2012" ( "record" text, "team" text, "season" text, "league" text, "number" real );. Question: "What team has 2000-01 as the season?". [/INST] SELECT "team" FROM "landesligas_from_1963_to_2012" WHERE "season"='2000-01';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "landesligas_from_1963_to_2012" ( "record" text, "team" text, "season" text, "league" text, "number" real );. Question: "What season has a number less than 90, Mitte as the league and spvgg ruhmannsfelden as the team?". [/INST] SELECT "season" FROM "landesligas_from_1963_to_2012" WHERE "number"<90 AND "league"='mitte' AND "team"='spvgg ruhmannsfelden';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "landesligas_from_1963_to_2012" ( "record" text, "team" text, "season" text, "league" text, "number" real );. Question: "What league has a number less than 122, and least wins as the record?". [/INST] SELECT "league" FROM "landesligas_from_1963_to_2012" WHERE "number"<122 AND "record"='least wins';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "landesligas_from_1963_to_2012" ( "record" text, "team" text, "season" text, "league" text, "number" real );. Question: "What league has most wins as the record?". [/INST] SELECT "league" FROM "landesligas_from_1963_to_2012" WHERE "record"='most wins';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "landesligas_from_1963_to_2012" ( "record" text, "team" text, "season" text, "league" text, "number" real );. Question: "What league has a number less than 1?". [/INST] SELECT "league" FROM "landesligas_from_1963_to_2012" WHERE "number"<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 "composition_of_the_21st_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "nominated_by_the_taoiseach" real, "total" real );. Question: "What is the average nominated of the composition nominated by Taioseach with an Industrial and Commercial panel less than 9, an administrative panel greater than 0, a cultural and educational panel greater than 2, and a total less than 29?". [/INST] SELECT AVG("nominated_by_the_taoiseach") FROM "composition_of_the_21st_seanad" WHERE "industrial_and_commercial_panel"<9 AND "administrative_panel">0 AND "cultural_and_educational_panel">2 AND "total"<29;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "composition_of_the_21st_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "nominated_by_the_taoiseach" real, "total" real );. Question: "What is the average administrative panel of the composition nominated by Taoiseach 0 times with a total less than 4?". [/INST] SELECT AVG("administrative_panel") FROM "composition_of_the_21st_seanad" WHERE "nominated_by_the_taoiseach"=0 AND "total"<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 "composition_of_the_21st_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "nominated_by_the_taoiseach" real, "total" real );. Question: "What is the highest number of nominations by Taoiseach of the composition with an administrative panel greater than 0 and an industrial and commercial panel less than 1?". [/INST] SELECT MAX("nominated_by_the_taoiseach") FROM "composition_of_the_21st_seanad" WHERE "administrative_panel">0 AND "industrial_and_commercial_panel"<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 "composition_of_the_21st_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "nominated_by_the_taoiseach" real, "total" real );. Question: "What is the average agricultural panel of the composition with a labour panel less than 6, more than 0 nominations by Taoiseach, and a total less than 4?". [/INST] SELECT AVG("agricultural_panel") FROM "composition_of_the_21st_seanad" WHERE "labour_panel"<6 AND "nominated_by_the_taoiseach">0 AND "total"<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 "composition_of_the_21st_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "nominated_by_the_taoiseach" real, "total" real );. Question: "What is the total number of agriculatural panels of the composition with more than 3 National Universities of Ireland?". [/INST] SELECT COUNT("agricultural_panel") FROM "composition_of_the_21st_seanad" WHERE "national_university_of_ireland">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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "What was the attendance on September 28?". [/INST] SELECT MAX("attendance") FROM "game_log" WHERE "date"='september 28';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "european_matches" ( "season" text, "competition" text, "round" text, "club" text, "home_result" text, "away_result" text );. Question: "Away result of 1-2 has what season?". [/INST] SELECT "season" FROM "european_matches" WHERE "away_result"='1-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 "european_matches" ( "season" text, "competition" text, "round" text, "club" text, "home_result" text, "away_result" text );. Question: "Round of 2r, and a Home result of 0-0 has what season?". [/INST] SELECT "season" FROM "european_matches" WHERE "round"='2r' AND "home_result"='0-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 "european_matches" ( "season" text, "competition" text, "round" text, "club" text, "home_result" text, "away_result" text );. Question: "Home result of 1–0, and a Away result of 0–1 involves what club?". [/INST] SELECT "club" FROM "european_matches" WHERE "home_result"='1–0' AND "away_result"='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 "european_matches" ( "season" text, "competition" text, "round" text, "club" text, "home_result" text, "away_result" text );. Question: "Round of 1r, and an away result of 7–1 is what season?". [/INST] SELECT "season" FROM "european_matches" WHERE "round"='1r' AND "away_result"='7–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 "european_matches" ( "season" text, "competition" text, "round" text, "club" text, "home_result" text, "away_result" text );. Question: "Away result of 0–3, and a Season of 1969-70 is what competition?". [/INST] SELECT "competition" FROM "european_matches" WHERE "away_result"='0–3' AND "season"='1969-70';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "european_matches" ( "season" text, "competition" text, "round" text, "club" text, "home_result" text, "away_result" text );. Question: "Away result of 1–1, and a Round of 1r, and a Season of 1967-68 involves what club?". [/INST] SELECT "club" FROM "european_matches" WHERE "away_result"='1–1' AND "round"='1r' AND "season"='1967-68';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "original_broadway_production" ( "year" real, "award" text, "category" text, "nominee" text, "result" text );. Question: "what was the nominee of best musical". [/INST] SELECT "nominee" FROM "original_broadway_production" WHERE "category"='best musical';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "original_broadway_production" ( "year" real, "award" text, "category" text, "nominee" text, "result" text );. Question: "what year was michele assaf nominated". [/INST] SELECT "year" FROM "original_broadway_production" WHERE "nominee"='michele assaf';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text );. Question: "What was the highest pick for a player from a school or club team of Arkansas?". [/INST] SELECT MAX("pick") FROM "nfl_draft" WHERE "school_club_team"='arkansas';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How many Golds did Rank 10 get, with a Bronze larger than 2?". [/INST] SELECT COUNT("gold") FROM "medals_table" WHERE "rank"='10' AND "bronze">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 "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What rank is Turkmenistan, who had 0 silver's and Less than 2 golds?". [/INST] SELECT "rank" FROM "medals_table" WHERE "silver"=0 AND "gold"<2 AND "nation"='turkmenistan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What's the biggest Bronze that has less than 0 Silvers?". [/INST] SELECT MAX("bronze") FROM "medals_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 "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the total Gold's less than 0?". [/INST] SELECT COUNT("total") FROM "medals_table" WHERE "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 "schools_with_most_team_titles_in_one_spo" ( "rank" real, "num_of_titles" real, "school" text, "city" text, "sport" text, "first" real, "last" real );. Question: "What city is the School, Highland, in that ranks less than 8 and had its first title before 1980 and its last title later than 1960?". [/INST] SELECT "city" FROM "schools_with_most_team_titles_in_one_spo" WHERE "rank"<8 AND "first"<1980 AND "last">1960 AND "school"='highland';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schools_with_most_team_titles_in_one_spo" ( "rank" real, "num_of_titles" real, "school" text, "city" text, "sport" text, "first" real, "last" real );. Question: "What city is the school that had less than 17 titles in boys basketball with the last title being after 2005?". [/INST] SELECT "city" FROM "schools_with_most_team_titles_in_one_spo" WHERE "num_of_titles"<17 AND "last">2005 AND "sport"='boys basketball';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schools_with_most_team_titles_in_one_spo" ( "rank" real, "num_of_titles" real, "school" text, "city" text, "sport" text, "first" real, "last" real );. Question: "What is the highest rank for the boys swimming team in Albuquerque?". [/INST] SELECT MAX("rank") FROM "schools_with_most_team_titles_in_one_spo" WHERE "sport"='boys swimming' AND "city"='albuquerque';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schools_with_most_team_titles_in_one_spo" ( "rank" real, "num_of_titles" real, "school" text, "city" text, "sport" text, "first" real, "last" real );. Question: "What is the total rank number for Los Alamos' girls cross country?". [/INST] SELECT COUNT("rank") FROM "schools_with_most_team_titles_in_one_spo" WHERE "school"='los alamos' AND "sport"='girls cross country';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "s_no" real, "name_of_janapada" text, "name_of_king" text, "no_of_villages" real, "capital" text );. Question: "What capital has an S.Number under 7, and a Name of janapada of Punia?". [/INST] SELECT "capital" FROM "references" WHERE "s_no"<7 AND "name_of_janapada"='punia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "s_no" real, "name_of_janapada" text, "name_of_king" text, "no_of_villages" real, "capital" text );. Question: "What king has an S. number over 1 and a number of villages of 600?". [/INST] SELECT "name_of_king" FROM "references" WHERE "s_no">1 AND "no_of_villages"=600;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "s_no" real, "name_of_janapada" text, "name_of_king" text, "no_of_villages" real, "capital" text );. Question: "What is the average number of villages with a name of janapada of Punia?". [/INST] SELECT AVG("no_of_villages") FROM "references" WHERE "name_of_janapada"='punia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "s_no" real, "name_of_janapada" text, "name_of_king" text, "no_of_villages" real, "capital" text );. Question: "What is the highest S number with a capital of Shekhsar?". [/INST] SELECT MAX("s_no") FROM "references" WHERE "capital"='shekhsar';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text );. Question: "What is the highest round number for the player who came from team Missouri?". [/INST] SELECT MAX("round") FROM "nfl_draft" WHERE "school_club_team"='missouri';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text );. Question: "What is the total number of rounds that had draft pick 97, duncan mccoll?". [/INST] SELECT COUNT("round") FROM "nfl_draft" WHERE "player"='duncan mccoll' AND "pick"<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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text );. Question: "What opponent uses the method of decision and a 5-3 record?". [/INST] SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "method"='decision' AND "record"='5-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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text );. Question: "What round has the highest Res loss, and a time of 40:00?". [/INST] SELECT MAX("round") FROM "mixed_martial_arts_record" WHERE "res"='loss' AND "time"='40:00';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "playoffs" ( "date" text, "home" text, "score" text, "visitor" text, "record" text );. Question: "Who visited on April 29?". [/INST] SELECT "visitor" FROM "playoffs" WHERE "date"='april 29';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "date" text, "home" text, "score" text, "visitor" text, "record" text );. Question: "When did Montreal visit and have a score of 1-4?". [/INST] SELECT "date" FROM "playoffs" WHERE "visitor"='montreal' AND "score"='1-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 "playoffs" ( "date" text, "home" text, "score" text, "visitor" text, "record" text );. Question: "What was the score on April 25?". [/INST] SELECT "score" FROM "playoffs" WHERE "date"='april 25';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "playoffs" ( "date" text, "home" text, "score" text, "visitor" text, "record" text );. Question: "What was the score on May 3?". [/INST] SELECT "score" FROM "playoffs" WHERE "date"='may 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 "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );. Question: "What is the School/Junior/Club Group (Association) that has a Round bigger than 6, and a Place of winger, and a Player of evgeny afanasiev?". [/INST] SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "round">6 AND "position"='winger' AND "player"='evgeny afanasiev';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );. Question: "What is the School/Junior/Club Group (Class) that has a Nationality of canada, and a Place of goalie?". [/INST] SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "nationality"='canada' AND "position"='goalie';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );. Question: "What is the Nationality for alexandre jacques?". [/INST] SELECT "nationality" FROM "draft_picks" WHERE "player"='alexandre jacques';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the highest Pick that is wide receiver with overall of 29?". [/INST] SELECT MAX("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "position"='wide receiver' AND "overall"=29;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the lowest Round with Overall of 247 and pick less than 41?". [/INST] SELECT MIN("round") FROM "jacksonville_jaguars_draft_history" WHERE "overall"=247 AND "pick_num"<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 "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the Position with a round 3 pick for r. jay soward?". [/INST] SELECT "position" FROM "jacksonville_jaguars_draft_history" WHERE "round"<3 AND "name"='r. jay soward';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the average Round for wide receiver r. jay soward and Overall smaller than 29?". [/INST] SELECT AVG("round") FROM "jacksonville_jaguars_draft_history" WHERE "position"='wide receiver' AND "name"='r. jay soward' AND "overall"<29;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "michigan_79_beloit_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "safeties" real, "points" real );. Question: "Which Points is the lowest one that has Touchdowns smaller than 2, and an Extra points of 7, and a Field goals smaller than 0?". [/INST] SELECT MIN("points") FROM "michigan_79_beloit_0" WHERE "touchdowns"<2 AND "extra_points"=7 AND "field_goals"<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 "michigan_79_beloit_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "safeties" real, "points" real );. Question: "How many Touchdowns have a Player of rolla bigelow, and an Extra points smaller than 0?". [/INST] SELECT SUM("touchdowns") FROM "michigan_79_beloit_0" WHERE "player"='rolla bigelow' AND "extra_points"<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 "list_of_solar_terms" ( "longi_tude" text, "usual_translation" text, "chinese_name" text, "japanese_name" text, "korean_name" text, "vietnamese_name" text, "date" text );. Question: "Which Longi- tude is on jun 6?". [/INST] SELECT "longi_tude" FROM "list_of_solar_terms" WHERE "date"='jun 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 "list_of_solar_terms" ( "longi_tude" text, "usual_translation" text, "chinese_name" text, "japanese_name" text, "korean_name" text, "vietnamese_name" text, "date" text );. Question: "When has a Korean name ² of 청명 (清明) cheongmyeong?". [/INST] SELECT "date" FROM "list_of_solar_terms" WHERE "korean_name"='청명 (清明) cheongmyeong';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_solar_terms" ( "longi_tude" text, "usual_translation" text, "chinese_name" text, "japanese_name" text, "korean_name" text, "vietnamese_name" text, "date" text );. Question: "WHICH Vietnamese name has a Chinese name ¹ of 芒種 (芒种) mángzhòng?". [/INST] SELECT "vietnamese_name" FROM "list_of_solar_terms" WHERE "chinese_name"='芒種 (芒种) mángzhòng';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_solar_terms" ( "longi_tude" text, "usual_translation" text, "chinese_name" text, "japanese_name" text, "korean_name" text, "vietnamese_name" text, "date" text );. Question: "WHICH Usual translation is on jun 21?". [/INST] SELECT "usual_translation" FROM "list_of_solar_terms" WHERE "date"='jun 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 "list_of_solar_terms" ( "longi_tude" text, "usual_translation" text, "chinese_name" text, "japanese_name" text, "korean_name" text, "vietnamese_name" text, "date" text );. Question: "Which Japanese name has a Korean name ² of 경칩 (驚蟄) gyeongchip?". [/INST] SELECT "japanese_name" FROM "list_of_solar_terms" WHERE "korean_name"='경칩 (驚蟄) gyeongchip';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_solar_terms" ( "longi_tude" text, "usual_translation" text, "chinese_name" text, "japanese_name" text, "korean_name" text, "vietnamese_name" text, "date" text );. Question: "WHich Usual translation is on sep 23?". [/INST] SELECT "usual_translation" FROM "list_of_solar_terms" WHERE "date"='sep 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 "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "time_et" text, "result" text, "record" text );. Question: "What is the average Week for the game at three rivers stadium, with a Record of 3–2?". [/INST] SELECT AVG("week") FROM "schedule" WHERE "location"='three rivers stadium' AND "record"='3–2';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "time_et" text, "result" text, "record" text );. Question: "What is the result of the game at three rivers stadium with a Record of 6–3?". [/INST] SELECT "result" FROM "schedule" WHERE "location"='three rivers stadium' AND "record"='6–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 "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "time_et" text, "result" text, "record" text );. Question: "What is the earliest week that shows a record of 8–5?". [/INST] SELECT MIN("week") FROM "schedule" WHERE "record"='8–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, "location" text, "time_et" text, "result" text, "record" text );. Question: "What is the record of the game that has a result of w 45–17?". [/INST] SELECT "record" FROM "schedule" WHERE "result"='w 45–17';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "time_et" text, "result" text, "record" text );. Question: "What week that shows a game record of 0–1?". [/INST] SELECT AVG("week") FROM "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 "total_wins" ( "driver" text, "seasons" text, "entries" real, "wins" real, "percentage" text );. Question: "Which driver has less than 37 wins and at 14.12%?". [/INST] SELECT AVG("entries") FROM "total_wins" WHERE "wins"<37 AND "percentage"='14.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 "total_wins" ( "driver" text, "seasons" text, "entries" real, "wins" real, "percentage" text );. Question: "Which driver has 162 entries?". [/INST] SELECT "driver" FROM "total_wins" WHERE "entries"=162;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "total_wins" ( "driver" text, "seasons" text, "entries" real, "wins" real, "percentage" text );. Question: "Which season did jackie stewart enter with entries less than 215?". [/INST] SELECT "seasons" FROM "total_wins" WHERE "entries"<215 AND "driver"='jackie stewart';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "height_m_ft" text, "fcc_info" text );. Question: "How many ERP W is it that has a Call sign of w273bs?". [/INST] SELECT SUM("erp_w") FROM "translators" WHERE "call_sign"='w273bs';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "height_m_ft" text, "fcc_info" text );. Question: "Which City of license has a Frequency MHz smaller than 100.9, and a ERP W larger than 100?". [/INST] SELECT "city_of_license" FROM "translators" WHERE "frequency_m_hz"<100.9 AND "erp_w">100;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "height_m_ft" text, "fcc_info" text );. Question: "What is the number of Frequency MHz in woodstock, georgia?". [/INST] SELECT SUM("frequency_m_hz") FROM "translators" WHERE "city_of_license"='woodstock, georgia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "height_m_ft" text, "fcc_info" text );. Question: "What is the lowest ERP W of w223bp?". [/INST] SELECT MIN("erp_w") FROM "translators" WHERE "call_sign"='w223bp';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "world_championship_group_c1_slovakia" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real );. Question: "What was the highest points where there were less than 2 drawn and the games were less than 6?". [/INST] SELECT MAX("points") FROM "world_championship_group_c1_slovakia" WHERE "drawn"<2 AND "games"<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 "counties" ( "county" text, "county_seat" text, "license_plate_code" text, "year_founded" text, "population_2008_est" real, "population_percentage" text, "area_sq_mi" real, "area_pct" text );. Question: "What is the license plate code for the country with an area of 784?". [/INST] SELECT "license_plate_code" FROM "counties" WHERE "area_sq_mi"=784;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "counties" ( "county" text, "county_seat" text, "license_plate_code" text, "year_founded" text, "population_2008_est" real, "population_percentage" text, "area_sq_mi" real, "area_pct" text );. Question: "What is the country seat for the license plate code 5c?". [/INST] SELECT "county_seat" FROM "counties" WHERE "license_plate_code"='5c';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "padas_quarters" ( "name" text, "pada_1" text, "pada_2" text, "pada_3" text, "pada_4" text );. Question: "Which Pada 3 has a Pada 1 of टे te?". [/INST] SELECT "pada_3" FROM "padas_quarters" WHERE "pada_1"='टे te';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "padas_quarters" ( "name" text, "pada_1" text, "pada_2" text, "pada_3" text, "pada_4" text );. Question: "which Pada 4 has a Pada 2 of थ tha?". [/INST] SELECT "pada_4" FROM "padas_quarters" WHERE "pada_2"='थ tha';</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.