text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Who is the visitor team of the game where Buffalo was the home team? <|assistant|> SELECT "visitor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What driver has grid number 18? <|assistant|> SELECT "driver" FROM "race" WHERE "grid"=18;<...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the time or retired time for timo glock with under 70 laps and a grid number greate...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "districts_of_bogor_city" ( "english_name" text, "original_name" text, "area_in_km" real, "population_at_2010_census" real, "number_of_settlements_and_villages" real ); Question: Kecamatan Bogor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "districts_of_bogor_city" ( "english_name" text, "original_name" text, "area_in_km" real, "population_at_2010_census" real, "number_of_settlements_and_villages" real ); Question: There are less ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Luxembourg received how many gold medals? <|assistant|> SELECT AVG("gold") FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships_operated_by_zeeland_steamship_comp" ( "ship_s_name" text, "date_entered_service" text, "date_withdrawn" text, "tonnage" real, "type_of_ship" text ); Question: what is the sum of tonnage w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships_operated_by_zeeland_steamship_comp" ( "ship_s_name" text, "date_entered_service" text, "date_withdrawn" text, "tonnage" real, "type_of_ship" text ); Question: what is the ships name that ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships_operated_by_zeeland_steamship_comp" ( "ship_s_name" text, "date_entered_service" text, "date_withdrawn" text, "tonnage" real, "type_of_ship" text ); Question: what is the least tonnage fo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships_operated_by_zeeland_steamship_comp" ( "ship_s_name" text, "date_entered_service" text, "date_withdrawn" text, "tonnage" real, "type_of_ship" text ); Question: what is the name of the ship...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships_operated_by_zeeland_steamship_comp" ( "ship_s_name" text, "date_entered_service" text, "date_withdrawn" text, "tonnage" real, "type_of_ship" text ); Question: what is the tonnage of the s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What's the sum of gold where silver is more than 2 and the total is 12? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What's the lowest gold with a total of 4 and less than 2 silver for liechtenste...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What's the total number of gold where the total is less than 23 and the rank is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What's the sum of total where the rank is over 9 and the gold is less than 1? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "location_attendance" real, "record" text ); Question: What was the attendance number for the Timberwol...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What did the team score when playing at ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the smallest crowd at home with...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the combined of Crowd when richm...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What did the team score when playing aga...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_21_5" ( "edition" text, "round" text, "date" text, "surface" text, "opponent" text, "result" text ); Question: What opponent has a result of 3–6, 6–2, 4–6? <|assistant|> SELECT "oppon...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_21_5" ( "edition" text, "round" text, "date" text, "surface" text, "opponent" text, "result" text ); Question: When was the 1991 world group I with the opponent of Li Fang? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_21_5" ( "edition" text, "round" text, "date" text, "surface" text, "opponent" text, "result" text ); Question: On July 15, 1984 what surface was used? <|assistant|> SELECT "surface" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_21_5" ( "edition" text, "round" text, "date" text, "surface" text, "opponent" text, "result" text ); Question: For what round was the opponent mercedes paz with a result of 4–6, 6–1, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_21_5" ( "edition" text, "round" text, "date" text, "surface" text, "opponent" text, "result" text ); Question: What surface was used on July 17, 1983? <|assistant|> SELECT "surface" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_21_5" ( "edition" text, "round" text, "date" text, "surface" text, "opponent" text, "result" text ); Question: What was the result on October 8, 1985? <|assistant|> SELECT "result" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real ); Question: Name the highest pick number for PI GP mor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real ); Question: Name the least RD number that has PI GP mo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What day did Footscray play as the away ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was Hawthorn's away teams opponents...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); Question: What was the attendance of april 17? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What was the loss of the Mariners game when they had a record of 21-34? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: Who did the Mariners play when they had a record of 33-45? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What was the loss of the Mariners game when they had a record of 22-35? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What was the record for the game attended by 35,614 spectators? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What is the record for April 8? <|assistant|> SELECT "record" FROM "game_log...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What was the attendance for the game that has a record of 1-1? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What is the record for the game with an attendance of 35,305? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: what is the grid when the driver is louis rosier and the laps is more than 78? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: what is the time/retired when the driver is toulo de graffenried? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: what is the laps when the driver is tony rolt and the grid is less than 10? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: what is the time/retired when the constructor is maserati and the laps is 90? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: What is the average Attendance at Venue A on 16 October 2004? <|assistant|> SELECT AVG("atte...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: What is the lowest Attendance when Middlesbrough played at Venue A? <|assistant|> SELECT MIN...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the home team when the away team...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "legislative_history" ( "congress" text, "short_title" text, "bill_number_s" text, "date_introduced" text, "sponsor_s" text, "num_of_cosponsors" real ); Question: Who was the sponsor for the b...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "nominated_work" text, "event" text, "award" text, "result" text ); Question: What year was Herself nominated at the MTV Movie Awards? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the average amount of spectators...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What did the away team score at MCG? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What did the home team score when playin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where was the game when Geelong was the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What team was the away team at Arden Str...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "x" ( "name" text, "latitude" real, "longitude" real, "diameter_km" real, "named_after" text ); Question: What in Xenia's Diameter in km, with a latitude of 14 and a longitude of 249.4? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "x" ( "name" text, "latitude" real, "longitude" real, "diameter_km" real, "named_after" text ); Question: What is the latitude for a crater with a diameter of 12.8 km and a longitude of 208? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text ); Question: Who was the Runner(s)-up in the race wit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text ); Question: When was the Masters Tournament? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the margin of victory in the rac...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text ); Question: What tournament took place on 7 Aug 2011...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_times" ( "team" text, "class" text, "day_1" text, "day_2" text, "behind" text ); Question: For the team that had 4:05.096, what was their day 2? <|assistant|> SELECT "day_2" FROM "qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_times" ( "team" text, "class" text, "day_1" text, "day_2" text, "behind" text ); Question: Which team had 3:18.513 on day 1? <|assistant|> SELECT "team" FROM "qualifying_times" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_times" ( "team" text, "class" text, "day_1" text, "day_2" text, "behind" text ); Question: For the team with a class of gt2 and 3:59.820 on day 2, what was the behind? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_times" ( "team" text, "class" text, "day_1" text, "day_2" text, "behind" text ); Question: Which team was 3:47.761 on day 2? <|assistant|> SELECT "team" FROM "qualifying_times" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_times" ( "team" text, "class" text, "day_1" text, "day_2" text, "behind" text ); Question: What is the class of the team that has a behind of +44.780? <|assistant|> SELECT "class" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_times" ( "team" text, "class" text, "day_1" text, "day_2" text, "behind" text ); Question: For the team with 3:42.162 on day 2, what was the behind? <|assistant|> SELECT "behind" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "juniors" ( "tournament" text, "1993" text, "1994" text, "1995" text, "1996" text ); Question: Which one of the tournaments had a QF in 1996? <|assistant|> SELECT "tournament" FROM "juniors" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "juniors" ( "tournament" text, "1993" text, "1994" text, "1995" text, "1996" text ); Question: What is the value for the Wimbledon tournament in 1996? <|assistant|> SELECT "1996" FROM "juniors" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "year" real, "player" text, "position" text, "college_country" text, "wnba_team" text ); Question: What year is center Ann Wauters? <|assistant|> SELECT SUM("year") FROM "see_also" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "year" real, "player" text, "position" text, "college_country" text, "wnba_team" text ); Question: What is the earliest year that includes a Seattle Storm guard? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "year" real, "player" text, "position" text, "college_country" text, "wnba_team" text ); Question: Regarding players before 2000, what is the USC player's position? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "year" real, "player" text, "position" text, "college_country" text, "wnba_team" text ); Question: What is the earliest year a Baylor player made the list? <|assistant|> SELECT MIN(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "year" real, "player" text, "position" text, "college_country" text, "wnba_team" text ); Question: What is Sue Bird's position? <|assistant|> SELECT "position" FROM "see_also" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1899_1913" ( "class" text, "wheels" text, "date" text, "builder" text, "no_built" real ); Question: Which Builder has a Class of Terrier? <|assistant|> SELECT "builder" FROM "1899_1913" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: who is the constructor when the laps is less than 68, the grid is more than 20 an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: what is the laps when the time/retired is turbo and the grid is less than 14? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: what is the time/retired when the laps is less than 4? <|assistant|> SELECT "time...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "season" text, "club" text, "competition" text, "apps" real, "goals" real ); Question: Name the most goals for total club and apps less than 120 <|assistant|> SELECT MAX("goals") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "afl_draftees" ( "draft" text, "pick" real, "player" text, "club" text, "games" real, "goals" real ); Question: How many goals are associated with 75 games? <|assistant|> SELECT MAX("goals") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "g" ( "player" text, "no_s" real, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text ); Question: What is the position for the Rockets years of 200...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "g" ( "player" text, "no_s" real, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text ); Question: What is the average number of years for the Houst...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "g" ( "player" text, "no_s" real, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text ); Question: For the years 1992-93, what position did he play ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "g" ( "player" text, "no_s" real, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text ); Question: What is the total number of years did he play the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); Question: How many wins for bruce fleisher with over 31 events? <|assistant|> SELECT AVG(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); Question: What is the average rank for players with under 26 events and less than 2 wins?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); Question: What is the high earnings for players with 34 events and over 2 wins? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); Question: What is the ranking for bruce fleisher with over $2,411,543? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: Which tournament had a 2R categorization in 2009...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the categorization in 2009 when it was 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the categorization in 2012 when it was A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What is the categorization in 2010 when it was A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_08_teams" ( "club" text, "city" text, "stadium" text, "capacity" real, "2006_2007_season" text ); Question: What city in the 06/07 season had cagliari and finished 16th in serie a? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the score against home team, Ric...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is Fitzroy's smallest crowd size? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How many people attended the game where t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_18_5_13" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: When was naomi cavaday the opponent? <|assistant|> SELECT "date" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_18_5_13" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: When was andrea gámiz the opponent? <|assistant|> SELECT "date" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_18_5_13" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Who is the opponent when the score was 6–4, 6–2 and the surface w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where was game that had a home team scor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How many points did the away team score ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the smallest crowd at a home ga...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: Tell me the time/retired for riccardo patrese <|assistant|> SELECT "time_retired" FROM "rac...