text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current" (
"club" text,
"nickname" text,
"location" text,
"home_ground" text,
"gfl_premierships" text,
"years_in_gfl" text
);
Question: What is the location of the Saints having 1979- as Year... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"ends" real,
"transfer_fee" text,
"source" text
);
Question: What is the type of the player who end... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"ends" real,
"transfer_fee" text,
"source" text
);
Question: Where did the player with a transfer t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"ends" real,
"transfer_fee" text,
"source" text
);
Question: What is the transfer window for larsso... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"nat" text,
"name" text,
"moving_from" text,
"type" text,
"transfer_window" text,
"ends" real,
"transfer_fee" text,
"source" text
);
Question: What is the average end year of the pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "itf_singles_finals_6_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_final" text,
"score_in_final" text
);
Question: What was the outcome on 2 December 2012?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "itf_singles_finals_6_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_final" text,
"score_in_final" text
);
Question: What is the score of the final in $10,00... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What was the place for the score 70-72-69=211?
<|assistant|>
SELECT "place" FROM "third_roun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What was the player for t9 and a score of 73-69-74=216?
<|assistant|>
SELECT "player" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What was Stacy Lewis' place?
<|assistant|>
SELECT "place" FROM "third_round" WHERE "player"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What was the score when the tie no was 13?
<|assistant|>
SELECT "score" FROM "se... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What was the score when Burnley was the away team?
<|assistant|>
SELECT "score" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: What is the To par when the finish is 66?
<|assistant|>
SELECT "to_pa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: When the year won is 1981, 1987, and the finish is t46, what is the l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: Which year was won with a finish of 68
<|assistant|>
SELECT "year_s_w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "light_heavyweight_85_kg" (
"name" text,
"bodyweight" real,
"snatch" real,
"clean_jerk" real,
"total_kg" real
);
Question: WHTA IS THE SNATCH WITH A TOTAL OF LARGER THAN 318 KG AND BODY WEIGHT O... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "light_heavyweight_85_kg" (
"name" text,
"bodyweight" real,
"snatch" real,
"clean_jerk" real,
"total_kg" real
);
Question: WHAT IS THE SNATCH WITH TOTAL KG SMALLER THAN 318, AND CLEAN JERK LARGE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "religious_political_or_racial_crimes" (
"date" text,
"year" real,
"location" text,
"country" text,
"killed" text,
"injured" text
);
Question: What date has 2 for killed, and jaffa as the loca... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "religious_political_or_racial_crimes" (
"date" text,
"year" real,
"location" text,
"country" text,
"killed" text,
"injured" text
);
Question: What is the injured that has skierlik as the loca... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summer_2001" (
"7_00_am" text,
"7_30_am" text,
"8_00_am" text,
"9_00_am" text,
"11_00_am" text,
"noon" text,
"12_30_pm" text,
"1_00_pm" text,
"1_30_pm" text,
"2_00_pm" text,
"3_00_pm... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summer_2001" (
"7_00_am" text,
"7_30_am" text,
"8_00_am" text,
"9_00_am" text,
"11_00_am" text,
"noon" text,
"12_30_pm" text,
"1_00_pm" text,
"1_30_pm" text,
"2_00_pm" text,
"3_00_pm... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summer_2001" (
"7_00_am" text,
"7_30_am" text,
"8_00_am" text,
"9_00_am" text,
"11_00_am" text,
"noon" text,
"12_30_pm" text,
"1_00_pm" text,
"1_30_pm" text,
"2_00_pm" text,
"3_00_pm... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summer_2001" (
"7_00_am" text,
"7_30_am" text,
"8_00_am" text,
"9_00_am" text,
"11_00_am" text,
"noon" text,
"12_30_pm" text,
"1_00_pm" text,
"1_30_pm" text,
"2_00_pm" text,
"3_00_pm... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summer_2001" (
"7_00_am" text,
"7_30_am" text,
"8_00_am" text,
"9_00_am" text,
"11_00_am" text,
"noon" text,
"12_30_pm" text,
"1_00_pm" text,
"1_30_pm" text,
"2_00_pm" text,
"3_00_pm... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the 2nd leg that Team 1 is Union Berlin?
<|assistant|>
SELECT "2nd_leg" FROM "secon... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_30_highest_goalscorers_all_time" (
"name" text,
"years" text,
"goals" real,
"apps" real,
"ratio" real
);
Question: What is the Apps for the player with 150 Goals and a Ratio of 0.52?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winter_1999_2000" (
"7_00_am" text,
"7_30_am" text,
"8_00_am" text,
"9_00_am" text,
"10_00_am" text,
"11_00_am" text,
"noon" text,
"12_30_pm" text,
"1_00_pm" text,
"1_30_pm" text,
"2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winter_1999_2000" (
"7_00_am" text,
"7_30_am" text,
"8_00_am" text,
"9_00_am" text,
"10_00_am" text,
"11_00_am" text,
"noon" text,
"12_30_pm" text,
"1_00_pm" text,
"1_30_pm" text,
"2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winter_1999_2000" (
"7_00_am" text,
"7_30_am" text,
"8_00_am" text,
"9_00_am" text,
"10_00_am" text,
"11_00_am" text,
"noon" text,
"12_30_pm" text,
"1_00_pm" text,
"1_30_pm" text,
"2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winter_1999_2000" (
"7_00_am" text,
"7_30_am" text,
"8_00_am" text,
"9_00_am" text,
"10_00_am" text,
"11_00_am" text,
"noon" text,
"12_30_pm" text,
"1_00_pm" text,
"1_30_pm" text,
"2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winter_1999_2000" (
"7_00_am" text,
"7_30_am" text,
"8_00_am" text,
"9_00_am" text,
"10_00_am" text,
"11_00_am" text,
"noon" text,
"12_30_pm" text,
"1_00_pm" text,
"1_30_pm" text,
"2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar" (
"date" text,
"series" text,
"circuit" text,
"city_state" text,
"winner" text,
"team" text
);
Question: Which team won at the symmons plains raceway?
<|assistant|>
SELECT "tea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar" (
"date" text,
"series" text,
"circuit" text,
"city_state" text,
"winner" text,
"team" text
);
Question: Which team won at winton motor raceway?
<|assistant|>
SELECT "team" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar" (
"date" text,
"series" text,
"circuit" text,
"city_state" text,
"winner" text,
"team" text
);
Question: Which circuit was the atcc round 7 at?
<|assistant|>
SELECT "circuit" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar" (
"date" text,
"series" text,
"circuit" text,
"city_state" text,
"winner" text,
"team" text
);
Question: Which circuit did winfield team nissan win for the tooheys 1000?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar" (
"date" text,
"series" text,
"circuit" text,
"city_state" text,
"winner" text,
"team" text
);
Question: What is the date for the tooheys 1000?
<|assistant|>
SELECT "date" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar" (
"date" text,
"series" text,
"circuit" text,
"city_state" text,
"winner" text,
"team" text
);
Question: what series was in sydney, new south wales?
<|assistant|>
SELECT "serie... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"rank" real,
"club" text,
"years" real,
"games" real,
"pts" real
);
Question: What was the rank for 1.26 Ø-Pts in game 1458?
<|assistant|>
SELECT COUNT("rank") FROM "references" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_9_3_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is the Outcome of the match with Partner Ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_9_3_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is the Surface of the match with a Score of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_9_3_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is the Surface of the match played on Octob... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_9_3_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is the Date of the match with a Score of 0–... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_9_3_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Who is the Opponents on May 3, 1982?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_9_3_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is the Score of the match on May 21, 1984 w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"event" text,
"time" text,
"date" text,
"meet" text,
"location" text
);
Question: What is the date of the 200m individual medley?
<|assistant|>
SELECT "date" FROM "women" WHERE "event"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_of_16" (
"team_1" text,
"score" text,
"team_2" text,
"1st_round" text,
"2nd_round" text
);
Question: Which team was team 1 in the match where team 2 was olympique lyonnais (d2)?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_of_16" (
"team_1" text,
"score" text,
"team_2" text,
"1st_round" text,
"2nd_round" text
);
Question: What was the score of the match where paris sg (d1) was team 1?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: Which Week has a Result of w 23–22?
<|assistant|>
SELECT "week" FROM "schedule" WHERE "resul... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: When was there a bye result?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "result"='bye... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: When was the attendance 65,806?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "attendanc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: Who was the opponent after week 16?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_in_class" (
"ship" text,
"hull_number" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
Question: What is Commissioned, when Laid Down is "6 September 2003"?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_in_class" (
"ship" text,
"hull_number" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
Question: What is Launched, when Laid Down is "31 October 1981"?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_in_class" (
"ship" text,
"hull_number" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
Question: What is Ship, when Commissioned is "13 March 1982"?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_in_class" (
"ship" text,
"hull_number" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
Question: What is Launched, when Commissioned is "25 July 1998"?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_in_class" (
"ship" text,
"hull_number" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
Question: What is Laid Down, when Hull Number is "CVN-69"?
<|assistant|>
SELECT "lai... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_in_class" (
"ship" text,
"hull_number" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
Question: What is Laid Down, when Commissioned is "11 November 1989"?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"position" text,
"driver" text,
"entrant" text,
"class" text,
"laps" real
);
Question: Can you tell me the Position that has the Entrant of j ampt?
<|assistant|>
SELECT "position" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"position" text,
"driver" text,
"entrant" text,
"class" text,
"laps" real
);
Question: Can you tell me the Entrant that has the Laps of 17?
<|assistant|>
SELECT "entrant" FROM "resul... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"position" text,
"driver" text,
"entrant" text,
"class" text,
"laps" real
);
Question: Can you tell me the Position that has the Driver of bib stillwell?
<|assistant|>
SELECT "positi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sugar_bowl" (
"date" text,
"opponentnum" text,
"site" text,
"result" text,
"attendance" text
);
Question: What are the results for a game with an attendance of 41,429?
<|assistant|>
SELECT "res... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sugar_bowl" (
"date" text,
"opponentnum" text,
"site" text,
"result" text,
"attendance" text
);
Question: Who were the opponents when there was an attendance of 48,165?
<|assistant|>
SELECT "op... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sugar_bowl" (
"date" text,
"opponentnum" text,
"site" text,
"result" text,
"attendance" text
);
Question: What are the results for the game with 82,113 attending?
<|assistant|>
SELECT "result" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010" (
"week_1" text,
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text
);
Question: Who was the girl on week 4 after week 3's Mikaela James?
<|assistant|>
SELECT "week_4" FROM "2010"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010" (
"week_1" text,
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text
);
Question: Who was the girl on week 1 that was previous to week 3's Ava Hart?
<|assistant|>
SELECT "week_1" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010" (
"week_1" text,
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text
);
Question: Who was the girl on week 2 that was previous to week 4's Chelsie Loraine?
<|assistant|>
SELECT "we... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010" (
"week_1" text,
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text
);
Question: Who was the girl on week 5 that came after week 3's Mikaela James?
<|assistant|>
SELECT "week_5" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010" (
"week_1" text,
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text
);
Question: Who was the girl on week 1 that preceded week 2's Kamila Sulewska?
<|assistant|>
SELECT "week_1" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010" (
"week_1" text,
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text
);
Question: Who was the girl on week 5 that came after week 3's Shelly Louise?
<|assistant|>
SELECT "week_5" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1986_87" text,
"1987_88" text,
"1988_89" real
);
Question: What is the lowest 1988-89, when Average is greater than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1986_87" text,
"1987_88" text,
"1988_89" real
);
Question: What is Played, when Points is less than 107, and when 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1986_87" text,
"1987_88" text,
"1988_89" real
);
Question: What is the lowest 1988-89, when Points is greater than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1986_87" text,
"1987_88" text,
"1988_89" real
);
Question: What is 1987-88, when Points is "136"?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" text
);
Question: Name the the highest Draw which has Points of 22 an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" text
);
Question: Name the highest Played of Goals Scored smaller tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" text
);
Question: Name the average Played with a Points of 0*?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" text
);
Question: Count the Draw which has Lost of 0, and a Goals Sco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" text
);
Question: Name the Goals Conceded which has a Draw of 0 and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the rank for the Mixed Team nation with a total of less than 13?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total number of bronze medals for teams with less than 0 silver?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the average number of bronze medals when the team's silver are more tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_conflicts" (
"military_deaths" text,
"civilian_deaths" text,
"total_deaths_not_including_foreigners" text,
"military_and_or_civilian_wounded" text,
"total_casualties" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_conflicts" (
"military_deaths" text,
"civilian_deaths" text,
"total_deaths_not_including_foreigners" text,
"military_and_or_civilian_wounded" text,
"total_casualties" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_conflicts" (
"military_deaths" text,
"civilian_deaths" text,
"total_deaths_not_including_foreigners" text,
"military_and_or_civilian_wounded" text,
"total_casualties" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_conflicts" (
"military_deaths" text,
"civilian_deaths" text,
"total_deaths_not_including_foreigners" text,
"military_and_or_civilian_wounded" text,
"total_casualties" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_conflicts" (
"military_deaths" text,
"civilian_deaths" text,
"total_deaths_not_including_foreigners" text,
"military_and_or_civilian_wounded" text,
"total_casualties" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
Question: Which team was the opponent on week 15?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: What is the average Total, when Finish is "T47"?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: What is To par, when Total is less than 297, and when Finish is "1"?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"episode" text,
"air_date" text,
"official_itv1_rating" real,
"weekly_rank" text,
"share" text
);
Question: What is the Official ITV1 rating for auditions 4?
<|assistant|>
SELECT "of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"episode" text,
"air_date" text,
"official_itv1_rating" real,
"weekly_rank" text,
"share" text
);
Question: What is the lowest official ITV1 rating with 45.4% share?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
Que... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
Que... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
Que... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
Que... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
Que... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the To Par score for the player from France?
<|assistant|>
SELECT "to_par" FROM "thi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the name of the player with an overall score of 70-69-69=208?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the To Par score for the player with an overall score of 71-68-69=208?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_singles" (
"location" text,
"year" real,
"champion" text,
"runner_up" text,
"score" text
);
Question: What location did Anke Huber win the championship?
<|assistant|>
SELECT "location" ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.