text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elections_to_the_legislative_assembly_of" (
"party" text,
"1985" real,
"1987" real,
"1990" real,
"1995" real,
"1999" real,
"2003" real,
"2007" real,
"2011" real
);
Question: What is the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elections_to_the_legislative_assembly_of" (
"party" text,
"1985" real,
"1987" real,
"1990" real,
"1995" real,
"1999" real,
"2003" real,
"2007" real,
"2011" real
);
Question: What is the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elections_to_the_legislative_assembly_of" (
"party" text,
"1985" real,
"1987" real,
"1990" real,
"1995" real,
"1999" real,
"2003" real,
"2007" real,
"2011" real
);
Question: What is the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elections_to_the_legislative_assembly_of" (
"party" text,
"1985" real,
"1987" real,
"1990" real,
"1995" real,
"1999" real,
"2003" real,
"2007" real,
"2011" real
);
Question: What is the... |
<|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 name of the tournament with 11 or more events... |
<|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 most top-10 of the team with 8 cuts made and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1946_state_election_results" (
"office" text,
"republican_ticket" text,
"democratic_ticket" text,
"american_labor_ticket" text,
"liberal_ticket" text,
"communist_ticket" text
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1946_state_election_results" (
"office" text,
"republican_ticket" text,
"democratic_ticket" text,
"american_labor_ticket" text,
"liberal_ticket" text,
"communist_ticket" text
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1946_state_election_results" (
"office" text,
"republican_ticket" text,
"democratic_ticket" text,
"american_labor_ticket" text,
"liberal_ticket" text,
"communist_ticket" text
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1946_state_election_results" (
"office" text,
"republican_ticket" text,
"democratic_ticket" text,
"american_labor_ticket" text,
"liberal_ticket" text,
"communist_ticket" text
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1946_state_election_results" (
"office" text,
"republican_ticket" text,
"democratic_ticket" text,
"american_labor_ticket" text,
"liberal_ticket" text,
"communist_ticket" text
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elimination_chamber_entrances_and_elimin" (
"eliminated" text,
"wrestler" text,
"entered" real,
"eliminated_by" text,
"time" text
);
Question: What is the entered number for the person with a t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elimination_chamber_entrances_and_elimin" (
"eliminated" text,
"wrestler" text,
"entered" real,
"eliminated_by" text,
"time" text
);
Question: What is the number eliminated for the person with ... |
<|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" real
);
Question: What is the highest Attendance with a Result that is w 24-21?
<|assistant|>
SELECT MAX("atte... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_records" (
"sport" text,
"record" text,
"nation_athlete_s" text,
"date" text,
"time_seconds" real
);
Question: What Date has a time of (seconds) 42.172?
<|assistant|>
SELECT "date" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_records" (
"sport" text,
"record" text,
"nation_athlete_s" text,
"date" text,
"time_seconds" real
);
Question: What is the Record for 23 january 2010, with a time smaller than 42.679 seco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "college_career" (
"year" text,
"gp_gs" text,
"shots" real,
"goals" real,
"assists" real,
"points" real
);
Question: What is the total number of Points that were in a Year that was 2005?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "college_career" (
"year" text,
"gp_gs" text,
"shots" real,
"goals" real,
"assists" real,
"points" real
);
Question: What is the lowest Shots with a Point that is larger than 32?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"year" real,
"category" text,
"champion" text,
"runner_up" text,
"score" text
);
Question: Which category had a year of 1991?
<|assistant|>
SELECT "category" FROM "singles" WHERE "ye... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"year" real,
"category" text,
"champion" text,
"runner_up" text,
"score" text
);
Question: What is the score having a runner-up of Magdalena Maleeva?
<|assistant|>
SELECT "score" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "present" (
"venue" text,
"location" text,
"capacity" text,
"owner" text,
"environment" text,
"year_built" text
);
Question: What year was John m. Belk Arena built?
<|assistant|>
SELECT "year_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "present" (
"venue" text,
"location" text,
"capacity" text,
"owner" text,
"environment" text,
"year_built" text
);
Question: What type of environment is the venue that was built in 2003?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "present" (
"venue" text,
"location" text,
"capacity" text,
"owner" text,
"environment" text,
"year_built" text
);
Question: What year was transamerica field built in?
<|assistant|>
SELECT "ye... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "present" (
"venue" text,
"location" text,
"capacity" text,
"owner" text,
"environment" text,
"year_built" text
);
Question: What is the location of the venue owned by johnson c. smith univers... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the venue when the score was 8-2?
<|assistant|>
SELECT "venue" FROM "inter... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the Score for the 1999 fifa confederations cup?
<|assistant|>
SELECT "scor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the result on 30 june 1995?
<|assistant|>
SELECT "result" FROM "internatio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the Date of the 1999 fifa confederations cup?
<|assistant|>
SELECT "date" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the Venue for the 2002 fifa world cup qualifier, and a Result of 8-2?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the Score on 11 march 2001?
<|assistant|>
SELECT "score" FROM "internation... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scoring_format" (
"from" real,
"goal" real,
"round_1" text,
"round_2" text,
"round_3" text,
"round_4" text,
"round_5" text,
"round_6" text
);
Question: What is the round 4 that has from l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scoring_format" (
"from" real,
"goal" real,
"round_1" text,
"round_2" text,
"round_3" text,
"round_4" text,
"round_5" text,
"round_6" text
);
Question: What is the round 6+ that has singl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scoring_format" (
"from" real,
"goal" real,
"round_1" text,
"round_2" text,
"round_3" text,
"round_4" text,
"round_5" text,
"round_6" text
);
Question: Which round 1 has a from prior to 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scoring_format" (
"from" real,
"goal" real,
"round_1" text,
"round_2" text,
"round_3" text,
"round_4" text,
"round_5" text,
"round_6" text
);
Question: What is the round 6+ that has a fro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atomic_radii" (
"number" real,
"symbol" text,
"name" text,
"empirical" text,
"calculated" text,
"van_der_waals" text,
"covalent_single_bond" text,
"covalent_triple_bond" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atomic_radii" (
"number" real,
"symbol" text,
"name" text,
"empirical" text,
"calculated" text,
"van_der_waals" text,
"covalent_single_bond" text,
"covalent_triple_bond" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atomic_radii" (
"number" real,
"symbol" text,
"name" text,
"empirical" text,
"calculated" text,
"van_der_waals" text,
"covalent_single_bond" text,
"covalent_triple_bond" text
);
Question:... |
<|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,
"2008_2009_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,
"2008_2009_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,
"2008_2009_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,
"2008_2009_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,
"2008_2009_team" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "liverpool" (
"round" text,
"opposition" text,
"first_leg" text,
"second_leg" text,
"aggregate_score" text
);
Question: What was the first leg score during the quarter-final game?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "liverpool" (
"round" text,
"opposition" text,
"first_leg" text,
"second_leg" text,
"aggregate_score" text
);
Question: What was the aggregate score for the game against Dynamo Dresden?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "liverpool" (
"round" text,
"opposition" text,
"first_leg" text,
"second_leg" text,
"aggregate_score" text
);
Question: Who was the opposing team in the 3rd round?
<|assistant|>
SELECT "oppositi... |
<|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: Which nation has 0 golds and more than 1 silver?
<|assistant|>
SELECT "nation" ... |
<|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 smallest total that has under 3 golds, more than 0 silvers and bron... |
<|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 total number of silvers associated with 3 bronzes, a total over 6, ... |
<|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 bronzes associated with 0 golds and a rank of 10?
<|assistan... |
<|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 largest silver value associated with 0 golds?
<|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 total number of bronzes from the Netherlands?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"wins" real,
"earnings" real,
"money_list_rank" text,
"average" real
);
Question: What is the average amount of earnings for years under 2004 and money ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"wins" real,
"earnings" real,
"money_list_rank" text,
"average" real
);
Question: What is the highest number of wins for years after 1999 with averages ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: Who was the away team when the home team Manchester United played?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: When there was a tie of 16 what was the attendance?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: Tell me the score when there was a Tie number of 6?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: For the Tie number of 14 who was the away team?
<|assistant|>
SELECT "away... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What Catalog released on June 29, 1999 has a Digipak Album Format?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is the release Date of Catalog RR 8655-2?
<|assistant|>
SELECT "date" FROM "release_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episode_7_1_march_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"score" text
);
Question: What is Score, when Group Song is 就是你, and when Index is F2?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episode_7_1_march_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"score" text
);
Question: What is Score, when Name is Nicole 赖淞凤?
<|assistant|>
SELECT "score" FROM "episode... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episode_7_1_march_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"score" text
);
Question: What is Score, when Song is 第九夜?
<|assistant|>
SELECT "score" FROM "episode_7_1_ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episode_7_1_march_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"score" text
);
Question: What is Group Song, when Song is 换季?
<|assistant|>
SELECT "group_song" FROM "episo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "episode_7_1_march_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"score" text
);
Question: What is Group Song, when Name is Alice 林芯糸?
<|assistant|>
SELECT "group_song" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "runner_up_16" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: On what surface was the match played with a score of 2–6, 6–3, 6–4?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "runner_up_16" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: On what surface was the match played with a score of 4–6, 6–3, 6–1?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "runner_up_16" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What was the score when the opponent in the final was iroda tulyaganova?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "runner_up_16" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Which tournament has an opponent in the final of nadia petrova and a scor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "education" (
"school_year" text,
"95_96" text,
"99_00" text,
"00_01" text,
"01_02" text,
"02_03" text,
"03_04" text,
"04_05" text,
"05_06" text,
"06_07" text
);
Question: What is 01-0... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "education" (
"school_year" text,
"95_96" text,
"99_00" text,
"00_01" text,
"01_02" text,
"02_03" text,
"03_04" text,
"04_05" text,
"05_06" text,
"06_07" text
);
Question: What is 02-0... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "education" (
"school_year" text,
"95_96" text,
"99_00" text,
"00_01" text,
"01_02" text,
"02_03" text,
"03_04" text,
"04_05" text,
"05_06" text,
"06_07" text
);
Question: What is 03-0... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "education" (
"school_year" text,
"95_96" text,
"99_00" text,
"00_01" text,
"01_02" text,
"02_03" text,
"03_04" text,
"04_05" text,
"05_06" text,
"06_07" text
);
Question: What is 02-0... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "education" (
"school_year" text,
"95_96" text,
"99_00" text,
"00_01" text,
"01_02" text,
"02_03" text,
"03_04" text,
"04_05" text,
"05_06" text,
"06_07" text
);
Question: What is 04-0... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "education" (
"school_year" text,
"95_96" text,
"99_00" text,
"00_01" text,
"01_02" text,
"02_03" text,
"03_04" text,
"04_05" text,
"05_06" text,
"06_07" text
);
Question: What is 03-0... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_8_july_30_2008" (
"couple" text,
"style" text,
"music" text,
"choreographer_s" text,
"results" text
);
Question: Who was the choreographer for the dance style of Jazz?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_8_july_30_2008" (
"couple" text,
"style" text,
"music" text,
"choreographer_s" text,
"results" text
);
Question: Which music led to a safe result and was choreographed by Jason Gilkison?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_8_july_30_2008" (
"couple" text,
"style" text,
"music" text,
"choreographer_s" text,
"results" text
);
Question: Which couple participated in the Contemporary style of dance?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_8_july_30_2008" (
"couple" text,
"style" text,
"music" text,
"choreographer_s" text,
"results" text
);
Question: Which couple participated in the Paso Doble style and were safe?
<|assistan... |
<|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" real
);
Question: What was the Date of the game held during Week 1, that had an Attendance greater than 50,637... |
<|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" real
);
Question: How many weeks had a game on November 26, 1978, and an attendance higher than 26,248?
<|assi... |
<|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" real
);
Question: What was the lowest Attendance during Week 12?
<|assistant|>
SELECT MIN("attendance") FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_wins_6" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What was the name of the tournament that the final was played against Y... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_wins_6" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Who was the final opponent in the tournament in Taipei, Taiwan on Novem... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_wins_6" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: On October 14, 1996 who was the opponent in the final?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_wins_6" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: When playing against Yi Jingqian in the final on a hard surface what wa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_wins_6" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Who was played against in the final on November 14, 1994?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elimination_chamber_entrances_and_elimin" (
"eliminated" text,
"wrestler" text,
"entered" real,
"eliminated_by" text,
"time" text
);
Question: What is the total number of Entered when the elimi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elimination_chamber_entrances_and_elimin" (
"eliminated" text,
"wrestler" text,
"entered" real,
"eliminated_by" text,
"time" text
);
Question: What is the Eliminated when there are less than 4 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "services" (
"platform" real,
"frequency_per_hour" real,
"destination" text,
"service_pattern" text,
"operator" text,
"line" text
);
Question: How many frequencies have a line of East London a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "services" (
"platform" real,
"frequency_per_hour" real,
"destination" text,
"service_pattern" text,
"operator" text,
"line" text
);
Question: Which line has an operator of the London Overgrou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date_s" text,
"weeks_on_top" text,
"song" text,
"artist" text
);
Question: How many weeks on top was the song with a volume:issue of 28:26?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date_s" text,
"weeks_on_top" text,
"song" text,
"artist" text
);
Question: Which song was 1 week on top and had a volume:issue of 29:8?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date_s" text,
"weeks_on_top" text,
"song" text,
"artist" text
);
Question: Which song was by artist Gino Vannelli?
<|assistant|>
SELECT "song" FROM "see_... |
<|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 tournament did Bill Rogers play in when he had less ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "thursday" (
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
Question: What is 9:00, when 8:30 is "My Thursday Night Movie"?
<|assistant|>
SELECT "9_00" FROM "thursday" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "thursday" (
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
Question: What is 9:30, when 8:30 is "Bones (Reruns)"?
<|assistant|>
SELECT "9_30" FROM "thursday" WHERE "8_30"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "thursday" (
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
Question: What is 8:30, when 9:00 is "The Office (Reruns)", and when 10:00 is "Law & Order (Reruns)"?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "thursday" (
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
Question: What is 10:00, when 9:30 is "Grey's Anatomy (Reruns)", and when 8:00 is "Samantha Who?"?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "advocates" (
"advocate" text,
"wins" real,
"losses" real,
"ties" real,
"poll_wins" real,
"poll_losses" real
);
Question: What are the number of losses that have Ties of 1 and 3 or more poll w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "advocates" (
"advocate" text,
"wins" real,
"losses" real,
"ties" real,
"poll_wins" real,
"poll_losses" real
);
Question: What is the lowest poll losses of the 0 ties, poll wins greater than 1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.