text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r" (
"player" text,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
);
Question: Who is the player from United States who play in year 2003-06 in Toronto?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "japan" (
"place" real,
"title" text,
"platform" text,
"publisher" text,
"units_sold" real
);
Question: Tell me the average units sold for square enix
<|assistant|>
SELECT AVG("units_sold") FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_wins_30" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponent_in_the_final" text,
"score" text
);
Question: Tell me the date for nicolas pereira
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1980s" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
);
Question: what is the date in 1986?
<|assistant|>
SELECT "date" FROM "1980s" WHERE "year... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
Question: What is the average year for Ponce, Puerto Rico events?
<|assistant|>
SELECT AVG("year"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
Question: What year did she place 8th in the junior race?
<|assistant|>
SELECT "year" FROM "achie... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Tell me the NHL team for ryan johnson
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Tell me the position for pick of 47
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Tell me the pick for pittsburgh penguins
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Tell me the nationality for rudolf vercik
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Tell me the player for nationality of canada for pi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Tell me the college for jason holland
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
Question: Tell me the date for rudolf caracciola ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
Question: Tell me the circuit for 10 may for targ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_36_14_22" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What was the score of the Washington tournament?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_36_14_22" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: On what date was Patty Fendick an opponent?
<|assistant|>
SELECT... |
<|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 score does Vasil Levski National Stadium, Sofia earn?
<|assistant|>
SELECT "s... |
<|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 score did vasil levski national stadium, sofia, which was friendly during com... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_seven" (
"pick" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What is the nationality of the Washington Capital... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_seven" (
"pick" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: On what NHL team does Roman Vopat play for?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_seven" (
"pick" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What is the position of the player from the Ukrai... |
<|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 Tournament did he place 12th in?
<|assistant|>
SELECT "tournament" FROM "achievements... |
<|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 was the first year he placed 12th
<|assistant|>
SELECT MIN("year") FROM "achievements... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
Question: Tell me the circuit for alfa romeo swedish ice rac... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
Question: Tell me the date for bugatti fpr stanislas czaykow... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
Question: Tell me the circuit for 20 august
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
Question: Tell me the winning driver for avusrennen
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
Question: Tell me the report for bugatti and brooklands
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1980_1989" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
);
Question: How many years has there been a competition in Helsinki?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1980_1989" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
);
Question: Which competition before 1982 had a score of 2:3?
<|assistant|>
SELECT "co... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1980_1989" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
);
Question: Which competition occurred after 1980 with a score of 0:5 in Jerusalem?
<|... |
<|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" text
);
Question: When was there an attendance of 51,342?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "a... |
<|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" text
);
Question: What was the attendance during week 7?
<|assistant|>
SELECT "attendance" FROM "schedule" WHE... |
<|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" text
);
Question: What was the score during week 16?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "week... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_ghanaian_foreign_ministers" (
"number" real,
"minister" text,
"took_office" text,
"left_office" text,
"government" text,
"party" text
);
Question: Who is the mInister who left office ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_ghanaian_foreign_ministers" (
"number" real,
"minister" text,
"took_office" text,
"left_office" text,
"government" text,
"party" text
);
Question: Which government is number 6?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970_isle_of_man_lightweight_tt_250cc_fi" (
"place" real,
"rider" text,
"country" text,
"machine" text,
"speed" text,
"time" text,
"points" real
);
Question: Which rider had a speed of 90.5... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970_isle_of_man_lightweight_tt_250cc_fi" (
"place" real,
"rider" text,
"country" text,
"machine" text,
"speed" text,
"time" text,
"points" real
);
Question: Which country has a place small... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b" (
"place" real,
"team" text,
"wins" real,
"ties" real,
"losses" real,
"points" text
);
Question: What is the lowest number of Losses when the number of Wins is less than 4, the numbe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season_results" (
"season" text,
"manager" text,
"record_a" text,
"win_pct" real,
"post_season_record_e" text,
"post_season_win_pct" text,
"mlb_affiliate" text
);
Question: Tell m... |
<|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: Tell me the venue of 29 april 2007
<|assistant|>
SELECT "venue" FROM "internationa... |
<|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: Tell me the competition of 20 august 2008
<|assistant|>
SELECT "competition" FROM ... |
<|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: Tell me the date of stade des martyrs, dr congo
<|assistant|>
SELECT "date" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "finance" (
"payee" text,
"purpose" text,
"amount_millions" text,
"signatories" text,
"date_signed" text
);
Question: How much money, in millions, is paid to Infotalent?
<|assistant|>
SELECT "am... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "finance" (
"payee" text,
"purpose" text,
"amount_millions" text,
"signatories" text,
"date_signed" text
);
Question: What is the purpose of Euromarine?
<|assistant|>
SELECT "purpose" FROM "fina... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "finance" (
"payee" text,
"purpose" text,
"amount_millions" text,
"signatories" text,
"date_signed" text
);
Question: What signatory has a purpose of police security and Infotalent payee?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "oil_refining_and_petrochemical_facilitie" (
"name" text,
"location" text,
"launched" real,
"acquired" text,
"capacity_mln_tpa" text
);
Question: Tell me the highest launced for trn
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "oil_refining_and_petrochemical_facilitie" (
"name" text,
"location" text,
"launched" real,
"acquired" text,
"capacity_mln_tpa" text
);
Question: Tell me the average launced for capacity mln tpa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"camp" text,
"place" text,
"province" text,
"location" text,
"period" text
);
Question: Tell me the period for red rock
<|assistant|>
SELECT "period" FROM "see_also" WHERE "place"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"camp" text,
"place" text,
"province" text,
"location" text,
"period" text
);
Question: Tell me the province for 260km ese of calgary
<|assistant|>
SELECT "province" FROM "see_also"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"camp" text,
"place" text,
"province" text,
"location" text,
"period" text
);
Question: Tell me the province of 1941-1946
<|assistant|>
SELECT "province" FROM "see_also" WHERE "peri... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nobel_laureate_alumni" (
"name" text,
"degree" text,
"degree_year" text,
"award_year" real,
"award" text
);
Question: Tell me the degree for degree year of 1983
<|assistant|>
SELECT "degree" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nobel_laureate_alumni" (
"name" text,
"degree" text,
"degree_year" text,
"award_year" real,
"award" text
);
Question: Tell me the degree for chemistry 1965
<|assistant|>
SELECT "degree" FROM "n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "initial_composition_of_the_2nd_parliamen" (
"member" text,
"electorate" text,
"province" text,
"mp_s_term" text,
"election_date" text
);
Question: What is the MP's term who was elected from gre... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "initial_composition_of_the_2nd_parliamen" (
"member" text,
"electorate" text,
"province" text,
"mp_s_term" text,
"election_date" text
);
Question: What is the Election date for Member william r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "initial_composition_of_the_2nd_parliamen" (
"member" text,
"electorate" text,
"province" text,
"mp_s_term" text,
"election_date" text
);
Question: What is Member alfred east category:articles w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "initial_composition_of_the_2nd_parliamen" (
"member" text,
"electorate" text,
"province" text,
"mp_s_term" text,
"election_date" text
);
Question: What is the election date for the city of auck... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "initial_composition_of_the_2nd_parliamen" (
"member" text,
"electorate" text,
"province" text,
"mp_s_term" text,
"election_date" text
);
Question: What electorate does Member dingley brittin ca... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "initial_composition_of_the_2nd_parliamen" (
"member" text,
"electorate" text,
"province" text,
"mp_s_term" text,
"election_date" text
);
Question: What is the election date for the electorate o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1980s" (
"year" real,
"date" text,
"event" text,
"days" text,
"stages" text,
"acts" text
);
Question: Tell me the date for acts of 6 bands and year larger than 1981 for monsters of rock
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1980s" (
"year" real,
"date" text,
"event" text,
"days" text,
"stages" text,
"acts" text
);
Question: Tell me the stages for 1981
<|assistant|>
SELECT "stages" FROM "1980s" WHERE "year"=1981;... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1980s" (
"year" real,
"date" text,
"event" text,
"days" text,
"stages" text,
"acts" text
);
Question: Tell me the event for 6 bands
<|assistant|>
SELECT "event" FROM "1980s" WHERE "acts"='6 b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "popular_languages_used_for_data_exchange" (
"schemas" text,
"flexible" text,
"semantic_verification" text,
"dictionary" text,
"information_model" text,
"synonyms_and_homonyms" text,
"dialect... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "solo" (
"year" real,
"title" text,
"u_s" text,
"u_s_r_b" text,
"u_s_dance" text
);
Question: What value for U.S. dance occurred in 1986 when the value of U.S. R&B was 9?
<|assistant|>
SELECT "u... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "salmson_post_world_war_one_engines" (
"name" text,
"cyl" text,
"bore" text,
"capacity" text,
"power" text,
"weight" text
);
Question: What is the bore for a 9-cyl radial on a 9 AD?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "salmson_post_world_war_one_engines" (
"name" text,
"cyl" text,
"bore" text,
"capacity" text,
"power" text,
"weight" text
);
Question: What bore goes with an 18 AB?
<|assistant|>
SELECT "bore"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
);
Question: Tell me the venue for notes of 10.93 secs
<|assistant|>
SELECT "v... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
);
Question: Tell me the venue for year less than 2003
<|assistant|>
SELECT "v... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"team_chassis" text,
"engine" text,
"tyres" text,
"points" real
);
Question: What is the total number of points team Alfa Romeo 184T won?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"team_chassis" text,
"engine" text,
"tyres" text,
"points" real
);
Question: What engine was used after 1984?
<|assistant|>
SELECT "engine" FROM "co... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"team_chassis" text,
"engine" text,
"tyres" text,
"points" real
);
Question: In which year were the points more than 0?
<|assistant|>
SELECT "year" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"team_chassis" text,
"engine" text,
"tyres" text,
"points" real
);
Question: What were the Tyres after 1984?
<|assistant|>
SELECT "tyres" FROM "comp... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "binary_azeotropes" (
"component_1" text,
"b_p_comp_1_c" text,
"component_2" text,
"b_p_comp_2_c" text,
"b_p_azeo_c" text,
"pct_wt_comp_1" real,
"pct_wt_comp_2" real
);
Question: Tell me the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "binary_azeotropes" (
"component_1" text,
"b_p_comp_1_c" text,
"component_2" text,
"b_p_comp_2_c" text,
"b_p_azeo_c" text,
"pct_wt_comp_1" real,
"pct_wt_comp_2" real
);
Question: Tell me the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "election_results" (
"year_of_election" real,
"candidates_elected" real,
"num_of_seats_available" real,
"num_of_votes" text,
"pct_of_popular_vote" text
);
Question: What is the percentage of the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_by_country" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Name the gold for silver of 39
<|assistant|>
SELECT "gold" FROM "medals_b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1973_engines" (
"engine" text,
"horsepower" text,
"torque" text,
"carburetor" text,
"compression_ratio" text,
"bore_stroke" text,
"vin_code" text
);
Question: What is the compression ratio ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_rushing_statistics_at_ohio_state" (
"year" text,
"games" real,
"rushes" real,
"yards" real,
"average" real
);
Question: How many games had 41 rushes and were than 197 yards?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_rushing_statistics_at_ohio_state" (
"year" text,
"games" real,
"rushes" real,
"yards" real,
"average" real
);
Question: What was the highest number of yards in years where there were few... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_three" (
"pick_num" real,
"mls_team" text,
"player" text,
"position" text,
"affiliation" text
);
Question: What is the pick # for Dimelon Westfield?
<|assistant|>
SELECT MIN("pick_num") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"date" text,
"opponent" text,
"location" text,
"result" text,
"overall" text,
"conf" text
);
Question: What was the final score of the November 8, 2001 game?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "headstamps_and_colour_coding" (
"headstamp_id" text,
"primer_annulus_color" text,
"bullet_tip_color" text,
"other_features" text,
"functional_type" text
);
Question: Tell me the bullet tip colo... |
<|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: Tell me the total number of gold for bronze more than 0 and total more than 100... |
<|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: Tell me the least silver for total less than 6 and rank of 8
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text
);
Question: Who played men's singles in 1951?
<|assistant|>
SELECT "men_s_sin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text
);
Question: Who played women's singles in 1955?
<|assistant|>
SELECT "women_s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text
);
Question: Who played Women's singles when xiong guobao played men's singles... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text
);
Question: Who played men's doubles when gao ling huang sui played women's d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text
);
Question: What year did huang nanyan yang wei play women's doubles and Men'... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text
);
Question: Who played men's doubles when men's singles were played by wong p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_of_16" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the first leg score in that match where Marseille was the first team?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparative_table_of_homo_species_view_t" (
"species" text,
"lived_when_mya" text,
"lived_where" text,
"fossil_record" text,
"discovery_publication_of_name" text
);
Question: Tell me the discov... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparative_table_of_homo_species_view_t" (
"species" text,
"lived_when_mya" text,
"lived_where" text,
"fossil_record" text,
"discovery_publication_of_name" text
);
Question: Tell me the discov... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparative_table_of_homo_species_view_t" (
"species" text,
"lived_when_mya" text,
"lived_where" text,
"fossil_record" text,
"discovery_publication_of_name" text
);
Question: Tell me the discov... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparative_table_of_homo_species_view_t" (
"species" text,
"lived_when_mya" text,
"lived_where" text,
"fossil_record" text,
"discovery_publication_of_name" text
);
Question: Tell me the fossil... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparative_table_of_homo_species_view_t" (
"species" text,
"lived_when_mya" text,
"lived_where" text,
"fossil_record" text,
"discovery_publication_of_name" text
);
Question: Tell me lived for ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_championship_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
);
Question: When was the Monza circuit?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "record_by_conference" (
"conference" text,
"num_of_bids" real,
"record" text,
"win_pct" text,
"round_of_32" text,
"elite_eight" text,
"final_four" text,
"championship_game" text
);
Questi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "record_by_conference" (
"conference" text,
"num_of_bids" real,
"record" text,
"win_pct" text,
"round_of_32" text,
"elite_eight" text,
"final_four" text,
"championship_game" text
);
Questi... |
<|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" text
);
Question: Tell me the opponent for attendance of 55,527
<|assistant|>
SELECT "opponent" FROM "schedule... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.