text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_finals" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent" text,
"score" text
);
Question: In the match played with partner Andres Molteni, with the outcome of winner, who was the opponent?
<|assistant|>
SELECT "opponent" FROM "doubles_finals" WHERE "outcome"='winner' AND "partner"='andres molteni';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_caps" (
"player" text,
"span" text,
"start" text,
"tries" text,
"conv" text,
"pens" text,
"drop" text,
"lost" text,
"draw" text
);
Question: What is the player with a Span of 1998-2009?
<|assistant|>
SELECT "player" FROM "most_caps" WHERE "span"='1998-2009';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_caps" (
"player" text,
"span" text,
"start" text,
"tries" text,
"conv" text,
"pens" text,
"drop" text,
"lost" text,
"draw" text
);
Question: What draw has a Span of 1987-1999?
<|assistant|>
SELECT "draw" FROM "most_caps" WHERE "span"='1987-1999';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_caps" (
"player" text,
"span" text,
"start" text,
"tries" text,
"conv" text,
"pens" text,
"drop" text,
"lost" text,
"draw" text
);
Question: What player has a span of 1997-2009?
<|assistant|>
SELECT "player" FROM "most_caps" WHERE "span"='1997-2009';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_caps" (
"player" text,
"span" text,
"start" text,
"tries" text,
"conv" text,
"pens" text,
"drop" text,
"lost" text,
"draw" text
);
Question: What drop has a 0 conv and Tries of 6?
<|assistant|>
SELECT "drop" FROM "most_caps" WHERE "conv"='0' AND "tries"='6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_caps" (
"player" text,
"span" text,
"start" text,
"tries" text,
"conv" text,
"pens" text,
"drop" text,
"lost" text,
"draw" text
);
Question: What drop had a start of 40?
<|assistant|>
SELECT "drop" FROM "most_caps" WHERE "start"='40';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_caps" (
"player" text,
"span" text,
"start" text,
"tries" text,
"conv" text,
"pens" text,
"drop" text,
"lost" text,
"draw" text
);
Question: What drop had 0 pens, 1 draw, and 8 tries?
<|assistant|>
SELECT "drop" FROM "most_caps" WHERE "pens"='0' AND "draw"='1' AND "tries"='8';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"round" real,
"time" text,
"location" text
);
Question: What round did Takayo Hashi face Yoko Hattori?
<|assistant|>
SELECT SUM("round") FROM "mixed_martial_arts_record" WHERE "opponent"='yoko hattori';<|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 away team that played at Princes Park?
<|assistant|>
SELECT "away_team" FROM "round_2" WHERE "venue"='princes park';<|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 date when Footscray was the away team?
<|assistant|>
SELECT "date" FROM "round_2" WHERE "away_team"='footscray';<|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 home team's score in the match at Victoria Park?
<|assistant|>
SELECT "home_team_score" FROM "round_2" WHERE "venue"='victoria park';<|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: On what date was South Melbourne the away team?
<|assistant|>
SELECT "date" 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: At what venue did the home team score 12.19 (91)?
<|assistant|>
SELECT "venue" FROM "round_2" WHERE "home_team_score"='12.19 (91)';<|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 away team did Carlton play?
<|assistant|>
SELECT "away_team" FROM "round_2" WHERE "home_team"='carlton';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the sum of bronze when silver is greater than 3?
<|assistant|>
SELECT SUM("bronze") FROM "medals_table" WHERE "silver">3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the average total when gold is 0, bronze is 0, and silver is smaller than 1?
<|assistant|>
SELECT AVG("total") FROM "medals_table" WHERE "gold"=0 AND "bronze"=0 AND "silver"<1;<|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,
"stadium" text,
"record" text,
"attendance" real
);
Question: What was the total attendance in week 8?
<|assistant|>
SELECT COUNT("attendance") FROM "game_by_game_results" WHERE "week"=8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_international_matches" (
"date" real,
"sport" text,
"winner" text,
"score" text,
"loser" text
);
Question: Who was the winner in 2007?
<|assistant|>
SELECT "winner" FROM "list_of_international_matches" WHERE "date"=2007;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_international_matches" (
"date" real,
"sport" text,
"winner" text,
"score" text,
"loser" text
);
Question: What sport was played before 2006 with a loser of france b?
<|assistant|>
SELECT "sport" FROM "list_of_international_matches" WHERE "date"<2006 AND "loser"='france b';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_international_matches" (
"date" real,
"sport" text,
"winner" text,
"score" text,
"loser" text
);
Question: Who was the winner with the loser being russia-2?
<|assistant|>
SELECT "winner" FROM "list_of_international_matches" WHERE "loser"='russia-2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_international_matches" (
"date" real,
"sport" text,
"winner" text,
"score" text,
"loser" text
);
Question: Who was the loser playing football with england b as a winner after 1992?
<|assistant|>
SELECT "loser" FROM "list_of_international_matches" WHERE "sport"='football' AND "winner"='england b' AND "date">1992;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"sanctioning" text,
"race_name" text,
"circuit" text,
"city_location" text,
"date" text
);
Question: What was the name of the race that occurred in Brooklyn, Michigan with a sanctioning of cart?
<|assistant|>
SELECT "race_name" FROM "calendar" WHERE "sanctioning"='cart' AND "city_location"='brooklyn, michigan';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"sanctioning" text,
"race_name" text,
"circuit" text,
"city_location" text,
"date" text
);
Question: Where did the Gould Rex Mays Classic 150 occur?
<|assistant|>
SELECT "city_location" FROM "calendar" WHERE "race_name"='gould rex mays classic 150';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"sanctioning" text,
"race_name" text,
"circuit" text,
"city_location" text,
"date" text
);
Question: What is the date for the race that has a circuit of Milwaukee Mile and the sanctioning of cart?
<|assistant|>
SELECT "date" FROM "calendar" WHERE "circuit"='milwaukee mile' AND "sanctioning"='cart';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "albums" (
"year" text,
"us_200" text,
"uk_albums" text,
"riaa_certification" text,
"bpi_certification" text
);
Question: 15 albums were released in the UK during which year?
<|assistant|>
SELECT "year" FROM "albums" WHERE "uk_albums"='15';<|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 venue where Collingwood played as the home team?
<|assistant|>
SELECT "venue" FROM "round_13" WHERE "home_team"='collingwood';<|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 away team for the game where the home team scored 13.11 (89)?
<|assistant|>
SELECT "away_team" FROM "round_13" WHERE "home_team_score"='13.11 (89)';<|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 size of the crowd for the game with Footscray as the home team?
<|assistant|>
SELECT AVG("crowd") FROM "round_13" 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: What is the largest crowd for any game where Footscray is the home team?
<|assistant|>
SELECT MAX("crowd") FROM "round_13" WHERE "home_team"='footscray';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australasia_pool_a" (
"club" text,
"played" real,
"lost" real,
"drawn" real,
"against" real,
"diff" real,
"points" real
);
Question: What is the maximum number of draws when the diff is smaller than 186, points are fewer than 12 and games played fewer than 6?
<|assistant|>
SELECT MAX("drawn") FROM "australasia_pool_a" WHERE "diff"<186 AND "points"<12 AND "played"<6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australasia_pool_a" (
"club" text,
"played" real,
"lost" real,
"drawn" real,
"against" real,
"diff" real,
"points" real
);
Question: What is the average diff when games played are more than 6?
<|assistant|>
SELECT AVG("diff") FROM "australasia_pool_a" WHERE "played">6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australasia_pool_a" (
"club" text,
"played" real,
"lost" real,
"drawn" real,
"against" real,
"diff" real,
"points" real
);
Question: What is the highest draws when more than 6 are played and the points against are 54?
<|assistant|>
SELECT MAX("drawn") FROM "australasia_pool_a" WHERE "against"=54 AND "played">6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australasia_pool_a" (
"club" text,
"played" real,
"lost" real,
"drawn" real,
"against" real,
"diff" real,
"points" real
);
Question: What is the maximum number of points against when the team has more than 0 losses and plays fewer than 6 games?
<|assistant|>
SELECT MAX("against") FROM "australasia_pool_a" WHERE "lost">0 AND "played"<6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australasia_pool_a" (
"club" text,
"played" real,
"lost" real,
"drawn" real,
"against" real,
"diff" real,
"points" real
);
Question: What is the number of games played for the team with 12 points and an against smaller than 52?
<|assistant|>
SELECT AVG("played") FROM "australasia_pool_a" WHERE "points"=12 AND "against"<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 was the crowd size when the home team scored 10.10 (70)?
<|assistant|>
SELECT "crowd" FROM "round_13" WHERE "home_team_score"='10.10 (70)';<|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 away team when the home team scored 10.10 (70)?
<|assistant|>
SELECT "away_team" FROM "round_13" WHERE "home_team_score"='10.10 (70)';<|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 away team's score when the crowd was larger than 16,500 and the home team scored 15.15 (105)?
<|assistant|>
SELECT "away_team_score" FROM "round_13" WHERE "crowd">'16,500' AND "home_team_score"='15.15 (105)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_jurisdiction_in_the_usa" (
"adherents" real,
"regular_attendees" real,
"pct_of_adherents" text,
"monasteries" real,
"parishes" real,
"average_parish_size" real
);
Question: What is the lowest average parish size with 47.2% of adherents and 4,936 regular attendees?
<|assistant|>
SELECT MIN("average_parish_size") FROM "by_jurisdiction_in_the_usa" WHERE "pct_of_adherents"='47.2%' AND "regular_attendees">'4,936';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_jurisdiction_in_the_usa" (
"adherents" real,
"regular_attendees" real,
"pct_of_adherents" text,
"monasteries" real,
"parishes" real,
"average_parish_size" real
);
Question: What is the average regular number of attendees that has 79 parishes?
<|assistant|>
SELECT AVG("regular_attendees") FROM "by_jurisdiction_in_the_usa" WHERE "parishes"=79;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_jurisdiction_in_the_usa" (
"adherents" real,
"regular_attendees" real,
"pct_of_adherents" text,
"monasteries" real,
"parishes" real,
"average_parish_size" real
);
Question: What is the lowest number of monasteries with over 20 parishes, 210,864 regular attendeeds, and over 799,776 adherents?
<|assistant|>
SELECT MIN("monasteries") FROM "by_jurisdiction_in_the_usa" WHERE "parishes">20 AND "regular_attendees"='210,864' AND "adherents">'799,776';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
Question: Which Grand Prix has the Circuit of Lille?
<|assistant|>
SELECT "name" FROM "other_grands_prix" WHERE "circuit"='lille';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
Question: Which winning driver of the Roussillon Grand Prix had an Alfa Romeo?
<|assistant|>
SELECT "winning_driver" FROM "other_grands_prix" WHERE "winning_constructor"='alfa romeo' AND "name"='roussillon grand prix';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
Question: Which Constructor won the Roussillon Grand Prix?
<|assistant|>
SELECT "winning_constructor" FROM "other_grands_prix" WHERE "name"='roussillon grand prix';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
Question: Which Driver won the Circuit of Rio de Janeiro?
<|assistant|>
SELECT "winning_driver" FROM "other_grands_prix" WHERE "circuit"='rio de janeiro';<|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: Who was the home team for the Essendon away team with attendance over 13,500?
<|assistant|>
SELECT "home_team_score" FROM "round_4" WHERE "crowd">'13,500' AND "away_team"='essendon';<|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 day did the VFL pay MCG?
<|assistant|>
SELECT "date" FROM "round_4" WHERE "venue"='mcg';<|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" real
);
Question: What was November 4, 1973 attendance?
<|assistant|>
SELECT "attendance" FROM "regular_season_schedule" WHERE "date"='november 4, 1973';<|endoftext|> |
<|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 number of laps with a Constructor of renault, and a driver of jacques villeneuve?
<|assistant|>
SELECT "laps" FROM "race" WHERE "constructor"='renault' AND "driver"='jacques villeneuve';<|endoftext|> |
<|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 grid 3?
<|assistant|>
SELECT "time_retired" FROM "race" WHERE "grid"=3;<|endoftext|> |
<|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 grid 8?
<|assistant|>
SELECT "time_retired" FROM "race" WHERE "grid"=8;<|endoftext|> |
<|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 a grid larger than 11, laps larger than 41, and nick heidfeld?
<|assistant|>
SELECT "time_retired" FROM "race" WHERE "grid">11 AND "laps">41 AND "driver"='nick heidfeld';<|endoftext|> |
<|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 was the driver with less than 53 laps, Grid larger than 17, and a Time/Retired of spin?
<|assistant|>
SELECT "driver" FROM "race" WHERE "laps"<53 AND "grid">17 AND "time_retired"='spin';<|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" text,
"laps" real,
"winnings" text
);
Question: Who has won $98,860?
<|assistant|>
SELECT "driver" FROM "race_results" WHERE "winnings"='$98,860';<|endoftext|> |
<|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 is travelling to play Hawthorn?
<|assistant|>
SELECT "away_team" FROM "round_10" WHERE "home_team"='hawthorn';<|endoftext|> |
<|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 smallest crowd at the Victoria Park Venue?
<|assistant|>
SELECT MIN("crowd") FROM "round_10" WHERE "venue"='victoria park';<|endoftext|> |
<|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 given by the Home team Geelong?
<|assistant|>
SELECT "home_team_score" FROM "round_10" WHERE "home_team"='geelong';<|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 largest crowd at arden street oval?
<|assistant|>
SELECT MAX("crowd") FROM "round_1" 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 home side's score at western oval?
<|assistant|>
SELECT "home_team_score" FROM "round_1" WHERE "venue"='western oval';<|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 the state of Connecticut?
<|assistant|>
SELECT "venue" FROM "first_and_second_rounds" WHERE "state"='connecticut';<|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 the city of Durham?
<|assistant|>
SELECT "venue" FROM "first_and_second_rounds" WHERE "city"='durham';<|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: In what state is the Thomas Assembly Center located?
<|assistant|>
SELECT "state" FROM "first_and_second_rounds" WHERE "venue"='thomas assembly center';<|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 located in Indiana and hosted at Purdue University?
<|assistant|>
SELECT "venue" FROM "first_and_second_rounds" WHERE "state"='indiana' AND "host"='purdue university';<|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 located in Oklahoma?
<|assistant|>
SELECT "city" FROM "first_and_second_rounds" WHERE "state"='oklahoma';<|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: In what city is the United Spirit Arena located?
<|assistant|>
SELECT "city" FROM "first_and_second_rounds" WHERE "venue"='united spirit arena';<|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,
"tv_time" text,
"attendance" text
);
Question: What was the result when they had their bye week?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "date"='bye';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "exhibition_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What was the attendance of the Browns' September 7, 1953 game?
<|assistant|>
SELECT "attendance" FROM "exhibition_schedule" WHERE "date"='september 7, 1953';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "exhibition_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: When was the Browns' game that over 36,796 attended?
<|assistant|>
SELECT "date" FROM "exhibition_schedule" WHERE "attendance">'36,796';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"young_rider_classification" text,
"team_classification" text
);
Question: What Young rider classification has a Stage of 18?
<|assistant|>
SELECT "young_rider_classification" FROM "classification_leadership" WHERE "stage"='18';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"young_rider_classification" text,
"team_classification" text
);
Question: Who has a Team classification of la vie claire, a stage of 20, a General classification of greg lemond?
<|assistant|>
SELECT "winner" FROM "classification_leadership" WHERE "team_classification"='la vie claire' AND "general_classification"='greg lemond' AND "stage"='20';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"young_rider_classification" text,
"team_classification" text
);
Question: What is the classification with a Team classification of la vie claire and a Stage of 12?
<|assistant|>
SELECT "general_classification" FROM "classification_leadership" WHERE "team_classification"='la vie claire' AND "stage"='12';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"young_rider_classification" text,
"team_classification" text
);
Question: What is guido bontempi's general classification when he has a stage of 6?
<|assistant|>
SELECT "general_classification" FROM "classification_leadership" WHERE "winner"='guido bontempi' AND "stage"='6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"young_rider_classification" text,
"team_classification" text
);
Question: What is Ludo Peeters' team classification?
<|assistant|>
SELECT "team_classification" FROM "classification_leadership" WHERE "winner"='ludo peeters';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the date of the game where the home team scored 17.14 (116)?
<|assistant|>
SELECT "date" FROM "round_11" WHERE "home_team_score"='17.14 (116)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_11" (
"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 at the game where Footscray was the home team and the crowd was larger than 20,200?
<|assistant|>
SELECT "away_team" FROM "round_11" WHERE "crowd">'20,200' AND "home_team"='footscray';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "england_career" (
"date" text,
"venue" text,
"opposition" text,
"att" real,
"result" text,
"goals" real
);
Question: Which date had less than 3 goals and a result of (w) 2-0?
<|assistant|>
SELECT "date" FROM "england_career" WHERE "goals"<3 AND "result"='(w) 2-0';<|endoftext|> |
<|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: Which home team scored 13.11 (89)?
<|assistant|>
SELECT "home_team" FROM "round_16" WHERE "home_team_score"='13.11 (89)';<|endoftext|> |
<|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: When an away team scored 11.17 (83), at which venue were they playing?
<|assistant|>
SELECT "venue" FROM "round_16" WHERE "away_team_score"='11.17 (83)';<|endoftext|> |
<|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: On what date was a match held at MCG?
<|assistant|>
SELECT "date" FROM "round_16" WHERE "venue"='mcg';<|endoftext|> |
<|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: When Fitzroy are the away team, what is the average crowd size?
<|assistant|>
SELECT AVG("crowd") FROM "round_16" WHERE "away_team"='fitzroy';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8_national_day_round" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is footscray's away team score?
<|assistant|>
SELECT "away_team_score" FROM "round_8_national_day_round" WHERE "home_team"='footscray';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: What is the record of Jeremija Sanders' opponent?
<|assistant|>
SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='jeremija sanders';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_points" (
"player" text,
"span" text,
"start" real,
"tries" real,
"conv" real,
"pens" real,
"drop" real
);
Question: What is the average number of tries that has a start larger than 32, is a player of seremaia bai that also has a conversion score larger than 47?
<|assistant|>
SELECT AVG("tries") FROM "most_points" WHERE "start">32 AND "player"='seremaia bai' AND "conv">47;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_points" (
"player" text,
"span" text,
"start" real,
"tries" real,
"conv" real,
"pens" real,
"drop" real
);
Question: For the player fero lasagavibau who has the lowest start?
<|assistant|>
SELECT MIN("start") FROM "most_points" WHERE "player"='fero lasagavibau';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"round" real,
"time" text,
"location" text
);
Question: Who was the opponent when Raphael was 4-0?
<|assistant|>
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "record"='4-0';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"round" real,
"time" text,
"location" text
);
Question: What was the average round when he had a 3-0 record?
<|assistant|>
SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "record"='3-0';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"round" real,
"time" text,
"location" text
);
Question: What was the location when he had a 2-0 record?
<|assistant|>
SELECT "location" FROM "mixed_martial_arts_record" WHERE "record"='2-0';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"round" real,
"time" text,
"location" text
);
Question: What was the result when he went 1 round against jeremy beck?
<|assistant|>
SELECT "res" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "opponent"='jeremy beck';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"date" text,
"result" text,
"score" text,
"stadium" text,
"city" text,
"crowd" real
);
Question: What was the result of the game in halifax?
<|assistant|>
SELECT "result" FROM "round_5" WHERE "city"='halifax';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"date" text,
"result" text,
"score" text,
"stadium" text,
"city" text,
"crowd" real
);
Question: What stadium is located in Halifax?
<|assistant|>
SELECT "stadium" FROM "round_5" WHERE "city"='halifax';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"date" text,
"result" text,
"score" text,
"stadium" text,
"city" text,
"crowd" real
);
Question: What day did they play in salford?
<|assistant|>
SELECT "date" FROM "round_5" WHERE "city"='salford';<|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" real
);
Question: What was the earliest week the team played the chicago cardinals in front of less than 25,312?
<|assistant|>
SELECT MIN("week") FROM "regular_season_schedule" WHERE "opponent"='chicago cardinals' AND "attendance"<'25,312';<|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" real
);
Question: What day did they play on week 4?
<|assistant|>
SELECT "date" FROM "regular_season_schedule" WHERE "week"=4;<|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" real
);
Question: What team did the Brows play against on October 20, 1963 to a crowd larger than 55,096?
<|assistant|>
SELECT "opponent" FROM "regular_season_schedule" WHERE "attendance">'55,096' AND "date"='october 20, 1963';<|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" real
);
Question: What was the attendance during the week 1 match?
<|assistant|>
SELECT "attendance" FROM "regular_season_schedule" WHERE "week"=1;<|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" real
);
Question: During what week was the match on November 10, 1963?
<|assistant|>
SELECT AVG("week") FROM "regular_season_schedule" WHERE "date"='november 10, 1963';<|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" real
);
Question: What was the result of the match on December 1, 1963?
<|assistant|>
SELECT "result" FROM "regular_season_schedule" WHERE "date"='december 1, 1963';<|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: When did a crowd larger than 23,135 watch an away team score 3.8 (26)?
<|assistant|>
SELECT "date" FROM "round_3" WHERE "crowd">'23,135' AND "away_team_score"='3.8 (26)';<|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 was the Away team score against a home team with 5.12 (42)?
<|assistant|>
SELECT "away_team_score" FROM "round_3" 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_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What day is hawthorn the away side?
<|assistant|>
SELECT "date" FROM "round_3" WHERE "away_team"='hawthorn';<|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 average crowd size for games with north melbourne as the away side?
<|assistant|>
SELECT AVG("crowd") FROM "round_3" WHERE "away_team"='north melbourne';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.