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 "local_ensembles" ( "area" text, "advertisement_date" text, "block" text, "winning_applicant" text, "ensemble_name" text );. Question: "Which Block does Northamptonshire Area have?". [/INST] SELECT "block" FROM "local_ensembles" WHERE "area"='northamptonshire';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "local_ensembles" ( "area" text, "advertisement_date" text, "block" text, "winning_applicant" text, "ensemble_name" text );. Question: "What is Ensemble Name Muxco Gloucestershire's Advertisement Date in Block 10C?". [/INST] SELECT "advertisement_date" FROM "local_ensembles" WHERE "block"='10c' AND "ensemble_name"='muxco gloucestershire';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "local_ensembles" ( "area" text, "advertisement_date" text, "block" text, "winning_applicant" text, "ensemble_name" text );. Question: "What is Oxfordshire Area's Ensemble Name?". [/INST] SELECT "ensemble_name" FROM "local_ensembles" WHERE "area"='oxfordshire';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "local_ensembles" ( "area" text, "advertisement_date" text, "block" text, "winning_applicant" text, "ensemble_name" text );. Question: "Who is the Winning Applicant of Ensemble Name Muxco Lincolnshire in Block 10D?". [/INST] SELECT "winning_applicant" FROM "local_ensembles" WHERE "block"='10d' AND "ensemble_name"='muxco lincolnshire';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Who was the home team that scored 12.6 (78)?". [/INST] SELECT "home_team" FROM "round_10" WHERE "home_team_score"='12.6 (78)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 the average crowd size of games held at Glenferrie Oval?". [/INST] SELECT AVG("crowd") FROM "round_10" WHERE "venue"='glenferrie 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 is the date of the game where the home team scored 9.10 (64)?". [/INST] SELECT "date" FROM "round_10" WHERE "home_team_score"='9.10 (64)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 the home team's score at the game attended by more than 24,637?". [/INST] SELECT "home_team_score" FROM "round_10" WHERE "crowd">'24,637';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Who was the home team that scored 12.6 (78)?". [/INST] SELECT "home_team" FROM "round_10" WHERE "home_team_score"='12.6 (78)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1971_isle_of_man_lightweight_tt_250cc_fi" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real );. Question: "What was the time for the man who scored 1 point?". [/INST] SELECT "time" FROM "1971_isle_of_man_lightweight_tt_250cc_fi" WHERE "points"=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 "round_8" ( "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 the VFL played at MCG?". [/INST] SELECT "away_team" FROM "round_8" 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_8" ( "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 VFL played MCG?". [/INST] SELECT MIN("crowd") FROM "round_8" 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_8" ( "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 Melbourne was the home team?". [/INST] SELECT AVG("crowd") FROM "round_8" 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 "finals" ( "lane" real, "name" text, "nationality" text, "split_50m" real, "time" real );. Question: "What is the total of lane(s) for swimmers from Sweden with a 50m split of faster than 26.25?". [/INST] SELECT SUM("lane") FROM "finals" WHERE "nationality"='sweden' AND "split_50m"<26.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 "finals" ( "lane" real, "name" text, "nationality" text, "split_50m" real, "time" real );. Question: "What is the slowest 50m split time for a total of 53.74 in a lane of less than 3?". [/INST] SELECT MAX("split_50m") FROM "finals" WHERE "time"=53.74 AND "lane"<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 "finals" ( "lane" real, "name" text, "nationality" text, "split_50m" real, "time" real );. Question: "What is the total sum of 50m splits for josefin lillhage in lanes above 8?". [/INST] SELECT SUM("split_50m") FROM "finals" WHERE "name"='josefin lillhage' AND "lane">8;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which venue had a home team score of 6.10 (46)?". [/INST] SELECT "venue" FROM "round_1" WHERE "home_team_score"='6.10 (46)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_1" ( "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 the home team St Kilda?". [/INST] SELECT "home_team_score" FROM "round_1" WHERE "home_team"='st kilda';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the average crowd size when Collingwood is the away team?". [/INST] SELECT AVG("crowd") FROM "round_1" 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 "alaska_state_senate_28th_alaska_legislat" ( "district" text, "name" text, "party" text, "residence" text, "assumed_office" real, "next_election" real );. Question: "What is the name of the Senator in the O District who assumed office in 2013?". [/INST] SELECT "name" FROM "alaska_state_senate_28th_alaska_legislat" WHERE "assumed_office"=2013 AND "district"='o';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "alaska_state_senate_28th_alaska_legislat" ( "district" text, "name" text, "party" text, "residence" text, "assumed_office" real, "next_election" real );. Question: "What is the party of the Senator in District A, who assumed office before 2013 and will be up for re-election after 2014?". [/INST] SELECT "party" FROM "alaska_state_senate_28th_alaska_legislat" WHERE "next_election">2014 AND "assumed_office"<2013 AND "district"='a';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "tournament" text, "1940" text, "1941" text, "1942" text, "1943" text, "1944" text, "1945" text, "1946_1" text, "1947_1" text, "1948" text, "1949" text, "1950" text, "1951" text, "1952" text, "1953" text, "1954" text, "career_sr" text );. Question: "What is the 1944 result for the U.S. Championships?". [/INST] SELECT "1944" FROM "singles" WHERE "tournament"='u.s. championships';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "tournament" text, "1940" text, "1941" text, "1942" text, "1943" text, "1944" text, "1945" text, "1946_1" text, "1947_1" text, "1948" text, "1949" text, "1950" text, "1951" text, "1952" text, "1953" text, "1954" text, "career_sr" text );. Question: "What is the tournament that had a result of A in 1954 and NH in 1942?". [/INST] SELECT "tournament" FROM "singles" WHERE "1954"='a' AND "1942"='nh';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "red_team" ( "learner_driver" text, "partner" text, "driver_s_age" real, "years_on_learners" real, "licence_test_attempts" real, "passed_yet" text );. Question: "What is the average number of years on learners of the drivers over the age of 24 with less than 0 attempts at the licence test?". [/INST] SELECT AVG("years_on_learners") FROM "red_team" WHERE "driver_s_age">24 AND "licence_test_attempts"<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 "red_team" ( "learner_driver" text, "partner" text, "driver_s_age" real, "years_on_learners" real, "licence_test_attempts" real, "passed_yet" text );. Question: "Which driver is older than 24 and has more than 0 licence test attempts?". [/INST] SELECT "learner_driver" FROM "red_team" WHERE "licence_test_attempts">0 AND "driver_s_age">24;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When was Fitzroy the home team?". [/INST] SELECT "date" FROM "round_13" WHERE "home_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 "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Where did Geelong play a home game?". [/INST] SELECT "venue" FROM "round_13" WHERE "home_team"='geelong';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "europe_pool_b" ( "club" text, "played" real, "lost" real, "drawn" real, "against" real, "diff" real, "points" real );. Question: "What is the sum of losses for teams with less than 4 games played?". [/INST] SELECT SUM("lost") FROM "europe_pool_b" WHERE "played"<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 "tour_of_britain_winners_1945_1999" ( "year" real, "race_name" text, "rider_status" text, "winner" text, "team_country" text );. Question: "What is the rider status for the 1971 netherlands team?". [/INST] SELECT "rider_status" FROM "tour_of_britain_winners_1945_1999" WHERE "team_country"='netherlands' AND "year"=1971;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tour_of_britain_winners_1945_1999" ( "year" real, "race_name" text, "rider_status" text, "winner" text, "team_country" text );. Question: "Who was the winner in 1973 with an amateur rider status?". [/INST] SELECT "winner" FROM "tour_of_britain_winners_1945_1999" WHERE "rider_status"='amateur' AND "year"=1973;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tour_of_britain_winners_1945_1999" ( "year" real, "race_name" text, "rider_status" text, "winner" text, "team_country" text );. Question: "What is the latest year when Phil Anderson won?". [/INST] SELECT MAX("year") FROM "tour_of_britain_winners_1945_1999" WHERE "winner"='phil anderson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tour_of_britain_winners_1945_1999" ( "year" real, "race_name" text, "rider_status" text, "winner" text, "team_country" text );. Question: "What ream played later than 1958 in the kellogg's tour?". [/INST] SELECT "team_country" FROM "tour_of_britain_winners_1945_1999" WHERE "year">1958 AND "race_name"='kellogg''s tour';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_results" ( "driver" text, "car_num" real, "make" text, "points" real, "laps" real, "winnings" text );. Question: "What is the sum of laps that has a car number of larger than 1, is a ford, and has 155 points?". [/INST] SELECT SUM("laps") FROM "race_results" WHERE "car_num">1 AND "make"='ford' AND "points"=155;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_results" ( "driver" text, "car_num" real, "make" text, "points" real, "laps" real, "winnings" text );. Question: "What is the lowest number of laps for kyle petty with under 118 points?". [/INST] SELECT MIN("laps") FROM "race_results" WHERE "points"<118 AND "driver"='kyle petty';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_4" ( "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 that played Fitzroy on May 13, 1950 at Brunswick Street Oval.". [/INST] SELECT "away_team" FROM "round_4" WHERE "venue"='brunswick street 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_4" ( "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 size at the Windy Hill venue?". [/INST] SELECT MIN("crowd") FROM "round_4" WHERE "venue"='windy 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 "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the away team's score when Fitzroy's score was 16.27 (123) on May 13, 1950.". [/INST] SELECT "away_team_score" FROM "round_4" WHERE "home_team_score"='16.27 (123)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Who is the away side when the crowd is over 18,000 with collingwood at home?". [/INST] SELECT "away_team" FROM "round_4" WHERE "crowd">'18,000' AND "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_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which venue's home team is geelong?". [/INST] SELECT "venue" FROM "round_6" WHERE "home_team"='geelong';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "How many people in the crowd with north melbourne as an away team?". [/INST] SELECT SUM("crowd") FROM "round_6" 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_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which team was at Corio Oval on 4 June 1927?". [/INST] SELECT "away_team" FROM "round_6" WHERE "date"='4 june 1927' AND "venue"='corio 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_8" ( "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 crowd over 16,000 and a home team score of 7.7 (49)?". [/INST] SELECT "venue" FROM "round_8" WHERE "crowd">'16,000' AND "home_team_score"='7.7 (49)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the home team score for the Richmond away team?". [/INST] SELECT "home_team_score" FROM "round_8" 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 "1971_isle_of_man_production_250_cc_tt_fi" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );. Question: "Which rider had a time of 1:54.26.6?". [/INST] SELECT "rider" FROM "1971_isle_of_man_production_250_cc_tt_fi" WHERE "time"='1:54.26.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 "1971_isle_of_man_production_250_cc_tt_fi" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );. Question: "What was the time for Peter Berwick of Team Suzuki?". [/INST] SELECT "time" FROM "1971_isle_of_man_production_250_cc_tt_fi" WHERE "team"='suzuki' AND "rider"='peter berwick';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results_breakdown" ( "county" text, "precincts" real, "lunsford" real, "pct_lunsford" text, "mc_connell" real, "pct_mc_connell" text, "total" text );. Question: "What is the total number of Lunsford votes when the percentage of those votes is 33.85%?". [/INST] SELECT COUNT("lunsford") FROM "results_breakdown" WHERE "pct_lunsford"='33.85%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What was the home team's score at the game held at Punt Road Oval?". [/INST] SELECT "home_team_score" FROM "round_5" WHERE "venue"='punt road 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_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the home team's score at the game that had a crowd larger than 24,000?". [/INST] SELECT "home_team_score" FROM "round_5" WHERE "crowd">'24,000';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "h" ( "player" text, "nationality" text, "position" text, "from" text, "school_country" text );. Question: "Which player started in 2001?". [/INST] SELECT "player" FROM "h" WHERE "from"='2001';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "h" ( "player" text, "nationality" text, "position" text, "from" text, "school_country" text );. Question: "What position was for Arizona State?". [/INST] SELECT "position" FROM "h" WHERE "school_country"='arizona state';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "h" ( "player" text, "nationality" text, "position" text, "from" text, "school_country" text );. Question: "Which school has the player that started in 1958?". [/INST] SELECT "school_country" FROM "h" WHERE "from"='1958';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Who was the home team for the game where North Melbourne was the away team?". [/INST] SELECT "home_team" FROM "round_10" 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_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 where the away team had a score of 13.8 (86)?". [/INST] SELECT "date" FROM "round_10" WHERE "away_team_score"='13.8 (86)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Who was the home team for the game where North Melbourne was the away team and the crowd was over 12,000?". [/INST] SELECT "home_team" FROM "round_10" WHERE "crowd">'12,000' AND "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 "total_attendance_average_attendance" ( "season" text, "season_total_att" text, "k_league_season_total_att" text, "regular_season_average_att" text, "league_cup_average_att" text, "fa_cup_total_average_att" text, "acl_total_average_att" text, "friendly_match_att" text );. Question: "What was attendance of the whole season when the average attendance for League Cup was 32,415?". [/INST] SELECT "season_total_att" FROM "total_attendance_average_attendance" WHERE "league_cup_average_att"='32,415';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "region" text, "year" real, "label" text, "format" text, "catalog" text );. Question: "What was the Candlelight Records Catalog of Candle053tin format?". [/INST] SELECT "format" FROM "release_history" WHERE "label"='candlelight records' AND "catalog"='candle053tin';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "region" text, "year" real, "label" text, "format" text, "catalog" text );. Question: "What is Candlelight Records format?". [/INST] SELECT "format" FROM "release_history" WHERE "label"='candlelight records';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "region" text, "year" real, "label" text, "format" text, "catalog" text );. Question: "What year did Japan form a label?". [/INST] SELECT "year" FROM "release_history" WHERE "region"='japan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "goalkeeping" ( "rank" real, "name" text, "club" text, "season" text, "length" real );. Question: "What name is associated with a longer length than 903?". [/INST] SELECT "name" FROM "goalkeeping" WHERE "length">903;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_winners" ( "year" real, "player" text, "nation_of_citizenship" text, "team_represented" text, "position_primarily_played" text );. Question: "What is the sum of all the years that Landon Donovan won the ESPY award?". [/INST] SELECT COUNT("year") FROM "list_of_winners" WHERE "player"='landon donovan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "house_time" ( "total_tenure_rank" real, "uninterrupted_rank" real, "name" text, "total_tenure_time" text, "uninterrupted_time" text );. Question: "How many uninterrupted ranks does john dingell have?". [/INST] SELECT COUNT("uninterrupted_rank") FROM "house_time" WHERE "name"='john dingell';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "house_time" ( "total_tenure_rank" real, "uninterrupted_rank" real, "name" text, "total_tenure_time" text, "uninterrupted_time" text );. Question: "Who has a total tenure time and uninterrupted time of 36 years, 0 days, as well as a total tenure rank of 49?". [/INST] SELECT "name" FROM "house_time" WHERE "total_tenure_time"='36 years, 0 days' AND "uninterrupted_time"='36 years, 0 days' AND "total_tenure_rank"=49;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_table" ( "club" text, "total_points" text, "bonus_points" text, "match_points" text, "games" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "diff" text );. Question: "What is the value of match points when the points for is 570?". [/INST] SELECT "match_points" FROM "final_table" WHERE "points_against"='570';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_table" ( "club" text, "total_points" text, "bonus_points" text, "match_points" text, "games" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "diff" text );. Question: "What is the amount of match points for a club that lost 18 and has 11 bonus points?". [/INST] SELECT "match_points" FROM "final_table" WHERE "lost"='18' AND "bonus_points"='11';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_table" ( "club" text, "total_points" text, "bonus_points" text, "match_points" text, "games" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "diff" text );. Question: "What is the diff for a club that has a value of 662 for points for?". [/INST] SELECT "diff" FROM "final_table" WHERE "points_for"='662';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_table" ( "club" text, "total_points" text, "bonus_points" text, "match_points" text, "games" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "diff" text );. Question: "What is the number of games for a club that has a value of 595 for points for?". [/INST] SELECT "games" FROM "final_table" WHERE "points_for"='595';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_table" ( "club" text, "total_points" text, "bonus_points" text, "match_points" text, "games" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "diff" text );. Question: "What is the number of games for a club that has 34 match points?". [/INST] SELECT "games" FROM "final_table" WHERE "match_points"='34';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_table" ( "club" text, "total_points" text, "bonus_points" text, "match_points" text, "games" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "diff" text );. Question: "How many bonus points did the Colomiers earn?". [/INST] SELECT "bonus_points" FROM "final_table" WHERE "club"='colomiers';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 is the venue for the event on 12 November 2005?". [/INST] SELECT "venue" FROM "international_goals" WHERE "date"='12 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_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the competition that occured on 27 July 2004?". [/INST] SELECT "competition" FROM "international_goals" WHERE "date"='27 july 2004';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 is the venue of the game on 20 November 2002?". [/INST] SELECT "venue" FROM "international_goals" WHERE "date"='20 november 2002';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 score of the game played on 16 August 2006?". [/INST] SELECT "score" FROM "international_goals" WHERE "date"='16 august 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 "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "How large was the crowd at Brunswick Street Oval?". [/INST] SELECT "crowd" FROM "round_11" WHERE "venue"='brunswick street 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_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "How big was the crowd when the away team was Richmond?". [/INST] SELECT "crowd" FROM "round_11" 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 "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the largest crowd where the home team was Fitzroy?". [/INST] SELECT MAX("crowd") FROM "round_11" WHERE "home_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 "round_11" ( "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 where Fitzroy played as the home team?". [/INST] SELECT "venue" FROM "round_11" WHERE "home_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 "round_11" ( "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 playing the home team North Melbourne?". [/INST] SELECT "away_team" FROM "round_11" 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 "teams_and_drivers" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "driver" text );. Question: "Who built Warren Booth's car with the Cosworth DFV V8 engine?". [/INST] SELECT "constructor" FROM "teams_and_drivers" WHERE "engine"='cosworth dfv v8' AND "driver"='warren booth';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "teams_and_drivers" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "driver" text );. Question: "What engine is used by Colin Bennett Racing with an 811 chassis?". [/INST] SELECT "engine" FROM "teams_and_drivers" WHERE "entrant"='colin bennett racing' AND "chassis"='811';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "teams_and_drivers" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "driver" text );. Question: "What team used the BRM built car?". [/INST] SELECT "entrant" FROM "teams_and_drivers" WHERE "constructor"='brm';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "teams_and_drivers" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "driver" text );. Question: "Who built the Jim Crawford car?". [/INST] SELECT "constructor" FROM "teams_and_drivers" WHERE "driver"='jim crawford';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "teams_and_drivers" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "driver" text );. Question: "What chassis does the shadow built car use?". [/INST] SELECT "chassis" FROM "teams_and_drivers" WHERE "constructor"='shadow';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "teams_and_drivers" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "driver" text );. Question: "What team uses a Cosworth DFV V8 engine and DN9 Chassis?". [/INST] SELECT "entrant" FROM "teams_and_drivers" WHERE "engine"='cosworth dfv v8' AND "chassis"='dn9';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "historical_population" ( "rank" text, "county" text, "population_1960" real, "population_2000" real, "population_2040" real );. Question: "What was the population of a county in 1960 that had a population of 467,052 in 2000 and 78,812 in 2040?". [/INST] SELECT AVG("population_1960") FROM "historical_population" WHERE "population_2000">'467,052' AND "population_2040"='78,812';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "historical_population" ( "rank" text, "county" text, "population_1960" real, "population_2000" real, "population_2040" real );. Question: "What was the population of a county in 2040 that had a population less than 108,172 in 2000 and less than 107,589 in 1960?". [/INST] SELECT COUNT("population_2040") FROM "historical_population" WHERE "population_1960"<'108,172' AND "population_2000"<'107,589';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "historical_population" ( "rank" text, "county" text, "population_1960" real, "population_2000" real, "population_2040" real );. Question: "What was Oslo's population in 1960, with a population of 507,467 in 2000?". [/INST] SELECT AVG("population_1960") FROM "historical_population" WHERE "county"='oslo' AND "population_2000">'507,467';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What is the sum of week number(s) had an attendance of 61,985?". [/INST] SELECT COUNT("week") FROM "schedule" WHERE "attendance"='61,985';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Who is the away side when north melbourne is at home and has a score of 9.10 (64)?". [/INST] SELECT "away_team" FROM "round_10" WHERE "home_team_score"='9.10 (64)' AND "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: "What is the home team's score when the venue is princes park?". [/INST] SELECT "home_team_score" FROM "round_10" WHERE "venue"='princes 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 away team when north melbourne is at home?". [/INST] SELECT "away_team" 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 "average_chart" ( "rank_by_average" real, "place" real, "couple" text, "total" real, "number_of_dances" real, "average" real );. Question: "What is the highest average that has 6 dances and a total of over 128?". [/INST] SELECT MAX("average") FROM "average_chart" WHERE "number_of_dances"=6 AND "total">128;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parliament" ( "party" text, "seats" text, "net_gain_loss" text, "pct_of_seats" text, "pct_of_votes" text );. Question: "Which party has a net gain/loss of -2?". [/INST] SELECT "party" FROM "parliament" WHERE "net_gain_loss"='-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 "parliament" ( "party" text, "seats" text, "net_gain_loss" text, "pct_of_seats" text, "pct_of_votes" text );. Question: "When the Swedish People's Party had a net gain/loss of 0, how many seats did they have?". [/INST] SELECT "seats" FROM "parliament" WHERE "net_gain_loss"='0' AND "party"='swedish people''s party';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parliament" ( "party" text, "seats" text, "net_gain_loss" text, "pct_of_seats" text, "pct_of_votes" text );. Question: "When there was a net gain/loss of +34, what was the percentage of seats that party held?". [/INST] SELECT "pct_of_seats" FROM "parliament" WHERE "net_gain_loss"='+34';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parliament" ( "party" text, "seats" text, "net_gain_loss" text, "pct_of_seats" text, "pct_of_votes" text );. Question: "Regarding the seats that casted 8.1% of the vote how many seats were held?". [/INST] SELECT "seats" FROM "parliament" WHERE "pct_of_votes"='8.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 "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "How many points does footscray score as the home side?". [/INST] SELECT "home_team_score" FROM "round_11" 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_11" ( "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's score when richmond is away?". [/INST] SELECT "home_team_score" FROM "round_11" 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 "most_tries_in_a_match" ( "player" text, "tries" text, "conv" text, "pens" text, "venue" text, "date" text );. Question: "What player played on 04/05/1999 with a conv of 0?". [/INST] SELECT "player" FROM "most_tries_in_a_match" WHERE "conv"='0' AND "date"='04/05/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 "most_tries_in_a_match" ( "player" text, "tries" text, "conv" text, "pens" text, "venue" text, "date" text );. Question: "What date did Josh Taumalolo play at Nuku'alofa?". [/INST] SELECT "date" FROM "most_tries_in_a_match" WHERE "venue"='nuku''alofa' AND "player"='josh taumalolo';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the home team at Victoria Park with an Away team score of 7.12 (54) and more than 12,000 people?". [/INST] SELECT "home_team" FROM "round_11" WHERE "crowd">'12,000' AND "away_team_score"='7.12 (54)' AND "venue"='victoria park';</s> |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.