text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sunderland_a_f_c_goals" (
"date" text,
"venue" text,
"opposition" text,
"score" text,
"competition" text
);
Question: What is the date of the game with a score of 4-3?
<|assistant|>
SELECT "dat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sunderland_a_f_c_goals" (
"date" text,
"venue" text,
"opposition" text,
"score" text,
"competition" text
);
Question: What is the score of the game on 8 Sep 1990?
<|assistant|>
SELECT "score" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sunderland_a_f_c_goals" (
"date" text,
"venue" text,
"opposition" text,
"score" text,
"competition" text
);
Question: Who is the opposition on the division 1 game at Stamford Bridge?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which rank has a total less than 9, less than 2 bronze, and from France?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which rank has more than 1 silver, more than 1 gold, and more than 4 bronze?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many silver have a Total smaller than 3, a Bronze of 1, and a Gold larger ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many gold have a National of New Zealand with a total less than 2?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_since_2000" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"time" text
);
Question: Who won in 2003?
<|assistant|>
SELECT "winner" FROM "winners_since_2000... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_since_2000" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"time" text
);
Question: What is the average year for scatman winning?
<|assistant|>
SELECT AVG(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_since_2000" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"time" text
);
Question: Who trained the horse with time of 1:09.40?
<|assistant|>
SELECT "train... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
Question: Where was the mediterranean games held?
<|assistant|>
SELECT "venue" FROM "achievements" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
Question: When was the last time a venue was held in turin, italy?
<|assistant|>
SELECT MAX("year") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
Question: Where was the universiade held in 1959?
<|assistant|>
SELECT "venue" FROM "achievements" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
Question: How many year was the venue in stockholm, sweden used?
<|assistant|>
SELECT COUNT("year") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_year" (
"year" real,
"driver" text,
"constructor" text,
"location" text,
"report" text
);
Question: What is a report for a race with Baconin Borzacchini in Tripoli in a year after 1928?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_year" (
"year" real,
"driver" text,
"constructor" text,
"location" text,
"report" text
);
Question: What was the constructor of the car that Achille Varzi drove before 1937?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_year" (
"year" real,
"driver" text,
"constructor" text,
"location" text,
"report" text
);
Question: What was the constructor of the car that Hermann Lang drove after 1935?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"number" text,
"builder" text,
"type" text,
"date" text,
"works_number" text
);
Question: What is the Works Number that has a Number of 153 in 1916?
<|assistant|>
SELECT "works_n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"number" text,
"builder" text,
"type" text,
"date" text,
"works_number" text
);
Question: On what Date was the Works Number 7?
<|assistant|>
SELECT "date" FROM "locomotives" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"number" text,
"builder" text,
"type" text,
"date" text,
"works_number" text
);
Question: Which Builder has a Works Number of 16272?
<|assistant|>
SELECT "builder" FROM "locomoti... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"number" text,
"builder" text,
"type" text,
"date" text,
"works_number" text
);
Question: On what Date was the Works Number 12?
<|assistant|>
SELECT "date" FROM "locomotives" WHE... |
<|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: Where did South Melbourne play as the hom... |
<|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 attendance when St Kilda pla... |
<|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" text
);
Question: Which driver had a grid number of 18?
<|assistant|>
SELECT "driver" FROM "race" WHERE "grid... |
<|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" text
);
Question: Which constructor had Shinji Nakano as a driver?
<|assistant|>
SELECT "constructor" FROM "r... |
<|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: How many people were in attendance when t... |
<|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: Which away team scored 11.10 (76)?
<|assi... |
<|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 was the home team score at Glenferri... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "walking" (
"event" text,
"data" text,
"athlete" text,
"date" text,
"place" text
);
Question: What date has a Data of 19:29?
<|assistant|>
SELECT "date" FROM "walking" WHERE "data"='19:29';<|end... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "walking" (
"event" text,
"data" text,
"athlete" text,
"date" text,
"place" text
);
Question: Which athlete has a 35 km event?
<|assistant|>
SELECT "athlete" FROM "walking" WHERE "event"='35 km'... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_classification" (
"cyclist" text,
"nation" text,
"team" text,
"time" text,
"uci_pro_tour_points" real
);
Question: What nation is the cyclist from team discovery channel?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_classification" (
"cyclist" text,
"nation" text,
"team" text,
"time" text,
"uci_pro_tour_points" real
);
Question: What nation is the cyclist hat has a UCI ProTour Points of 25?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"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 play Punt Road Oval?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"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 teams score at Western ... |
<|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 first prize amount of the person ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "collected_editions" (
"title" text,
"pages" text,
"first_edition" text,
"second_edition" text,
"isbn" text
);
Question: What is the ISBN of the book with a first edition in May 2011?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "collected_editions" (
"title" text,
"pages" text,
"first_edition" text,
"second_edition" text,
"isbn" text
);
Question: Which first edition has an ISBN of 978-0785166252?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "collected_editions" (
"title" text,
"pages" text,
"first_edition" text,
"second_edition" text,
"isbn" text
);
Question: Which first edition has 264 pages and the ISBN of 978-0785111832?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many people were in the crowd when th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What home team had a score of 6.9 (45)
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many people were in the crowd at coll... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: On what date did the away team have a sco... |
<|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 played against the home ... |
<|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 did the away team score when playin... |
<|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: Where did the away team play when they s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "production_overview" (
"pilot_car_no" real,
"colour" text,
"serial_no" text,
"engine_no" real,
"registration_no" text
);
Question: What is the serial number of the pilot car that is black, has ... |
<|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: When the Away team had a score of 14.11 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the low lap total that has a Time or Retired of accident?
<|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: What is the smallest crowd when the away... |
<|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 crowd larger than 16,0... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the venue when the Home team sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
);
Question: Which player was a fly-half?
<|assistant|>
SELECT "player... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
);
Question: What is the mean number of caps for Ryota Asano?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
);
Question: What is the mean number of caps for Ryota Asano?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "j" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Who is the forward from Grambling State?
<|assistant|>
SELECT "player" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "j" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the nationality of the guard who plays at Utah?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "j" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the position of the player from Tampa?
<|assistant|>
SELECT "positio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "j" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the nationality of the player on the Jazz from 1974-79?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "j" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Who is the player who went to school at Tampa?
<|assistant|>
SELECT "player"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "j" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the nationality of the player on the Jazz from 1974-79?
<|assistant|... |
<|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 total size of the crowd when... |
<|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 away team that had a score o... |
<|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 score of the away team at th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "inactive_chapters" (
"name" text,
"founded" real,
"institution" text,
"location" text,
"status" text
);
Question: What institution is located in athens, ga, us?
<|assistant|>
SELECT "institutio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "inactive_chapters" (
"name" text,
"founded" real,
"institution" text,
"location" text,
"status" text
);
Question: What is the status of the institution that was founded in 1996?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_individual_score" (
"runs" text,
"player" text,
"opponent" text,
"venue" text,
"season" text
);
Question: During runs 332, what was the venue?
<|assistant|>
SELECT "venue" FROM "highest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_individual_score" (
"runs" text,
"player" text,
"opponent" text,
"venue" text,
"season" text
);
Question: Which player's runs are 270?
<|assistant|>
SELECT "player" FROM "highest_indivi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_individual_score" (
"runs" text,
"player" text,
"opponent" text,
"venue" text,
"season" text
);
Question: During season 1935, what was the venue?
<|assistant|>
SELECT "venue" FROM "high... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_individual_score" (
"runs" text,
"player" text,
"opponent" text,
"venue" text,
"season" text
);
Question: For player Les Ames, what was the venue?
<|assistant|>
SELECT "venue" FROM "hig... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"grand_prix" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: When was ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "melodi_grand_prix_1999_27_february_1999" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" real
);
Question: How many points has a draw greater than 3 and 3rd place?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
Question: Name the average events for miller barber
<|assistant|>
SELECT AVG("events") FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
Question: Name the most wins for earnings of 130,002
<|assistant|>
SELECT MAX("wins") FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
Question: Name the average wins for earnings more than 120,367 and events less than 13
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
Question: Name the average rank for earnings less than 231,008 and wins less than 1
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "releases" (
"release_title" text,
"released_as" text,
"release_type" text,
"label" text,
"year" text
);
Question: What year was Neverchanger with the label of Latenight weeknight?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "releases" (
"release_title" text,
"released_as" text,
"release_type" text,
"label" text,
"year" text
);
Question: What year was Ethereal 77, which has a CD album release type?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "services" (
"platform" real,
"frequency_per_hour" real,
"destination" text,
"operator" text,
"line" text
);
Question: what is the platform when the frequency (per hour) is 4 and the destination... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "services" (
"platform" real,
"frequency_per_hour" real,
"destination" text,
"operator" text,
"line" text
);
Question: what is the highest platform number when the frequency (per hour) is 4, the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What is the name of the team with a qual 1 time of 1:17.481?
<|assistant|>
SELECT "team" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What is the qual 1 for the best of 1:18.067?
<|assistant|>
SELECT "qual_1" FROM "qualifyin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What is the qual 1 when the qual 2 has no time and the best is 1:16.776?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What person on team Minardi Team USA with a qual of 1:17.481?
<|assistant|>
SELECT "name" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What is the name of the person with a qual 1 time of 1:16.850?
<|assistant|>
SELECT "name"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What is the qual 2 when the qual 1 is 1:16.841?
<|assistant|>
SELECT "qual_2" FROM "qualif... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1066_to_1135" (
"heir" text,
"status" text,
"relationship_to_monarch" text,
"became_heir" text,
"reason" text,
"ceased_to_be_heir" text,
"monarch" text
);
Question: Who is the Monarch whose... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1066_to_1135" (
"heir" text,
"status" text,
"relationship_to_monarch" text,
"became_heir" text,
"reason" text,
"ceased_to_be_heir" text,
"monarch" text
);
Question: Which Monarch has succes... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1066_to_1135" (
"heir" text,
"status" text,
"relationship_to_monarch" text,
"became_heir" text,
"reason" text,
"ceased_to_be_heir" text,
"monarch" text
);
Question: Which Reason is given wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1066_to_1135" (
"heir" text,
"status" text,
"relationship_to_monarch" text,
"became_heir" text,
"reason" text,
"ceased_to_be_heir" text,
"monarch" text
);
Question: What is the Status when ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: Name the tyre for hb bewaking team ensi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: Name the round for engine of ford coswo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: Name the chassis for tyre of g and carl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: Name the entrant for chassis of gh1
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: Name the rounds for stanley brm
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "key" (
"nationality" text,
"position" text,
"tottenham_hotspur_career" text,
"club_apps" text,
"goals" text
);
Question: What were the years of the Tottenham Hotspur career for the player with ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "key" (
"nationality" text,
"position" text,
"tottenham_hotspur_career" text,
"club_apps" text,
"goals" text
);
Question: What is the position of the player from England with 62 goals?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "key" (
"nationality" text,
"position" text,
"tottenham_hotspur_career" text,
"club_apps" text,
"goals" text
);
Question: How many goals did the player from England who played the position of mf... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "key" (
"nationality" text,
"position" text,
"tottenham_hotspur_career" text,
"club_apps" text,
"goals" text
);
Question: How many goals did the player with 229 club apps have?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_spring_musical" (
"year" real,
"award_ceremony" text,
"category" text,
"nominee" text,
"result" text
);
Question: For which Award Ceremony was Emilio Pichardo as Bobby Strong nominated?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_spring_musical" (
"year" real,
"award_ceremony" text,
"category" text,
"nominee" text,
"result" text
);
Question: Who was nominated for best female performer?
<|assistant|>
SELECT "nominee"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.