text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matches" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What's the 2nd leg for team 2 san francisco?
<|assistant|>
SELECT "2nd_leg" FROM "matches" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matches" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What's the 1st leg of team 1 alajuelense?
<|assistant|>
SELECT "1st_leg" FROM "matches" WHERE "t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"year" text,
"label" text,
"format" text,
"catalog" text
);
Question: What was the format for catalog 660-51-015?
<|assistant|>
SELECT "format" FROM "release_h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"year" text,
"label" text,
"format" text,
"catalog" text
);
Question: Which region had the year May 1974?
<|assistant|>
SELECT "region" FROM "release_history" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"year" text,
"label" text,
"format" text,
"catalog" text
);
Question: Which region had a year March 10, 1998?
<|assistant|>
SELECT "region" FROM "release_histo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m_ps_1707_1868" (
"year" real,
"first_member" text,
"first_party" text,
"second_member" text,
"second_party" text
);
Question: What is the first party for Lord John Hay earlier than 1857?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m_ps_1707_1868" (
"year" real,
"first_member" text,
"first_party" text,
"second_member" text,
"second_party" text
);
Question: Who is the second member more recently than 1790 when John William... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m_ps_1707_1868" (
"year" real,
"first_member" text,
"first_party" text,
"second_member" text,
"second_party" text
);
Question: Who is the second member ewarlier than 1804 when Tory Henry Isherw... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m_ps_1707_1868" (
"year" real,
"first_member" text,
"first_party" text,
"second_member" text,
"second_party" text
);
Question: Who is the second member when RT Hon. Edward Stanley is the first ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m_ps_1707_1868" (
"year" real,
"first_member" text,
"first_party" text,
"second_member" text,
"second_party" text
);
Question: What is the second party where the first party is Tory and the yea... |
<|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: Who is the player who won in 1993?
<|assistant|>
SELECT "player" FROM... |
<|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 years did the player with a t71 finish win?
<|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 year did player payne stewart win?
<|assistant|>
SELECT "year_s_... |
<|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 year did the player with a t3 finish win?
<|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 the lowest total of the player with a t41 finish?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medieval_bulgarian_army" (
"battle" text,
"date" text,
"bulgarian_commander" text,
"byzantine_commander" text,
"result" text
);
Question: In what Battle was Bulgarian Commander of Gavril Radomi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medieval_bulgarian_army" (
"battle" text,
"date" text,
"bulgarian_commander" text,
"byzantine_commander" text,
"result" text
);
Question: What is the Date of the Bulgarian Victory at the Battle... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medieval_bulgarian_army" (
"battle" text,
"date" text,
"bulgarian_commander" text,
"byzantine_commander" text,
"result" text
);
Question: What is the Bulgarian Commander in Autumn 1040 at the B... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medieval_bulgarian_army" (
"battle" text,
"date" text,
"bulgarian_commander" text,
"byzantine_commander" text,
"result" text
);
Question: What is the Byzantine Commander with a Bulgarian Victor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medieval_bulgarian_army" (
"battle" text,
"date" text,
"bulgarian_commander" text,
"byzantine_commander" text,
"result" text
);
Question: What is the Result of the Battle of Marcellae in 756?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medieval_bulgarian_army" (
"battle" text,
"date" text,
"bulgarian_commander" text,
"byzantine_commander" text,
"result" text
);
Question: What is the date of Gavril Radomir's Bulgarian Victory?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rating_figures" (
"episode" text,
"1_season" text,
"2_season" text,
"3_season" text,
"4_season" text,
"5_season" text,
"6_season" text
);
Question: What is 3 Season, when 1 Season is "2 959... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rating_figures" (
"episode" text,
"1_season" text,
"2_season" text,
"3_season" text,
"4_season" text,
"5_season" text,
"6_season" text
);
Question: What is 1 Season, when 4 Season is "2 101... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rating_figures" (
"episode" text,
"1_season" text,
"2_season" text,
"3_season" text,
"4_season" text,
"5_season" text,
"6_season" text
);
Question: What is 5 Season, when 2 Season is "3 168... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rating_figures" (
"episode" text,
"1_season" text,
"2_season" text,
"3_season" text,
"4_season" text,
"5_season" text,
"6_season" text
);
Question: What is 4 Season, when 2 Season is "3 168... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rating_figures" (
"episode" text,
"1_season" text,
"2_season" text,
"3_season" text,
"4_season" text,
"5_season" text,
"6_season" text
);
Question: What is 3 Season, when 4 Season is "2 628... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rating_figures" (
"episode" text,
"1_season" text,
"2_season" text,
"3_season" text,
"4_season" text,
"5_season" text,
"6_season" text
);
Question: What is 1st Season, when 4 Season is "3 2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_top_25_outdoors" (
"rank" real,
"res" text,
"wind" text,
"athlete" text,
"date" text,
"location" text
);
Question: What was the wind at New York City when the rank was smaller than 6... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_top_25_outdoors" (
"rank" real,
"res" text,
"wind" text,
"athlete" text,
"date" text,
"location" text
);
Question: What was the highest rink for Kingston?
<|assistant|>
SELECT MAX("r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
);
Question: What is the average first elected for the district South Carolina 2?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
);
Question: Who was the first elected for the republican party?
<|assistant|>
SELECT "fi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
);
Question: What party has the South Carolina 2 district?
<|assistant|>
SELECT "party" F... |
<|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
);
Question: What is the type for Cassano?
<|assistant|>
SELECT "typ... |
<|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
);
Question: What nationality is Diogo?
<|assistant|>
SELECT "nat" F... |
<|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
);
Question: What is the name of the player with a winter transfer w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_effects" (
"name" text,
"dates_active" text,
"windspeeds" text,
"pressure" text,
"deaths" text
);
Question: What pressure is Ken?
<|assistant|>
SELECT "pressure" FROM "season_effects" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"year" real,
"grand_slam" text,
"round" text,
"winner" text,
"loser" text
);
Question: In which round was Barbara Hawcroft the loser?
<|assistant|>
SELECT "round" FROM "women" WHERE "l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"year" real,
"grand_slam" text,
"round" text,
"winner" text,
"loser" text
);
Question: In which year is Nerida Gregory listed as the loser?
<|assistant|>
SELECT AVG("year") FROM "women... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"year" real,
"grand_slam" text,
"round" text,
"winner" text,
"loser" text
);
Question: In which year did Misaki Doi lose the Australian Open Grand Slam?
<|assistant|>
SELECT SUM("year"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_scorers" (
"player" text,
"position" text,
"ekstraklasa" real,
"polish_cup" real,
"puchat_ligi" real,
"uefa_cup" real,
"total" real
);
Question: Which Polish Cup has a Puchat Ligi large... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_scorers" (
"player" text,
"position" text,
"ekstraklasa" real,
"polish_cup" real,
"puchat_ligi" real,
"uefa_cup" real,
"total" real
);
Question: Which Player has a Total of 3, and an Ek... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_scorers" (
"player" text,
"position" text,
"ekstraklasa" real,
"polish_cup" real,
"puchat_ligi" real,
"uefa_cup" real,
"total" real
);
Question: Which Puchat Ligi has a UEFA Cup smaller... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_scorers" (
"player" text,
"position" text,
"ekstraklasa" real,
"polish_cup" real,
"puchat_ligi" real,
"uefa_cup" real,
"total" real
);
Question: How much Ekstraklasa has a Total smaller... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_scorers" (
"player" text,
"position" text,
"ekstraklasa" real,
"polish_cup" real,
"puchat_ligi" real,
"uefa_cup" real,
"total" real
);
Question: How much Puchat Ligi has a Total smaller... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
Question: Which player has a to par greater than 11, with a total less than 155?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
Question: What country has a to par less than 13, with wayne grady as the player?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fleet_history" (
"aircraft" text,
"introduced" real,
"retired" text,
"seating" text,
"notes" text
);
Question: When was the aircraft introduced that could seat 115 people?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fleet_history" (
"aircraft" text,
"introduced" real,
"retired" text,
"seating" text,
"notes" text
);
Question: What year was the aircraft retired when it was replaced by 737-300s?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fleet_history" (
"aircraft" text,
"introduced" real,
"retired" text,
"seating" text,
"notes" text
);
Question: What aircraft was introduced in 2004 and has a retired of —?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fleet_history" (
"aircraft" text,
"introduced" real,
"retired" text,
"seating" text,
"notes" text
);
Question: Which aircraft has 148/9 seating?
<|assistant|>
SELECT "aircraft" FROM "fleet_hist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fleet_history" (
"aircraft" text,
"introduced" real,
"retired" text,
"seating" text,
"notes" text
);
Question: How many people can be seated on the aircraft that was introduced in 2008 and has ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "selections" (
"player" text,
"pos" text,
"nationality" text,
"previous_team" text,
"years_of_nba_experience_a" real,
"career_with_the_franchise" text
);
Question: What is the nationality of t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "selections" (
"player" text,
"pos" text,
"nationality" text,
"previous_team" text,
"years_of_nba_experience_a" real,
"career_with_the_franchise" text
);
Question: What is the career with the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What was the tie number when Bournemouth was the home team?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: Who was the away team when the home team was Norwich City?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: On what date was Wimbledon the home team?
<|assistant|>
SELECT "date" FROM "fifth... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: On what date was the away team West Ham United?
<|assistant|>
SELECT "date" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: On what date was the away team Bournemouth?
<|assistant|>
SELECT "date" FROM "fif... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assembly_segments" (
"constituency_number" real,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"electorates_2011" real
);
Question: What district has abhayapuri south as the nam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which Bronze has a Gold larger than 1, and a Silver smaller than 3, and a Rank smalle... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which Rank has a Gold larger than 1, and a Bronze of 4, and a Silver smaller than 1?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which Rank has a Gold of 3, and a Bronze of 4, and a Total larger than 8?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How much Total has a Rank smaller than 10, and a Silver larger than 3, and a Gold lar... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which Total has a Rank of 9, and a Silver smaller than 2?
<|assistant|>
SELECT MAX("t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medalists" (
"medal" text,
"name" text,
"sport" text,
"event" text,
"date" text
);
Question: What event had Xu Zhilin competing?
<|assistant|>
SELECT "event" FROM "medalists" WHERE "name"='xu z... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medalists" (
"medal" text,
"name" text,
"sport" text,
"event" text,
"date" text
);
Question: What sport has Ma Yuxi in it?
<|assistant|>
SELECT "sport" FROM "medalists" WHERE "name"='ma yuxi';<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_showing_prize_winners_from_the_cle" (
"year" real,
"first" text,
"second" text,
"third" text,
"fourth" text
);
Question: How many years is Antonio Pompa-Baldi Italy first?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_showing_prize_winners_from_the_cle" (
"year" real,
"first" text,
"second" text,
"third" text,
"fourth" text
);
Question: Who is fourth when Anders Martinson USA is second?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_standings" (
"position" real,
"club" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"points" real,
"goal_difference" real... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_standings" (
"position" real,
"club" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"points" real,
"goal_difference" real... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_standings" (
"position" real,
"club" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"points" real,
"goal_difference" real... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_standings" (
"position" real,
"club" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"points" real,
"goal_difference" real... |
<|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 rank was the country with no bronze but at least 1 silver medals?
<|assist... |
<|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 smallest number of gold medals a country with 1 bronze, and a total... |
<|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 smallest number of gold medals a country with 7 medals has?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "venues" (
"games" text,
"year" real,
"host_city" text,
"province" text,
"dates" text
);
Question: Can you tell me the Host City that has the Games of vii?
<|assistant|>
SELECT "host_city" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nominated_work" text,
"result" text
);
Question: What was the nominated work after 2006, that was awarded the Drama Desk a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nominated_work" text,
"result" text
);
Question: What year was Evita nominated for outstanding featured actor in a musical... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nominated_work" text,
"result" text
);
Question: What was the nominated work, nominated for the drama league award before ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_winners" (
"round" real,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
Question: Who had the pole po... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_winners" (
"round" real,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
Question: Who was the winning... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"south_west_dfl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: Which Losses have Wins smaller than 6, and a South West DFL of sandfor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"south_west_dfl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: How much Against has Draws of 2, and Losses smaller than 4?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"south_west_dfl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: How many Losses have South West DFL of coleraine, and an Against small... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_i" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
Ques... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_i" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
Ques... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_i" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
Ques... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_i" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
Ques... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_i" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
Ques... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2002" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
Question: Can you tell me the highest Against that has the Status of six nations, and the Date of 02/0... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2002" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
Question: Can you tell me the average Against thaylt has the Date of 23/03/2002?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "subdivisions" (
"english_name" text,
"simplified" text,
"traditional" text,
"pinyin" text,
"area" text,
"population" text,
"density" text
);
Question: What is the population of area of 11?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "subdivisions" (
"english_name" text,
"simplified" text,
"traditional" text,
"pinyin" text,
"area" text,
"population" text,
"density" text
);
Question: What shows for traditional when the po... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "subdivisions" (
"english_name" text,
"simplified" text,
"traditional" text,
"pinyin" text,
"area" text,
"population" text,
"density" text
);
Question: What is the population when the area i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "subdivisions" (
"english_name" text,
"simplified" text,
"traditional" text,
"pinyin" text,
"area" text,
"population" text,
"density" text
);
Question: What shows for simplified when the den... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.