text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "community_council" (
"parties_and_voter_communities" text,
"pct_2006" real,
"seats_2006" real,
"pct_2001" real,
"seats_2001" real
);
Question: What is the sum of % for 2001 if 2001 seats equals... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "community_council" (
"parties_and_voter_communities" text,
"pct_2006" real,
"seats_2006" real,
"pct_2001" real,
"seats_2001" real
);
Question: If 2006 is 13% and 2001 is greater than 12.1%, wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
);
Question: What were the circumstances of the Hostile incident on the road to Jalalaba... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
);
Question: What was the circumstance that happened on the road to Jalalabad?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
);
Question: What happened in Mazar-i-sharif?
<|assistant|>
SELECT "circumstances" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestant_information" (
"index" text,
"name" text,
"chinese_name" text,
"country" text,
"status" text
);
Question: What is the Index number of Chen Bangjun Andie from Singapore?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestant_information" (
"index" text,
"name" text,
"chinese_name" text,
"country" text,
"status" text
);
Question: What is the Chinese name of the Eliminated player from Singapore in Index f9... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestant_information" (
"index" text,
"name" text,
"chinese_name" text,
"country" text,
"status" text
);
Question: What is the Index number for 叶惠慈?
<|assistant|>
SELECT "index" FROM "contest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestant_information" (
"index" text,
"name" text,
"chinese_name" text,
"country" text,
"status" text
);
Question: What is the Chinese name of the player in Index F10?
<|assistant|>
SELECT "c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestant_information" (
"index" text,
"name" text,
"chinese_name" text,
"country" text,
"status" text
);
Question: What is the name of the player from Malaysia, Kuala Lumpur in Index f8?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestant_information" (
"index" text,
"name" text,
"chinese_name" text,
"country" text,
"status" text
);
Question: What is the English name of the player 李美玲 from Malaysia, Kuala Lumpur?
<|as... |
<|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: Who was the opponent of the game on August 8?
<|assistant|>
SELECT "opponent... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_championship_1977_1987" (
"year" text,
"venue" text,
"winners" text,
"runner_up" text,
"3rd_place" text
);
Question: Who took the winning slot at the Vojens venue?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_championship_1977_1987" (
"year" text,
"venue" text,
"winners" text,
"runner_up" text,
"3rd_place" text
);
Question: Who was the runner-up in 1980 at the Pocking venue?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "youth_under_18_girls" (
"rank" real,
"fastest_time_s" text,
"wind_m_s" text,
"athlete" text,
"nation" text,
"date" text,
"location" text
);
Question: What rank did the United States swimmer... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1976_raiders_draft_selections" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
);
Question: What is the lowest overall with more than 17 rounds?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1976_raiders_draft_selections" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
);
Question: What position has 14 rounds?
<|assistant|>
SELECT "position" FROM "197... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What United States player has a score of 69-73-68=210?
<|assistant|>
SELECT "player" FROM "t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What Argentina country is in t10 place?
<|assistant|>
SELECT "score" FROM "third_round" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Which country has the score of 71-71-68=210?
<|assistant|>
SELECT "country" FROM "third_roun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What To par scored 72-71-68=211?
<|assistant|>
SELECT "to_par" FROM "third_round" WHERE "sco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nominated_work" text,
"result" text
);
Question: Name the award won for category of choice tv villain in years after 2008
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nominated_work" text,
"result" text
);
Question: Name the award for nominated result and year after 2011
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013" (
"sydney" text,
"gold_coast" text,
"adelaide" text,
"melbourne" text,
"perth" text
);
Question: Which Perth also has Sydney yes, Gold Coast yes, and Adelaide no?
<|assistant|>
SELECT "pe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013" (
"sydney" text,
"gold_coast" text,
"adelaide" text,
"melbourne" text,
"perth" text
);
Question: Which Perth has Gold Coast yes, Sydney yes, Melbourne yes, and Adelaide yes?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013" (
"sydney" text,
"gold_coast" text,
"adelaide" text,
"melbourne" text,
"perth" text
);
Question: Which Adelaide has Sydney yes, Melbourne yes, and Perth no?
<|assistant|>
SELECT "adelaide... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013" (
"sydney" text,
"gold_coast" text,
"adelaide" text,
"melbourne" text,
"perth" text
);
Question: Which Adelaide has Perth no, Gold Coast no, and Sydney yes?
<|assistant|>
SELECT "adelaide... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013" (
"sydney" text,
"gold_coast" text,
"adelaide" text,
"melbourne" text,
"perth" text
);
Question: Which Melbourne has Gold Coast yes, Perth cancelled, and Adelaide cancelled?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013" (
"sydney" text,
"gold_coast" text,
"adelaide" text,
"melbourne" text,
"perth" text
);
Question: Which Melbourne has Sydney yes, Gold Coast yes, and Perth yes?
<|assistant|>
SELECT "melbo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_winners" (
"year" text,
"venue" text,
"winners" text,
"2nd_place" text,
"3rd_place" text
);
Question: Who came in 3rd when Matej žagar won?
<|assistant|>
SELECT "3rd_place" FROM "previ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_winners" (
"year" text,
"venue" text,
"winners" text,
"2nd_place" text,
"3rd_place" text
);
Question: In what year did Rafał Kurmański come in 2nd place?
<|assistant|>
SELECT "year" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_winners" (
"year" text,
"venue" text,
"winners" text,
"2nd_place" text,
"3rd_place" text
);
Question: Who won at Krško?
<|assistant|>
SELECT "winners" FROM "previous_winners" WHERE "ve... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_winners" (
"year" text,
"venue" text,
"winners" text,
"2nd_place" text,
"3rd_place" text
);
Question: Who came in 3rd when Nicolai Klindt won?
<|assistant|>
SELECT "3rd_place" FROM "pr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_winners" (
"year" text,
"venue" text,
"winners" text,
"2nd_place" text,
"3rd_place" text
);
Question: Who won when Karol Ząbik came in 2nd?
<|assistant|>
SELECT "winners" FROM "previou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_winners" (
"year" text,
"venue" text,
"winners" text,
"2nd_place" text,
"3rd_place" text
);
Question: Who came in 3rd at Venue?
<|assistant|>
SELECT "3rd_place" FROM "previous_winners"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"kickoff_et" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text
);
Question: What is the total number of weeks that the Steelers had... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"kickoff_et" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text
);
Question: Who was the opponent at the Steelers game that had a re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: Name the cond... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: Name the cond... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: Name the cond... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: Name the cond... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: Name the blee... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "coaches" (
"name" text,
"period" text,
"wins" real,
"draws" real,
"losses" real,
"efficiency_pct" text
);
Question: what is the number of losses with draws less than 1 and 6.3% efficiency?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "coaches" (
"name" text,
"period" text,
"wins" real,
"draws" real,
"losses" real,
"efficiency_pct" text
);
Question: what is the number of draws for ali said gouled?
<|assistant|>
SELECT COUNT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "coaches" (
"name" text,
"period" text,
"wins" real,
"draws" real,
"losses" real,
"efficiency_pct" text
);
Question: what is the number of draws when there are 4 losses and 28.6% efficiency?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
Question: Name the females when males are 1 548
<|assistant|>
SELECT "females" FROM "language"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
Question: Name the percentage with number of 1 343
<|assistant|>
SELECT "percentage_pct" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
Question: Name the percentage which has females of 2
<|assistant|>
SELECT "percentage_pct" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
Question: Name the males for language of persons that didn't name their native language
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eastern_division" (
"institution" text,
"main_campus_location" text,
"founded" real,
"mascot" text,
"school_colors" text
);
Question: What are the school colors for the college whose main campu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eastern_division" (
"institution" text,
"main_campus_location" text,
"founded" real,
"mascot" text,
"school_colors" text
);
Question: What is independence community college's newest campus?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eastern_division" (
"institution" text,
"main_campus_location" text,
"founded" real,
"mascot" text,
"school_colors" text
);
Question: What college was founded in 1967?
<|assistant|>
SELECT "mai... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_negotiation_leaders" (
"from" text,
"until" text,
"name" text,
"party" text,
"function" text
);
Question: Which party is associated with a leader who began his tenure on June 13, 2007?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_negotiation_leaders" (
"from" text,
"until" text,
"name" text,
"party" text,
"function" text
);
Question: What is the beginning date associated with an ending date of July 4, 2007?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_negotiation_leaders" (
"from" text,
"until" text,
"name" text,
"party" text,
"function" text
);
Question: Who had a function of explorator?
<|assistant|>
SELECT "name" FROM "list_of_neg... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_negotiation_leaders" (
"from" text,
"until" text,
"name" text,
"party" text,
"function" text
);
Question: What is the Until date associated with a beginning From date of July 5, 2007?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_negotiation_leaders" (
"from" text,
"until" text,
"name" text,
"party" text,
"function" text
);
Question: What is the Until date that has a party of VLD and a beginning from date of Dec... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"competing_entities" text,
"first_held" real,
"current_holder" text,
"next" text,
"held_every" text
);
Question: Can you tell me the Competing entities that has the First held sma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_10" (
"date" text,
"tournament" text,
"surface" text,
"tier" text,
"opponent_in_the_final" text,
"score" text
);
Question: What surface was played on on October 3, 2010?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_10" (
"date" text,
"tournament" text,
"surface" text,
"tier" text,
"opponent_in_the_final" text,
"score" text
);
Question: What was the tier versus Manana Shapakidze?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_10" (
"date" text,
"tournament" text,
"surface" text,
"tier" text,
"opponent_in_the_final" text,
"score" text
);
Question: What was the score versus Michaela Pochabová?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_10" (
"date" text,
"tournament" text,
"surface" text,
"tier" text,
"opponent_in_the_final" text,
"score" text
);
Question: Who was the opponent on May 8, 2006?
<|assistant|>
SELECT "o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_10" (
"date" text,
"tournament" text,
"surface" text,
"tier" text,
"opponent_in_the_final" text,
"score" text
);
Question: What was the tier versus Annalisa bona?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eurolaul_26_january_2002" (
"draw" real,
"artist" text,
"song" text,
"votes" real,
"place" real
);
Question: What is the average place for the song called "homme" that has voes larger than 1320... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eurolaul_26_january_2002" (
"draw" real,
"artist" text,
"song" text,
"votes" real,
"place" real
);
Question: What is the sum of the draw for the song "Beautiful Inside" which has a place larger... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eurolaul_26_january_2002" (
"draw" real,
"artist" text,
"song" text,
"votes" real,
"place" real
);
Question: Which song has votes greater than 640 and a draw of 1?
<|assistant|>
SELECT "song" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eurolaul_26_january_2002" (
"draw" real,
"artist" text,
"song" text,
"votes" real,
"place" real
);
Question: What is the average place for a song with votes smaller than 8696, the song "turn th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real
);
Question: When Keey has 58.1% what % does Bush have?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_players" (
"nationality" text,
"position" text,
"real_betis_career" text,
"appearances" real,
"goals" real
);
Question: Which of Real Betis career had appearances smaller than 98, natio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kapiti_coast_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: What Decile has State Authority and Raumati South A... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kapiti_coast_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: What is the total Decile with Waikanae Area?
<|assi... |
<|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 Player with a Place of T10 had a Score of 80-70-72-72=294?
<|assi... |
<|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 was the Money ($) amount for Lloyd Mangrum?
<|assistant|>
SELECT ... |
<|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 was the Money ($) amount for Cary Middlecoff?
<|assistant|>
SELEC... |
<|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 date was the game with a score of 5–2, and a Loss of lilly (9–9)?
<|ass... |
<|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 team was the opponent when there was a score of 5–4 (11)?
<|assistant|>... |
<|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 date was the game with a record of 47–39?
<|assistant|>
SELECT "date" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
Question: What year did Tom Watson win?
<|assistant|>
SELECT "year_s_won" FROM "missed_the_cut... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
Question: What is the total number that Tom Watson parred larger than 10?
<|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,
"record" text
);
Question: Which date has a Record of 4-5?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "record"='4-5';... |
<|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,
"record" text
);
Question: Which score has a Loss of gubicza (0-1)?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "loss... |
<|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,
"record" text
);
Question: Which loss happened april 18?
<|assistant|>
SELECT "loss" FROM "game_log" WHERE "date"='april 18'... |
<|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,
"record" text
);
Question: Which record has an Opponent of orioles and a Date of april 14?
<|assistant|>
SELECT "record" FRO... |
<|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,
"record" text
);
Question: Which record has a Date of april 25?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "date"='... |
<|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,
"record" text
);
Question: Which opponent has a Record of 4-5?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "record... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"category" text,
"film" text,
"director_s" text,
"country" text,
"nominating_festival" text
);
Question: Name the country which has prix uip venezia
<|assistant|>
SELECT "country" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"category" text,
"film" text,
"director_s" text,
"country" text,
"nominating_festival" text
);
Question: Name the nominating festival for director of 2004
<|assistant|>
SELECT "nominati... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"category" text,
"film" text,
"director_s" text,
"country" text,
"nominating_festival" text
);
Question: Name the category for prix uip berlin
<|assistant|>
SELECT "category" FROM "2004... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"category" text,
"film" text,
"director_s" text,
"country" text,
"nominating_festival" text
);
Question: Name the nominating festival for un cartus de kent si un pachet de cafea
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"category" text,
"film" text,
"director_s" text,
"country" text,
"nominating_festival" text
);
Question: Name the director of alt i alt
<|assistant|>
SELECT "director_s" FROM "2004" WHE... |
<|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's the score of the game they played against a team with a record of 81-... |
<|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 game score was there for the team with a record of 84-56?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_poker_tour" (
"date" text,
"city" text,
"event" text,
"winner" text,
"prize" text
);
Question: Who is the Winner for the City of Loutraki?
<|assistant|>
SELECT "winner" FROM "european_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_poker_tour" (
"date" text,
"city" text,
"event" text,
"winner" text,
"prize" text
);
Question: What is the Date for the Event ept copenhagen?
<|assistant|>
SELECT "date" FROM "european... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_poker_tour" (
"date" text,
"city" text,
"event" text,
"winner" text,
"prize" text
);
Question: What Event did John dibella win?
<|assistant|>
SELECT "event" FROM "european_poker_tour" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_poker_tour" (
"date" text,
"city" text,
"event" text,
"winner" text,
"prize" text
);
Question: What was the prize for winner benny spindler?
<|assistant|>
SELECT "prize" FROM "european... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_poker_tour" (
"date" text,
"city" text,
"event" text,
"winner" text,
"prize" text
);
Question: What was the Event in the city of copenhagen?
<|assistant|>
SELECT "event" FROM "european... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_poker_tour" (
"date" text,
"city" text,
"event" text,
"winner" text,
"prize" text
);
Question: What was the Event for the prize of €850,000?
<|assistant|>
SELECT "event" FROM "european... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"year" real,
"population_total" real,
"caboolture" real,
"pine_rivers" real,
"redcliffe" real
);
Question: What is the Redcliffe population with a Pine Rivers population greater t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"year" real,
"population_total" real,
"caboolture" real,
"pine_rivers" real,
"redcliffe" real
);
Question: What is the Pine Rivers total population after 1947 with a Redcliffe pop... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.