text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_irs_forms_990_for_competit" (
"organization_name" text,
"state" text,
"year" real,
"total_assets" text,
"form" real,
"pages" real
);
Question: How many forms have less than 18 pages?
<|assistant|>
SELECT COUNT("form") FROM "united_states_irs_forms_990_for_competit" WHERE "pages"<18;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_irs_forms_990_for_competit" (
"organization_name" text,
"state" text,
"year" real,
"total_assets" text,
"form" real,
"pages" real
);
Question: What is the sum of forms with greater than 17 pages and a total of $1,801,154?
<|assistant|>
SELECT SUM("form") FROM "united_states_irs_forms_990_for_competit" WHERE "pages">17 AND "total_assets"='$1,801,154';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which venue hosted South Melbourne?
<|assistant|>
SELECT "venue" FROM "round_2" WHERE "away_team"='south melbourne';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the scored of the Away team that played against Richmond?
<|assistant|>
SELECT "away_team_score" FROM "round_2" WHERE "home_team"='richmond';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What is the result week 6?
<|assistant|>
SELECT "result" FROM "regular_season_schedule" WHERE "week"=6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_team_players_in_season_1946_47" (
"name" text,
"pos" text,
"caps" real,
"goals" real,
"club" text
);
Question: How many goals did sture mårtensson score?
<|assistant|>
SELECT "goals" FROM "national_team_players_in_season_1946_47" WHERE "name"='sture mårtensson';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_team_players_in_season_1946_47" (
"name" text,
"pos" text,
"caps" real,
"goals" real,
"club" text
);
Question: How many goals for the player with 2 caps at degerfors if?
<|assistant|>
SELECT "goals" FROM "national_team_players_in_season_1946_47" WHERE "caps"=2 AND "club"='degerfors if';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"year" real,
"label" text,
"format" text,
"catalog" text
);
Question: What catalog came out after 2000?
<|assistant|>
SELECT "catalog" FROM "release_history" WHERE "year">2000;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r" (
"player" text,
"nationality" text,
"position" text,
"from" text,
"school_country" text
);
Question: What is the name of the player who begin playing for the LA Lakers in 1974?
<|assistant|>
SELECT "player" FROM "r" WHERE "from"='1974';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_by_game_results" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What was the attendance on week 7?
<|assistant|>
SELECT "attendance" FROM "game_by_game_results" WHERE "week"=7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_by_game_results" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What opponent did they have a bye result against before week 14?
<|assistant|>
SELECT "opponent" FROM "game_by_game_results" WHERE "result"='bye' AND "week"<14;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which average crowd has a Home team score of 11.15 (81)?
<|assistant|>
SELECT AVG("crowd") FROM "round_14" WHERE "home_team_score"='11.15 (81)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"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 an Away team of fitzroy?
<|assistant|>
SELECT "home_team" FROM "round_14" WHERE "away_team"='fitzroy';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which away team has a score of 9.12 (66)?
<|assistant|>
SELECT "away_team" FROM "round_14" WHERE "away_team_score"='9.12 (66)';<|endoftext|> |
<|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: At what venue did the away team score 10.10 (70)?
<|assistant|>
SELECT "venue" FROM "round_9" WHERE "away_team_score"='10.10 (70)';<|endoftext|> |
<|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 North Melbourne's score when they were the home team?
<|assistant|>
SELECT "home_team_score" FROM "round_9" WHERE "home_team"='north melbourne';<|endoftext|> |
<|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 Richmond's score as the home team?
<|assistant|>
SELECT "home_team_score" FROM "round_9" WHERE "home_team"='richmond';<|endoftext|> |
<|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 venue did Essendon play as the away team?
<|assistant|>
SELECT "venue" FROM "round_9" WHERE "away_team"='essendon';<|endoftext|> |
<|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 opponent when Richmond played as the home team?
<|assistant|>
SELECT "away_team" FROM "round_13" WHERE "home_team"='richmond';<|endoftext|> |
<|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: What was the attendance at the Kardinia Park game?
<|assistant|>
SELECT "crowd" FROM "round_13" WHERE "venue"='kardinia park';<|endoftext|> |
<|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: What was the score of the team North Melbourne played at Arden Street Oval?
<|assistant|>
SELECT "away_team_score" FROM "round_7" WHERE "home_team"='north melbourne';<|endoftext|> |
<|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: What date did the game at Arden Street Oval take place?
<|assistant|>
SELECT "date" FROM "round_7" WHERE "venue"='arden street oval';<|endoftext|> |
<|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 date of the game with 36,766 fans?
<|assistant|>
SELECT "date" FROM "round_1" WHERE "crowd">'36,766';<|endoftext|> |
<|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 crowd size of the game where the away team scored 8.15 (63)?
<|assistant|>
SELECT SUM("crowd") FROM "round_1" WHERE "away_team_score"='8.15 (63)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "education" (
"institution" text,
"government" real,
"aided" real,
"unaided" real,
"total" real
);
Question: Which higher secondary school listing has the lowest total and an Aided amount larger than 14?
<|assistant|>
SELECT MIN("total") FROM "education" WHERE "institution"='higher secondary school' AND "aided">14;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "education" (
"institution" text,
"government" real,
"aided" real,
"unaided" real,
"total" real
);
Question: Which Institution has a Total smaller than 13, a Government amount of 1, and an Aided amount of 0?
<|assistant|>
SELECT "institution" FROM "education" WHERE "total"<13 AND "government"=1 AND "aided"=0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Which IATA is associated with China and an ICAO of ZSPD?
<|assistant|>
SELECT "iata" FROM "references" WHERE "country"='china' AND "icao"='zspd';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Which airport is associated with Macau?
<|assistant|>
SELECT "airport" FROM "references" WHERE "city"='macau';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What is the IATA for Nanjing?
<|assistant|>
SELECT "iata" FROM "references" WHERE "city"='nanjing';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Which airport has an ICAO of RCKH?
<|assistant|>
SELECT "airport" FROM "references" WHERE "icao"='rckh';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Which airport has an IATA of TYN?
<|assistant|>
SELECT "airport" FROM "references" WHERE "iata"='tyn';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Which country contains the Shanghai Pudong International airport?
<|assistant|>
SELECT "country" FROM "references" WHERE "airport"='shanghai pudong international airport';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was Footscray's score when it played as the home team?
<|assistant|>
SELECT "home_team_score" FROM "round_8" WHERE "home_team"='footscray';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: hat was Hawthorn's score as the away team?
<|assistant|>
SELECT "away_team_score" FROM "round_8" WHERE "away_team"='hawthorn';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_titles_16" (
"outcome" text,
"date" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: What was the Outcome against Opponent in the Final Carlos Kirmayr?
<|assistant|>
SELECT "outcome" FROM "singles_titles_16" WHERE "opponent_in_the_final"='carlos kirmayr';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_titles_16" (
"outcome" text,
"date" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: What was the Score in the Final against Opponent in the Final Manuel Orantes, prior to 1978?
<|assistant|>
SELECT "score_in_the_final" FROM "singles_titles_16" WHERE "date"<1978 AND "opponent_in_the_final"='manuel orantes';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_titles_16" (
"outcome" text,
"date" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: Against Opponent in the Final Ivan Lendl, on a Surface of clay, with an Outcome of runner-up, where was the Championship?
<|assistant|>
SELECT "championship" FROM "singles_titles_16" WHERE "outcome"='runner-up' AND "surface"='clay' AND "opponent_in_the_final"='ivan lendl';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_titles_16" (
"outcome" text,
"date" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: What is the earliest Date on a Surface of clay in a Championship in Linz, Austria?
<|assistant|>
SELECT MIN("date") FROM "singles_titles_16" WHERE "surface"='clay' AND "championship"='linz, austria';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_winners" (
"year" real,
"sportsperson" text,
"nation_of_birth" text,
"team" text,
"competition_federation_or_league" text,
"sport" text
);
Question: Who playes the sport of athletics?
<|assistant|>
SELECT "sportsperson" FROM "list_of_winners" WHERE "sport"='athletics';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_winners" (
"year" real,
"sportsperson" text,
"nation_of_birth" text,
"team" text,
"competition_federation_or_league" text,
"sport" text
);
Question: What team has a year listed of 2008?
<|assistant|>
SELECT "team" FROM "list_of_winners" WHERE "year"=2008;<|endoftext|> |
<|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 venue was the game played in when the away team was fitzroy?
<|assistant|>
SELECT "venue" FROM "round_3" WHERE "away_team"='fitzroy';<|endoftext|> |
<|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 the number of people in the crowd when the away team scored 10.14 (74)?
<|assistant|>
SELECT COUNT("crowd") FROM "round_3" WHERE "away_team_score"='10.14 (74)';<|endoftext|> |
<|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 did the away team score when the home team scored 14.15 (99)?
<|assistant|>
SELECT "away_team_score" FROM "round_3" WHERE "home_team_score"='14.15 (99)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "upcoming_films" (
"name" text,
"type" text,
"planned_release" text,
"cc_license" text,
"sources_available" text,
"open_source_movie" text
);
Question: What is the film type for the movie Sanctuary?
<|assistant|>
SELECT "type" FROM "upcoming_films" WHERE "name"='sanctuary';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "upcoming_films" (
"name" text,
"type" text,
"planned_release" text,
"cc_license" text,
"sources_available" text,
"open_source_movie" text
);
Question: What different types are there with a CC License of by-nc-sa 2.5?
<|assistant|>
SELECT "type" FROM "upcoming_films" WHERE "cc_license"='by-nc-sa 2.5';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "upcoming_films" (
"name" text,
"type" text,
"planned_release" text,
"cc_license" text,
"sources_available" text,
"open_source_movie" text
);
Question: What are the open source movies with planned releases in 2013?
<|assistant|>
SELECT "open_source_movie" FROM "upcoming_films" WHERE "planned_release"='2013';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "average_chart" (
"rank_by_average" real,
"place" real,
"couple" text,
"total" real,
"number_of_dances" real,
"average" real
);
Question: What was the lowest rank by average of a couple who had an average of 23 and a total of 115?
<|assistant|>
SELECT MIN("rank_by_average") FROM "average_chart" WHERE "average"=23 AND "total"=115;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "naming_rules" (
"chapter" text,
"colonized" text,
"chartered" text,
"school" text,
"state" text,
"status" text,
"charter_range" text
);
Question: What is the colonized date for Michigan?
<|assistant|>
SELECT "colonized" FROM "naming_rules" WHERE "state"='michigan';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "naming_rules" (
"chapter" text,
"colonized" text,
"chartered" text,
"school" text,
"state" text,
"status" text,
"charter_range" text
);
Question: What is the colonized year for the chartered year 1958?
<|assistant|>
SELECT "colonized" FROM "naming_rules" WHERE "chartered"='1958';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "naming_rules" (
"chapter" text,
"colonized" text,
"chartered" text,
"school" text,
"state" text,
"status" text,
"charter_range" text
);
Question: When was shippensburg university Colonized?
<|assistant|>
SELECT "colonized" FROM "naming_rules" WHERE "school"='shippensburg university';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "naming_rules" (
"chapter" text,
"colonized" text,
"chartered" text,
"school" text,
"state" text,
"status" text,
"charter_range" text
);
Question: What is the colonized date for the n/a charter range for appalachian state?
<|assistant|>
SELECT "colonized" FROM "naming_rules" WHERE "charter_range"='n/a' AND "school"='appalachian state';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "naming_rules" (
"chapter" text,
"colonized" text,
"chartered" text,
"school" text,
"state" text,
"status" text,
"charter_range" text
);
Question: What state has colony as a status and shippensburg university as the school?
<|assistant|>
SELECT "state" FROM "naming_rules" WHERE "status"='colony' AND "school"='shippensburg university';<|endoftext|> |
<|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: Which team has a Home Team score of 5.12 (42)?
<|assistant|>
SELECT "home_team" FROM "round_13" WHERE "home_team_score"='5.12 (42)';<|endoftext|> |
<|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: What was the Home Team Score for the Windy Hill Venue?
<|assistant|>
SELECT "home_team_score" FROM "round_13" WHERE "venue"='windy hill';<|endoftext|> |
<|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: What is the Essendon Home Team's venue?
<|assistant|>
SELECT "venue" FROM "round_13" WHERE "home_team"='essendon';<|endoftext|> |
<|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: Which Away team has Away team score 5.8 (38)?
<|assistant|>
SELECT "away_team" FROM "round_13" WHERE "away_team_score"='5.8 (38)';<|endoftext|> |
<|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: How large a crowd did the Fitzroy Away team draw?
<|assistant|>
SELECT SUM("crowd") FROM "round_13" WHERE "away_team"='fitzroy';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick_num" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What is Van Waiters position?
<|assistant|>
SELECT "position" FROM "nfl_draft" WHERE "player"='van waiters';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"rank" text,
"stadium" text,
"capacity" real,
"city" text,
"country" text
);
Question: What is the capacity of the team in tucson, USA?
<|assistant|>
SELECT "capacity" FROM "see_also" WHERE "country"='usa' AND "city"='tucson';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1" (
"episode_number" real,
"title" text,
"podcast_date" text,
"run_time" text,
"historical_references" text
);
Question: What is the date for the podcast episode number 103?
<|assistant|>
SELECT "podcast_date" FROM "season_1" WHERE "episode_number"=103;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1" (
"episode_number" real,
"title" text,
"podcast_date" text,
"run_time" text,
"historical_references" text
);
Question: What is the name of the podcast on November 21, 2004?
<|assistant|>
SELECT "title" FROM "season_1" WHERE "podcast_date"='november 21, 2004';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "d" (
"player" text,
"nationality" text,
"position" text,
"from" text,
"school_country" text
);
Question: Which school added a player to the Lakers in 1948?
<|assistant|>
SELECT "school_country" FROM "d" WHERE "from"='1948';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "d" (
"player" text,
"nationality" text,
"position" text,
"from" text,
"school_country" text
);
Question: Which school added a player to the Lakers in 1948?
<|assistant|>
SELECT "school_country" FROM "d" WHERE "from"='1948';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_raiding_history" (
"date" text,
"ship" text,
"nationality" text,
"tonnage" real,
"fate" text
);
Question: What was the tonnage of the Great Britain ship Batna?
<|assistant|>
SELECT "tonnage" FROM "summary_of_raiding_history" WHERE "nationality"='great britain' AND "ship"='batna';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many silver medals were won when there were 4 gold and 22 in total?
<|assistant|>
SELECT MIN("silver") FROM "men_s_medal_table" WHERE "gold"=4 AND "total"=22;<|endoftext|> |
<|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 car number has 130 points?
<|assistant|>
SELECT "car_num" FROM "race_results" WHERE "points"=130;<|endoftext|> |
<|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 is the lowest number of laps for ryan newman with over 96 points, a cur number under 24,
<|assistant|>
SELECT MIN("laps") FROM "race_results" WHERE "points">96 AND "car_num"<24 AND "driver"='ryan newman';<|endoftext|> |
<|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 is the sum of car numbers with less than 126 points and 147 laps?
<|assistant|>
SELECT SUM("car_num") FROM "race_results" WHERE "points"<126 AND "laps"=147;<|endoftext|> |
<|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 total laps for the driver with Winnings of $116,033, and a Car # smaller than 18?
<|assistant|>
SELECT COUNT("laps") FROM "race_results" WHERE "winnings"='$116,033' AND "car_num"<18;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"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 when the home team had a score of 16.21 (117)?
<|assistant|>
SELECT "crowd" FROM "round_15" WHERE "home_team_score"='16.21 (117)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"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's score at kardinia park?
<|assistant|>
SELECT "home_team_score" FROM "round_15" WHERE "venue"='kardinia park';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"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 melbourne is the away team?
<|assistant|>
SELECT "venue" FROM "round_15" WHERE "away_team"='melbourne';<|endoftext|> |
<|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 is the smallest crowd that Footscray had as the away team?
<|assistant|>
SELECT MIN("crowd") FROM "round_4" WHERE "away_team"='footscray';<|endoftext|> |
<|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: Which home team scored 12.15 (87)?
<|assistant|>
SELECT "home_team" FROM "round_4" WHERE "home_team_score"='12.15 (87)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: Where is the Mackey Arena located?
<|assistant|>
SELECT "city" FROM "first_and_second_rounds" WHERE "venue"='mackey arena';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: What state has the University of California, Los Angeles?
<|assistant|>
SELECT "state" FROM "first_and_second_rounds" WHERE "host"='university of california, los angeles';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: What region does the University of California, Los Angeles play in?
<|assistant|>
SELECT "region" FROM "first_and_second_rounds" WHERE "state"='california' AND "host"='university of california, los angeles';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: What venue is in Santa Barbara, California?
<|assistant|>
SELECT "venue" FROM "first_and_second_rounds" WHERE "state"='california' AND "city"='santa barbara';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: What Venue is in Colorado?
<|assistant|>
SELECT "venue" FROM "first_and_second_rounds" WHERE "state"='colorado';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: What city is Mackey Arena in?
<|assistant|>
SELECT "city" FROM "first_and_second_rounds" WHERE "venue"='mackey arena';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinals" (
"rank" real,
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"100m" real,
"150m" text,
"time" text
);
Question: What lane is David Carry in heat 1?
<|assistant|>
SELECT COUNT("lane") FROM "semifinals" WHERE "heat"=1 AND "name"='david carry';<|endoftext|> |
<|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,
"game_site" text,
"attendance" text
);
Question: Who is the opponent after week 9 at rich stadium?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "week">9 AND "game_site"='rich stadium';<|endoftext|> |
<|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,
"game_site" text,
"attendance" text
);
Question: What was the attendance on 1997-12-14?
<|assistant|>
SELECT "attendance" FROM "schedule" WHERE "date"='1997-12-14';<|endoftext|> |
<|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,
"attendance" real
);
Question: For the 1967 Cleveland Browns season what is the total number of times they played the Minnesota Vikings and had an atttendance smaller than 68,431?
<|assistant|>
SELECT COUNT("week") FROM "schedule" WHERE "opponent"='minnesota vikings' AND "attendance"<'68,431';<|endoftext|> |
<|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,
"attendance" real
);
Question: What is the lowest attendance for a game before 10 weeks on November 12, 1967
<|assistant|>
SELECT MIN("attendance") FROM "schedule" WHERE "week"<10 AND "date"='november 12, 1967';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010" (
"incident_no" text,
"date" text,
"place" text,
"killed" real,
"injured" real
);
Question: What is the smallest number of injured in mayurbhanj, odisha and less than 1 killed?
<|assistant|>
SELECT MIN("injured") FROM "2010" WHERE "place"='mayurbhanj, odisha' AND "killed"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_18" (
"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 was larger than 11,000 and the Away team score was 7.9 (51)?
<|assistant|>
SELECT "venue" FROM "round_18" WHERE "crowd">'11,000' AND "away_team_score"='7.9 (51)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When the Away team had a score of 11.16 (82), what is the average Crowd?
<|assistant|>
SELECT AVG("crowd") FROM "round_18" WHERE "away_team_score"='11.16 (82)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Away team has a score of 6.17 (53)?
<|assistant|>
SELECT "away_team" FROM "round_18" WHERE "away_team_score"='6.17 (53)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Away team has Carlton for it's Home team?
<|assistant|>
SELECT "away_team" FROM "round_18" WHERE "home_team"='carlton';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Venue has Footscray as it's Home team?
<|assistant|>
SELECT "venue" FROM "round_18" WHERE "home_team"='footscray';<|endoftext|> |
<|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 home team has Richmond listed as their Away team?
<|assistant|>
SELECT "home_team" FROM "round_9" WHERE "away_team"='richmond';<|endoftext|> |
<|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 is the name of the away team that has the home team score of 15.17 (107)?
<|assistant|>
SELECT "away_team" FROM "round_9" WHERE "home_team_score"='15.17 (107)';<|endoftext|> |
<|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 is the number of the crowd for the home team of South Melbourne?
<|assistant|>
SELECT SUM("crowd") FROM "round_9" WHERE "home_team"='south melbourne';<|endoftext|> |
<|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 is the away team score for the home team listed as Footscray?
<|assistant|>
SELECT "away_team_score" FROM "round_9" WHERE "home_team"='footscray';<|endoftext|> |
<|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: In which venue did the home team score 11.20 (86)?
<|assistant|>
SELECT "venue" FROM "round_13" WHERE "home_team_score"='11.20 (86)';<|endoftext|> |
<|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: Which venue exceeded a crowd size of 33,642?
<|assistant|>
SELECT "venue" FROM "round_13" WHERE "crowd">'33,642';<|endoftext|> |
<|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: Which home team scored 7.10 (52)?
<|assistant|>
SELECT "home_team" FROM "round_13" WHERE "home_team_score"='7.10 (52)';<|endoftext|> |
<|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: What is the largest crowd size that had a home team score of 17.18 (120)?
<|assistant|>
SELECT MAX("crowd") FROM "round_13" WHERE "home_team_score"='17.18 (120)';<|endoftext|> |
<|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: In which venue did the away team score 9.11 (65)?
<|assistant|>
SELECT "venue" FROM "round_13" WHERE "away_team_score"='9.11 (65)';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.