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 "relegation_table" ( "team" text, "1982" text, "1983" text, "1984" real, "total_points" real, "seasons" real, "points_average" real );. Question: "What is the number of seasons for the team with a total fewer than 24?". [/INST] SELECT SUM("seasons") FROM "relegation_table" WHERE "total_points"<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 "greece" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );. Question: "What is the weight of the player from club panionios g.c. and was born on 1975-05-21?". [/INST] SELECT "weight" FROM "greece" WHERE "club"='panionios g.c.' AND "date_of_birth"='1975-05-21';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ski_lifts" ( "name" text, "type" text, "height_of_ground_station_m" real, "height_of_mountain_station_m" real, "construction_year" real );. Question: "How much Height of ground station(m) has a Name of lutersee, and a Height of mountain station(m) larger than 2398?". [/INST] SELECT COUNT("height_of_ground_station_m") FROM "ski_lifts" WHERE "name"='lutersee' AND "height_of_mountain_station_m">2398;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "skilift_system" ( "name_or_route" text, "type" text, "elevation_groundstation" real, "elevation_mountainstation" real, "slope_length" real, "capacity_in_persons_hour" real, "construction_year_s" text );. Question: "Which elevation groundstation has a capacity in persons/hour larger than 820, and a Name or route of lager 1, and a slope length smaller than 336?". [/INST] SELECT AVG("elevation_groundstation") FROM "skilift_system" WHERE "capacity_in_persons_hour">820 AND "name_or_route"='lager 1' AND "slope_length"<336;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "skilift_system" ( "name_or_route" text, "type" text, "elevation_groundstation" real, "elevation_mountainstation" real, "slope_length" real, "capacity_in_persons_hour" real, "construction_year_s" text );. Question: "Which slope length has a type of surface lift, and an elevation groundstation smaller than 1974, and a construction year(s) of 1971, and a Name or route of alpmatten 1?". [/INST] SELECT "slope_length" FROM "skilift_system" WHERE "type"='surface lift' AND "elevation_groundstation"<1974 AND "construction_year_s"='1971' AND "name_or_route"='alpmatten 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 "1996_ohio_state_buckeyes_football_team" ( "player" text, "round" real, "pick" real, "position" text, "nfl_club" text );. Question: "What is the lowest pick that has arizona cardinals as the NFL club?". [/INST] SELECT MIN("pick") FROM "1996_ohio_state_buckeyes_football_team" WHERE "nfl_club"='arizona cardinals';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1996_ohio_state_buckeyes_football_team" ( "player" text, "round" real, "pick" real, "position" text, "nfl_club" text );. Question: "What round has a pick less than 189, with arizona cardinals as the NFL club?". [/INST] SELECT "round" FROM "1996_ohio_state_buckeyes_football_team" WHERE "pick"<189 AND "nfl_club"='arizona cardinals';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1996_ohio_state_buckeyes_football_team" ( "player" text, "round" real, "pick" real, "position" text, "nfl_club" text );. Question: "What player has defensive back as the position, with a round less than 2?". [/INST] SELECT "player" FROM "1996_ohio_state_buckeyes_football_team" WHERE "position"='defensive back' AND "round"<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 "1996_ohio_state_buckeyes_football_team" ( "player" text, "round" real, "pick" real, "position" text, "nfl_club" text );. Question: "What lowest round has orlando pace as the player?". [/INST] SELECT MIN("round") FROM "1996_ohio_state_buckeyes_football_team" WHERE "player"='orlando pace';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text, "streak" text );. Question: "What was the location when the opponent was Seattle Supersonics?". [/INST] SELECT "location_attendance" FROM "game_log" WHERE "opponent"='seattle supersonics';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text, "streak" text );. Question: "What was the record for less than 78 games and a score of 114–109 (ot)?". [/INST] SELECT "record" FROM "game_log" WHERE "game"<78 AND "score"='114–109 (ot)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text, "streak" text );. Question: "Who was the opponent for game 75?". [/INST] SELECT "opponent" FROM "game_log" WHERE "game"=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 "results" ( "elimination" text, "wrestler" text, "team" text, "eliminated_by" text, "elimination_move" text, "time" text );. Question: "Which Wrestler plays for Team Batista which was Elimated by Orton on Elimination 8?". [/INST] SELECT "wrestler" FROM "results" WHERE "team"='team batista' AND "eliminated_by"='orton' AND "elimination"='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 "results" ( "elimination" text, "wrestler" text, "team" text, "eliminated_by" text, "elimination_move" text, "time" text );. Question: "What time was the Wrestler Henry eliminated by Batista?". [/INST] SELECT "time" FROM "results" WHERE "eliminated_by"='batista' AND "wrestler"='henry';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "elimination" text, "wrestler" text, "team" text, "eliminated_by" text, "elimination_move" text, "time" text );. Question: "Which Elimination Move is listed at Elimination 8 for Team Batista?". [/INST] SELECT "elimination_move" FROM "results" WHERE "team"='team batista' AND "elimination"='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 "results" ( "elimination" text, "wrestler" text, "team" text, "eliminated_by" text, "elimination_move" text, "time" text );. Question: "Which Elimination move is listed against Team Orton, Eliminated by Batista against Elimination number 7?". [/INST] SELECT "elimination_move" FROM "results" WHERE "team"='team orton' AND "eliminated_by"='batista' AND "elimination"='7';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results" ( "elimination" text, "wrestler" text, "team" text, "eliminated_by" text, "elimination_move" text, "time" text );. Question: "What Elimination Move is listed against Wrestler Henry, Eliminated by Batista?". [/INST] SELECT "elimination_move" FROM "results" WHERE "eliminated_by"='batista' AND "wrestler"='henry';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "elimination" text, "wrestler" text, "team" text, "eliminated_by" text, "elimination_move" text, "time" text );. Question: "What is the Elimination move listed against Regal?". [/INST] SELECT "elimination_move" FROM "results" WHERE "wrestler"='regal';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "Name the Total of jeff sluman?". [/INST] SELECT AVG("total") FROM "missed_the_cut" WHERE "player"='jeff sluman';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "Name the Total of australia and a To par smaller than 7?". [/INST] SELECT MIN("total") FROM "missed_the_cut" WHERE "country"='australia' AND "to_par"<7;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "Name the To par that has a Year(s) won of 1988 and a Total smaller than 148?". [/INST] SELECT MAX("to_par") FROM "missed_the_cut" WHERE "year_s_won"='1988' AND "total"<148;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "presidents_of_the_grand_national_curling" ( "number" real, "year_start" real, "year_end" real, "name" text, "home_club" text );. Question: "Which Number has a Home Club of broomstones, and a Year End smaller than 1999?". [/INST] SELECT MIN("number") FROM "presidents_of_the_grand_national_curling" WHERE "home_club"='broomstones' AND "year_end"<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 "presidents_of_the_grand_national_curling" ( "number" real, "year_start" real, "year_end" real, "name" text, "home_club" text );. Question: "Which Year Start has a Number of 28?". [/INST] SELECT MAX("year_start") FROM "presidents_of_the_grand_national_curling" WHERE "number"=28;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "presidents_of_the_grand_national_curling" ( "number" real, "year_start" real, "year_end" real, "name" text, "home_club" text );. Question: "Which Number has a Name of hill, lucius t.?". [/INST] SELECT MAX("number") FROM "presidents_of_the_grand_national_curling" WHERE "name"='hill, lucius t.';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "presidents_of_the_grand_national_curling" ( "number" real, "year_start" real, "year_end" real, "name" text, "home_club" text );. Question: "Which Number has a Year Start smaller than 1874, and a Year End larger than 1873?". [/INST] SELECT MAX("number") FROM "presidents_of_the_grand_national_curling" WHERE "year_start"<1874 AND "year_end">1873;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "presidents_of_the_grand_national_curling" ( "number" real, "year_start" real, "year_end" real, "name" text, "home_club" text );. Question: "Which Number has a Name of cooper, c. kenneth, and a Year End larger than 1984?". [/INST] SELECT AVG("number") FROM "presidents_of_the_grand_national_curling" WHERE "name"='cooper, c. kenneth' AND "year_end">1984;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1991" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );. Question: "What is Venue, when Status is "Test Match", and when Against is "12"?". [/INST] SELECT "venue" FROM "1991" WHERE "status"='test match' AND "against"=12;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1991" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );. Question: "What is Opposing Teams, when Date is "11/10/1991"?". [/INST] SELECT "opposing_teams" FROM "1991" WHERE "date"='11/10/1991';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1991" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );. Question: "What is Date, when Opposing Teams is "Australia", and when Venue is "Twickenham , London"?". [/INST] SELECT "date" FROM "1991" WHERE "opposing_teams"='australia' AND "venue"='twickenham , london';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1991" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );. Question: "What is Against, when Opposing Teams is "Australia", and when Date is "27/07/1991"?". [/INST] SELECT "against" FROM "1991" WHERE "opposing_teams"='australia' AND "date"='27/07/1991';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What is the tie no of the game where exeter city was the home team?". [/INST] SELECT "tie_no" FROM "third_round_proper" WHERE "home_team"='exeter city';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What is the score of the game against away team exeter city on 10 jan 1990?". [/INST] SELECT "score" FROM "third_round_proper" WHERE "date"='10 jan 1990' AND "away_team"='exeter city';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What date did home team liverpool play?". [/INST] SELECT "date" FROM "third_round_proper" WHERE "home_team"='liverpool';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What was the score of the game against away team crewe alexandra?". [/INST] SELECT "score" FROM "third_round_proper" WHERE "away_team"='crewe alexandra';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "maryland" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );. Question: "What are the results of the incumbent who was first elected in 1996?". [/INST] SELECT "results" FROM "maryland" WHERE "first_elected"=1996;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "maryland" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );. Question: "What are the results of the incumbent who was first elected in 1996?". [/INST] SELECT "results" FROM "maryland" WHERE "first_elected"=1996;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "maryland" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );. Question: "Who is the incumbent who was first elected before 2002 from the maryland 3 district?". [/INST] SELECT "incumbent" FROM "maryland" WHERE "first_elected"<2002 AND "district"='maryland 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 "maryland" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );. Question: "What is the party of the maryland 6 district?". [/INST] SELECT "party" FROM "maryland" WHERE "district"='maryland 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 "men" ( "year" real, "gold" text, "silver" text, "bronze" text, "notes" text );. Question: "WHAT IS THE SILVER WITH A YEAR OF 1962?". [/INST] SELECT "silver" FROM "men" WHERE "year"=1962;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "men" ( "year" real, "gold" text, "silver" text, "bronze" text, "notes" text );. Question: "WHAT YEAR HAS A BRONZE OF VALENTIN NOVIKOV?". [/INST] SELECT AVG("year") FROM "men" WHERE "bronze"='valentin novikov';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "men" ( "year" real, "gold" text, "silver" text, "bronze" text, "notes" text );. Question: "WHAT YEAR HAS A SILVER FOR MATTHIAS MERZ?". [/INST] SELECT MIN("year") FROM "men" WHERE "silver"='matthias merz';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "men" ( "year" real, "gold" text, "silver" text, "bronze" text, "notes" text );. Question: "WHAT IS THE YEAR WITH A BRONZE OF AIMO TEPSELL?". [/INST] SELECT MIN("year") FROM "men" WHERE "bronze"='aimo tepsell';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "What is To par, when Player is "Greg Turner"?". [/INST] SELECT "to_par" FROM "final_round" WHERE "player"='greg turner';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "What is Score, when Country is "United States", and when Player is "Mark Brooks"?". [/INST] SELECT "score" FROM "final_round" WHERE "country"='united states' AND "player"='mark brooks';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "What is Score, when Money ( £ ) is greater than 35,000, and when Country is "United States"?". [/INST] SELECT "score" FROM "final_round" WHERE "money">'35,000' AND "country"='united states';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "What is To par, when Country is "United States", when Money ( £ ) is greater than 125,000, and when Score is "67-70-68-71=276"?". [/INST] SELECT "to_par" FROM "final_round" WHERE "country"='united states' AND "money">'125,000' AND "score"='67-70-68-71=276';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "What is the highest Money ( £ ), when Player is "Peter Hedblom"?". [/INST] SELECT MAX("money") FROM "final_round" WHERE "player"='peter hedblom';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real );. Question: "What is the total number of losses for a draw of 7, and 1 points less than 33?". [/INST] SELECT COUNT("lost") FROM "first_division_final_table" WHERE "drawn"=7 AND "points_1"<33;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real );. Question: "What is the total number drawn with goals against less than 55, and a total of 14 losses?". [/INST] SELECT COUNT("drawn") FROM "first_division_final_table" WHERE "goals_against"<55 AND "lost"=14;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real );. Question: "What is the total number of goals that has been played less than 38 times?". [/INST] SELECT COUNT("goals_for") FROM "first_division_final_table" WHERE "played"<38;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "coin_designs" ( "year" real, "theme" text, "face_value" text, "weight" text, "diameter" text, "mintage" real, "issue_price" text );. Question: "What is the Diameter of the Dog Sled (gold variant) Theme coin?". [/INST] SELECT "diameter" FROM "coin_designs" WHERE "theme"='dog sled (gold variant)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "coin_designs" ( "year" real, "theme" text, "face_value" text, "weight" text, "diameter" text, "mintage" real, "issue_price" text );. Question: "What is the MIntage after 2006 of the Ruby-Throated Hummingbird Theme coin?". [/INST] SELECT MAX("mintage") FROM "coin_designs" WHERE "year">2006 AND "theme"='ruby-throated hummingbird';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "coin_designs" ( "year" real, "theme" text, "face_value" text, "weight" text, "diameter" text, "mintage" real, "issue_price" text );. Question: "What is the Mintage of the 12.61 g Weight Ruby-Throated Hummingbird?". [/INST] SELECT COUNT("mintage") FROM "coin_designs" WHERE "weight"='12.61 g' AND "theme"='ruby-throated hummingbird';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "coin_designs" ( "year" real, "theme" text, "face_value" text, "weight" text, "diameter" text, "mintage" real, "issue_price" text );. Question: "What is the Year of the Coin with an Issue Price of $1089.95 and Mintage less than 900?". [/INST] SELECT SUM("year") FROM "coin_designs" WHERE "issue_price"='$1089.95' AND "mintage"<900;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "coin_designs" ( "year" real, "theme" text, "face_value" text, "weight" text, "diameter" text, "mintage" real, "issue_price" text );. Question: "What is the Theme of the coin with an Issue Price of $89.95?". [/INST] SELECT "theme" FROM "coin_designs" WHERE "issue_price"='$89.95';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_calendar_and_winners" ( "round" text, "circuit" text, "date" text, "winning_driver" text, "winning_team" text );. Question: "What was the winning team on 11 July?". [/INST] SELECT "winning_team" FROM "race_calendar_and_winners" WHERE "date"='11 july';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_calendar_and_winners" ( "round" text, "circuit" text, "date" text, "winning_driver" text, "winning_team" text );. Question: "Who is the winning driver of the race on 2 June with a.z.k./roc-compétition a.z.k./roc-compétition as the winning team?". [/INST] SELECT "winning_driver" FROM "race_calendar_and_winners" WHERE "winning_team"='a.z.k./roc-compétition a.z.k./roc-compétition' AND "date"='2 june';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_calendar_and_winners" ( "round" text, "circuit" text, "date" text, "winning_driver" text, "winning_team" text );. Question: "Who is the winning driver of the race on 5 May?". [/INST] SELECT "winning_driver" FROM "race_calendar_and_winners" WHERE "date"='5 may';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_calendar_and_winners" ( "round" text, "circuit" text, "date" text, "winning_driver" text, "winning_team" text );. Question: "What is the round on 30 June with a.z.k./roc-compétition a.z.k./roc-compétition as the winning team?". [/INST] SELECT "round" FROM "race_calendar_and_winners" WHERE "winning_team"='a.z.k./roc-compétition a.z.k./roc-compétition' AND "date"='30 june';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_calendar_and_winners" ( "round" text, "circuit" text, "date" text, "winning_driver" text, "winning_team" text );. Question: "What is the date of the zolder circuit, which had a.z.k./roc-compétition a.z.k./roc-compétition as the winning team?". [/INST] SELECT "date" FROM "race_calendar_and_winners" WHERE "winning_team"='a.z.k./roc-compétition a.z.k./roc-compétition' AND "circuit"='zolder';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What place did Bob May get when his score was 72-66=138?". [/INST] SELECT "place" FROM "second_round" WHERE "score"='72-66=138' AND "player"='bob may';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What country is Stephen Ames from with a place value of t9?". [/INST] SELECT "country" FROM "second_round" WHERE "place"='t9' AND "player"='stephen ames';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What place had a To par of –10?". [/INST] SELECT "place" FROM "second_round" WHERE "to_par"='–10';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What country is Darren Clarke from?". [/INST] SELECT "country" FROM "second_round" WHERE "player"='darren clarke';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What is the To par value that goes with a Score of 70-69=139?". [/INST] SELECT "to_par" FROM "second_round" WHERE "score"='70-69=139';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "club_career_statistics" ( "season" text, "team" text, "country" text, "division" real, "goals" real );. Question: "What is the sum of Goals, when Season is "2005-06", and when Division is less than 1?". [/INST] SELECT SUM("goals") FROM "club_career_statistics" WHERE "season"='2005-06' AND "division"<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 "club_career_statistics" ( "season" text, "team" text, "country" text, "division" real, "goals" real );. Question: "What is Season, when Goals is less than 6, and when Team is "Tarbiat Yazd"?". [/INST] SELECT "season" FROM "club_career_statistics" WHERE "goals"<6 AND "team"='tarbiat yazd';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "club_career_statistics" ( "season" text, "team" text, "country" text, "division" real, "goals" real );. Question: "What is the lowest Division, when Goals is less than 5, and when Season is "2002-03"?". [/INST] SELECT MIN("division") FROM "club_career_statistics" WHERE "goals"<5 AND "season"='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 "club_career_statistics" ( "season" text, "team" text, "country" text, "division" real, "goals" real );. Question: "What is the average Goals, when Team is "Rah Ahan", and when Division is less than 1?". [/INST] SELECT AVG("goals") FROM "club_career_statistics" WHERE "team"='rah ahan' AND "division"<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 "clubs" ( "club" text, "city" text, "stadium" text, "2007_08_result" text, "capacity" real );. Question: "What stadium has 9th in 2.hnl as the 2007-08 result?". [/INST] SELECT "stadium" FROM "clubs" WHERE "2007_08_result"='9th in 2.hnl';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "clubs" ( "club" text, "city" text, "stadium" text, "2007_08_result" text, "capacity" real );. Question: "What club has 3rd in 3.hnl south as the 2007-08 result?". [/INST] SELECT "club" FROM "clubs" WHERE "2007_08_result"='3rd in 3.hnl south';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "clubs" ( "club" text, "city" text, "stadium" text, "2007_08_result" text, "capacity" real );. Question: "What is the lowest capacity that has stadion mladina as the stadium?". [/INST] SELECT MIN("capacity") FROM "clubs" WHERE "stadium"='stadion mladina';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "clubs" ( "club" text, "city" text, "stadium" text, "2007_08_result" text, "capacity" real );. Question: "What stadium has kutina as the city?". [/INST] SELECT "stadium" FROM "clubs" WHERE "city"='kutina';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );. Question: "What was the H/A on 29 july 1992?". [/INST] SELECT "h_a" FROM "pre_season_and_friendlies" WHERE "date"='29 july 1992';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );. Question: "Which Result F-A has Opponents of rosenborg?". [/INST] SELECT "result_f_a" FROM "pre_season_and_friendlies" WHERE "opponents"='rosenborg';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_earthquakes_in_21st_century" ( "date" text, "time_utc" text, "epicenter" text, "magnitude" text, "depth" text, "intensity" text );. Question: "What is the depth of the quake that occurred at 19:48?". [/INST] SELECT "depth" FROM "list_of_earthquakes_in_21st_century" WHERE "time_utc"='19:48';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_earthquakes_in_21st_century" ( "date" text, "time_utc" text, "epicenter" text, "magnitude" text, "depth" text, "intensity" text );. Question: "What is the magnitude with epicenter at Vrancea County, unknown intensity and which happened at 06:36?". [/INST] SELECT "magnitude" FROM "list_of_earthquakes_in_21st_century" WHERE "epicenter"='vrancea county' AND "intensity"='unknown' AND "time_utc"='06:36';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_earthquakes_in_21st_century" ( "date" text, "time_utc" text, "epicenter" text, "magnitude" text, "depth" text, "intensity" text );. Question: "Where was the epicenter of the quake on December 1, 2012?". [/INST] SELECT "epicenter" FROM "list_of_earthquakes_in_21st_century" WHERE "date"='december 1, 2012';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What is Finish, when Year(s) Won is "1991"?". [/INST] SELECT "finish" FROM "made_the_cut" WHERE "year_s_won"='1991';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What is Year(s) Won, when Finish is "T31", and when Player is "Nick Price"?". [/INST] SELECT "year_s_won" FROM "made_the_cut" WHERE "finish"='t31' AND "player"='nick price';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What is Country, when Total is greater than 283, and when Year(s) Won is "1989"?". [/INST] SELECT "country" FROM "made_the_cut" WHERE "total">283 AND "year_s_won"='1989';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text );. Question: "born on 1983-03-14, what is the cb's name?". [/INST] SELECT "name" FROM "united_states" WHERE "pos"='cb' AND "date_of_birth"='1983-03-14';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text );. Question: "born on 1973-08-21, what is the cf's name?". [/INST] SELECT "name" FROM "united_states" WHERE "pos"='cf' AND "date_of_birth"='1973-08-21';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "date" text, "result" text, "score" text, "opponent" text, "record" text, "attendance" text );. Question: "What attendance has detroit lions as the opponent?". [/INST] SELECT "attendance" FROM "schedule" WHERE "opponent"='detroit lions';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "date" text, "result" text, "score" text, "opponent" text, "record" text, "attendance" text );. Question: "What score has houston texans as the opponent?". [/INST] SELECT "score" FROM "schedule" WHERE "opponent"='houston texans';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "date" text, "result" text, "score" text, "opponent" text, "record" text, "attendance" text );. Question: "What score has October 31 as the date?". [/INST] SELECT "score" FROM "schedule" WHERE "date"='october 31';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "date" text, "result" text, "score" text, "opponent" text, "record" text, "attendance" text );. Question: "What record has w as the result, with January 2 as the date?". [/INST] SELECT "record" FROM "schedule" WHERE "result"='w' AND "date"='january 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 "round_six" ( "pick_num" real, "player" text, "nationality" text, "position" text, "team_from" text, "league_from" text );. Question: "What is the position of the team player from Aik?". [/INST] SELECT "position" FROM "round_six" WHERE "team_from"='aik';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_six" ( "pick_num" real, "player" text, "nationality" text, "position" text, "team_from" text, "league_from" text );. Question: "What is the average pick # from the Quebec Major Junior Hockey League player Samuel Carrier?". [/INST] SELECT AVG("pick_num") FROM "round_six" WHERE "league_from"='quebec major junior hockey league' AND "player"='samuel carrier';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_six" ( "pick_num" real, "player" text, "nationality" text, "position" text, "team_from" text, "league_from" text );. Question: "What is the total pick # for the D position from a team from Chilliwack Bruins?". [/INST] SELECT SUM("pick_num") FROM "round_six" WHERE "position"='d' AND "team_from"='chilliwack bruins';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_six" ( "pick_num" real, "player" text, "nationality" text, "position" text, "team_from" text, "league_from" text );. Question: "What is the league that has the pick #160?". [/INST] SELECT "league_from" FROM "round_six" WHERE "pick_num"=160;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "bowl_games" ( "date" text, "bowl_game" text, "big_ten_team" text, "opp_team" text, "score" text );. Question: "What bowl game was played on Dec. 26, 2007?". [/INST] SELECT "bowl_game" FROM "bowl_games" WHERE "date"='dec. 26, 2007';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "bowl_games" ( "date" text, "bowl_game" text, "big_ten_team" text, "opp_team" text, "score" text );. Question: "Who was the opposing team in the game with a score of 21-17?". [/INST] SELECT "opp_team" FROM "bowl_games" WHERE "score"='21-17';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "bowl_games" ( "date" text, "bowl_game" text, "big_ten_team" text, "opp_team" text, "score" text );. Question: "Who was Purdue's opponent?". [/INST] SELECT "opp_team" FROM "bowl_games" WHERE "big_ten_team"='purdue';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "bowl_games" ( "date" text, "bowl_game" text, "big_ten_team" text, "opp_team" text, "score" text );. Question: "What was the score of the Insight Bowl?". [/INST] SELECT "score" FROM "bowl_games" WHERE "bowl_game"='insight bowl';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "bowl_games" ( "date" text, "bowl_game" text, "big_ten_team" text, "opp_team" text, "score" text );. Question: "What was the score of the BCS National Championship game?". [/INST] SELECT "score" FROM "bowl_games" WHERE "bowl_game"='bcs national championship';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "oregon" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );. Question: "Which Democratic incumbent was first elected in 1998?". [/INST] SELECT "incumbent" FROM "oregon" WHERE "party"='democratic' AND "first_elected"=1998;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "oregon" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );. Question: "Which district has a Democratic incumbent that was first elected before 1996?". [/INST] SELECT "district" FROM "oregon" WHERE "party"='democratic' AND "first_elected"<1996;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "oregon" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );. Question: "Who is the incumbent for the Oregon 5 District that was elected in 1996?". [/INST] SELECT "incumbent" FROM "oregon" WHERE "first_elected"=1996 AND "district"='oregon 5';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "oregon" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );. Question: "What was the result of the Oregon 5 District incumbent who was first elected in 1996?". [/INST] SELECT "results" FROM "oregon" WHERE "first_elected"=1996 AND "district"='oregon 5';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.