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 "regional_ensembles" ( "region" text, "operator" text, "licence_award_date" text, "on_air_date" text, "closure_date" text );. Question: "What was the operator of the ensemble from Yorkshire?". [/INST] SELECT "operator" FROM "regional_ensembles" WHERE "region"='yorkshire';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regional_ensembles" ( "region" text, "operator" text, "licence_award_date" text, "on_air_date" text, "closure_date" text );. Question: "When was the ensemble closed that went on air in June 2003?". [/INST] SELECT "closure_date" FROM "regional_ensembles" WHERE "on_air_date"='june 2003';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regional_ensembles" ( "region" text, "operator" text, "licence_award_date" text, "on_air_date" text, "closure_date" text );. Question: "What was the license award date for the ensemble from South Wales and the Severn Estuary that was on air in July 2001?". [/INST] SELECT "licence_award_date" FROM "regional_ensembles" WHERE "on_air_date"='july 2001' AND "region"='south wales and the severn estuary';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regional_ensembles" ( "region" text, "operator" text, "licence_award_date" text, "on_air_date" text, "closure_date" text );. Question: "What is the operator of the ensemble from Yorkshire?". [/INST] SELECT "operator" FROM "regional_ensembles" WHERE "region"='yorkshire';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Who was the home team when attendance was over 41,846?". [/INST] SELECT "home_team" FROM "round_1" WHERE "crowd">'41,846';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Where did Collingwood play as the home team?". [/INST] SELECT "venue" FROM "round_1" WHERE "home_team"='collingwood';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was South Melbourne's score when they played as the home team?". [/INST] SELECT "home_team_score" FROM "round_1" 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_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 attendance when the VFL played Lake Oval?". [/INST] SELECT COUNT("crowd") FROM "round_1" 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 "race_results" ( "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "What is the Winning Team with Rick Mears' and Kraco Twin 125 (R1)?". [/INST] SELECT "winning_team" FROM "race_results" WHERE "winning_driver"='rick mears' AND "name"='kraco twin 125 (r1)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "What is Penske Racing's name?". [/INST] SELECT "name" FROM "race_results" WHERE "winning_team"='penske racing';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "Who is the winning driver of Penske Racing, and what was Rick Mears' pole position?". [/INST] SELECT "winning_driver" FROM "race_results" WHERE "winning_team"='penske racing' AND "pole_position"='rick mears';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "Who was Kraco Twin 125 (R2)'s Winning Driver?". [/INST] SELECT "winning_driver" FROM "race_results" WHERE "name"='kraco twin 125 (r2)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "What is the Report of Winning Team Penske Racing, and what was Rick Mears' Pole position?". [/INST] SELECT "report" FROM "race_results" WHERE "winning_team"='penske racing' AND "pole_position"='rick mears';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "What is the Pole Position for Winning Team Penske Racing, and the Name of II Copa Mexico 150?". [/INST] SELECT "pole_position" FROM "race_results" WHERE "winning_team"='penske racing' AND "name"='ii copa mexico 150';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 at the game held at Brunswick Street Oval?". [/INST] SELECT "away_team" 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: "Where was the game held where the home team scored 17.18 (120)?". [/INST] SELECT "venue" FROM "round_11" WHERE "home_team_score"='17.18 (120)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 at a game where Collingwood was the away team?". [/INST] SELECT MAX("crowd") FROM "round_11" 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_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 when the home team scored 10.18 (78)?". [/INST] SELECT "away_team" FROM "round_11" WHERE "home_team_score"='10.18 (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 "statistics" ( "religious_group" text, "population_pct_1961" text, "population_pct_1971" text, "population_pct_1981" text, "population_pct_1991" text, "population_pct_2001" text );. Question: "For the group with 1.92% population in 1981, what was their percentage of the population in 1971?". [/INST] SELECT "population_pct_1971" FROM "statistics" WHERE "population_pct_1981"='1.92%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "statistics" ( "religious_group" text, "population_pct_1961" text, "population_pct_1971" text, "population_pct_1981" text, "population_pct_1991" text, "population_pct_2001" text );. Question: "For the group with 1.79% population in 1961, what was their percentage of the population in 1971?". [/INST] SELECT "population_pct_1971" FROM "statistics" WHERE "population_pct_1961"='1.79%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nutrient_content_of_major_s_staple_food" ( "staple" text, "maize_corn_a" text, "rice_b" text, "wheat_c" text, "potato_d" text, "cassava_e" text, "soybean_green_f" text, "sweet_potato_g" text, "yam_y" text );. Question: "What is the rice amount when the potato amount is 79?". [/INST] SELECT "rice_b" FROM "nutrient_content_of_major_s_staple_food" WHERE "potato_d"='79';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nutrient_content_of_major_s_staple_food" ( "staple" text, "maize_corn_a" text, "rice_b" text, "wheat_c" text, "potato_d" text, "cassava_e" text, "soybean_green_f" text, "sweet_potato_g" text, "yam_y" text );. Question: "What is the yam amount with amount of soybean 0 and potato of 0.01?". [/INST] SELECT "yam_y" FROM "nutrient_content_of_major_s_staple_food" WHERE "soybean_green_f"='0' AND "potato_d"='0.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 "nutrient_content_of_major_s_staple_food" ( "staple" text, "maize_corn_a" text, "rice_b" text, "wheat_c" text, "potato_d" text, "cassava_e" text, "soybean_green_f" text, "sweet_potato_g" text, "yam_y" text );. Question: "What is the yam amount when the Cassava amount is 0.11?". [/INST] SELECT "yam_y" FROM "nutrient_content_of_major_s_staple_food" WHERE "cassava_e"='0.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 "nutrient_content_of_major_s_staple_food" ( "staple" text, "maize_corn_a" text, "rice_b" text, "wheat_c" text, "potato_d" text, "cassava_e" text, "soybean_green_f" text, "sweet_potato_g" text, "yam_y" text );. Question: "What is the wheat amount when the potato amount of 1.9?". [/INST] SELECT "wheat_c" FROM "nutrient_content_of_major_s_staple_food" WHERE "potato_d"='1.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 "nutrient_content_of_major_s_staple_food" ( "staple" text, "maize_corn_a" text, "rice_b" text, "wheat_c" text, "potato_d" text, "cassava_e" text, "soybean_green_f" text, "sweet_potato_g" text, "yam_y" text );. Question: "What is the Sweet Potato amount when the soybean amount is 1.65?". [/INST] SELECT "sweet_potato_g" FROM "nutrient_content_of_major_s_staple_food" WHERE "soybean_green_f"='1.65';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nutrient_content_of_major_s_staple_food" ( "staple" text, "maize_corn_a" text, "rice_b" text, "wheat_c" text, "potato_d" text, "cassava_e" text, "soybean_green_f" text, "sweet_potato_g" text, "yam_y" text );. Question: "What is the Yam amount when the Maze/Corn amount is 1355?". [/INST] SELECT "yam_y" FROM "nutrient_content_of_major_s_staple_food" WHERE "maize_corn_a"='1355';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "freshwater_area" ( "rank" text, "name_and_flag" text, "water_area_km_2" real, "water_area_as_percentage_of_total_area" text, "percentage_of_national_freshwater_area" text );. Question: "Which province and flag which has a water area (km 2) smaller than 176,928 has a total water area percentage of 0.0%?". [/INST] SELECT "name_and_flag" FROM "freshwater_area" WHERE "water_area_km_2"<'176,928' AND "water_area_as_percentage_of_total_area"='0.0%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "freshwater_area" ( "rank" text, "name_and_flag" text, "water_area_km_2" real, "water_area_as_percentage_of_total_area" text, "percentage_of_national_freshwater_area" text );. Question: "Which province and flag has a water area (km 2) of 0?". [/INST] SELECT "name_and_flag" FROM "freshwater_area" WHERE "water_area_km_2"=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 "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 home team's score when the away team scored 10.11 (71)?". [/INST] SELECT "home_team_score" FROM "round_4" WHERE "away_team_score"='10.11 (71)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_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 when the home team scored 17.17 (119)?". [/INST] SELECT "away_team" FROM "round_4" WHERE "home_team_score"='17.17 (119)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 at the game where the home team scored 10.15 (75) and the crowd was larger than 24,168?". [/INST] SELECT "away_team_score" FROM "round_4" WHERE "crowd">'24,168' AND "home_team_score"='10.15 (75)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the lowest attendance when the home team scores 10.14 (74)?". [/INST] SELECT MIN("crowd") FROM "round_16" WHERE "home_team_score"='10.14 (74)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What venue features a home team score of 10.14 (74)?". [/INST] SELECT "venue" FROM "round_16" WHERE "home_team_score"='10.14 (74)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 did the Browns play the Pittsburgh Steelers?". [/INST] SELECT "date" FROM "schedule" WHERE "opponent"='pittsburgh steelers';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Who is the home side when north melbourne is the away side?". [/INST] SELECT "home_team" FROM "round_3" 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_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the lowest crowd when the away side scores 11.16 (82)?". [/INST] SELECT MIN("crowd") FROM "round_3" WHERE "away_team_score"='11.16 (82)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Where was the game played where Collingwood was the away team?". [/INST] SELECT "venue" FROM "round_10" 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 "house_and_senate_time" ( "total_tenure_rank" real, "uninterrupted_rank" real, "name" text, "party_affiliation" text, "total_tenure_time" text, "uninterrupted_time" text );. Question: "What was the total tenure time with a rank of 49?". [/INST] SELECT "total_tenure_time" FROM "house_and_senate_time" WHERE "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 "race_results" ( "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "Who did Teo Fabi drive for when he won and had pole position?". [/INST] SELECT "winning_team" FROM "race_results" WHERE "winning_driver"='teo fabi' AND "pole_position"='teo fabi';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "Who won for Forsythe Racing when Bobby Rahal had pole position?". [/INST] SELECT "name" FROM "race_results" WHERE "winning_team"='forsythe racing' AND "pole_position"='bobby rahal';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "Which team had the fastest lap of 1:13.516?". [/INST] SELECT "winning_team" FROM "race_results" WHERE "fastest_lap"='1:13.516';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "Who had the fastest lap when Al Unser won?". [/INST] SELECT "fastest_lap" FROM "race_results" WHERE "winning_driver"='al unser';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "main_title_alternate_title_s" text, "developer" text, "publisher" text, "release_date" real, "max_num_of_players" real );. Question: "What is the maximum number of players for the sega game, hang-on (cartridge version)?". [/INST] SELECT COUNT("max_num_of_players") FROM "h" WHERE "developer"='sega' AND "main_title_alternate_title_s"='hang-on (cartridge version)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "afc_champions_league_2002_03_present" ( "year" text, "home_team" text, "score" text, "away_team" text, "venue" text );. Question: "Which Away team has a Score of 4β2?". [/INST] SELECT "away_team" FROM "afc_champions_league_2002_03_present" WHERE "score"='4β2';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "afc_champions_league_2002_03_present" ( "year" text, "home_team" text, "score" text, "away_team" text, "venue" text );. Question: "Which Home team has an Away team of al-ain fc, and a Year of 2002/03?". [/INST] SELECT "home_team" FROM "afc_champions_league_2002_03_present" WHERE "away_team"='al-ain fc' AND "year"='2002/03';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "afc_champions_league_2002_03_present" ( "year" text, "home_team" text, "score" text, "away_team" text, "venue" text );. Question: "Which Home team has a Year of 2002/03, and a Venue of tahnoun bin mohamed stadium?". [/INST] SELECT "home_team" FROM "afc_champions_league_2002_03_present" WHERE "year"='2002/03' AND "venue"='tahnoun bin mohamed stadium';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "afc_champions_league_2002_03_present" ( "year" text, "home_team" text, "score" text, "away_team" text, "venue" text );. Question: "Which Away team has a Home team of al-ain fc, and a Score of 1β1?". [/INST] SELECT "away_team" FROM "afc_champions_league_2002_03_present" WHERE "home_team"='al-ain fc' AND "score"='1β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 "regular_season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "What is the attendance of the game that was played on September 27, 1964?". [/INST] SELECT MAX("attendance") FROM "regular_season_schedule" WHERE "date"='september 27, 1964';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 is the home team's score when the crowd is over 14,000 with the away team scoring 9.18 (72)?". [/INST] SELECT "home_team_score" FROM "round_8" WHERE "crowd">'14,000' AND "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_8" ( "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 side's score when geelong is the away team?". [/INST] SELECT "home_team_score" FROM "round_8" WHERE "away_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 "doubles_titles_3" ( "outcome" text, "date" real, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );. Question: "What was the score of the tournament that was held in 1974?". [/INST] SELECT "score_in_the_final" FROM "doubles_titles_3" WHERE "date"=1974;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "On what date did the home team score 11.8 (74)?". [/INST] SELECT "date" FROM "round_2" WHERE "home_team_score"='11.8 (74)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2" ( "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 when the home team scored 9.22 (76)?". [/INST] SELECT "venue" FROM "round_2" WHERE "home_team_score"='9.22 (76)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2" ( "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 size when the away team scored 7.11 (53)?". [/INST] SELECT MAX("crowd") FROM "round_2" WHERE "away_team_score"='7.11 (53)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_2" ( "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 that scored 8.15 (63)?". [/INST] SELECT "away_team" FROM "round_2" WHERE "away_team_score"='8.15 (63)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the date when South Melbourne was the home team?". [/INST] SELECT "date" FROM "round_2" 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_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Where did Hawthorn play as home team?". [/INST] SELECT "venue" FROM "round_15" WHERE "home_team"='hawthorn';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When the VFL played Brunswick Street Oval what was the home team score?". [/INST] SELECT "home_team_score" FROM "round_15" 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_15" ( "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 as the away team?". [/INST] SELECT "venue" FROM "round_15" WHERE "away_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_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What day did the VFL pay MCG with attendance of 16,300?". [/INST] SELECT "date" FROM "round_15" WHERE "crowd">'16,300' AND "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_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the attendance when Fitzroy played as home team?". [/INST] SELECT COUNT("crowd") FROM "round_15" 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_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the attendance when Hawthorn played as home team?". [/INST] SELECT SUM("crowd") FROM "round_15" WHERE "home_team"='hawthorn';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "drivers_and_constructors" ( "team" text, "chassis" text, "engine" text, "tyre" text, "drivers" text, "races" text );. Question: "What engine did Casey Mears use on the Reynard 01i Chassis?". [/INST] SELECT "engine" FROM "drivers_and_constructors" WHERE "chassis"='reynard 01i' AND "drivers"='casey mears';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "drivers_and_constructors" ( "team" text, "chassis" text, "engine" text, "tyre" text, "drivers" text, "races" text );. Question: "What Chassis did Memo Gidley use?". [/INST] SELECT "chassis" FROM "drivers_and_constructors" WHERE "drivers"='memo gidley';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "drivers_and_constructors" ( "team" text, "chassis" text, "engine" text, "tyre" text, "drivers" text, "races" text );. Question: "Who used the Honda Engine for all the races?". [/INST] SELECT "team" FROM "drivers_and_constructors" WHERE "engine"='honda' AND "races"='all';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "women" ( "event" text, "time" text, "nationality" text, "date" text, "meet" text, "location" text );. Question: "What is the location of the 200m backstroke?". [/INST] SELECT "location" FROM "women" WHERE "event"='200m backstroke';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "races" ( "round" real, "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_car" text );. Question: "Which circuit did Guy Edwards win?". [/INST] SELECT "circuit" FROM "races" WHERE "winning_driver"='guy edwards';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "races" ( "round" real, "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_car" text );. Question: "What circuit did Rupert Keegan win in round 8?". [/INST] SELECT "circuit" FROM "races" WHERE "winning_driver"='rupert keegan' AND "round"=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 "races" ( "round" real, "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_car" text );. Question: "Who won Silverstone in a round after 10?". [/INST] SELECT "name" FROM "races" WHERE "round">10 AND "circuit"='silverstone';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "main_cast" ( "actor_actress" text, "character" text, "rank" text, "tenure" text, "episodes" text );. Question: "What rank did actor Aaron Pedersen's character have?". [/INST] SELECT "rank" FROM "main_cast" WHERE "actor_actress"='aaron pedersen';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "main_cast" ( "actor_actress" text, "character" text, "rank" text, "tenure" text, "episodes" text );. Question: "What years were actress Nadine Garner on the show?". [/INST] SELECT "tenure" FROM "main_cast" WHERE "actor_actress"='nadine garner';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "main_cast" ( "actor_actress" text, "character" text, "rank" text, "tenure" text, "episodes" text );. Question: "What character did actor Damien Richardson play?". [/INST] SELECT "character" FROM "main_cast" WHERE "actor_actress"='damien richardson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "main_cast" ( "actor_actress" text, "character" text, "rank" text, "tenure" text, "episodes" text );. Question: "What episode did actor Daniel Macpherson's character have the rank of Detective Senior Constable". [/INST] SELECT "episodes" FROM "main_cast" WHERE "rank"='detective senior constable' AND "actor_actress"='daniel macpherson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010s" ( "year" real, "network" text, "play_by_play" text, "color_commentator_s" text, "sideline_reporter_s" text );. Question: "Who are the sideline reporter(s) on NBC with al michaels on the play-by-play after 2013?". [/INST] SELECT "sideline_reporter_s" FROM "2010s" WHERE "network"='nbc' AND "play_by_play"='al michaels' AND "year">2013;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010s" ( "year" real, "network" text, "play_by_play" text, "color_commentator_s" text, "sideline_reporter_s" text );. Question: "What was the earliest year featuring Sideline reporter(s) of michelle tafoya and suzy kolber?". [/INST] SELECT MIN("year") FROM "2010s" WHERE "sideline_reporter_s"='michelle tafoya and suzy kolber';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010s" ( "year" real, "network" text, "play_by_play" text, "color_commentator_s" text, "sideline_reporter_s" text );. Question: "What network is working in 2014?". [/INST] SELECT "network" FROM "2010s" WHERE "year"=2014;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010s" ( "year" real, "network" text, "play_by_play" text, "color_commentator_s" text, "sideline_reporter_s" text );. Question: "Who were the sideline reporter(s) in 2011?". [/INST] SELECT "sideline_reporter_s" FROM "2010s" WHERE "year"=2011;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010s" ( "year" real, "network" text, "play_by_play" text, "color_commentator_s" text, "sideline_reporter_s" text );. Question: "Who were the collor commentator(s) for ESPN before 2012?". [/INST] SELECT "color_commentator_s" FROM "2010s" WHERE "year"<2012 AND "network"='espn';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "long_period" ( "higher_harmonics" text, "darwin" text, "period" text, "speed" text, "doodson_coefficients" text, "noaa" text );. Question: "What higher harmonics have an NOAA of 8?". [/INST] SELECT "higher_harmonics" FROM "long_period" WHERE "noaa"='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 "long_period" ( "higher_harmonics" text, "darwin" text, "period" text, "speed" text, "doodson_coefficients" text, "noaa" text );. Question: "What is the speed of the higher harmonics that have an NOAA of 37?". [/INST] SELECT "speed" FROM "long_period" WHERE "noaa"='37';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "long_period" ( "higher_harmonics" text, "darwin" text, "period" text, "speed" text, "doodson_coefficients" text, "noaa" text );. Question: "What is the NOAA of the higher harmonics that have a Darwin of mn 4?". [/INST] SELECT "noaa" FROM "long_period" WHERE "darwin"='mn 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 "long_period" ( "higher_harmonics" text, "darwin" text, "period" text, "speed" text, "doodson_coefficients" text, "noaa" text );. Question: "What is the NOAA of the higher harmonics that have a Darwin of m sf?". [/INST] SELECT "noaa" FROM "long_period" WHERE "darwin"='m sf';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "long_period" ( "higher_harmonics" text, "darwin" text, "period" text, "speed" text, "doodson_coefficients" text, "noaa" text );. Question: "Which higher harmonics have a speed of 0.0821373?". [/INST] SELECT "higher_harmonics" FROM "long_period" WHERE "speed"='0.0821373';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 is the Home team score for the Lake Oval Venue?". [/INST] SELECT "home_team_score" FROM "round_7" 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_7" ( "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 in which the Crowed was over 10,300 and the Home team was Melbourne?". [/INST] SELECT "date" FROM "round_7" WHERE "crowd">'10,300' AND "home_team"='melbourne';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "major_agricultural_products" ( "commodity" text, "2001_02" text, "2002_03" text, "2003_04" text, "2004_05" text, "2005_06" text, "2006_07" text );. Question: "What was the production in 2002-03 for the commodity that produced 1,725 in 2001-02?". [/INST] SELECT "2002_03" FROM "major_agricultural_products" WHERE "2001_02"='1,725';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "major_agricultural_products" ( "commodity" text, "2001_02" text, "2002_03" text, "2003_04" text, "2004_05" text, "2005_06" text, "2006_07" text );. Question: "What was the production in 2004-05 for the commodity that produced 1,725 in 2001-02?". [/INST] SELECT "2004_05" FROM "major_agricultural_products" WHERE "2001_02"='1,725';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "major_agricultural_products" ( "commodity" text, "2001_02" text, "2002_03" text, "2003_04" text, "2004_05" text, "2005_06" text, "2006_07" text );. Question: "What is the 2005-05 production for milk?". [/INST] SELECT "2004_05" FROM "major_agricultural_products" WHERE "commodity"='milk';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "major_agricultural_products" ( "commodity" text, "2001_02" text, "2002_03" text, "2003_04" text, "2004_05" text, "2005_06" text, "2006_07" text );. Question: "What was the production in 2006-07 for the commodity that produced 2,601 in 2005-06?". [/INST] SELECT "2006_07" FROM "major_agricultural_products" WHERE "2005_06"='2,601';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "major_agricultural_products" ( "commodity" text, "2001_02" text, "2002_03" text, "2003_04" text, "2004_05" text, "2005_06" text, "2006_07" text );. Question: "What was the production in 2004-05 for the commodity that produced 1,037 in 2005-06?". [/INST] SELECT "2004_05" FROM "major_agricultural_products" WHERE "2005_06"='1,037';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "major_agricultural_products" ( "commodity" text, "2001_02" text, "2002_03" text, "2003_04" text, "2004_05" text, "2005_06" text, "2006_07" text );. Question: "What was the production in 2005-06 for the commodity that produced 1,175 in 2001-02?". [/INST] SELECT "2005_06" FROM "major_agricultural_products" WHERE "2001_02"='1,175';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which home team score occurred at Victoria Park?". [/INST] SELECT "home_team_score" FROM "round_14" 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_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which home team had a score of 9.11 (65) against the away team score of 10.11 (71)?". [/INST] SELECT "home_team" FROM "round_14" WHERE "away_team_score"='10.11 (71)' AND "home_team_score"='9.11 (65)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which home team played at Glenferrie Oval?". [/INST] SELECT "home_team" FROM "round_14" 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_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "On which date was the venue at Windy Hill?". [/INST] SELECT "date" FROM "round_14" 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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text );. Question: "Who has a round of 3 with a method of decision?". [/INST] SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "round"='3' AND "method"='decision';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "stages_of_the_42_me_rallye_automobile_de" ( "stage" text, "start_time" text, "stage_name" text, "distance" text, "winning_driver" text, "time" text, "avg_speed" text, "rally_leader" text );. Question: "What was the finishing time of Stage SS6?". [/INST] SELECT "time" FROM "stages_of_the_42_me_rallye_automobile_de" WHERE "stage"='ss6';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "stages_of_the_42_me_rallye_automobile_de" ( "stage" text, "start_time" text, "stage_name" text, "distance" text, "winning_driver" text, "time" text, "avg_speed" text, "rally_leader" text );. Question: "What was the finishing time of the stage that featured a distance of 18.25km and a start time of 11:31?". [/INST] SELECT "time" FROM "stages_of_the_42_me_rallye_automobile_de" WHERE "distance"='18.25km' AND "start_time"='11: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 "stages_of_the_42_me_rallye_automobile_de" ( "stage" text, "start_time" text, "stage_name" text, "distance" text, "winning_driver" text, "time" text, "avg_speed" text, "rally_leader" text );. Question: "What was the average speed over 18.00km for winning driver Jean-Claude Andruet?". [/INST] SELECT "avg_speed" FROM "stages_of_the_42_me_rallye_automobile_de" WHERE "distance"='18.00km' AND "winning_driver"='jean-claude andruet';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "stages_of_the_42_me_rallye_automobile_de" ( "stage" text, "start_time" text, "stage_name" text, "distance" text, "winning_driver" text, "time" text, "avg_speed" text, "rally_leader" text );. Question: "What was the finishing time of the Stage that featured a distance of 24.00km and a start time of 21:27?". [/INST] SELECT "time" FROM "stages_of_the_42_me_rallye_automobile_de" WHERE "distance"='24.00km' AND "start_time"='21:27';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.