text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "clubs_stadiums_and_locations" (
"team" text,
"city" text,
"state" text,
"home_venue" text,
"capacity" real
);
Question: Where is the city of Maharashtra's Pune team?
<|assistant|>
SELECT "city"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_7" (
"episode" text,
"first_aired" text,
"entrepreneur_s" text,
"company_or_product_name" text,
"money_requested" text,
"investing_dragon_s" text
);
Question: How much Money is request... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_7" (
"episode" text,
"first_aired" text,
"entrepreneur_s" text,
"company_or_product_name" text,
"money_requested" text,
"investing_dragon_s" text
);
Question: Which Investing Dragon ha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_7" (
"episode" text,
"first_aired" text,
"entrepreneur_s" text,
"company_or_product_name" text,
"money_requested" text,
"investing_dragon_s" text
);
Question: What is the name of the C... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_7" (
"episode" text,
"first_aired" text,
"entrepreneur_s" text,
"company_or_product_name" text,
"money_requested" text,
"investing_dragon_s" text
);
Question: Which Episode has request... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_of_motif_discovery_algori" (
"counting_method" text,
"basis" text,
"name" text,
"directed_undirected" text,
"induced_non_induced" text
);
Question: What is the counting method fo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_of_motif_discovery_algori" (
"counting_method" text,
"basis" text,
"name" text,
"directed_undirected" text,
"induced_non_induced" text
);
Question: What is the directed/undirecte... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_of_motif_discovery_algori" (
"counting_method" text,
"basis" text,
"name" text,
"directed_undirected" text,
"induced_non_induced" text
);
Question: What is the directed/undirecte... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_of_motif_discovery_algori" (
"counting_method" text,
"basis" text,
"name" text,
"directed_undirected" text,
"induced_non_induced" text
);
Question: What is the name of the algori... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_of_motif_discovery_algori" (
"counting_method" text,
"basis" text,
"name" text,
"directed_undirected" text,
"induced_non_induced" text
);
Question: What is the directed/undirecte... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_16_7_titles_9_runners_up" (
"outcome" text,
"date" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Who is the opponent for the winner outcome on a hard surface on Augus... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_16_7_titles_9_runners_up" (
"outcome" text,
"date" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What was the outcome on August 5, 2007?
<|assistant|>
SELECT "outcome... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_16_7_titles_9_runners_up" (
"outcome" text,
"date" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What was the score on January 16, 2010?
<|assistant|>
SELECT "score" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"name" text,
"country" text,
"score" text,
"to_par" text
);
Question: What country is Paul Runyan from?
<|assistant|>
SELECT "country" FROM "third_round" WHERE "nam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"name" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the To par of Willie MacFarlane from the country of Scotland?
<|assistant|>
SELECT "to... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"name" text,
"country" text,
"score" text,
"to_par" text
);
Question: What country has a To par of +1 and the score of 71-76-70=217?
<|assistant|>
SELECT "country" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_goals_in_a_season" (
"rank" text,
"goals" text,
"player" text,
"club" text,
"season" text
);
Question: What player scored 143 goals?
<|assistant|>
SELECT "player" FROM "most_goals_in_a_sea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_goals_in_a_season" (
"rank" text,
"goals" text,
"player" text,
"club" text,
"season" text
);
Question: In what season was there a club of South Melbourne?
<|assistant|>
SELECT "season" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_goals_in_a_season" (
"rank" text,
"goals" text,
"player" text,
"club" text,
"season" text
);
Question: What club scored 143 goals?
<|assistant|>
SELECT "club" FROM "most_goals_in_a_season"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_goals_in_a_season" (
"rank" text,
"goals" text,
"player" text,
"club" text,
"season" text
);
Question: In what season did Bob Pratt play?
<|assistant|>
SELECT "season" FROM "most_goals_in_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_goals_in_a_season" (
"rank" text,
"goals" text,
"player" text,
"club" text,
"season" text
);
Question: How many goals did the club from Hawthorn score in the 1971 season?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What source has july 1 as the date?
<|assistant|>
SELECT "score" FROM "game_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What is the record that has an attendance greater than 39,980 with july 26 a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"municipality" text,
"population" real,
"area_km" real,
"density_population_per_km" real,
"area" text,
"county" text
);
Question: What is the Area of the town with a Population ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"municipality" text,
"population" real,
"area_km" real,
"density_population_per_km" real,
"area" text,
"county" text
);
Question: Which municipality's area is outer circle south... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"game" real,
"date" text,
"location" text,
"time" text,
"attendance" real
);
Question: What was the location of the game after game 6?
<|assistant|>
SELECT "location" FROM "summary" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970_1979" (
"january" text,
"february" text,
"march" text,
"april" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970_1979" (
"january" text,
"february" text,
"march" text,
"april" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970_1979" (
"january" text,
"february" text,
"march" text,
"april" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970_1979" (
"january" text,
"february" text,
"march" text,
"april" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970_1979" (
"january" text,
"february" text,
"march" text,
"april" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970_1979" (
"january" text,
"february" text,
"march" text,
"april" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_destination_number" (
"rank" real,
"airline" text,
"country" text,
"destination_number" real,
"remarks" text
);
Question: What were the remarks for Dutch Antilles Express?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_destination_number" (
"rank" real,
"airline" text,
"country" text,
"destination_number" real,
"remarks" text
);
Question: What were the remarks for a destination under 19 and rank less ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Name the date when the attendance is more than 45,817
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Name the score for september 25
<|assistant|>
SELECT "score" FROM "game_log"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
Question: What is the lowest year that has athens, greece as the venue?
<|assistant|>
SELECT MIN("ye... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
Question: Which venue has 1st as the result?
<|assistant|>
SELECT "venue" FROM "achievements" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
Question: What extra has world championships as the tournament, and 1st as the result?
<|assistant|>... |
<|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: For all countries with 7 bronze medals and a total number of medals less than 1... |
<|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: For countries with total number of medals less than 5 and more than 2 bronze me... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: Which Class has Laps of 31?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "newfoundland_and_labrador_7_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
);
Question: What is the gender fo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"position" text,
"player" text,
"county_team" text,
"club_team_s" text,
"team_number" real
);
Question: What country team had Thurles Sarsfields?
<|assistant|>
SELECT "county_team" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"position" text,
"player" text,
"county_team" text,
"club_team_s" text,
"team_number" real
);
Question: How many club teams had more than 14 people?
<|assistant|>
SELECT "club_team_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: Who is from Spain with a to par of e?
<|assistant|>
SELECT "player" FROM "first_round" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: Where was Steve Stricker from?
<|assistant|>
SELECT "place" FROM "first_round" WHERE "player... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: Which country has 69 score?
<|assistant|>
SELECT "country" FROM "first_round" WHERE "score"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: How many laps were there when the start was 12?
<|assistant|>
SELECT COUNT("la... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: What was the qual when the rank was 2?
<|assistant|>
SELECT "qual" FROM "indy_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "broadcast_translators_of_wise_fm" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"fcc_info" text
);
Question: Tell me the call sign which has a frequency Mhz m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "broadcast_translators_of_wise_fm" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"fcc_info" text
);
Question: Name the total number of ERP W when the call sign... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "broadcast_translators_of_wise_fm" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"fcc_info" text
);
Question: Name the total number of frequency Mhz for when i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "broadcast_translators_of_wise_fm" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"fcc_info" text
);
Question: Name the average ERP W when it has a city of lice... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goals_for_senior_national_team" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the Score that has a Result of 2–2 on 04 Dec 2005?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goals_for_senior_national_team" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the Result on 26 jan 2005?
<|assistant|>
SELECT "result" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goals_for_senior_national_team" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the Venue on 26 jan 2005
<|assistant|>
SELECT "venue" FROM "goa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goals_for_senior_national_team" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the Competition On 26 jan 2005
<|assistant|>
SELECT "competitio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goals_for_senior_national_team" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the Score of West Asian Games 2005 on 10 dec 2005?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: What is the qual when there are 125 laps?
<|assistant|>
SELECT "qual" FROM "in... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: What is the rank when there are more than 107 laps and the qual is 137.825?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: What is the rank with more than 40 laps and a 23 finish?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: What is the finish in 1953?
<|assistant|>
SELECT "finish" FROM "indy_500_resul... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: In what year was the rank 24?
<|assistant|>
SELECT "year" FROM "indy_500_resul... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: Which To par has $100 in money played by Vic Ghezzi?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: What is the monetary sum with a score of 75-71-75-72=293?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "east_asian_seven_luminaries" (
"sunday" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text
);
Question: Which Wednesday has a Saturday of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "east_asian_seven_luminaries" (
"sunday" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text
);
Question: Which Wednesday has a Sunday of ག... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "east_asian_seven_luminaries" (
"sunday" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text
);
Question: Which Tuesday has a Saturday of 土... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "east_asian_seven_luminaries" (
"sunday" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text
);
Question: Which Thursday has a Wednesday of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "east_asian_seven_luminaries" (
"sunday" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text
);
Question: Which Wednesday has a Monday of 月... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "east_asian_seven_luminaries" (
"sunday" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text
);
Question: Which Saturday has a Thursday of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What loss was against the angels with a 50-31 record?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m2_f3_flights" (
"vehicle_flight_num" text,
"date" text,
"pilot" text,
"mach" real,
"velocity_km_h" real,
"altitude_ft" real,
"duration" text
);
Question: Who is the pilot on September 27, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m2_f3_flights" (
"vehicle_flight_num" text,
"date" text,
"pilot" text,
"mach" real,
"velocity_km_h" real,
"altitude_ft" real,
"duration" text
);
Question: What is the lowest altitude of the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_partnerships_of_the_tournament" (
"runs_balls" text,
"wicket" text,
"partnerships" text,
"venue" text,
"date" text
);
Question: Which wicket had a 100 (45) Runs (balls) amount?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_partnerships_of_the_tournament" (
"runs_balls" text,
"wicket" text,
"partnerships" text,
"venue" text,
"date" text
);
Question: Which Wicket was it that had a 104 (69) Runs (balls) amou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" text,
"fixtures" real,
"clubs" text,
"new_entries" text,
"leagues_entering" text
);
Question: What is the item for Leagues entering, when the value for Clubs is 8 → 4?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" text,
"fixtures" real,
"clubs" text,
"new_entries" text,
"leagues_entering" text
);
Question: What is the Round when the value for Fixtures is 2?
<|assistant|>
SELECT "round... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" text,
"fixtures" real,
"clubs" text,
"new_entries" text,
"leagues_entering" text
);
Question: What is the value for New entries, when the value for Fixtures is less than 16,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" text,
"fixtures" real,
"clubs" text,
"new_entries" text,
"leagues_entering" text
);
Question: What is the value for New entries, when the value for Fixtures is 2?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recording_industry_association_of_americ" (
"year" real,
"date" text,
"title" text,
"format_s" text,
"award_description_s" text,
"result_s" text
);
Question: Which date has a format's album?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recording_industry_association_of_americ" (
"year" real,
"date" text,
"title" text,
"format_s" text,
"award_description_s" text,
"result_s" text
);
Question: What is the title for year 1991 a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recording_industry_association_of_americ" (
"year" real,
"date" text,
"title" text,
"format_s" text,
"award_description_s" text,
"result_s" text
);
Question: What is the average year with an ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recording_industry_association_of_americ" (
"year" real,
"date" text,
"title" text,
"format_s" text,
"award_description_s" text,
"result_s" text
);
Question: What are the results of Format si... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recording_industry_association_of_americ" (
"year" real,
"date" text,
"title" text,
"format_s" text,
"award_description_s" text,
"result_s" text
);
Question: What are the award description wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_points_leaders" (
"player" text,
"years" text,
"goals" real,
"assists" real,
"points" real
);
Question: What is the largest number of goals with less than 101 assists and 172 points?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_points_leaders" (
"player" text,
"years" text,
"goals" real,
"assists" real,
"points" real
);
Question: How many total points does Mike Hyndman have with more than 119 assists?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_points_leaders" (
"player" text,
"years" text,
"goals" real,
"assists" real,
"points" real
);
Question: How many assists does David Tomlinson have?
<|assistant|>
SELECT SUM("assists") FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_points_leaders" (
"player" text,
"years" text,
"goals" real,
"assists" real,
"points" real
);
Question: How many points does Shawn Mceachern with less than 79 goals?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_points_leaders" (
"player" text,
"years" text,
"goals" real,
"assists" real,
"points" real
);
Question: How many goals does Mike Eruzione have in total?
<|assistant|>
SELECT "goals" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which rider had fewer than 10 laps for the Aprilia manufacturer, finishing ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the time for a grid greater than 20, fewer than 26 laps, and the Ap... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which rider had more than 23 laps, a manufacturer of Aprilia, and a grid of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "external_links" (
"representative" text,
"years" text,
"state" text,
"party" text,
"lifespan" text
);
Question: When was Walter Evans a representative?
<|assistant|>
SELECT "years" FROM "extern... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.