text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); Question: What is Player, when Total is greater than 148, and when To Par is "12"? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); Question: What is the sum of To Par, when Year(s) Won is "1978 , 1985"? <|assistant|> SELECT S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); Question: What is To Par, when Year(s) Won is "1968 , 1971"? <|assistant|> SELECT "to_par" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_05_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "points" text ); Question: Which Points differe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_05_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "points" text ); Question: Which Played has a P...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_05_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "points" text ); Question: Which Points against...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_05_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "points" text ); Question: Which Points differe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_05_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "points" text ); Question: Which Drawn has Poin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_05_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "points" text ); Question: Which Lost has a Clu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); Question: Can you tell me the Record that has the Date of january 29? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); Question: Can you tell me the Record that has the Visitor of vancouver? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_11" ( "date" text, "tournament" text, "surface" text, "opponent_in_final" text, "score_in_final" text ); Question: What date has the opponent competing in the final of john mcenroe? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season" ( "date" text, "opponent" text, "location" text, "time" text, "result" text ); Question: Where did the Lightning play the NY Rangers at 7:00 pm? <|assistant|> SELECT "location" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season" ( "date" text, "opponent" text, "location" text, "time" text, "result" text ); Question: Who did the Lightning play at the Mellon Arena? <|assistant|> SELECT "opponent" FROM "pre_se...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season" ( "date" text, "opponent" text, "location" text, "time" text, "result" text ); Question: What was the final score for the game played at 7:00 pm? <|assistant|> SELECT "result" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season" ( "date" text, "opponent" text, "location" text, "time" text, "result" text ); Question: Where was the game which ended in a 4-1 w? <|assistant|> SELECT "location" FROM "pre_season"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season" ( "date" text, "opponent" text, "location" text, "time" text, "result" text ); Question: When was a game played at 7:00 pm? <|assistant|> SELECT "date" FROM "pre_season" WHERE "time...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "models" ( "model_name" text, "engine" text, "top_speed" text, "no_of_gears" real, "electrics" text ); Question: Which Top Speed has a Model Name of d14/4 supreme d14/4 sports & bushman? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "models" ( "model_name" text, "engine" text, "top_speed" text, "no_of_gears" real, "electrics" text ); Question: Which Electrics has an Engine of 175cc, bhp (kw), and a Model Name of d10 sports ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: Who does pΓ‘draig harrington play for? <|assistant|> SELECT "country" FROM "f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "k_league_clubs_2008" ( "club" text, "head_coach" text, "city" text, "stadium" text, "2007_season" text ); Question: Which stadium has Seongnam Ilhwa Chunma? <|assistant|> SELECT "stadium" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "k_league_clubs_2008" ( "club" text, "head_coach" text, "city" text, "stadium" text, "2007_season" text ); Question: What city is Gwang-Yang stadium in? <|assistant|> SELECT "city" FROM "k_leagu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "k_league_clubs_2008" ( "club" text, "head_coach" text, "city" text, "stadium" text, "2007_season" text ); Question: Which stadium has FC Seoul? <|assistant|> SELECT "stadium" FROM "k_league_clu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "k_league_clubs_2008" ( "club" text, "head_coach" text, "city" text, "stadium" text, "2007_season" text ); Question: What stadium is in Seoul? <|assistant|> SELECT "stadium" FROM "k_league_clubs...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text ); Question: What is the 1993 value of the Fre...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text ); Question: What is the 1990 value with a 24 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text ); Question: What is the 1993 value with a 1r ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text ); Question: What is the 1994 value with a 2r ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text ); Question: What is the 1993 value of the 199...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text ); Question: What is the 1993 value of the 199...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "location_attendance" text, "series" text ); Question: Which Team has a Location...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "location_attendance" text, "series" text ); Question: Which High points have Hi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "location_attendance" text, "series" text ); Question: Which Date has High rebou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "location_attendance" text, "series" text ); Question: What was the score of gam...
<|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 steve elkington's to par? <|assistant|> SELECT "to_par" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overview" ( "season" text, "episodes" real, "season_premiere" text, "season_finale" text, "peak_series_rating_citation_needed" text, "average_series_rating" text, "dvd_release_date" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overview" ( "season" text, "episodes" real, "season_premiere" text, "season_finale" text, "peak_series_rating_citation_needed" text, "average_series_rating" text, "dvd_release_date" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "school" text, "location" text, "founded" real, "enrollment" real, "nickname" text ); Question: What is the most recent year founded that has a nickname of bruins? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "school" text, "location" text, "founded" real, "enrollment" real, "nickname" text ); Question: What is the most recent year founded with an enrollment of 42,708? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the Score of the game with the New York Rangers Home team with a Record of 8–27–5? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: On what Date was the Home team Detroit Red Wings with a Record of 10–41–6? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the Visitor in the game with a Record of 11–49–7? <|assistant|> SELECT "visitor" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the Record of the Chicago Black Hawks Home game with the New York Rangers and a Scor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the Home team on October 17 with a Score of 1–2? <|assistant|> SELECT "home" FROM "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the Record of the game on January 31 with Visitors Detroit Red Wings? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_21" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "crowd" real, "box_score" text, "report" text ); Question: Name the Report of 7 february with an A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_21" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "crowd" real, "box_score" text, "report" text ); Question: Which Date has a Crowd smaller than 4,4...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_21" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "crowd" real, "box_score" text, "report" text ); Question: Name the lowest Crowd of hisense arena ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_21" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "crowd" real, "box_score" text, "report" text ); Question: Name the Box Score which has an Away te...
<|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 ); Question: What is the lowest Year, when Venue is Rio De Janeiro, Brazil? <|assistant|> SELECT MIN...
<|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 ); Question: What is Event, when Year is 2008? <|assistant|> SELECT "event" FROM "achievements" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "record" text ); Question: What is the latest date in March when the opponent was the Boston Bruins and the gam...
<|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" real, "location" text ); Question: What is the method of the match with chris a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_season" ( "season" text, "race" real, "podium" real, "pole" real, "f_lap" real ); Question: What was the pole for a race lower than 16 with a Flap higher than 8 and a podium higher than 11? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_season" ( "season" text, "race" real, "podium" real, "pole" real, "f_lap" real ); Question: How many podiums had a race higher than 14 in 1996 and a Flap lower than 9? <|assistant|> SELECT C...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_season" ( "season" text, "race" real, "podium" real, "pole" real, "f_lap" real ); Question: How many races had 4 podiums, 5 poles and more than 3 Flaps? <|assistant|> SELECT SUM("race") FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_season" ( "season" text, "race" real, "podium" real, "pole" real, "f_lap" real ); Question: What are the fewest podiums in 2005 with fewer than 0 poles? <|assistant|> SELECT MIN("podium") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: Which Player has a To par of +9? <|assistant|> SELECT "player" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: Which years did raymond floyd win? <|assistant|> SELECT "year_s_won" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: How much total has a To par of +9? <|assistant|> SELECT COUNT("total"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: Which Total has a Country of united states, and a Player of andy nort...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: What is the highest grid for Aprilia vehicles, laps over 5, and a retirement finish...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: What is the average laps completed by riders with times of +2:11.524? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: Which rider has a time of +2:11.524? <|assistant|> SELECT "rider" FROM "125cc_class...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: What is the average grid for vehicles manufactured by Aprilia and having run more t...
<|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_assists" text, "location_attendance" text, "record" text ); Question: What record has January 27...
<|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_assists" text, "location_attendance" text, "record" text ); Question: What team has brad miller ...
<|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_assists" text, "location_attendance" text, "record" text ); Question: What is the high assists t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1980s_giants_12_9" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); Question: Which date had a game with the New York Giants as the winner, year over...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1980s_giants_12_9" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); Question: Which date had a year under 1988, loser of Philadelphia Eagles, locatio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1980s_giants_12_9" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); Question: Which date had a loser of New York Giants and a result of 23-17? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: HOW MANY SILVER METALS DOES SOUTH KOREA HAVE WITH 2 GOLD METALS? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: WHAT COUNTRY HAS THE HIGHEST BRONZE COUNT, MORE THAN 1 SILVER METAL, AND LESS T...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_performing_clubs_in_the_prime_league" ( "club" text, "champions" real, "runners_up" real, "3rd_place" real, "4th_place" real ); Question: What is the average 4th-Place, when Runners-Up is l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_performing_clubs_in_the_prime_league" ( "club" text, "champions" real, "runners_up" real, "3rd_place" real, "4th_place" real ); Question: What is the highest Runners-Up, when Champions is l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_performing_clubs_in_the_prime_league" ( "club" text, "champions" real, "runners_up" real, "3rd_place" real, "4th_place" real ); Question: What is the average Runners-Up, when 4th-Place is g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_performing_clubs_in_the_prime_league" ( "club" text, "champions" real, "runners_up" real, "3rd_place" real, "4th_place" real ); Question: What is the sum of Runners-Up, when Champions is gr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_performing_clubs_in_the_prime_league" ( "club" text, "champions" real, "runners_up" real, "3rd_place" real, "4th_place" real ); Question: What is the highest 3rd-Place, when Club is "Home U...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "championships_per_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total medals for nation with more than 0 silvers and more than 0 golds?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "championships_per_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the fewest gold medals for a team with fewer than 1 silver, more than 1 bro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "championships_per_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the smallest rank when there are fewer than 1 silver, 4 golds and less than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "championships_per_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many gold medals for a nation with rank less than 5, more than 0 silvers and a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "championships_per_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total for the team with more than 2 golds and more than 0 bronze? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: Which rider has time of +19.751? <|assistant|> SELECT "rider" FROM "250cc_classific...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: Which manufacturer of aprilia wth time of +1:36.557 has the highest lap? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: What is time of manufacturer with grid 21? <|assistant|> SELECT "time" FROM "250cc_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: What is the total of laps with grid of 2 <|assistant|> SELECT SUM("laps") FROM "250...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: What is the lowest grid with time of +0.499,when laps are larger than 21? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: What is the total laps when manufacturer of gilera has time of 40:19.910 and grid i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "0_728_throw_3_times" ( "1st_throw" real, "2nd_throw" real, "3rd_throw" real, "equation" text, "result" real ); Question: What is the average 1st Throw, when Result is less than 728, when 3rd Th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "0_728_throw_3_times" ( "1st_throw" real, "2nd_throw" real, "3rd_throw" real, "equation" text, "result" real ); Question: What is the sum of 3rd Throw, when Result is greater than 546, and when ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "0_728_throw_3_times" ( "1st_throw" real, "2nd_throw" real, "3rd_throw" real, "equation" text, "result" real ); Question: What is the total number of Result, when 2nd Throw is "2", and when 1st ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "name" text, "nationality" text, "time" text ); Question: What is the time when the rank is 14? <|assistant|> SELECT "time" FROM "heats" WHERE "rank"=14;<|end...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "name" text, "nationality" text, "time" text ); Question: what is the rank when the time is 3:12.40? <|assistant|> SELECT SUM("rank") FROM "heats" WHERE "time...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "name" text, "nationality" text, "time" text ); Question: what is the rank when the heat is more than 4? <|assistant|> SELECT SUM("rank") FROM "heats" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "name" text, "nationality" text, "time" text ); Question: what is the nationality when the heat is less than 3 and the time is 2:35.31? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "name" text, "nationality" text, "time" text ); Question: what is the name when the heat is less than 3, the rank is less than 18, the nationality is east ger...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: Which tie number had an away team of the Tranmere Rovers? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: Which tie number had an away team of the Tranmere Rovers? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: What date did the Boston Celtics play at Richfield Coliseum? <|assistant|> SEL...