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 highest 2003 value with a 1990 greater than 74, a 125 value in 1985, and a 1995 value greater than 130?
<|assistant|>
SELECT MAX("2003") FROM "elections_to_the_legislative_assembly_of" WHERE "1990">74 AND "1985"=125 AND "1995">130;<|endoftext|> |
<|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 highest 2007 value with a 1985 value greater than 52, a 1987 value greater than 130, and a 1990 less than 1990?
<|assistant|>
SELECT MAX("2007") FROM "elections_to_the_legislative_assembly_of" WHERE "1985">52 AND "1987">130 AND "1990"<1990;<|endoftext|> |
<|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 highest 1995 with a 1990 less than 36, a 1987 less than 1987, and a 2007 value greater than 107?
<|assistant|>
SELECT MAX("1995") FROM "elections_to_the_legislative_assembly_of" WHERE "1990">36 AND "1987"<1987 AND "2007">107;<|endoftext|> |
<|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 highest 2003 value with a 2011 less than 107 and a 1995 value less than 17?
<|assistant|>
SELECT MAX("2003") FROM "elections_to_the_legislative_assembly_of" WHERE "2011"<107 AND "1995"<17;<|endoftext|> |
<|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 a top-5 of 0 and a top-25 of 2?
<|assistant|>
SELECT "tournament" FROM "summary" WHERE "events">11 AND "top_5"=0 AND "top_25"=2;<|endoftext|> |
<|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 less than 11 events?
<|assistant|>
SELECT MAX("top_10") FROM "summary" WHERE "cuts_made"=8 AND "events"<11;<|endoftext|> |
<|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: What is the American Labor ticket when Henry Epstein is the liberal ticket?
<|assistant|>
SELECT "american_labor_ticket" FROM "1946_state_election_results" WHERE "liberal_ticket"='henry epstein';<|endoftext|> |
<|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: What is the name on the Communist ticket with an Office of judge of the court of appeals?
<|assistant|>
SELECT "communist_ticket" FROM "1946_state_election_results" WHERE "office"='judge of the court of appeals';<|endoftext|> |
<|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: What is the Office when spencer c. young is on the liberal ticket??
<|assistant|>
SELECT "office" FROM "1946_state_election_results" WHERE "liberal_ticket"='spencer c. young';<|endoftext|> |
<|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: What is the name on the Democratic ticket when the Liberal ticket is erastus corning 2nd?
<|assistant|>
SELECT "democratic_ticket" FROM "1946_state_election_results" WHERE "liberal_ticket"='erastus corning 2nd';<|endoftext|> |
<|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: What name is on the Republican ticket when the American Labor ticket was spencer c. young?
<|assistant|>
SELECT "republican_ticket" FROM "1946_state_election_results" WHERE "american_labor_ticket"='spencer c. young';<|endoftext|> |
<|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 time of 29:28?
<|assistant|>
SELECT "entered" FROM "elimination_chamber_entrances_and_elimin" WHERE "time"='29:28';<|endoftext|> |
<|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 a time of 12:38?
<|assistant|>
SELECT "eliminated_by" FROM "elimination_chamber_entrances_and_elimin" WHERE "time"='12:38';<|endoftext|> |
<|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("attendance") FROM "schedule" WHERE "result"='w 24-21';<|endoftext|> |
<|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 "track_records" WHERE "time_seconds"=42.172;<|endoftext|> |
<|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 seconds?
<|assistant|>
SELECT "record" FROM "track_records" WHERE "date"='23 january 2010' AND "time_seconds"<42.679;<|endoftext|> |
<|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?
<|assistant|>
SELECT COUNT("points") FROM "college_career" WHERE "year"='2005';<|endoftext|> |
<|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|>
SELECT MIN("shots") FROM "college_career" WHERE "points">32;<|endoftext|> |
<|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 "year"=1991;<|endoftext|> |
<|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" FROM "singles" WHERE "runner_up"='magdalena maleeva';<|endoftext|> |
<|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_built" FROM "present" WHERE "venue"='john m. belk arena';<|endoftext|> |
<|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?
<|assistant|>
SELECT "environment" FROM "present" WHERE "year_built"='2003';<|endoftext|> |
<|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 "year_built" FROM "present" WHERE "venue"='transamerica field';<|endoftext|> |
<|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 university?
<|assistant|>
SELECT "location" FROM "present" WHERE "owner"='johnson c. smith university';<|endoftext|> |
<|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 "international_goals" WHERE "score"='8-2';<|endoftext|> |
<|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 "score" FROM "international_goals" WHERE "competition"='1999 fifa confederations cup';<|endoftext|> |
<|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 "international_goals" WHERE "date"='30 june 1995';<|endoftext|> |
<|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" FROM "international_goals" WHERE "competition"='1999 fifa confederations cup';<|endoftext|> |
<|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?
<|assistant|>
SELECT "venue" FROM "international_goals" WHERE "competition"='2002 fifa world cup qualifier' AND "result"='8-2';<|endoftext|> |
<|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 "international_goals" WHERE "date"='11 march 2001';<|endoftext|> |
<|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 less than 1990, and double for round 3?
<|assistant|>
SELECT "round_4" FROM "scoring_format" WHERE "from"<1990 AND "round_3"='double';<|endoftext|> |
<|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 single as round 2, double as round 4, from 1982?
<|assistant|>
SELECT "round_6" FROM "scoring_format" WHERE "round_2"='single' AND "round_4"='double' AND "from"=1982;<|endoftext|> |
<|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 1984, double as round 3, with a goal lwss than 300?
<|assistant|>
SELECT "round_1" FROM "scoring_format" WHERE "from"<1984 AND "round_3"='double' AND "goal"<300;<|endoftext|> |
<|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 from prior to 1993, double for round 3, and a double for round 5?
<|assistant|>
SELECT "round_6" FROM "scoring_format" WHERE "from"<1993 AND "round_3"='double' AND "round_5"='double';<|endoftext|> |
<|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: What is the symbol of the element with an empirical t of 190 and a calculated value of 135?
<|assistant|>
SELECT "symbol" FROM "atomic_radii" WHERE "empirical"='190' AND "calculated"='135';<|endoftext|> |
<|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: What is the name of the element with a calculated value of 56?
<|assistant|>
SELECT "name" FROM "atomic_radii" WHERE "calculated"='56';<|endoftext|> |
<|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: What is the covalent (single bond) value of sodium?
<|assistant|>
SELECT "covalent_single_bond" FROM "atomic_radii" WHERE "name"='sodium';<|endoftext|> |
<|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
);
Question: What is the lowest jersey # of the player with a height of 191 cm from the New Jersey Devils in 2008-2009?
<|assistant|>
SELECT MIN("jersey_num") FROM "list_of_united_states_national_ice_hocke" WHERE "height_cm"=191 AND "2008_2009_team"='new jersey devils';<|endoftext|> |
<|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
);
Question: What is the total height of the player with a birthdate on September 2, 1973?
<|assistant|>
SELECT COUNT("height_cm") FROM "list_of_united_states_national_ice_hocke" WHERE "birthdate"='september 2, 1973';<|endoftext|> |
<|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
);
Question: What is the birthdate of Robert Esche?
<|assistant|>
SELECT "birthdate" FROM "list_of_united_states_national_ice_hocke" WHERE "name"='robert esche';<|endoftext|> |
<|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
);
Question: What is the position of the player with a jersey # greater than 30 and a December 23, 1986 birthdate?
<|assistant|>
SELECT "position" FROM "list_of_united_states_national_ice_hocke" WHERE "jersey_num">30 AND "birthdate"='december 23, 1986';<|endoftext|> |
<|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
);
Question: What is the weight of John-Michael Liles?
<|assistant|>
SELECT "weight_kg" FROM "list_of_united_states_national_ice_hocke" WHERE "name"='john-michael liles';<|endoftext|> |
<|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|>
SELECT "first_leg" FROM "liverpool" WHERE "round"='quarter-final';<|endoftext|> |
<|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?
<|assistant|>
SELECT "aggregate_score" FROM "liverpool" WHERE "opposition"='dynamo dresden';<|endoftext|> |
<|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 "opposition" FROM "liverpool" WHERE "round"='3rd';<|endoftext|> |
<|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" FROM "medal_table" WHERE "gold"=0 AND "silver">1;<|endoftext|> |
<|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 bronzes?
<|assistant|>
SELECT MIN("total") FROM "medal_table" WHERE "gold"<3 AND "bronze">0 AND "silver">0;<|endoftext|> |
<|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, and a rank of 3?
<|assistant|>
SELECT COUNT("silver") FROM "medal_table" WHERE "bronze"=3 AND "rank"='3' AND "total">6;<|endoftext|> |
<|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?
<|assistant|>
SELECT SUM("bronze") FROM "medal_table" WHERE "rank"='10' AND "gold"<0;<|endoftext|> |
<|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 MAX("silver") FROM "medal_table" WHERE "gold"<0;<|endoftext|> |
<|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 COUNT("bronze") FROM "medal_table" WHERE "nation"='netherlands';<|endoftext|> |
<|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 list rankings of 6?
<|assistant|>
SELECT AVG("earnings") FROM "lpga_tour_career_summary" WHERE "money_list_rank"='6' AND "year"<2004;<|endoftext|> |
<|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 over 73.02?
<|assistant|>
SELECT MAX("wins") FROM "lpga_tour_career_summary" WHERE "average">73.02 AND "year">1999;<|endoftext|> |
<|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?
<|assistant|>
SELECT "away_team" FROM "fourth_round_proper" WHERE "home_team"='manchester united';<|endoftext|> |
<|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 "attendance" FROM "fourth_round_proper" WHERE "tie_no"='16';<|endoftext|> |
<|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 "score" FROM "fourth_round_proper" WHERE "tie_no"='6';<|endoftext|> |
<|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_team" FROM "fourth_round_proper" WHERE "tie_no"='14';<|endoftext|> |
<|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 "catalog" FROM "release_history" WHERE "format"='digipak album' AND "date"='june 29, 1999';<|endoftext|> |
<|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_history" WHERE "catalog"='rr 8655-2';<|endoftext|> |
<|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 "score" FROM "episode_7_1_march_2008" WHERE "group_song"='ε°±ζ―δ½ ' AND "index"='f2';<|endoftext|> |
<|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_7_1_march_2008" WHERE "name"='nicole θ΅ζ·ε€';<|endoftext|> |
<|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_march_2008" WHERE "song"='第δΉε€';<|endoftext|> |
<|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 "episode_7_1_march_2008" WHERE "song"='ζ’ε£';<|endoftext|> |
<|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 "episode_7_1_march_2008" WHERE "name"='alice ζθ―η³Έ';<|endoftext|> |
<|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?
<|assistant|>
SELECT "surface" FROM "runner_up_16" WHERE "score"='2β6, 6β3, 6β4';<|endoftext|> |
<|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?
<|assistant|>
SELECT "surface" FROM "runner_up_16" WHERE "score"='4β6, 6β3, 6β1';<|endoftext|> |
<|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?
<|assistant|>
SELECT "score" FROM "runner_up_16" WHERE "opponent_in_the_final"='iroda tulyaganova';<|endoftext|> |
<|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 score of 6β3, 4β6, 6β1??
<|assistant|>
SELECT "tournament" FROM "runner_up_16" WHERE "opponent_in_the_final"='nadia petrova' AND "score"='6β3, 4β6, 6β1';<|endoftext|> |
<|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-02, when 03-04 is 03-04?
<|assistant|>
SELECT "01_02" FROM "education" WHERE "03_04"='03-04';<|endoftext|> |
<|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-03, when School Year is % Learning In Latvian?
<|assistant|>
SELECT "02_03" FROM "education" WHERE "school_year"='% learning in latvian';<|endoftext|> |
<|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-04, when 00-01 is 67.4?
<|assistant|>
SELECT "03_04" FROM "education" WHERE "00_01"='67.4';<|endoftext|> |
<|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-03, when 06-07 is 1198?
<|assistant|>
SELECT "02_03" FROM "education" WHERE "06_07"='1198';<|endoftext|> |
<|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-05, when 05-06 is 205,189?
<|assistant|>
SELECT "04_05" FROM "education" WHERE "05_06"='205,189';<|endoftext|> |
<|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-04, when 95-96 is 337,660?
<|assistant|>
SELECT "03_04" FROM "education" WHERE "95_96"='337,660';<|endoftext|> |
<|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 "choreographer_s" FROM "week_8_july_30_2008" WHERE "style"='jazz';<|endoftext|> |
<|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?
<|assistant|>
SELECT "music" FROM "week_8_july_30_2008" WHERE "results"='safe' AND "choreographer_s"='jason gilkison';<|endoftext|> |
<|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|>
SELECT "couple" FROM "week_8_july_30_2008" WHERE "style"='contemporary';<|endoftext|> |
<|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?
<|assistant|>
SELECT "couple" FROM "week_8_july_30_2008" WHERE "results"='safe' AND "style"='paso doble';<|endoftext|> |
<|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?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "attendance">'50,637' AND "week"=1;<|endoftext|> |
<|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?
<|assistant|>
SELECT COUNT("week") FROM "schedule" WHERE "date"='november 26, 1978' AND "attendance">'26,248';<|endoftext|> |
<|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 "schedule" WHERE "week"=12;<|endoftext|> |
<|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 Yi Jingqian?
<|assistant|>
SELECT "tournament" FROM "singles_wins_6" WHERE "opponent_in_the_final"='yi jingqian';<|endoftext|> |
<|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 November 14, 1994?
<|assistant|>
SELECT "opponent_in_the_final" FROM "singles_wins_6" WHERE "tournament"='taipei, taiwan' AND "date"='november 14, 1994';<|endoftext|> |
<|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|>
SELECT "opponent_in_the_final" FROM "singles_wins_6" WHERE "date"='october 14, 1996';<|endoftext|> |
<|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 was the score?
<|assistant|>
SELECT "score" FROM "singles_wins_6" WHERE "surface"='hard' AND "opponent_in_the_final"='yi jingqian';<|endoftext|> |
<|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|>
SELECT "opponent_in_the_final" FROM "singles_wins_6" WHERE "date"='november 14, 1994';<|endoftext|> |
<|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 eliminated number is 3?
<|assistant|>
SELECT COUNT("entered") FROM "elimination_chamber_entrances_and_elimin" WHERE "eliminated"='3';<|endoftext|> |
<|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 entered and the wrestler was shawn michaels?
<|assistant|>
SELECT "eliminated" FROM "elimination_chamber_entrances_and_elimin" WHERE "entered"<4 AND "wrestler"='shawn michaels';<|endoftext|> |
<|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 and destination of Crystal Palace?
<|assistant|>
SELECT COUNT("frequency_per_hour") FROM "services" WHERE "line"='east london' AND "destination"='crystal palace';<|endoftext|> |
<|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 Overground and ends at the Crystal Palace?
<|assistant|>
SELECT "line" FROM "services" WHERE "operator"='london overground' AND "destination"='crystal palace';<|endoftext|> |
<|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|>
SELECT "weeks_on_top" FROM "see_also" WHERE "volume_issue"='28:26';<|endoftext|> |
<|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|>
SELECT "song" FROM "see_also" WHERE "weeks_on_top"='1' AND "volume_issue"='29:8';<|endoftext|> |
<|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_also" WHERE "artist"='gino vannelli';<|endoftext|> |
<|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 than 7 Cuts, 0 Wins, and less than 1 Top-25?
<|assistant|>
SELECT "tournament" FROM "summary" WHERE "cuts_made"<7 AND "wins"=0 AND "top_25"<1;<|endoftext|> |
<|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 "8_30"='my thursday night movie';<|endoftext|> |
<|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"='bones (reruns)';<|endoftext|> |
<|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|>
SELECT "8_30" FROM "thursday" WHERE "9_00"='the office (reruns)' AND "10_00"='law & order (reruns)';<|endoftext|> |
<|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|>
SELECT "10_00" FROM "thursday" WHERE "9_30"='grey''s anatomy (reruns)' AND "8_00"='samantha who?';<|endoftext|> |
<|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 wins?
<|assistant|>
SELECT COUNT("losses") FROM "advocates" WHERE "ties"=1 AND "poll_wins">3;<|endoftext|> |
<|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 and wins less than 2?
<|assistant|>
SELECT MIN("poll_losses") FROM "advocates" WHERE "ties"=0 AND "poll_wins">1 AND "wins"<2;<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.