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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text, "location" text );. Question: "Which record has a time of 0:13?". [/INST] SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='0: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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text, "location" text );. Question: "What is the result for rounds under 2 against D.J. Linderman?". [/INST] SELECT "res" FROM "mixed_martial_arts_record" WHERE "round"<2 AND "opponent"='d.j. linderman';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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's the average crowd size when the Home team is melbourne?". [/INST] SELECT AVG("crowd") FROM "round_17" 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_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which Venue is the one for the footscray Home team?". [/INST] SELECT "venue" FROM "round_17" 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 "exclusive_fox_era_2007_present" ( "year" real, "network" text, "lap_by_lap" text, "s_color_commentator" text, "pre_race_host" text, "pre_race_analyst_s" text, "ratings" text, "viewers" text );. Question: "Which Year is the lowest when the Viewers are 13.7 million?". [/INST] SELECT MIN("year") FROM "exclusive_fox_era_2007_present" WHERE "viewers"='13.7 million';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "exclusive_fox_era_2007_present" ( "year" real, "network" text, "lap_by_lap" text, "s_color_commentator" text, "pre_race_host" text, "pre_race_analyst_s" text, "ratings" text, "viewers" text );. Question: "How many Ratings did the 2013 Year have?". [/INST] SELECT "ratings" FROM "exclusive_fox_era_2007_present" WHERE "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 "exclusive_fox_era_2007_present" ( "year" real, "network" text, "lap_by_lap" text, "s_color_commentator" text, "pre_race_host" text, "pre_race_analyst_s" text, "ratings" text, "viewers" text );. Question: "Which Network has 16.0 million Viewers?". [/INST] SELECT "network" FROM "exclusive_fox_era_2007_present" WHERE "viewers"='16.0 million';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "exclusive_fox_era_2007_present" ( "year" real, "network" text, "lap_by_lap" text, "s_color_commentator" text, "pre_race_host" text, "pre_race_analyst_s" text, "ratings" text, "viewers" text );. Question: "What Lap-by-lap has Chris Myers as the Pre-Race Host, a Year larger than 2008, and 9.9/22 as its Ratings?". [/INST] SELECT "lap_by_lap" FROM "exclusive_fox_era_2007_present" WHERE "year">2008 AND "pre_race_host"='chris myers' AND "ratings"='9.9/22';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "exclusive_fox_era_2007_present" ( "year" real, "network" text, "lap_by_lap" text, "s_color_commentator" text, "pre_race_host" text, "pre_race_analyst_s" text, "ratings" text, "viewers" text );. Question: "Which Network has 17.5 million Viewers?". [/INST] SELECT "network" FROM "exclusive_fox_era_2007_present" WHERE "viewers"='17.5 million';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 was driving the Maserati with a Grid smaller than 6, and a Time/Retired of +2 laps?". [/INST] SELECT "driver" FROM "classification" WHERE "constructor"='maserati' AND "grid"<6 AND "time_retired"='+2 laps';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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's the average Grid for a Maserati with less than 80 laps, and a Time/Retired of +2 laps?". [/INST] SELECT AVG("grid") FROM "classification" WHERE "laps"<80 AND "constructor"='maserati' AND "time_retired"='+2 laps';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 were the lowest laps of Luigi Musso driving a Ferrari with a Grid larger than 2?". [/INST] SELECT MIN("laps") FROM "classification" WHERE "constructor"='ferrari' AND "grid">2 AND "driver"='luigi musso';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" text, "record" text );. Question: "What was the score of the Mariners game when they had a record of 56–21?". [/INST] SELECT "score" FROM "game_log" WHERE "record"='56–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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text, "attendance" text, "record" text );. Question: "What was the date of the Mariners game when they had a record of 53–17?". [/INST] SELECT "date" FROM "game_log" WHERE "record"='53–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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text, "attendance" text, "record" text );. Question: "What was the attendance of the Mariners game when they had a record of 56–20?". [/INST] SELECT "attendance" FROM "game_log" WHERE "record"='56–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 "2010_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "What college did Matt Freeman go to?". [/INST] SELECT "college" FROM "2010_team" WHERE "player"='matt freeman';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "What college did the placekicker go to?". [/INST] SELECT "college" FROM "2010_team" WHERE "position"='placekicker';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );. Question: "What was the position of the player that went to warren central high school?". [/INST] SELECT "position" FROM "2010_team" WHERE "school"='warren central 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 "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "decision" text, "record" text );. Question: "Which opponent's march was 31?". [/INST] SELECT "opponent" FROM "schedule_and_results" WHERE "march"=31;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "decision" text, "record" text );. Question: "Which score's game was less than 69 when the march was bigger than 2 and the opponents were the New York Islanders?". [/INST] SELECT "score" FROM "schedule_and_results" WHERE "game"<69 AND "march">2 AND "opponent"='new york islanders';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "decision" text, "record" text );. Question: "Which opponent's game was less than 76 when the march was 10?". [/INST] SELECT "opponent" FROM "schedule_and_results" WHERE "game"<76 AND "march"=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 "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was North Melbourne's score as the home team?". [/INST] SELECT "home_team_score" FROM "round_10" 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_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Where did Fitzroy play as the away team?". [/INST] SELECT "venue" FROM "round_10" WHERE "away_team"='fitzroy';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 time/retired for phil hill with over 67 laps and a grad smaller than 18?". [/INST] SELECT "time_retired" FROM "classification" WHERE "laps">67 AND "grid"<18 AND "driver"='phil hill';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "national_league" ( "season" text, "1st_division" text, "relegated" text, "2nd_division" text, "promoted" text );. Question: "What was relegated in the 2006 season?". [/INST] SELECT "relegated" FROM "national_league" WHERE "season"='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 "national_league" ( "season" text, "1st_division" text, "relegated" text, "2nd_division" text, "promoted" text );. Question: "What season was Norwich Union League promoted?". [/INST] SELECT "season" FROM "national_league" WHERE "promoted"='norwich union 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 "national_league" ( "season" text, "1st_division" text, "relegated" text, "2nd_division" text, "promoted" text );. Question: "What was relegated in the 2nd division of middlesex?". [/INST] SELECT "relegated" FROM "national_league" WHERE "2nd_division"='middlesex';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "national_league" ( "season" text, "1st_division" text, "relegated" text, "2nd_division" text, "promoted" text );. Question: "What is the 1st division when the 2nd division is national league?". [/INST] SELECT "1st_division" FROM "national_league" WHERE "2nd_division"='national 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 "other_characters" ( "animal_name" text, "species" text, "books" text, "tv_series" text, "gender" text, "tv_seasons" real, "mate" text, "offspring" text, "first_appearance" text, "last_appearance" text );. Question: "What show has a boar?". [/INST] SELECT "tv_series" FROM "other_characters" WHERE "species"='boar';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "other_characters" ( "animal_name" text, "species" text, "books" text, "tv_series" text, "gender" text, "tv_seasons" real, "mate" text, "offspring" text, "first_appearance" text, "last_appearance" text );. Question: "What animal was yes for tv series and was a terrapins?". [/INST] SELECT "animal_name" FROM "other_characters" WHERE "tv_series"='yes' AND "species"='terrapins';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "other_characters" ( "animal_name" text, "species" text, "books" text, "tv_series" text, "gender" text, "tv_seasons" real, "mate" text, "offspring" text, "first_appearance" text, "last_appearance" text );. Question: "What is the smallest season for a tv series with a yes and human was the species?". [/INST] SELECT MIN("tv_seasons") FROM "other_characters" WHERE "tv_series"='yes' AND "species"='human';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "other_characters" ( "animal_name" text, "species" text, "books" text, "tv_series" text, "gender" text, "tv_seasons" real, "mate" text, "offspring" text, "first_appearance" text, "last_appearance" text );. Question: "What is the mate for Last Appearance of bully, bully, bully (3x13) for the animal named hollow/holly later than season 1?". [/INST] SELECT "mate" FROM "other_characters" WHERE "tv_seasons">1 AND "last_appearance"='bully, bully, bully (3x13)' AND "animal_name"='hollow/holly';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "How many grids for peter collins?". [/INST] SELECT COUNT("grid") FROM "race" WHERE "driver"='peter collins';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 high grid for ferrari's with 2 laps?". [/INST] SELECT MAX("grid") FROM "race" WHERE "constructor"='ferrari' AND "laps"=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 "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "Who drove the car with over 66 laps with a grid of 5?". [/INST] SELECT "driver" FROM "race" WHERE "laps">66 AND "grid"=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 "singles_finals_3_2" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );. Question: "When was the tournament at Orange?". [/INST] SELECT "date" FROM "singles_finals_3_2" WHERE "tournament"='orange';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_finals_3_2" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );. Question: "What kind of surface was the Tournament at Sunderland played on?". [/INST] SELECT "surface" FROM "singles_finals_3_2" WHERE "tournament"='sunderland';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_finals_3_2" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );. Question: "What kind of surface was the tournament at Pune played on?". [/INST] SELECT "surface" FROM "singles_finals_3_2" WHERE "tournament"='pune';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_finals_3_2" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );. Question: "What was the score of the tournament against Isha Lakhani?". [/INST] SELECT "score" FROM "singles_finals_3_2" WHERE "opponent"='isha lakhani';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "record" text );. Question: "What was the date that ended in a record of 8-25-7?". [/INST] SELECT "date" FROM "january" WHERE "record"='8-25-7';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "What was the home team when the visiting team was Toronto?". [/INST] SELECT "home" FROM "january" WHERE "visitor"='toronto';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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/junior/club team (league) did mitch fadden play for?". [/INST] SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "player"='mitch fadden';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "When is the last week that has a result of a w 34-21?". [/INST] SELECT MAX("week") FROM "schedule" WHERE "result"='w 34-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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );. Question: "What is the method where there is a loss with time 5:00?". [/INST] SELECT "method" FROM "mixed_martial_arts_record" WHERE "res"='loss' AND "time"='5: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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );. Question: "What was the method when the time was 1:01?". [/INST] SELECT "method" FROM "mixed_martial_arts_record" WHERE "time"='1: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 "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the crowd when the away team is footscray?". [/INST] SELECT "crowd" FROM "round_22" WHERE "away_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_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the home team score at lake oval?". [/INST] SELECT "home_team_score" FROM "round_22" 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_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the score for south melbourne at home?". [/INST] SELECT "home_team_score" FROM "round_22" WHERE "home_team"='south 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 "standings" ( "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "How many high assists did the Lakers have?". [/INST] SELECT "high_assists" FROM "standings" WHERE "team"='lakers';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "WHat was the result of the friendly match that was played on october 8, 2012?". [/INST] SELECT "result" FROM "international_goals" WHERE "competition"='friendly match' AND "date"='october 8, 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 "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What was the name of the competition that took place on may 31, 2008?". [/INST] SELECT "competition" FROM "international_goals" WHERE "date"='may 31, 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" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "During the loss on march 26, 2005, what was the venue where the match was played?". [/INST] SELECT "venue" FROM "international_goals" WHERE "result"='loss' AND "date"='march 26, 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 "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What is the average number of laps that has a Time/Retired of +1 lap, a Driver of olivier panis, and a Grid larger than 4?". [/INST] SELECT AVG("laps") FROM "race" WHERE "time_retired"='+1 lap' AND "driver"='olivier panis' AND "grid">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 "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What constructor has under 62 laps, a Time/Retired of gearbox, a Grid larger than 1, and pedro diniz driving?". [/INST] SELECT "constructor" FROM "race" WHERE "laps"<62 AND "time_retired"='gearbox' AND "grid">1 AND "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 "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What is the time/retired with 60 laps and a grid 19?". [/INST] SELECT "time_retired" FROM "race" WHERE "laps"=60 AND "grid"=19;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What away team scored 9.18 (72)?". [/INST] SELECT "away_team" FROM "round_7" WHERE "away_team_score"='9.18 (72)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What's the venue for the home team that scored 9.14 (68)?". [/INST] SELECT "venue" FROM "round_7" WHERE "home_team_score"='9.14 (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 "round_7" ( "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 the home team was south melbourne?". [/INST] SELECT "away_team_score" FROM "round_7" WHERE "home_team"='south 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: "Who was the away team at western oval?". [/INST] SELECT "away_team" FROM "round_7" WHERE "venue"='western 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_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What team played away at vfl park?". [/INST] SELECT "away_team" FROM "round_10" WHERE "venue"='vfl park';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "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 home venue of essendon with a crowd larger than 19,760?". [/INST] SELECT "venue" FROM "round_10" WHERE "crowd">'19,760' AND "home_team"='essendon';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What did carlton score while away?". [/INST] SELECT "away_team_score" FROM "round_10" WHERE "away_team"='carlton';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which home team scored 14.11 (95)?". [/INST] SELECT "home_team" FROM "round_9" WHERE "home_team_score"='14.11 (95)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Who was the home team in the game where North Melbourne was the away team?". [/INST] SELECT "home_team_score" FROM "round_9" 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 "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Who was the home team that played in Victoria Park?". [/INST] SELECT "home_team" FROM "round_9" WHERE "venue"='victoria park';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "In the game where the home team scored 15.17 (107), who was the away team?". [/INST] SELECT "away_team" FROM "round_9" WHERE "home_team_score"='15.17 (107)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the highest crowd in Victoria Park?". [/INST] SELECT MAX("crowd") FROM "round_9" WHERE "venue"='victoria park';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "How many people were in the crowd with the away team being collingwood?". [/INST] SELECT COUNT("crowd") FROM "round_7" WHERE "away_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_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Name the away team for essendon". [/INST] SELECT "away_team" FROM "round_7" 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_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "I want to know the home team score of the away team of richmond that has a crowd more than 20,735". [/INST] SELECT "home_team_score" FROM "round_7" WHERE "crowd">'20,735' AND "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 "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What is the largest number of laps with a Grid larger than 14, a Time/Retired of + 2 laps, and a Driver of helmut marko?". [/INST] SELECT MAX("laps") FROM "classification" WHERE "grid">14 AND "time_retired"='+ 2 laps' AND "driver"='helmut marko';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Which grid has less than 11 laps, and a Time/Retired of accident?". [/INST] SELECT AVG("grid") FROM "classification" WHERE "laps"<11 AND "time_retired"='accident';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 total number of grids for peter gethin?". [/INST] SELECT SUM("grid") FROM "classification" WHERE "driver"='peter gethin';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "How many grids does dave walker have?". [/INST] SELECT COUNT("grid") FROM "classification" WHERE "driver"='dave walker';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 lowest grid with matra as constructor?". [/INST] SELECT MIN("grid") FROM "classification" WHERE "constructor"='matra';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disc_one_the_singles" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "time" text );. Question: "What is the catalogue number for the song that is 3:17 and was released 9/21/71?". [/INST] SELECT "catalogue" FROM "disc_one_the_singles" WHERE "release_date"='9/21/71' AND "time"='3: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 "disc_one_the_singles" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "time" text );. Question: "What is the highest track for Burning Love?". [/INST] SELECT MAX("track") FROM "disc_one_the_singles" WHERE "song_title"='burning love';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disc_one_the_singles" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "time" text );. Question: "What is Heart of Rome's catalogue number?". [/INST] SELECT "catalogue" FROM "disc_one_the_singles" WHERE "song_title"='heart of rome';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disc_one_the_singles" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "time" text );. Question: "Which song was released 12/8/70 with a time of 2:54?". [/INST] SELECT "song_title" FROM "disc_one_the_singles" WHERE "release_date"='12/8/70' AND "time"='2: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 "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "How many laps did Ricardo Zonta have?". [/INST] SELECT SUM("laps") FROM "race" WHERE "driver"='ricardo zonta';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 name of the driver with a grid less than 14, laps smaller than 53 and a Time/Retired of collision, and a Constructor of ferrari?". [/INST] SELECT "driver" FROM "race" WHERE "grid"<14 AND "laps"<53 AND "time_retired"='collision' AND "constructor"='ferrari';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 grid number with less than 52 laps and a Time/Retired of collision, and a Constructor of arrows - supertec?". [/INST] SELECT COUNT("grid") FROM "race" WHERE "laps"<52 AND "time_retired"='collision' AND "constructor"='arrows - supertec';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 average Laps for a grid smaller than 17, and a Constructor of williams - bmw, driven by jenson button?". [/INST] SELECT AVG("laps") FROM "race" WHERE "grid"<17 AND "constructor"='williams - bmw' AND "driver"='jenson button';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 the Away team scored 14.14 (98), which Venue did the game take place?". [/INST] SELECT "venue" FROM "round_10" WHERE "away_team_score"='14.14 (98)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 the Venue was victoria park, what was the Away team score?". [/INST] SELECT "away_team_score" FROM "round_10" WHERE "venue"='victoria park';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When the Home team of carlton played, what was their score?". [/INST] SELECT "home_team_score" FROM "round_10" WHERE "home_team"='carlton';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_matches_played_as_captain" ( "matches" text, "player" text, "lost" text, "drawn" text, "tied" text );. Question: "Tell me the lost with tie of 0 and drawn of 47". [/INST] SELECT "lost" FROM "most_matches_played_as_captain" WHERE "tied"='0' AND "drawn"='47';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_matches_played_as_captain" ( "matches" text, "player" text, "lost" text, "drawn" text, "tied" text );. Question: "Name the tie that has 71 drawn". [/INST] SELECT "tied" FROM "most_matches_played_as_captain" WHERE "drawn"='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 "most_matches_played_as_captain" ( "matches" text, "player" text, "lost" text, "drawn" text, "tied" text );. Question: "I want to know the drawn that has a tie of 0 and the player is chris cowdrey". [/INST] SELECT "drawn" FROM "most_matches_played_as_captain" WHERE "tied"='0' AND "player"='chris cowdrey';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_matches_played_as_captain" ( "matches" text, "player" text, "lost" text, "drawn" text, "tied" text );. Question: "I want to know the tie for drawn of 47". [/INST] SELECT "tied" FROM "most_matches_played_as_captain" WHERE "drawn"='47';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "composite_schools" ( "name" text, "gender" text, "local_board" text, "suburb" text, "authority" text, "decile" text, "roll" real );. Question: "What name shows as private authority and hibiscus and bays local board ?". [/INST] SELECT "name" FROM "composite_schools" WHERE "authority"='private' AND "local_board"='hibiscus and bays';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "composite_schools" ( "name" text, "gender" text, "local_board" text, "suburb" text, "authority" text, "decile" text, "roll" real );. Question: "What is the name when the local board is albert–eden, and a Decile of 9?". [/INST] SELECT "name" FROM "composite_schools" WHERE "local_board"='albert–eden' AND "decile"='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 "composite_schools" ( "name" text, "gender" text, "local_board" text, "suburb" text, "authority" text, "decile" text, "roll" real );. Question: "What is the name of the suburb with a roll of 741?". [/INST] SELECT "suburb" FROM "composite_schools" WHERE "roll"=741;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "composite_schools" ( "name" text, "gender" text, "local_board" text, "suburb" text, "authority" text, "decile" text, "roll" real );. Question: "What gender has a local board of albert–eden with a roll of more than 232 and Decile of 5?". [/INST] SELECT "gender" FROM "composite_schools" WHERE "local_board"='albert–eden' AND "roll">232 AND "decile"='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 "under_construction" ( "building" text, "city" text, "height" text, "stories" real, "status" text );. Question: "What is the status of the torre reforma building that is over 44 stories in mexico city?". [/INST] SELECT "status" FROM "under_construction" WHERE "stories">44 AND "city"='mexico city' AND "building"='torre reforma';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "under_construction" ( "building" text, "city" text, "height" text, "stories" real, "status" text );. Question: "How tall is the 52 story building?". [/INST] SELECT "height" FROM "under_construction" WHERE "stories"=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 "under_construction" ( "building" text, "city" text, "height" text, "stories" real, "status" text );. Question: "How many stories is the torre reforma building?". [/INST] SELECT COUNT("stories") FROM "under_construction" WHERE "building"='torre reforma';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_games_in_a_career" ( "rank" text, "games" text, "player" text, "nationality" text, "career_span" text );. Question: "What is the Nationality of Mike Gatting, who played 551 games?". [/INST] SELECT "nationality" FROM "most_games_in_a_career" WHERE "games"='551' AND "player"='mike gatting';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_games_in_a_career" ( "rank" text, "games" text, "player" text, "nationality" text, "career_span" text );. Question: "What is the nationality of the player who played 505 games?". [/INST] SELECT "nationality" FROM "most_games_in_a_career" WHERE "games"='505';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_games_in_a_career" ( "rank" text, "games" text, "player" text, "nationality" text, "career_span" text );. Question: "What is Wasim Akram's rank?". [/INST] SELECT "rank" FROM "most_games_in_a_career" WHERE "player"='wasim akram';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.