text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_a_star_talent_search_winners" ( "year" real, "award" text, "name" text, "institution" text, "chief_judge" text ); Question: What institution won in 2010 with student Cheng Herng Yi? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: What was the lowest postion of ehc straubing ii when they played less th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: What was the drawn amount for teams with points of 12 and played smaller...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: How many games were played by the team with 2 draws, less than 16 points...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text ); Question: What was the grid...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text ); Question: Which team had a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text ); Question: What was the time...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text ); Question: What were the num...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text ); Question: Which team had a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_records" ( "event" text, "score" real, "name" text, "nation" text, "games" text, "date" text ); Question: For the 27 arrow match event, what's the sum of all scores for that event? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_records" ( "event" text, "score" real, "name" text, "nation" text, "games" text, "date" text ); Question: Which event had a score of over 673 points? <|assistant|> SELECT "event" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_appearances" ( "player" text, "position" text, "premier_league" real, "fa_cup" real, "league_cup" real, "uefa_cup" real, "total" real ); Question: What is the total number of appearanc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_appearances" ( "player" text, "position" text, "premier_league" real, "fa_cup" real, "league_cup" real, "uefa_cup" real, "total" real ); Question: What is the highest total number of a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_appearances" ( "player" text, "position" text, "premier_league" real, "fa_cup" real, "league_cup" real, "uefa_cup" real, "total" real ); Question: What player had less than 6 appearanc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_appearances" ( "player" text, "position" text, "premier_league" real, "fa_cup" real, "league_cup" real, "uefa_cup" real, "total" real ); Question: What is the sum of the appearances at...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cancer_immunotherapy_monoclonal_antibodi" ( "antibody" text, "brand_name" text, "approval_date" real, "type" text, "target" text ); Question: What's the target of the antibody rituximab? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cancer_immunotherapy_monoclonal_antibodi" ( "antibody" text, "brand_name" text, "approval_date" real, "type" text, "target" text ); Question: What's the target for the brand mylotarg? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cancer_immunotherapy_monoclonal_antibodi" ( "antibody" text, "brand_name" text, "approval_date" real, "type" text, "target" text ); Question: What's the type for the brand herceptin with an app...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "huskers_in_the" ( "player" text, "position" text, "round" real, "overall" real, "mlb_team" text ); Question: What is Position, when Overall is less than 590, and when Round is 3? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "huskers_in_the" ( "player" text, "position" text, "round" real, "overall" real, "mlb_team" text ); Question: What is Player, when MLB Team is "Florida Marlins", and when Round is less than 15? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "huskers_in_the" ( "player" text, "position" text, "round" real, "overall" real, "mlb_team" text ); Question: What is the lowest Overall, when Player is "Dan Jennings", and when Round is greater...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "huskers_in_the" ( "player" text, "position" text, "round" real, "overall" real, "mlb_team" text ); Question: What is the total number of Round, when Position is 2B? <|assistant|> SELECT COUNT("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "point_standings" ( "driver" text, "points" real, "wins" real, "top_5" real, "top_10" real ); Question: What are the highest points for Justin Lofton when his top 10 is lower than 5? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "point_standings" ( "driver" text, "points" real, "wins" real, "top_5" real, "top_10" real ); Question: What is Frank Kimmel's lowest top 5 with more than 0 wins and fewer than 14 top 10s? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "point_standings" ( "driver" text, "points" real, "wins" real, "top_5" real, "top_10" real ); Question: What is the lowest top 10 with fewer than 4 wins, fewer than 3260 points and more than 0 f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "country" text, "mark" text ); Question: When the mark is 7.35, what's the lowest Lane found? <|assistant|> SELECT MIN("lane") FROM "heats" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "country" text, "mark" text ); Question: What's the lowest lane found for a mark of 8.09 pb? <|assistant|> SELECT MIN("lane") FROM "heats" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "country" text, "mark" text ); Question: What's the sum of all of ivet lalova's Heat stats? <|assistant|> SELECT SUM("heat") FROM "heats" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "country" text, "mark" text ); Question: What's the total number of Heat recorded for the british virgin islands? <|assistant|> SELECT COUNT("hea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "country" text, "mark" text ); Question: When the lane is under 2 and the name is virgen benavides with a mark of 7.29, what's the total number o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text, "time" text ); Question: What's the Time for the Competition of european cup and has a Venue of M...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text, "time" text ); Question: What's the Time for an Event of 4x100 m relay and has a Venue of Frankfu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text, "time" text ); Question: What Competition has an Event of 4x100 m relay and has the Time of 38.89...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text, "time" text ); Question: What's the lowest Year with a Venue of casablanca and has the Time of 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college_junior_club_team" text ); Question: What was the College/junior/club team of the player with the united sta...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college_junior_club_team" text ); Question: What was the lowest pick number for a united states player picked befor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What country was the player with the score line 69-71-72-69=281 from? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What was the score of the player from South Africa? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What country did the player with the score line 73-74-72-64=283 from? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "top_fuel" text, "funny_car" text, "pro_stock" text, "pro_stock_motorcycle" text ); Question: Who won Pro Stock Motorcycle the year Tom Martino won Pro Stock? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "top_fuel" text, "funny_car" text, "pro_stock" text, "pro_stock_motorcycle" text ); Question: Who won Funny Car in 2012? <|assistant|> SELECT "funny_car" FROM "winners" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "top_fuel" text, "funny_car" text, "pro_stock" text, "pro_stock_motorcycle" text ); Question: Who won Funny Car when Jim Yates won Pro Stock, in years after 1996? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "top_fuel" text, "funny_car" text, "pro_stock" text, "pro_stock_motorcycle" text ); Question: Who won Pro Stock the year Tony Schumacher won Top Fuel and Tony Pedregon w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "top_fuel" text, "funny_car" text, "pro_stock" text, "pro_stock_motorcycle" text ); Question: In which year did John Force win Funny Car and Mike Dunn win in Top Fuel? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_seasons_and_teams" ( "season" text, "races" real, "wins" real, "podiums" real, "poles" real, "fastest_laps" real ); Question: What is the total number of races in the 2006 season with 0 po...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_seasons_and_teams" ( "season" text, "races" real, "wins" real, "podiums" real, "poles" real, "fastest_laps" real ); Question: What is the highest number of the fastest laps when there were...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_seasons_and_teams" ( "season" text, "races" real, "wins" real, "podiums" real, "poles" real, "fastest_laps" real ); Question: What is the total number of races when there was more than 1 p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_seasons_and_teams" ( "season" text, "races" real, "wins" real, "podiums" real, "poles" real, "fastest_laps" real ); Question: What was the average number of fastest laps with less than 0 p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_seasons_and_teams" ( "season" text, "races" real, "wins" real, "podiums" real, "poles" real, "fastest_laps" real ); Question: What is the smallest number of poles when the fastest laps are...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_seasons_and_teams" ( "season" text, "races" real, "wins" real, "podiums" real, "poles" real, "fastest_laps" real ); Question: What is the total number of wins in the 2007 season when the f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_finals_6_2" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What surface did hayley ericks...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_finals_6_2" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: Who were the opponents on a ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_finals_6_2" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What was hayley ericksen's sco...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: Who won the Silver the Year Katie Curtis Unknown won the Bronze? <|assistant|> SELECT "silver" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: Round that greg huntington went in? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: Total overall from penn state? <|assistant|> SELECT S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaching_history" ( "coach" text, "years" text, "seasons" real, "record" text, "pct" real, "nat_titles" real ); Question: How many seasons did Pat Chambers coach? <|assistant|> SELECT COUNT("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What was the to par that goes with the score 68-74-69=211? <|assistant|> SELECT "to_par" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What country is Paul Stankowski from? <|assistant|> SELECT "country" FROM "third_round" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What place goes with the score of 70-66-65=201? <|assistant|> SELECT "place" FROM "third_rou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: When Fred Funk had a to par of E, what was the score? <|assistant|> SELECT "score" FROM "thi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text, "location" text ); Question: Where is the location where S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: what is the score on 14 december 1974 and the away team is crystal palace? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: what is the date when the away team is crystal palace? <|assistant|> SELECT "dat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current" ( "name" text, "pos" text, "height" text, "weight" text, "2012_club" text ); Question: What is the height of the player with the 2012 club of asd roma? <|assistant|> SELECT "height" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What was the Tie Number of the Bradford City away team? <|assistant|> SELECT "ti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Who was the home team that had a replay of Tie Number and played against the Bol...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What date has a Tie Number of 4? <|assistant|> SELECT "date" FROM "fourth_round_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What is the average money ($) that Tom Weiskopf made? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What place did the golfer from the United States come in with a To Par...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cardinal_numbers" ( "number_notation" real, "power_notation" text, "short_scale" text, "long_scale" text, "indian_or_south_asian_english" text ); Question: For the number notion more than 1,000...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cardinal_numbers" ( "number_notation" real, "power_notation" text, "short_scale" text, "long_scale" text, "indian_or_south_asian_english" text ); Question: For a long scale of one million, what...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cardinal_numbers" ( "number_notation" real, "power_notation" text, "short_scale" text, "long_scale" text, "indian_or_south_asian_english" text ); Question: For a power notation of 10 12, what i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cardinal_numbers" ( "number_notation" real, "power_notation" text, "short_scale" text, "long_scale" text, "indian_or_south_asian_english" text ); Question: For a short scale of one quadrillion ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_lottery" ( "pick_num" real, "brand_to" text, "employee_real_name" text, "role" text, "brand_from" text ); Question: what is the employee (real name) when the pick # is higher than 10 and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "uefa_cup" ( "match" real, "date" text, "round" text, "home_away" text, "opponent_team" text, "score" text, "scorers" text ); Question: Who was the opposing team when the scorer was ronaldin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "uefa_cup" ( "match" real, "date" text, "round" text, "home_away" text, "opponent_team" text, "score" text, "scorers" text ); Question: Who was the opposing team when the scorers were jong-a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What was the score when Altrincham was home? <|assistant|> SELECT "score" FROM "t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "premier_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 );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "premier_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 );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "premier_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 );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "premier_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 );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_ii" ( "position" real, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); Question: What is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_ii" ( "position" real, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); Question: What is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_ii" ( "position" real, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); Question: What is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_ii" ( "position" real, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); Question: What is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_ii" ( "position" real, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); Question: What is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the highest total for bronze with a gold larger than 0, a silver smaller than 5, and a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is Date, when Winning Score is −14 (68-68-67-71=274)? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the Margin of Victory, when Tournament is Mercedes Cha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is Date, when Tournament, is Greenbrier Classic? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is Runner(s)-Up when Margin of Victory is 6 Strokes? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is Date, when Runner(s)-Up is Jonathan Kaye? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "colles" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real ); Question: What is the year that nahete colles was named? <|assistant|> SELECT MAX("year_named"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "colles" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real ); Question: What year was the geological feature with a latitude of 76.0n and a diameter larger ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "colles" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real ); Question: What is the diameter in km of t'ien hu colles? <|assistant|> SELECT "diameter_km" FR...