text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_clubs_2014_season" (
"club" text,
"position_in_2013" text,
"first_season" real,
"first_season_of_current_spell" real,
"number_of_seasons_in_superettan" real,
"number_of_seasons_in_seco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "points" (
"rank" real,
"name" text,
"team" text,
"games" real,
"points" real
);
Question: What was the ranking of Beirasar Rosalía, the year they played 32 games?
<|assistant|>
SELECT MAX("rank... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "points" (
"rank" real,
"name" text,
"team" text,
"games" real,
"points" real
);
Question: How many points did Antwain Barbour score in the year he played 39 games?
<|assistant|>
SELECT SUM("poi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "points" (
"rank" real,
"name" text,
"team" text,
"games" real,
"points" real
);
Question: What team was Paolo Quinteros on?
<|assistant|>
SELECT "team" FROM "points" WHERE "name"='paolo quinter... |
<|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" text,
"time" text,
"location" text
);
Question: Was the record of 8-1 (1) a 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" text,
"time" text,
"location" text
);
Question: In what event was the technic... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "topscorers" (
"player" text,
"club" text,
"league" real,
"play_offs" real,
"fa_cup" real,
"fa_trophy" real,
"total" real
);
Question: What are the average play-offs that have an FA Cup grea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "topscorers" (
"player" text,
"club" text,
"league" real,
"play_offs" real,
"fa_cup" real,
"fa_trophy" real,
"total" real
);
Question: How many totals have a play-off less than 0?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "topscorers" (
"player" text,
"club" text,
"league" real,
"play_offs" real,
"fa_cup" real,
"fa_trophy" real,
"total" real
);
Question: Which league has an FA cup greater than 0, with a total... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "topscorers" (
"player" text,
"club" text,
"league" real,
"play_offs" real,
"fa_cup" real,
"fa_trophy" real,
"total" real
);
Question: What is the highest play-offs that have stevenage borou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2003" text,
"2004" text,
"2012" text,
"2013" text
);
Question: What is the tournament in 2012 results that has a 2003 results of 2r and playe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2003" text,
"2004" text,
"2012" text,
"2013" text
);
Question: What results in 2012 also has 2013 results of 2r and the tournament was Wimble... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2003" text,
"2004" text,
"2012" text,
"2013" text
);
Question: What is the results from 2003 that has a 2012 result of 1r and a 2004 result o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2003" text,
"2004" text,
"2012" text,
"2013" text
);
Question: What is the name of the tournament that has the results of 2003 2r and 2004 1r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2003" text,
"2004" text,
"2012" text,
"2013" text
);
Question: What is the results in 2004 that has a 2013 result of 2r?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2003" text,
"2004" text,
"2012" text,
"2013" text
);
Question: What is the result from 2003 from the US Open?
<|assistant|>
SELECT "2003" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"1986_1987_team" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"1986_1987_team" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"1986_1987_team" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournaments" (
"date" text,
"location" text,
"country" text,
"event" text,
"winner" text,
"runner_up" text
);
Question: What is Date, when Event is Billabong Pro?
<|assistant|>
SELECT "date" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournaments" (
"date" text,
"location" text,
"country" text,
"event" text,
"winner" text,
"runner_up" text
);
Question: What is Location, when Date is December 8-December 20?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournaments" (
"date" text,
"location" text,
"country" text,
"event" text,
"winner" text,
"runner_up" text
);
Question: What is Runner-up, when Event is Mancora Peru Classic?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournaments" (
"date" text,
"location" text,
"country" text,
"event" text,
"winner" text,
"runner_up" text
);
Question: What is Event, when Date is August 20-August 27?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournaments" (
"date" text,
"location" text,
"country" text,
"event" text,
"winner" text,
"runner_up" text
);
Question: What is Date when Runner-up is Sofía Mulánovich ( per )?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournaments" (
"date" text,
"location" text,
"country" text,
"event" text,
"winner" text,
"runner_up" text
);
Question: What is Country, when Event is Rip Curl Women's Pro?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seasons" (
"season" text,
"conference" text,
"division" text,
"finish" text,
"wins" real,
"losses" real,
"winpct" real
);
Question: What is the highest win percentage when there were 23 los... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seasons" (
"season" text,
"conference" text,
"division" text,
"finish" text,
"wins" real,
"losses" real,
"winpct" real
);
Question: Which finish had a win percentage that was more than 0.59... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "signings" (
"pos" text,
"player" text,
"free_agent_type" text,
"2007_team" text,
"contract" text
);
Question: What is the 2007 Team with player Deshaun Foster?
<|assistant|>
SELECT "2007_team" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "signings" (
"pos" text,
"player" text,
"free_agent_type" text,
"2007_team" text,
"contract" text
);
Question: What is the Free Agent Type for player bryant johnson?
<|assistant|>
SELECT "free_a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the lowest silver that has a bronze greater than 1, a gold less than 2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What average rank that has a silver less than 0?
<|assistant|>
SELECT AVG("ran... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many silver have 4 as the total with a bronze less than 2?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many totals have a rank greater than 4, czech Republic as the nation, and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What average total has a gold greater than 0, and a silver greater than 0, wit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "uranium_demand_mining_production_and_def" (
"country" text,
"uranium_required_2006_08" text,
"pct_of_world_demand" text,
"indigenous_mining_production_2006" text,
"deficit_surplus" text
);
Ques... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" (
"rank" real,
"location" text,
"total_passengers" real,
"annual_change" text,
"capacity" real,
"capacity_in_use" text
);
Question: What is the total... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" (
"rank" real,
"location" text,
"total_passengers" real,
"annual_change" text,
"capacity" real,
"capacity_in_use" text
);
Question: What is the highe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" (
"rank" real,
"location" text,
"total_passengers" real,
"annual_change" text,
"capacity" real,
"capacity_in_use" text
);
Question: What is the capac... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the sum of Silver when the total is less than 6, the rank is 6 and the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What nation has a bronze of 2 with a total less than 5 and rank of 6?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the lowest Total for rank 3 with more than 4 gold?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the lowest Total for Italy with less than 0 silver?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the Nation with less than 1 silver, and the total is 1, and bronze is l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b" (
"name" text,
"position" text,
"number" text,
"season" text,
"acquisition_via" text
);
Question: What number has 2002-2003 as the season?
<|assistant|>
SELECT "number" FROM "b" WHERE "seaso... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b" (
"name" text,
"position" text,
"number" text,
"season" text,
"acquisition_via" text
);
Question: What position has 2008 as the season?
<|assistant|>
SELECT "position" FROM "b" WHERE "season... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b" (
"name" text,
"position" text,
"number" text,
"season" text,
"acquisition_via" text
);
Question: What name has 50 as the number?
<|assistant|>
SELECT "name" FROM "b" WHERE "number"='50';<|e... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b" (
"name" text,
"position" text,
"number" text,
"season" text,
"acquisition_via" text
);
Question: What number has 2008 as the season?
<|assistant|>
SELECT "number" FROM "b" WHERE "season"='2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b" (
"name" text,
"position" text,
"number" text,
"season" text,
"acquisition_via" text
);
Question: What name has 8 as the number?
<|assistant|>
SELECT "name" FROM "b" WHERE "number"='8';<|end... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b" (
"name" text,
"position" text,
"number" text,
"season" text,
"acquisition_via" text
);
Question: What position has ronjay buenafe as the name?
<|assistant|>
SELECT "position" FROM "b" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"player" text,
"att" real,
"yards" real,
"avg" real,
"long" real,
"fum_l" real
);
Question: What was the lowest long with 26 yards?
<|assistant|>
SELECT MIN("long") FROM "rushing" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"player" text,
"att" real,
"yards" real,
"avg" real,
"long" real,
"fum_l" real
);
Question: What was the highest average when Fuml was 0?
<|assistant|>
SELECT MAX("avg") FROM "rush... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "esiliiga" (
"club" text,
"2012" text,
"seasons_in_esiliiga" real,
"current_run_since" real,
"titles" real,
"last_title" text
);
Question: What is the highest run currently since the last titl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "esiliiga" (
"club" text,
"2012" text,
"seasons_in_esiliiga" real,
"current_run_since" real,
"titles" real,
"last_title" text
);
Question: What is the 2012 season in Esiliiga more than 4, and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "economic_data" (
"country" text,
"population" real,
"gdp_2011_in_millions_usd" real,
"gdp_2012_in_millions_usd" real,
"per_capita" real
);
Question: What is the population on average with a per... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_stats" (
"season" text,
"pat_pct" text,
"20_29" text,
"30_39" text,
"40_49" text,
"fg_fga" text,
"fg_pct" text,
"long" real,
"points" real
);
Question: What 20-29 was in season 2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_stats" (
"season" text,
"pat_pct" text,
"20_29" text,
"30_39" text,
"40_49" text,
"fg_fga" text,
"fg_pct" text,
"long" real,
"points" real
);
Question: What were the lowest amoun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_stats" (
"season" text,
"pat_pct" text,
"20_29" text,
"30_39" text,
"40_49" text,
"fg_fga" text,
"fg_pct" text,
"long" real,
"points" real
);
Question: Which 20-29 had a season o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"birthdate" text,
"birthplace" text,
"club_team" text
);
Question: What is the Postion, when the N... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"birthdate" text,
"birthplace" text,
"club_team" text
);
Question: What is the total number of Jer... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"birthdate" text,
"birthplace" text,
"club_team" text
);
Question: What is the Birthplace, when th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"birthdate" text,
"birthplace" text,
"club_team" text
);
Question: What is the Name, when the Posi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"birthdate" text,
"birthplace" text,
"club_team" text
);
Question: What is the Postion, when the C... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_twelve" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"ground" text
);
Question: What home has 122-28 as the score?
<|assistant|>
SELECT "home" FROM "round_twelve"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_twelve" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"ground" text
);
Question: What ground has etobicoke kangaroos as the home?
<|assistant|>
SELECT "ground" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_twelve" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"ground" text
);
Question: What time has humber college north as the ground, and toronto downtown dingos as t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_twelve" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"ground" text
);
Question: What score has Toronto Eagles as the home?
<|assistant|>
SELECT "score" FROM "roun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_twelve" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"ground" text
);
Question: What date has high park demons as the away?
<|assistant|>
SELECT "date" FROM "roun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_twelve" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"ground" text
);
Question: What away has toronto downtown dingos as the home?
<|assistant|>
SELECT "away" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournaments" (
"date" text,
"location" text,
"country" text,
"event" text,
"winner" text,
"runner_up" text
);
Question: Who was the winner from the Rip Curl Pro Search?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournaments" (
"date" text,
"location" text,
"country" text,
"event" text,
"winner" text,
"runner_up" text
);
Question: What was the location of the tournament held in Spain?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournaments" (
"date" text,
"location" text,
"country" text,
"event" text,
"winner" text,
"runner_up" text
);
Question: What was the date of the tournament held in Indonesia?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the average Lost when ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the Position when the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the sum of Against whe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the Difference with a ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the average Top-5, when Tournament is U.S. Open, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the sum of Events, when Top-10 is 7, and when Top... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the sum of Top-5, when Tournament is Totals, and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the average Top-10, when Wins is less than 0?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the total number of Top-25, when Events is greate... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: What 2011 has 4r a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: What 2007 has wimb... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: What 2006 has 1r a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: What tournament ha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: What 2009 has gran... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
);
Question: What 2006 has 0-0 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
"match" text,
"date" text,
"location" text,
"lineup" text,
"result" text,
"competition" text
);
Question: What is the Lineup from a Match that is 2... |
<|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" text,
"works_number" text
);
Question: What is the date for Orangeville?
<|assistant|>
SELECT "date" FROM "locom... |
<|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" text,
"works_number" text
);
Question: Who is the builder with a works number of 2534?
<|assistant|>
SELECT "bui... |
<|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" text,
"works_number" text
);
Question: Who is the name with a works number of 809?
<|assistant|>
SELECT "name" F... |
<|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" text,
"works_number" text
);
Question: In early 1873, Owen sound had what works number?
<|assistant|>
SELECT "wo... |
<|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" text,
"works_number" text
);
Question: What was the name for the locomotive with a type of 2-8-0 and a number of... |
<|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_won" real,
"total" real,
"to_par" real
);
Question: What is the Year won for the player with a larger than 4 To par and less the 157 Total... |
<|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_won" real,
"total" real,
"to_par" real
);
Question: What is the Total for the Player who won after 1983 with less than 4 To par?
<|assista... |
<|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_won" real,
"total" real,
"to_par" real
);
Question: What is the Total of the player who won before 1983 with a smaller than 4 To par?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "england_in_south_africa_1913_4" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: Which venue led to a draw?
<|assistant|>
SELECT "venue" FROM "e... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"nation" text,
"skip" text,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" text
);
Question: What is the highest Stolen Ends when ludmila ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"nation" text,
"skip" text,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" text
);
Question: What is the sum of Blank Ends for Denmark whe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.