text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was South Melbourne's away team oppo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: Who was the leading scorer on November 2, 2007?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: What was the attendance when the Hawks played?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many bronzes are there for the total nation with 112 silver and a total of 72?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the highest bronze for San Marino with less than 82 total and less than 3 golds?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many golds were there when there was more than 11 bronze and 29 in total?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What was Montenegro's average bronze with less than 7 silver and more than 4 golds?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many golds were there for Iceland with more than 15 silver?
<|assistant|>
SELECT COUNT("go... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What was Andorra's total with less than 10 silver and more than 5 bronze?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "whangarei" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" text,
"roll" text
);
Question: What is the roll number of Poroti school, which has a 6 decile?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "whangarei" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" text,
"roll" text
);
Question: What is the roll number of the school with a state authority in Waiotira?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "whangarei" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" text,
"roll" text
);
Question: What is the area of the school with a decile of 2 and a roll number 222?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "whangarei" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" text,
"roll" text
);
Question: WHat is the decile of the school in Purua?
<|assistant|>
SELECT "decile" FROM "w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"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 when the home... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: what is the venue when the crowd is more ... |
<|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" (
"lost" real,
"tied" real,
"pct" real,
"years" real,
"total_games" real
);
Question: How many total ties had less than 1183 total games, 121 years, an... |
<|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" (
"lost" real,
"tied" real,
"pct" real,
"years" real,
"total_games" real
);
Question: How many losses had more than 122 years and more than 1244 total ... |
<|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 is the lowest earnings for a player with over 24 wins?
<|assistant|>
SELECT MIN("earnings")... |
<|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: Who has the most wins from new zealand with over $1,910,413?
<|assistant|>
SELECT MAX("wins") FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"grid" real,
"driver" text,
"constructor" text,
"qual" real,
"rank" real,
"laps" real,
"time_retired" text
);
Question: Which constructor has Chuck Weyant as a driver, 45 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"grid" real,
"driver" text,
"constructor" text,
"qual" real,
"rank" real,
"laps" real,
"time_retired" text
);
Question: Which time/retired has a qual of 144.02?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_drivers" (
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: Which rounds did Vic Elford with a Ford cosworth dfv 3.0 v8 engi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_drivers" (
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: What is the chassis for Bruce Mclaren with all rounds and a g ty... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team_league" text
);
Question: What is the NHL team that has a team (League) of Mississauga... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fixtures" (
"round" text,
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"crowd" real,
"stadium" text,
"match_details" text
);
Question: Im the match where the home team i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fixtures" (
"round" text,
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"crowd" real,
"stadium" text,
"match_details" text
);
Question: What was the score of the match th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fixtures" (
"round" text,
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"crowd" real,
"stadium" text,
"match_details" text
);
Question: In the match where newcastle jets ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"venue" text,
"attendance" text
);
Question: What team was the opponent on 1990-10-21?
<|assistant|>
SELECT "opponent" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"placed" text,
"event" text
);
Question: What was the competition earlier than 1987?
<|assistant|>
SELECT "competition" FROM "achi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"placed" text,
"event" text
);
Question: What event placed bronze earlier than 1987?
<|assistant|>
SELECT "event" FROM "achievemen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_12_9_titles_3_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What was the score for the match on November 13,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_12_9_titles_3_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What tournament took place on July 17, 2005, wit... |
<|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 highest Grid with over 72 laps?
<|assistant|>
SELECT MAX("grid") FROM "race" WH... |
<|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 average number of laps associated with a Time/Retired of +1:14.801?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar" (
"race_title" text,
"circuit" text,
"city_state" text,
"date" text,
"winner" text,
"team" text
);
Question: What date is the circuit at wanneroo park?
<|assistant|>
SELECT "da... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar" (
"race_title" text,
"circuit" text,
"city_state" text,
"date" text,
"winner" text,
"team" text
);
Question: What team has a title of calder?
<|assistant|>
SELECT "team" FROM "... |
<|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 Laps for time/retired of +1:08.491
<|assistant|>
SELECT "laps" FROM "race" WHER... |
<|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 highest laps for toyota and grid of 13
<|assistant|>
SELECT MAX("laps") FROM "r... |
<|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: I want the Driver with Laps of 20
<|assistant|>
SELECT "driver" FROM "race" WHERE "laps"=20... |
<|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 sum of Grid for giancarlo fisichella
<|assistant|>
SELECT SUM("grid") FROM "rac... |
<|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 date was the venue at VFL park?
<|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 was the crowd attendance when the h... |
<|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 crowd attendance when the h... |
<|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 away team's score when 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 was the away team when the venue wa... |
<|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 away team when the home tea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick" real,
"round" real,
"player" text,
"position" text,
"school" text
);
Question: What player is picked 302 in round 11?
<|assistant|>
SELECT "player" FROM "nfl_draft" WHERE "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
);
Question: What is the biggest purse with a 1st prize of... |
<|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: How many laps did Jackie Oliver do?
<|assistant|>
SELECT "laps" FROM "classificat... |
<|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: How many laps with a grid larger than 7 did a Lotus - Ford do with a Time/Retired... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "5401_5500" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
);
Question: What is the name of th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "5401_5500" (
"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 "specifications_for_different_r_985_wasp_" (
"engine" text,
"power_continuous" text,
"power_takeoff" text,
"compression_ratio" text,
"supercharger_gear_ratio" text,
"octane_rating" text,
"dry... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "record_by_conference" (
"conference" text,
"num_of_bids" real,
"record" text,
"win_pct" text,
"round_of_32" text,
"sweet_sixteen" text,
"elite_eight" text,
"final_four" text,
"championsh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"candidate" text,
"party" text,
"votes_num" real,
"votes_pct" text,
"ballots_pct" text,
"elected" text,
"appointed" text
);
Question: What is the vote percentage when the number ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"candidate" text,
"party" text,
"votes_num" real,
"votes_pct" text,
"ballots_pct" text,
"elected" text,
"appointed" text
);
Question: What is the vote % for Cliff Breitkreuz?
<|a... |
<|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/retired for damon hill?
<|assistant|>
SELECT "time_retired" FROM "race" WH... |
<|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: Who constructed olivier panis' car that retired after +1 lap?
<|assistant|>
SELECT "constru... |
<|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,
"high_assists" text,
"location_attendance" text,
"series" text
);
Question: Wh... |
<|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,
"high_assists" text,
"location_attendance" text,
"series" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television" (
"awards" text,
"year" real,
"category" text,
"result" text,
"production" text,
"roll" text
);
Question: What category of the British Soap Awards resulted in nominated?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television" (
"awards" text,
"year" real,
"category" text,
"result" text,
"production" text,
"roll" text
);
Question: What category was nominated in 2010 fo the British Soap Awards?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_window" text
);
Question: Which country is Dyer from?
<|assistant|>
SELECT "country" FROM "in" WHERE "name"='dyer';... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_window" text
);
Question: What country is the athlete moving from Everton from?
<|assistant|>
SELECT "country" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_doubles_performance_timeline" (
"tournament" text,
"2009" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Name the tournament for 2009 2r
<|assistant|>
SELECT "tournament" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_doubles_performance_timeline" (
"tournament" text,
"2009" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Name the 2011 for 2009 being 2r at wimbledon
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_doubles_performance_timeline" (
"tournament" text,
"2009" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Name the 2012 for 2009 of 1r
<|assistant|>
SELECT "2012" FROM "gran... |
<|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 "p" (
"player" text,
"pos" text,
"from" text,
"school_country" text,
"rebs" real,
"asts" real
);
Question: What is the high assist total for players from 2010 and under 76 rebounds?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scores" (
"country" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the total swimsuit number with gowns larger than 9.48 with interviews large... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scores" (
"country" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: What is the total average for swimsuits smaller than 9.62 in Colorado?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What was the bronze medal count of the team that finished with 47 total medals?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the silver medal count of the team that finished with 8 bronze medals?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual" (
"athlete" text,
"country" text,
"from" real,
"gold" real,
"silver" real,
"total" real,
"status" text
);
Question: What is the status of rené hoppe?
<|assistant|>
SELECT "statu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual" (
"athlete" text,
"country" text,
"from" real,
"gold" real,
"silver" real,
"total" real,
"status" text
);
Question: How many times does Switzerland have under 7 golds and less t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual" (
"athlete" text,
"country" text,
"from" real,
"gold" real,
"silver" real,
"total" real,
"status" text
);
Question: What athlete has less than 7 gold and 14 total medals?
<|assi... |
<|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 average crowd size for the h... |
<|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: Where did the away team score 8.13 (61)?... |
<|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: When did the home team score 9.13 (67)?
... |
<|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: Where does St Kilda play?
<|assistant|>
S... |
<|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: Who was the home team when Fitzroy was t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_4" (
"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 score at Kardinia ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the lowest crowd size for the Ca... |
<|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,
"tyre" text,
"driver" text,
"rounds" text
);
Question: Name the engine with rounds of 7 with geki dri... |
<|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,
"tyre" text,
"driver" text,
"rounds" text
);
Question: Name the driver for 3 rounds
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the attendance of the North Mel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the attendance at the Fitzroy h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was Richmond's highest attendance?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "friendly" (
"match" real,
"date" text,
"competition_or_tour" text,
"ground" text,
"opponent" text,
"score1" text
);
Question: Which ground is match 4 held on?
<|assistant|>
SELECT "ground" FR... |
<|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 "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Name the visitor for home of ny rangers
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "versions" (
"country" text,
"label" text,
"cat_no" text,
"media" text,
"release_date" real
);
Question: What is the label for a CD released in 2004?
<|assistant|>
SELECT "label" FROM "versions"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "versions" (
"country" text,
"label" text,
"cat_no" text,
"media" text,
"release_date" real
);
Question: Who made a release in the US in 1982?
<|assistant|>
SELECT "label" FROM "versions" WHERE ... |
<|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: On which date did a home team score 6.17 ... |
<|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: In the match where the venue was arden st... |
<|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 was the crowd attendance in the matc... |
<|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 team played st kilda at their home ... |
<|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 the score when the home team ha... |
<|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: Where did north melbourne play while awa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.