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 "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the average gold total for nations ranked 6 with 1 total medal and 1 bronze medal?". [/INST] SELECT AVG("gold") FROM "medal_table" WHERE "total"=1 AND "rank"='6' AND "bronze">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 "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "Who drove the grid 10 car?". [/INST] SELECT "driver" FROM "race" WHERE "grid"=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 "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "Who drive the car that went under 60 laps and spun off?". [/INST] SELECT "driver" FROM "race" WHERE "laps"<60 AND "time_retired"='spun off';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "statistics" ( "year" text, "yards" real, "avg" real, "net_avg" real, "in_20" real );. Question: "What number of Yards has 32 as an In 20?". [/INST] SELECT COUNT("yards") FROM "statistics" WHERE "in_20"=32;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 score on June 12?". [/INST] SELECT "score" FROM "game_log" WHERE "date"='june 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 "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "What is the top attendance for weeks past 2 on october 29, 1961?". [/INST] SELECT MAX("attendance") FROM "season_schedule" WHERE "week">2 AND "date"='october 29, 1961';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "What is the low week from october 15, 1961?". [/INST] SELECT MIN("week") FROM "season_schedule" WHERE "date"='october 15, 1961';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "What is the low attendance rate against buffalo bills?". [/INST] SELECT MIN("attendance") FROM "season_schedule" WHERE "opponent"='buffalo bills';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_assists" text, "location_attendance" text, "record" text );. Question: "What team played on November 28?". [/INST] SELECT "team" FROM "game_log" WHERE "date"='november 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 "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What driver has a Time/Retired of 2:16:38.0?". [/INST] SELECT "driver" FROM "classification" WHERE "time_retired"='2:16:38.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 "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What time/retired for grid 18?". [/INST] SELECT "time_retired" FROM "classification" WHERE "grid"=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 "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the lowest Crowd during the Away Team Score of 10.11 (71)?". [/INST] SELECT MIN("crowd") FROM "round_12" WHERE "away_team_score"='10.11 (71)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the lowest Crowd with a Home Team Score of 9.15 (69)?". [/INST] SELECT MIN("crowd") FROM "round_12" WHERE "home_team_score"='9.15 (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 "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the Venue of the North Melbourne Away Team?". [/INST] SELECT "venue" FROM "round_12" WHERE "away_team"='north melbourne';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "date" text, "team_1" text, "team_2" text, "winner" text, "delta" text, "score" text );. Question: "On what Date is Delta 0:40?". [/INST] SELECT "date" FROM "final" WHERE "delta"='0:40';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "date" text, "team_1" text, "team_2" text, "winner" text, "delta" text, "score" text );. Question: "Who is the Winner on June 2, 2007?". [/INST] SELECT "winner" FROM "final" WHERE "date"='june 2, 2007';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What did the home team of essendon score?". [/INST] SELECT "home_team_score" FROM "round_17" WHERE "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_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "If the away team scored 7.3 (45), what was the home team score?". [/INST] SELECT "home_team_score" FROM "round_17" WHERE "away_team_score"='7.3 (45)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When the venue was lake oval what did the home team score?". [/INST] SELECT "home_team_score" FROM "round_17" WHERE "venue"='lake oval';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What did the away team score when they were playing collingwood?". [/INST] SELECT "away_team_score" FROM "round_17" WHERE "home_team"='collingwood';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When the away team scored 7.11 (53) what venue did they play at?". [/INST] SELECT "venue" FROM "round_17" WHERE "away_team_score"='7.11 (53)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2012_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "What is the position of the player from Fort Lauderdale, Florida?". [/INST] SELECT "position" FROM "2012_team" WHERE "hometown"='fort lauderdale, florida';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2012_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "What is the position of the player from Beaumont, Texas?". [/INST] SELECT "position" FROM "2012_team" WHERE "hometown"='beaumont, 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 "2012_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "What position did Max Redfield play?". [/INST] SELECT "position" FROM "2012_team" WHERE "player"='max redfield';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2012_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "What college did the player from Liberty County High School attend?". [/INST] SELECT "college" FROM "2012_team" WHERE "school"='liberty county high school';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "On the Date of March 13, who was the Home team?". [/INST] SELECT "home" FROM "march" WHERE "date"='march 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 "march" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What is the Decision listed when the Home was Colorado?". [/INST] SELECT "decision" FROM "march" WHERE "home"='colorado';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_review" ( "round" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "What is the date that Ayrton Senna was the drive in Monza?". [/INST] SELECT "date" FROM "season_review" WHERE "winning_driver"='ayrton senna' AND "location"='monza';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_review" ( "round" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "What was the constructor when riccardo patrese was the winning driver?". [/INST] SELECT "winning_constructor" FROM "season_review" WHERE "winning_driver"='riccardo patrese';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_review" ( "round" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "What is the Pole Position for the German Grand Prix". [/INST] SELECT "pole_position" FROM "season_review" WHERE "grand_prix"='german grand prix';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the date of the game between Melbourne and Footscray?". [/INST] SELECT "date" FROM "round_16" WHERE "home_team"='melbourne';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "In the match where footscray was the home team, how much did they score?". [/INST] SELECT "home_team_score" FROM "round_7" WHERE "home_team"='footscray';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "During melbourne's home game, who was the away team?". [/INST] SELECT "away_team" FROM "round_7" WHERE "home_team"='melbourne';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "In the match where north melbourne was the away team, how much did the home team score?". [/INST] SELECT "home_team_score" FROM "round_7" WHERE "away_team"='north melbourne';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "reg_season" text, "playoffs" text, "open_cup" text );. Question: "How many years was there a team that was part of the usisl pro league?". [/INST] SELECT COUNT("year") FROM "year_by_year" WHERE "league"='usisl pro league';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "result" text, "competition" text );. Question: "How many goals were scored on 21 Junio 2008?". [/INST] SELECT COUNT("goal") FROM "international_goals" WHERE "date"='21 junio 2008';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "goal" real, "date" text, "venue" text, "result" text, "competition" text );. Question: "How was the competition in which 6 goals were made?". [/INST] SELECT "competition" FROM "international_goals" WHERE "goal"=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 "international_goals" ( "goal" real, "date" text, "venue" text, "result" text, "competition" text );. Question: "At the venue of panama city, on 11 Febrero 2006, how many goals were scored?". [/INST] SELECT COUNT("goal") FROM "international_goals" WHERE "venue"='panama city' AND "date"='11 febrero 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 "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "what is the time/retired when the laps is 52?". [/INST] SELECT "time_retired" FROM "race" WHERE "laps"=52;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "topscorers_in_order_of_league_goals" ( "player" text, "club" text, "league" real, "play_offs" real, "fa_cup" real, "fa_trophy" real, "total" real );. Question: "What is the mean number of play-offs when the league number was bigger than 18, where the player was John Grant and the total number was bigger than 25?". [/INST] SELECT AVG("play_offs") FROM "topscorers_in_order_of_league_goals" WHERE "league">18 AND "player"='john grant' AND "total">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 "topscorers_in_order_of_league_goals" ( "player" text, "club" text, "league" real, "play_offs" real, "fa_cup" real, "fa_trophy" real, "total" real );. Question: "Which mean total had Tim Sills as a player?". [/INST] SELECT AVG("total") FROM "topscorers_in_order_of_league_goals" WHERE "player"='tim sills';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "topscorers_in_order_of_league_goals" ( "player" text, "club" text, "league" real, "play_offs" real, "fa_cup" real, "fa_trophy" real, "total" real );. Question: "Which of the lowest FA Trophys involved the Forest Green Rovers club when the play-offs number was bigger than 0?". [/INST] SELECT MIN("fa_trophy") FROM "topscorers_in_order_of_league_goals" WHERE "club"='forest green rovers' AND "play_offs">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 "topscorers_in_order_of_league_goals" ( "player" text, "club" text, "league" real, "play_offs" real, "fa_cup" real, "fa_trophy" real, "total" real );. Question: "Which of the lowest leagues had Aldershot town as a club when the play-offs number was less than 0?". [/INST] SELECT MIN("league") FROM "topscorers_in_order_of_league_goals" WHERE "club"='aldershot town' AND "play_offs"<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 "topscorers_in_order_of_league_goals" ( "player" text, "club" text, "league" real, "play_offs" real, "fa_cup" real, "fa_trophy" real, "total" real );. Question: "What mean total had a league number of 18, Richard Logan as a player, and a play-offs number smaller than 1?". [/INST] SELECT AVG("total") FROM "topscorers_in_order_of_league_goals" WHERE "league"=18 AND "player"='richard logan' AND "play_offs"<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 "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What is the grid total for ralf schumacher racing over 53 laps?". [/INST] SELECT SUM("grid") FROM "classification" WHERE "driver"='ralf schumacher' AND "laps">53;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "Who built the car that went 53 laps with a Time/Retired of 1:17:09.672?". [/INST] SELECT "constructor" FROM "classification" WHERE "laps"=53 AND "time_retired"='1:17:09.672';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What is the high lap total for pedro diniz?". [/INST] SELECT MAX("laps") FROM "classification" WHERE "driver"='pedro diniz';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "japan_golf_tour_wins_5" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_up" text );. Question: "Who was the Japan open runner up?". [/INST] SELECT "runner_up" FROM "japan_golf_tour_wins_5" WHERE "tournament"='japan open';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text );. Question: "What is the name of the race where Stirling Moss was the winning driver?". [/INST] SELECT "race_name" FROM "non_championship_race_results" WHERE "winning_driver"='stirling moss';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text );. Question: "What circuit did Innes Ireland win at for the I lombank trophy?". [/INST] SELECT "circuit" FROM "non_championship_race_results" WHERE "winning_driver"='innes ireland' AND "race_name"='i lombank trophy';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "liberal_democrat_targets" ( "rank" real, "constituency" text, "winning_party_2007" text, "swing_to_gain" real, "ld_s_place_2007" text, "result" text );. Question: "what is the constituency when the swing to gain is less than 4.16, the winning party 2007 is snp and ld's place 2007 is 2nd?". [/INST] SELECT "constituency" FROM "liberal_democrat_targets" WHERE "swing_to_gain"<4.16 AND "winning_party_2007"='snp' AND "ld_s_place_2007"='2nd';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "liberal_democrat_targets" ( "rank" real, "constituency" text, "winning_party_2007" text, "swing_to_gain" real, "ld_s_place_2007" text, "result" text );. Question: "how many times is the constituency edinburgh northern and leith?". [/INST] SELECT COUNT("swing_to_gain") FROM "liberal_democrat_targets" WHERE "constituency"='edinburgh northern and leith';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "liberal_democrat_targets" ( "rank" real, "constituency" text, "winning_party_2007" text, "swing_to_gain" real, "ld_s_place_2007" text, "result" text );. Question: "what is the constituency when the rank is less than 5 and the result is con hold?". [/INST] SELECT "constituency" FROM "liberal_democrat_targets" WHERE "rank"<5 AND "result"='con hold';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "liberal_democrat_targets" ( "rank" real, "constituency" text, "winning_party_2007" text, "swing_to_gain" real, "ld_s_place_2007" text, "result" text );. Question: "what is the lowest rank when the constituency is edinburgh northern and leith and the swing to gain is less than 4.16?". [/INST] SELECT MIN("rank") FROM "liberal_democrat_targets" WHERE "constituency"='edinburgh northern and leith' AND "swing_to_gain"<4.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 "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );. Question: "What is the record when the leading scorer is Antawn Jamison (14)?". [/INST] SELECT "record" FROM "january" WHERE "leading_scorer"='antawn jamison (14)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );. Question: "How many people were in attendance on January 4, 2008?". [/INST] SELECT SUM("attendance") FROM "january" WHERE "date"='january 4, 2008';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "recent_results_and_forthcoming_fixtures" ( "date" text, "location" text, "opponent" text, "score" text, "competition" text );. Question: "What is the score at the Addis Ababa location?". [/INST] SELECT "score" FROM "recent_results_and_forthcoming_fixtures" WHERE "location"='addis ababa';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "recent_results_and_forthcoming_fixtures" ( "date" text, "location" text, "opponent" text, "score" text, "competition" text );. Question: "Which competition was held at Addis Ababa?". [/INST] SELECT "competition" FROM "recent_results_and_forthcoming_fixtures" WHERE "location"='addis ababa';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "players_2013_2014" ( "name" text, "date_of_birth" text, "position_s" text, "seasons" text, "matches_goals_league_finals_knvb_cup" text, "previous_club" text );. Question: "What is the date of birth of the goalkeeper from the 1st season?". [/INST] SELECT "date_of_birth" FROM "players_2013_2014" WHERE "position_s"='goalkeeper' AND "seasons"='1st';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "players_2013_2014" ( "name" text, "date_of_birth" text, "position_s" text, "seasons" text, "matches_goals_league_finals_knvb_cup" text, "previous_club" text );. Question: "What previous club was born on October 22, 1993?". [/INST] SELECT "previous_club" FROM "players_2013_2014" WHERE "date_of_birth"='october 22, 1993';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_career" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What was the competition on 7 June 1999?". [/INST] SELECT "competition" FROM "international_career" WHERE "date"='7 june 1999';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_career" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What was the competition on 13 November 2005?". [/INST] SELECT "competition" FROM "international_career" WHERE "date"='13 november 2005';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_career" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "Where was the friendly competition on 7 June 1999 played?". [/INST] SELECT "venue" FROM "international_career" WHERE "competition"='friendly' AND "date"='7 june 1999';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What is the time/retired for brm with a grid of 13?". [/INST] SELECT "time_retired" FROM "race" WHERE "constructor"='brm' AND "grid"=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 "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which Away team has a Crowd larger than 14,000, and a Home team of melbourne?". [/INST] SELECT "away_team" FROM "round_5" WHERE "crowd">'14,000' AND "home_team"='melbourne';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which Home team has a Venue of mcg?". [/INST] SELECT "home_team" FROM "round_5" WHERE "venue"='mcg';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );. Question: "What was the score of the Chiefs November 27, 1994 game?". [/INST] SELECT "result" FROM "schedule" WHERE "date"='november 27, 1994';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );. Question: "What was the score of the Chiefs pre-Week 16 game that 69,362 people attended?". [/INST] SELECT "result" FROM "schedule" WHERE "week"<16 AND "attendance"='69,362';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 );. Question: "What's sawyer hannay's total pick number?". [/INST] SELECT COUNT("pick_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='sawyer hannay';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "Tell me the score on 22 august 2012". [/INST] SELECT "score" FROM "international_goals" WHERE "date"='22 august 2012';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ice_dance" ( "rank" real, "name" text, "nation" text, "points" real, "places" real );. Question: "Who has points larger than 167.5?". [/INST] SELECT "name" FROM "ice_dance" WHERE "points">167.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 "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the lowest crowd seen by the mcg Venue?". [/INST] SELECT MIN("crowd") FROM "round_10" WHERE "venue"='mcg';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What Away team got a team score of 12.16 (88)?". [/INST] SELECT "away_team" FROM "round_10" WHERE "away_team_score"='12.16 (88)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When was the game with richmond as Away team?". [/INST] SELECT "date" FROM "round_10" WHERE "away_team"='richmond';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "u_s_nielsen_ratings" ( "episode" text, "air_date" text, "timeslot" text, "rating" real, "share" real, "18_49" text, "viewers" text, "weekly_rank" text );. Question: "What is the total ratings on share less than 4?". [/INST] SELECT COUNT("rating") FROM "u_s_nielsen_ratings" WHERE "share"<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 "first_survivors_to_die" ( "name" text, "date_of_birth" text, "date_of_death" text, "age_at_time_of_disaster" text, "age_at_time_of_death" text );. Question: "When did the person born 24 September 1851 pass away?". [/INST] SELECT "date_of_death" FROM "first_survivors_to_die" WHERE "date_of_birth"='24 september 1851';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_survivors_to_die" ( "name" text, "date_of_birth" text, "date_of_death" text, "age_at_time_of_disaster" text, "age_at_time_of_death" text );. Question: "How old was the person born 24 September 1851 at the time of disaster?". [/INST] SELECT "age_at_time_of_disaster" FROM "first_survivors_to_die" WHERE "date_of_birth"='24 september 1851';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_survivors_to_die" ( "name" text, "date_of_birth" text, "date_of_death" text, "age_at_time_of_disaster" text, "age_at_time_of_death" text );. Question: "What is the name of the person born in 1909?". [/INST] SELECT "name" FROM "first_survivors_to_die" WHERE "date_of_birth"='1909';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "result" text, "competition" text );. Question: "What is the result in oakland?". [/INST] SELECT "result" FROM "international_goals" WHERE "venue"='oakland';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which Crowd has a Home team of richmond?". [/INST] SELECT SUM("crowd") FROM "round_6" WHERE "home_team"='richmond';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which Crowd has an Away team score of 8.6 (54)?". [/INST] SELECT AVG("crowd") FROM "round_6" WHERE "away_team_score"='8.6 (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 "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which Venue has a Home team of essendon?". [/INST] SELECT "venue" FROM "round_6" WHERE "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 "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );. Question: "What nationality was the round 6 draft pick?". [/INST] SELECT "nationality" FROM "draft_picks" WHERE "round"=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 "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );. Question: "What nationality is the draft pick with w position from leninogorsk (russia-2)?". [/INST] SELECT "nationality" FROM "draft_picks" WHERE "position"='w' AND "college_junior_club_team_league"='leninogorsk (russia-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 "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );. Question: "What college or league did the round 2 pick with d position come from?". [/INST] SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "round"=2 AND "position"='d';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What did the home team score when the away team scored 12.11 (83)?". [/INST] SELECT "home_team_score" FROM "round_12" WHERE "away_team_score"='12.11 (83)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Who was the away team when North Melbourne was the home team?". [/INST] SELECT "away_team" FROM "round_12" WHERE "home_team"='north melbourne';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Where was the game played where the away team has a score of 7.6 (48)?". [/INST] SELECT "venue" FROM "round_12" WHERE "away_team_score"='7.6 (48)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What away team played against Footscray as the home team?". [/INST] SELECT "away_team" FROM "round_12" WHERE "home_team"='footscray';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What home team played an away team with a score of 6.8 (44)?". [/INST] SELECT "home_team" FROM "round_12" WHERE "away_team_score"='6.8 (44)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_2" ( "episode" text, "air_date" text, "timeslot" text, "rating" text, "share" text, "18_49_rating_share" text, "viewers_m" real, "rank_num" text );. Question: "What is the rank for the show aired on May 19, 2009?". [/INST] SELECT "rank_num" FROM "season_2" WHERE "air_date"='may 19, 2009';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_2" ( "episode" text, "air_date" text, "timeslot" text, "rating" text, "share" text, "18_49_rating_share" text, "viewers_m" real, "rank_num" text );. Question: "What is the timeslot for the episode that aired April 28, 2009?". [/INST] SELECT "timeslot" FROM "season_2" WHERE "air_date"='april 28, 2009';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_2" ( "episode" text, "air_date" text, "timeslot" text, "rating" text, "share" text, "18_49_rating_share" text, "viewers_m" real, "rank_num" text );. Question: "What is the share of the 18-49 (Rating/Share) of 0.8/3?". [/INST] SELECT "share" FROM "season_2" WHERE "18_49_rating_share"='0.8/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 "season_2" ( "episode" text, "air_date" text, "timeslot" text, "rating" text, "share" text, "18_49_rating_share" text, "viewers_m" real, "rank_num" text );. Question: "What is the rating of the show ranked tba, aired on April 21, 2009?". [/INST] SELECT "rating" FROM "season_2" WHERE "rank_num"='tba' AND "air_date"='april 21, 2009';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "projects_as_of_january_2013" ( "building" text, "height" text, "floors" real, "year" real, "status" text );. Question: "What building shows 2013 and has more than 20 floors?". [/INST] SELECT "building" FROM "projects_as_of_january_2013" WHERE "year"=2013 AND "floors">20;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "projects_as_of_january_2013" ( "building" text, "height" text, "floors" real, "year" real, "status" text );. Question: "What is the status of the building for 2014 with 33 floors?". [/INST] SELECT "status" FROM "projects_as_of_january_2013" WHERE "year"<2014 AND "floors"=33;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "projects_as_of_january_2013" ( "building" text, "height" text, "floors" real, "year" real, "status" text );. Question: "What are the number of floors for the building of td building redevelopment (office)?". [/INST] SELECT AVG("floors") FROM "projects_as_of_january_2013" WHERE "building"='td building redevelopment (office)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "projects_as_of_january_2013" ( "building" text, "height" text, "floors" real, "year" real, "status" text );. Question: "What is the status of the building with more than 28 floor and a year of 2013?". [/INST] SELECT "status" FROM "projects_as_of_january_2013" WHERE "floors">28 AND "year"=2013;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "projects_as_of_january_2013" ( "building" text, "height" text, "floors" real, "year" real, "status" text );. Question: "What is the status of the building with less than 18 floors and later than 2013?". [/INST] SELECT "status" FROM "projects_as_of_january_2013" WHERE "floors"<18 AND "year">2013;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which Venue has a Home team score of 9.16 (70)?". [/INST] SELECT "venue" FROM "round_18" WHERE "home_team_score"='9.16 (70)';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.