text
stringlengths
310
1.28k
<|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: How big was the crowd of the Home team o...
<|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, "date" text ); Question: What away team had a score of 7.9 (51)? <|assistant|> SE...
<|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, "date" text ); Question: What was the home team score when the away team scored 6...
<|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, "date" text ); Question: What date was the home team score 5.9 (39)? <|assistant|...
<|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, "date" text ); Question: What was the away team when the home team was south melb...
<|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, "date" text ); Question: What was the away team when the home team score was 5.9 ...
<|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, "date" text ); Question: What is the home team score when the away team score was...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Who was recruited from Calgary? <|assistant|> SELECT "player" FROM "round_one" WHERE "...
<|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, "wins" real ); Question: What number of wins was ranked higher than 5? <|assistant|> SELECT SUM("wins") FROM "leaders" WH...
<|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, "wins" real ); Question: What rank is Miller Barber with more than 11 wins? <|assistant|> SELECT "rank" FROM "leaders" WH...
<|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 was the venue when the away team sc...
<|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 was the venue when Collingwood was ...
<|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 was the venue when the away team sc...
<|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: How many people were in the crowd when t...
<|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 was the largest crowd at vfl park? ...
<|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 were at the game where th...
<|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 when the away team was...
<|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 when the away team was...
<|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 home team that played at Cor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "goal" real, "date" text, "score" text, "result" text, "competition" text ); Question: How many goals were scored on November 22, 1994? <|assistant|> SELECT SUM("goal") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "goal" real, "date" text, "score" text, "result" text, "competition" text ); Question: What was the result of the game with 9 goals? <|assistant|> SELECT "result" FROM "i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_of_the_national_referendum_on_pr" ( "jurisdiction" text, "for_prohibition" real, "percent_for" real, "against_prohibition" real, "percent_against" real ); Question: What is the highest ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_of_the_national_referendum_on_pr" ( "jurisdiction" text, "for_prohibition" real, "percent_for" real, "against_prohibition" real, "percent_against" real ); Question: What is the lowest p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_of_the_national_referendum_on_pr" ( "jurisdiction" text, "for_prohibition" real, "percent_for" real, "against_prohibition" real, "percent_against" real ); Question: What is the highest ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "7701_7800" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real ); Question: what is the apparent m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "7701_7800" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real ); Question: What is the Right asce...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "7701_7800" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real ); Question: Which Constellation ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "driver" text, "rounds" text ); Question: What is the name of the Chassis of Diver Maria Teresa de Fili...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" real, "avg" real, "td_s" real, "long" real ); Question: How many yards have a Player of james macpherson, and a Long smaller than 1? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" real, "avg" real, "td_s" real, "long" real ); Question: How many averages have a TD's of 6, and more than 25 yards? <|assistant|> SELECT CO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" real, "avg" real, "td_s" real, "long" real ); Question: What is the lowest car with more than 122 yards? <|assistant|> SELECT MIN("car") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What away team has a home team score of 1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which home team has home team score of 12...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What round was Ryan Thang drafted in? <|assistant|> SELECT M...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_results" ( "driver" text, "car_num" real, "make" text, "points" real, "laps" real, "winnings" text ); Question: How many laps did Jeff Burton have when he drove car with a # over 9 and m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_results" ( "driver" text, "car_num" real, "make" text, "points" real, "laps" real, "winnings" text ); Question: What was Scott Riggs points when he had more than 400 laps? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_results" ( "driver" text, "car_num" real, "make" text, "points" real, "laps" real, "winnings" text ); Question: Who drove the dodge with a car # less than 5? <|assistant|> SELECT "driver...
<|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: On...
<|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: On...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_supporting_actress" ( "year" text, "name" text, "film" text, "role" text, "status" text ); Question: What actor made a film in 1957? <|assistant|> SELECT "name" FROM "best_supporting_actre...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_supporting_actress" ( "year" text, "name" text, "film" text, "role" text, "status" text ); Question: What year did Miyoshi Umeki make a film? <|assistant|> SELECT "year" FROM "best_support...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_supporting_actress" ( "year" text, "name" text, "film" text, "role" text, "status" text ); Question: What status has a role? <|assistant|> SELECT "status" FROM "best_supporting_actress" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_by_round" ( "round" real, "nominees" text, "team" text, "match" text, "ground" text ); Question: what is the earliest round for nominee david mundy? <|assistant|> SELECT MIN("round") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_by_round" ( "round" real, "nominees" text, "team" text, "match" text, "ground" text ); Question: what round saw the ground of telstra dome and shaun burgoyne as nominees? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_by_country" ( "country" text, "total" real, "marathon_men_s" real, "marathon_women_s" real, "half_marathon_men_s" real, "half_marathon_women_s" real ); Question: When the total winner...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real ); Question: What has the lowest number of wins with GA s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real ); Question: Which team has the most ties with fewer than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real ); Question: How many games did the team lose that played...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1930s_bears_12_11_1" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "attendance" real, "location" text ); Question: what date saw the chicago bears lose in green ba...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_19" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the Away team score for Away tea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_19" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which Home team with the Hawthorn Away t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "years" text, "displacement" text, "engine" text, "power" text, "torque" text ); Question: what is the years for the displacement 4.0l (242cid)? <|assistant|> SELECT "years" FROM "en...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "years" text, "displacement" text, "engine" text, "power" text, "torque" text ); Question: Which engine has a torgue of lb·ft (n·m)? <|assistant|> SELECT "engine" FROM "engines" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ncaa_division_i_fbs_football_win_loss_re" ( "mountain_west" text, "lost" real, "tied" real, "pct" real, "years" real, "total_games" real ); Question: How many years for the team with under 31...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ncaa_division_i_fbs_football_win_loss_re" ( "mountain_west" text, "lost" real, "tied" real, "pct" real, "years" real, "total_games" real ); Question: How many games tied for the air force wit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaches" ( "number_name" text, "description" text, "livery" text, "owner_s" text, "date" real ); Question: What is the description where the date is 1911? <|assistant|> SELECT "description" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaches" ( "number_name" text, "description" text, "livery" text, "owner_s" text, "date" real ); Question: What is the number and name where the date is earlier than 1905? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "secondary_schools" ( "name" text, "years" text, "gender" text, "local_board" text, "suburb" text, "authority" text, "decile" text, "roll" real ); Question: What year was the name mount ro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When melbourne played as the home team, w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When the home team was geelong, who playe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: If north melbourne played as the home tea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the away team when the home team ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When st kilda was playing at home what wa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2_1995_1996" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "original_air_date" text, "production_code" text ); Question: What is the production code of the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where was the game played where the home ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the away team when the home team ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which home team scored 18.9 (117)? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the smallest amount of spectators...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How many people attended when the away te...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the score when the record was 18–14–4 with a toiv...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What's the sum of the attendance for the calgary home team...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the record when chicago was the visiting team? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "postseason" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "series" text, "arena" text ); Question: What was the record of the series at the game attended by ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "postseason" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "series" text, "arena" text ); Question: What was the date of the game when the record of the serie...
<|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 team was the away team when the hom...
<|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 sum of Crowd when the away t...
<|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 number of people in the crow...
<|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 score for the away team when...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s_chiefs_12_8" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); Question: What was the score of the 2001 game held at Network Associates Coliseum...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serie_d" ( "name" text, "short_name" text, "city" text, "region" text, "girone" text, "home_venue" text ); Question: What region has giuseppe sivori as a home venue? <|assistant|> SELECT "reg...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serie_d" ( "name" text, "short_name" text, "city" text, "region" text, "girone" text, "home_venue" text ); Question: What city has the nickname of pontisola? <|assistant|> SELECT "city" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serie_d" ( "name" text, "short_name" text, "city" text, "region" text, "girone" text, "home_venue" text ); Question: What squad plays at comunale in darfo boario terme? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "player" text, "nationality" text, "position" text, "league_from" text ); Question: What pick was Scott Glennie from the Western hockey league <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "player" text, "nationality" text, "position" text, "league_from" text ); Question: What player from the United States played in the western collegiate hockey asso...
<|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: Where the time/retired is +1 lap, the constructor is BRM, and the grid is above 1...
<|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: When the laps driven were under 9 and the time/retired recorded was engine, what'...
<|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: Which driver has a grid of 3? <|assistant|> SELECT "driver" FROM "classification"...
<|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: When the laps are 31 and the constructor was honda, what's the sum of all grid va...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ); Question: What is the chassis for all rounds on t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ); Question: What is the constructor of driver Alexa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ); Question: Who was the driver that had all rounds ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ); Question: What were the rounds on the Engine † of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "badminton" ( "event" text, "2nd_round" text, "quarterfinal" text, "semifinal" text, "final" text, "rank" real ); Question: Which Semifinal has an Event of team? <|assistant|> SELECT "semifina...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "badminton" ( "event" text, "2nd_round" text, "quarterfinal" text, "semifinal" text, "final" text, "rank" real ); Question: Which Quarterfinal has a Rank larger than 9? <|assistant|> SELECT "q...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What is the pick number of the DB? <|assistant|> SELECT COUNT("pick_num") FROM "round_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What college did the T who was pick after 13 go to? <|assistant|> SELECT "college" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Which CFL team drafted a pick from Boston College? <|assistant|> SELECT "cfl_team" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What position did the Saskatchewan player get drafted as? <|assistant|> SELECT "positi...