text stringlengths 310 1.28k |
|---|
<|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 team was the away team when they pla... |
<|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 the crowd when No... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "running_backs" (
"player" text,
"car" real,
"yards" real,
"avg" real,
"td_s" real,
"long" real
);
Question: What is Mark Grieb's average when his TDs are smaller than 2?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "running_backs" (
"player" text,
"car" real,
"yards" real,
"avg" real,
"td_s" real,
"long" real
);
Question: What is Craig Whelihan's average when his yards are smaller than 0?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "touchdowns" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"td_s" real,
"long" real
);
Question: Which largest average had 1229 yards?
<|assistant|>
SELECT MAX("avg") FROM "touchdowns... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What is the constructor where the circuit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: Who is the Winning Driver in the race vii... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What is the date that the winner driver i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_easternmost_high_summits_of_the_rock" (
"rank" real,
"mountain_peak" text,
"state" text,
"mountain_range" text,
"location" text
);
Question: Which state is the location of 39.1178°n 106.445... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_easternmost_high_summits_of_the_rock" (
"rank" real,
"mountain_peak" text,
"state" text,
"mountain_range" text,
"location" text
);
Question: What is the highest rank Mount Elbert has?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_easternmost_high_summits_of_the_rock" (
"rank" real,
"mountain_peak" text,
"state" text,
"mountain_range" text,
"location" text
);
Question: What is the mountain range at 37.3934°n 104.9201... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_easternmost_high_summits_of_the_rock" (
"rank" real,
"mountain_peak" text,
"state" text,
"mountain_range" text,
"location" text
);
Question: What is the location of Blanca Peak?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_easternmost_high_summits_of_the_rock" (
"rank" real,
"mountain_peak" text,
"state" text,
"mountain_range" text,
"location" text
);
Question: Which state is West Spanish Peak in?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_easternmost_high_summits_of_the_rock" (
"rank" real,
"mountain_peak" text,
"state" text,
"mountain_range" text,
"location" text
);
Question: What is the ranked 5 mountain range?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_representatives" (
"name" text,
"took_office" text,
"left_office" text,
"party" text,
"district_residence" text
);
Question: Name of choice b. Randell is the name of which District Resi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_representatives" (
"name" text,
"took_office" text,
"left_office" text,
"party" text,
"district_residence" text
);
Question: Who has a Took Office of march 4, 1903?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_representatives" (
"name" text,
"took_office" text,
"left_office" text,
"party" text,
"district_residence" text
);
Question: Which Took Office that has a Party of democrat, under the na... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_representatives" (
"name" text,
"took_office" text,
"left_office" text,
"party" text,
"district_residence" text
);
Question: Who has Took Office of march 4, 1875?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Name the record on june 22
<|assistant|>
SELECT "record" FROM "game_log" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: Name the total number in attendance for when the bulls ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preliminary_competition" (
"state" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: Name the most swimsuit for interview less than 8.46
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "preliminary_competition" (
"state" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
);
Question: Name the most evening gown for average less than 8.793 with intervie... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_timeline" (
"tournament" text,
"starts" real,
"top_10s" real,
"wins" real,
"earnings" text
);
Question: On average, how many Starts have Wins that are smaller than 0?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_timeline" (
"tournament" text,
"starts" real,
"top_10s" real,
"wins" real,
"earnings" text
);
Question: Which of the top-10s has a starts value of 14?
<|assistant|>
SELECT MAX("top_10s"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_timeline" (
"tournament" text,
"starts" real,
"top_10s" real,
"wins" real,
"earnings" text
);
Question: In the tournament of HSBC Champions, what was the sum of the Starts with Wins low... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "full_results" (
"finished" text,
"post" real,
"horse" text,
"jockey" text,
"trainer" text,
"odds" real
);
Question: Who trained the horse on post 11 with over 36 odds?
<|assistant|>
SELECT "t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "full_results" (
"finished" text,
"post" real,
"horse" text,
"jockey" text,
"trainer" text,
"odds" real
);
Question: What is the lowest post number for calvin borel?
<|assistant|>
SELECT MIN("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "full_results" (
"finished" text,
"post" real,
"horse" text,
"jockey" text,
"trainer" text,
"odds" real
);
Question: What horse for jara?
<|assistant|>
SELECT "horse" FROM "full_results" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: What is the date when Lebron James (25) was the lead... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which Total has a Gold smaller than 0?
<|assistant|>
SELECT SUM("total") FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which Bronze has a Gold smaller than 0?
<|assistant|>
SELECT AVG("bronze") FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campos_racing" (
"year" real,
"team_name" text,
"drivers" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"points" real,
"d_c" text,
"t_c" text
);
Question: Which T.C. h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campos_racing" (
"year" real,
"team_name" text,
"drivers" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"points" real,
"d_c" text,
"t_c" text
);
Question: How many yea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campos_racing" (
"year" real,
"team_name" text,
"drivers" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"points" real,
"d_c" text,
"t_c" text
);
Question: How many Poi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campos_racing" (
"year" real,
"team_name" text,
"drivers" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"points" real,
"d_c" text,
"t_c" text
);
Question: How many Pol... |
<|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: Who was the away team at Victoria Park?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"number" real,
"name" text,
"builder" text,
"type" text,
"date" real
);
Question: What is the name of the train numbered less than 6 before 1993?
<|assistant|>
SELECT "name" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"number" real,
"name" text,
"builder" text,
"type" text,
"date" real
);
Question: What is the name of the bo-bodh train with a number less than 5?
<|assistant|>
SELECT "name" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Name the record when the visitor is st. louis
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What was the scory when calgary was visiting?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Name the home when the visitor was dallas on february 2
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Name the date for turco decision and home of st. louis
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ultra_lightweight_manx_grand_prix_provis" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
Question: Which rider had a speed of 104.630mph?
<|assistant|>
SELECT "rider" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ultra_lightweight_manx_grand_prix_provis" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
Question: What is the best rank with a time of 1:05.14.10?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Where was the game played when the final score was 35-62?
<|assistant|>
SELECT "stad... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: During the game at Candlestick Park, who was the visiting team?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Which visiting team had a final score of 14-34?
<|assistant|>
SELECT "visiting_team"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: What was the final score in the game against the Cincinnati Bengals?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Who was the visiting team in the game against the Dallas Cowboys?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_7_3_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which tournament has an Outcome of runner-up, and an Opponent of ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_7_3_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which surface has a Score of 6–4, 6–2?
<|assistant|>
SELECT "surfac... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_7_3_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which surface has a Date of 22 august 2006?
<|assistant|>
SELECT "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_7_3_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which tournament has an Outcome of runner-up, a Surface of hard, an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_7_3_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is the outcome with marina erakovic as opponent?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_7_3_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which tournament has an Outcome of winner, and a Opponent of dia ev... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "unreleased_songs" (
"title" text,
"author_s" text,
"recorded" text,
"location_s" text,
"time" text
);
Question: What title runs for 3:22?
<|assistant|>
SELECT "title" FROM "unreleased_songs" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "unreleased_songs" (
"title" text,
"author_s" text,
"recorded" text,
"location_s" text,
"time" text
);
Question: Who wrote the song that runs for 2:22?
<|assistant|>
SELECT "author_s" FROM "unre... |
<|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 Constructor had 66 Laps?
<|assistant|>
SELECT "constructor" FROM "classifica... |
<|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: With Laps greater than 78, what is the lowest Grid?
<|assistant|>
SELECT MIN("gri... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: How many Laps with a Grid smaller than 11 did John Watson have?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: How many Laps with a Grid smaller than 3 did Driver NIki Lauda have?
<|assistant|... |
<|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 low grid total for a retired due to steering in under 15 laps?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the average laps that had a time/retired of +5 laps?
<|assistant|>
SELECT AVG("laps... |
<|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: Which Opponent has Location W... |
<|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: Which is the lowest Round wit... |
<|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: Which Event has the Opponent,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ca_or_11th_emergency_flotilla" (
"name" text,
"pennant" text,
"builder" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
Question: when was the destroyer launched when it was l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ca_or_11th_emergency_flotilla" (
"name" text,
"pennant" text,
"builder" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
Question: what is the launched date when the builder is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ca_or_11th_emergency_flotilla" (
"name" text,
"pennant" text,
"builder" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
Question: what is the pennant when the builder is yarro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ca_or_11th_emergency_flotilla" (
"name" text,
"pennant" text,
"builder" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
Question: what is the name when the laid down is 28 feb... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ca_or_11th_emergency_flotilla" (
"name" text,
"pennant" text,
"builder" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
Question: when was it commissioned when the destroyer w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ca_or_11th_emergency_flotilla" (
"name" text,
"pennant" text,
"builder" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
Question: when was the launched date when the laid down... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" text,
"record" text
);
Question: What was the record for a week below 13 on J... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" text,
"record" text
);
Question: What location had a final score of W 30 – 5?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: Which label had a catalog designation of ch-9196?
<|assistant|>
SELECT "label" FROM "rele... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: Which format's catalog designation was 21-382a?
<|assistant|>
SELECT "format" FROM "relea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: Which catalog had a date year of 1984?
<|assistant|>
SELECT "catalog" FROM "release_histo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: Which format was under the London Records label?
<|assistant|>
SELECT "format" FROM "rele... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: Which label was in the United Kingdom region?
<|assistant|>
SELECT "label" FROM "release_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: Which date had the catalog designation of ha-m 2230?
<|assistant|>
SELECT "date" FROM "re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "clausura_2006_standings" (
"place_posici_n" real,
"team_equipo" text,
"played_pj" real,
"won_pg" real,
"draw_pe" real,
"lost_pp" real,
"goals_scored_gf" real,
"goals_conceded_gc" real,
"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "clausura_2006_standings" (
"place_posici_n" real,
"team_equipo" text,
"played_pj" real,
"won_pg" real,
"draw_pe" real,
"lost_pp" real,
"goals_scored_gf" real,
"goals_conceded_gc" real,
"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the score of the game played in the 2012 Africa Cup of Nations?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the score of the friendly competition?
<|assistant|>
SELECT "score" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What venue was the game played on 9 February 2011 played at?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What date did NY Rangers play at home?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What is the score of Colorado when they were a visitor and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
);
Question: Who is the runner up when the score was 3–6, 6–3, [10–4]?
<|assistant|>
SELECT "runner_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
);
Question: What is the name of the runner up in the Tournament of são paulo?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
);
Question: What person is in the third place when Thomas Enqvist won and a Runner-up was guy forge... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
);
Question: What tournament was Thomas Enqvist runner up?
<|assistant|>
SELECT "tournament" FROM "2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
);
Question: What is the name of the runner up when yevgeny kafelnikov was third place and the score... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
);
Question: What is the name of the winner when Goran Ivanišević was in third place?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television" (
"analog_channel" text,
"digital_channel" text,
"call_sign" text,
"name" text,
"network" text
);
Question: Which analog channel has a digital channel of 4.1?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television" (
"analog_channel" text,
"digital_channel" text,
"call_sign" text,
"name" text,
"network" text
);
Question: Which digital channel is named Storm Tracker?
<|assistant|>
SELECT "digit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television" (
"analog_channel" text,
"digital_channel" text,
"call_sign" text,
"name" text,
"network" text
);
Question: Which analog channel is Fox on?
<|assistant|>
SELECT "analog_channel" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"area_name" text,
"area_headquarters" text,
"area_president_quorum" text,
"first_counselor_quorum" text,
"second_counselor_quorum" text
);
Question: Name the area president when the are... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Tell me the total number of Grid for Time/Retired of +2 Laps and Laps less than 70
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_superlative_academy_award_winner" (
"superlative" text,
"actress" text,
"record_set" text,
"year" real,
"notes" text
);
Question: What year did Shelley Winters win?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_superlative_academy_award_winner" (
"superlative" text,
"actress" text,
"record_set" text,
"year" real,
"notes" text
);
Question: Which award was won by Gloria Stuart after 1984?
<|assi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.