text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "finals_14_9_titles_5_runners_up" (
"outcome" text,
"year" real,
"tournament" text,
"opponent" text,
"score" text
);
Question: What was the outcome of the match against Nguyen Tien Minh in the B... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1989" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: What was the final score when the New York Jets were the Visiting Team?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1989" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: When were the Cleveland Browns the visiting team?
<|assistant|>
SELECT "date" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1989" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Where were the New York Jets visiting?
<|assistant|>
SELECT "stadium" FROM "1989" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1989" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: What was the final score in Robert F. Kennedy Memorial Stadium?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1989" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: What was the visiting team on November 12?
<|assistant|>
SELECT "visiting_team" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1989" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: In what stadium were the New England Patriots the visiting team?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: If the games played are smal... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: If the place is smaller than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: What is the sum of the place... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "epic_m_and_epic_x" (
"frame_size" text,
"width" real,
"height" real,
"mpix" real,
"aspect_ratio" text,
"max_fps" real,
"max_fps_hd_rx" real,
"lowest_possible_redcode_at_24_fps" text,
"lo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "epic_m_and_epic_x" (
"frame_size" text,
"width" real,
"height" real,
"mpix" real,
"aspect_ratio" text,
"max_fps" real,
"max_fps_hd_rx" real,
"lowest_possible_redcode_at_24_fps" text,
"lo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "august" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text
);
Question: What was the opponent on August 29?
<|assistant|>
SELECT "opponent" FROM "august" WHERE "date"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "august" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text
);
Question: Which team had the attendance of 16,468 and lost?
<|assistant|>
SELECT "loss" FROM "august" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "august" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text
);
Question: What opponent has a loss of Trachsel (10-11)?
<|assistant|>
SELECT "opponent" FROM "august" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "august" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text
);
Question: What was the attendance on August 8?
<|assistant|>
SELECT "attendance" FROM "august" WHERE "dat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stations" (
"station" text,
"japanese" text,
"distance_km" real,
"rapid" text,
"location" text
);
Question: Which rapid has a distance in km smaller than 14.2, and a Station of kōmyōji?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances" (
"name" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"other" real,
"total" real
);
Question: What is the sum of Other, when the Name is Simon Gillett Category:Articles... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances" (
"name" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"other" real,
"total" real
);
Question: What is the sum of the value "League Cup", when the Total is less than 1, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances" (
"name" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"other" real,
"total" real
);
Question: What is the greatest Total, when the FA Cup is 0, when the Name is Robbie ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances" (
"name" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"other" real,
"total" real
);
Question: What is the average Total, when the Name is Simon Gillett Category:Article... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances" (
"name" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"other" real,
"total" real
);
Question: What is the sum of League Cup, when the Other is less than 1, when the Nam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_champions" (
"year" text,
"champion" text,
"runner_up" text,
"3rd_place" text,
"location" text
);
Question: Name the runner-up which has 3rd place of terry hollands
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_champions" (
"year" text,
"champion" text,
"runner_up" text,
"3rd_place" text,
"location" text
);
Question: Name the champion for christopher miles runner-up
<|assistant|>
SELECT "champ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_champions" (
"year" text,
"champion" text,
"runner_up" text,
"3rd_place" text,
"location" text
);
Question: Name the champion for 2000
<|assistant|>
SELECT "champion" FROM "list_of_cham... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_champions" (
"year" text,
"champion" text,
"runner_up" text,
"3rd_place" text,
"location" text
);
Question: Name the champion for 3rd place tbc and runner-up tbc
<|assistant|>
SELECT "c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_champions" (
"year" text,
"champion" text,
"runner_up" text,
"3rd_place" text,
"location" text
);
Question: Name the location for 1998
<|assistant|>
SELECT "location" FROM "list_of_cham... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many gold medals correspond with a total over 4?
<|assistant|>
SELECT "gold" FROM "medal_tab... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the sum of gold medals with a total of 12 medals and less than 4 bronze medals?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the smallest number of gold medals corresponding to the total rank with more than 4 bron... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the smallest number of bronze medals with more than 4 gold medals?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "7_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
);
Question: The candidate with Riding of st. john's south—m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "7_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
);
Question: What is the rank of walter noel from st. john's... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "7_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
);
Question: What is the name of the candidate from happy va... |
<|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: Which number has a 0.35 percentage?
<|assistant|>
SELECT "number" FROM "language" WH... |
<|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: What is the percentage for Russian?
<|assistant|>
SELECT "percentage_pct" FROM "lang... |
<|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: How many males speak Russian?
<|assistant|>
SELECT "males" FROM "language" WHERE "la... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007" (
"film" text,
"director_s" text,
"producer_s" text,
"writer_s" text,
"recipient" text,
"award" text
);
Question: Who is the writer for Red Rose Chain LTD?
<|assistant|>
SELECT "writer_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007" (
"film" text,
"director_s" text,
"producer_s" text,
"writer_s" text,
"recipient" text,
"award" text
);
Question: Which producer did Daniel Cormack direct?
<|assistant|>
SELECT "produce... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007" (
"film" text,
"director_s" text,
"producer_s" text,
"writer_s" text,
"recipient" text,
"award" text
);
Question: Who produced Laura Tunstall?
<|assistant|>
SELECT "producer_s" FROM "20... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007" (
"film" text,
"director_s" text,
"producer_s" text,
"writer_s" text,
"recipient" text,
"award" text
);
Question: Who wrote the film Jehovah's Witness?
<|assistant|>
SELECT "writer_s" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personal_records" (
"distance" text,
"time" text,
"date" text,
"location" text,
"notes" text
);
Question: When did Hein Vergeer have a distance of 5,000m?
<|assistant|>
SELECT "date" FROM "pers... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personal_records" (
"distance" text,
"time" text,
"date" text,
"location" text,
"notes" text
);
Question: What were the notes during the distance of Men's Speed Skating?
<|assistant|>
SELECT "n... |
<|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 date has the competition of uefa euro 2012 qualifying?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "step_races" (
"race_name" real,
"grade" text,
"racecourse" text,
"distance" text,
"priority_entry_rights_to_derby" text
);
Question: What is the Grade that has Turf 1600m?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "step_races" (
"race_name" real,
"grade" text,
"racecourse" text,
"distance" text,
"priority_entry_rights_to_derby" text
);
Question: What is the Priority-entry-rights to Derby in rank 4?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "distribution" (
"installation" text,
"cluj" real,
"oradea" real,
"baia_mare" real,
"bistrita" real,
"satu_mare" real,
"zalau" real,
"electrica_north_transylvania" real
);
Question: How ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "distribution" (
"installation" text,
"cluj" real,
"oradea" real,
"baia_mare" real,
"bistrita" real,
"satu_mare" real,
"zalau" real,
"electrica_north_transylvania" real
);
Question: What i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "features" (
"format" text,
"filename_extension" text,
"image_support" text,
"interactivity_support" text,
"word_wrap_support" text,
"open_standard" text
);
Question: Which Word wrap support h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "features" (
"format" text,
"filename_extension" text,
"image_support" text,
"interactivity_support" text,
"word_wrap_support" text,
"open_standard" text
);
Question: Which Interactivity suppo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "features" (
"format" text,
"filename_extension" text,
"image_support" text,
"interactivity_support" text,
"word_wrap_support" text,
"open_standard" text
);
Question: Which Filename extension ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "features" (
"format" text,
"filename_extension" text,
"image_support" text,
"interactivity_support" text,
"word_wrap_support" text,
"open_standard" text
);
Question: Which Filename extension ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "features" (
"format" text,
"filename_extension" text,
"image_support" text,
"interactivity_support" text,
"word_wrap_support" text,
"open_standard" text
);
Question: Which Format has an Inter... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Position of guard, and a Pick # larger than 9 is w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Pick # smaller than 11, and a Name of von hutchins... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: College of idaho, and an Overall smaller than 141 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Name of David Kimball, and an Overall smaller than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: How many points did the car with the brm v8 engine have?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: Which chassis has more than 0 points and was before 1966?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: How many points did he average in 1964?
<|assistant|>
SELECT A... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: Before the year 1963 what was the fewest points the climax v8 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What was the earliest year that had less than 1 point?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "friday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
Question: What is the 8:00 feature with je at 7:00?
<|assistant|>
SELECT "8_00" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "friday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
Question: What is the 10:00 feature with 1 vs. 100 at 8:30?
<|assistant|>
SELECT "10_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "friday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
Question: What is the 7:00 feature with entertainment tonight at 7:30?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "friday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
Question: What is the 7:30 feature with le tva 22 heures at 10:00?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "friday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
Question: What is the 9:30 feature with la porte des étoiles at 8:30?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: How many were in attendance on October 27, 1963?
<|assistant|>
SELECT MAX("attendance... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"num_county" text,
"ihsaa_class" text,
"year_joined" real,
"previous_conference" text
);
Question: which # / county is correct f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"num_county" text,
"ihsaa_class" text,
"year_joined" real,
"previous_conference" text
);
Question: what is the correct year for ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"num_county" text,
"ihsaa_class" text,
"year_joined" real,
"previous_conference" text
);
Question: what's the mascot for 66 pula... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sporting_events" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total bronze with a Silver of 2, and a Gold smaller than 0?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sporting_events" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the average total with a Rank larger than 11, a Nation of switzerla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sporting_events" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total Gold with a Bronze smaller than 7, a Total of 1, a Nation... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "models" (
"engine" text,
"displacement" text,
"power" text,
"torque" text,
"year" real
);
Question: How powerful is the model before 1999?
<|assistant|>
SELECT "power" FROM "models" WHERE "year... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "models" (
"engine" text,
"displacement" text,
"power" text,
"torque" text,
"year" real
);
Question: What displacement is the model in 1999 with a Torque of 280n·m (207lb·ft) @ 1750?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "models" (
"engine" text,
"displacement" text,
"power" text,
"torque" text,
"year" real
);
Question: When is the earliest year with a Power of 90kw (121hp) @ 4000?
<|assistant|>
SELECT MIN("year... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "models" (
"engine" text,
"displacement" text,
"power" text,
"torque" text,
"year" real
);
Question: When is the earliest year with a Torque of 330n·m (243lb·ft) @ 2000-2500?
<|assistant|>
SELEC... |
<|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 week 14 has the lowest attendance?
<|assistant|>
SELECT MIN("attendance") FROM "schedul... |
<|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: Which sum of week that had an attendance larger than 55,767 on September 28, 1986?
<|assista... |
<|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 on September 14, 1986?
<|assistant|>
SELECT MAX("attendance")... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
);
Question: What type is the race with the vicenza to marostica course?
<|assistant|>
SELECT "type" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010"... |
<|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 was the venue on 7 october 2011?
<|assistant|>
SELECT "venue" FROM "internati... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" (
"number" real,
"name" text,
"titles" text,
"date" text,
"opponent" text,
"result" text
);
Question: What is the highest number of the match with ju... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" (
"number" real,
"name" text,
"titles" text,
"date" text,
"opponent" text,
"result" text
);
Question: Who was the opponent of the match on 2006-04-08... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" (
"number" real,
"name" text,
"titles" text,
"date" text,
"opponent" text,
"result" text
);
Question: What is the result of the match with Zab Judah ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" (
"number" real,
"name" text,
"titles" text,
"date" text,
"opponent" text,
"result" text
);
Question: What is the date of the match with a result of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "biggest_wins" (
"margin" real,
"score" text,
"opponent" text,
"venue" text,
"date" text
);
Question: What score was on 13 June 2004?
<|assistant|>
SELECT "score" FROM "biggest_wins" WHERE "date... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_tour_finishers" (
"rider" text,
"year" real,
"final_position_giro" real,
"final_position_tour" real,
"final_position_vuelta" real
);
Question: Who is the rider with less than 50 final pos... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_tour_finishers" (
"rider" text,
"year" real,
"final_position_giro" real,
"final_position_tour" real,
"final_position_vuelta" real
);
Question: What is the earliest year of Valdimir Poelni... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_tour_finishers" (
"rider" text,
"year" real,
"final_position_giro" real,
"final_position_tour" real,
"final_position_vuelta" real
);
Question: What is the number of final position-tours M... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_tour_finishers" (
"rider" text,
"year" real,
"final_position_giro" real,
"final_position_tour" real,
"final_position_vuelta" real
);
Question: What year was the rider with a final positio... |
<|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: How much did they lose by on April 26?
<|assistant|>
SELECT "loss" FROM "gam... |
<|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 was the highest attendance when the opponent was the Indians and the re... |
<|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 day did the record reach 15-4?
<|assistant|>
SELECT "date" FROM "game_l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.