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?
<|assistant|>
SELECT "player" FROM "r" WHERE "nationality"='united states' AND "years_in_toronto"='2003-06';<|endoftext|> |
<|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 "japan" WHERE "publisher"='square enix';<|endoftext|> |
<|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|>
SELECT "date" FROM "doubles_wins_30" WHERE "partnering"='nicolas pereira';<|endoftext|> |
<|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"=1986;<|endoftext|> |
<|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") FROM "achievements" WHERE "venue"='ponce, puerto rico';<|endoftext|> |
<|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 "achievements" WHERE "event"='junior race' AND "position"='8th';<|endoftext|> |
<|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|>
SELECT "nhl_team" FROM "round_two" WHERE "player"='ryan johnson';<|endoftext|> |
<|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|>
SELECT "position" FROM "round_two" WHERE "pick"='47';<|endoftext|> |
<|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
<|assistant|>
SELECT "pick" FROM "round_two" WHERE "nhl_team"='pittsburgh penguins';<|endoftext|> |
<|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
<|assistant|>
SELECT "nationality" FROM "round_two" WHERE "player"='rudolf vercik';<|endoftext|> |
<|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 pick of 43
<|assistant|>
SELECT "player" FROM "round_two" WHERE "nationality"='canada' AND "pick"='43';<|endoftext|> |
<|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|>
SELECT "college_junior_club_team" FROM "round_two" WHERE "player"='jason holland';<|endoftext|> |
<|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 for avusrennen
<|assistant|>
SELECT "date" FROM "non_championship_grands_prix" WHERE "winning_driver"='rudolf caracciola' AND "name"='avusrennen';<|endoftext|> |
<|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 targa florio
<|assistant|>
SELECT "circuit" FROM "non_championship_grands_prix" WHERE "date"='10 may' AND "name"='targa florio';<|endoftext|> |
<|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|>
SELECT "score" FROM "singles_36_14_22" WHERE "tournament"='washington';<|endoftext|> |
<|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 "date" FROM "singles_36_14_22" WHERE "opponent"='patty fendick';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What score does Vasil Levski National Stadium, Sofia earn?
<|assistant|>
SELECT "score" FROM "international_goals" WHERE "venue"='vasil levski national stadium, sofia';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What score did vasil levski national stadium, sofia, which was friendly during competition, earn?
<|assistant|>
SELECT "score" FROM "international_goals" WHERE "competition"='friendly' AND "venue"='vasil levski national stadium, sofia';<|endoftext|> |
<|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 Capitals?
<|assistant|>
SELECT "nationality" FROM "round_seven" WHERE "nhl_team"='washington capitals';<|endoftext|> |
<|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?
<|assistant|>
SELECT "nhl_team" FROM "round_seven" WHERE "player"='roman vopat';<|endoftext|> |
<|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 Ukraine?
<|assistant|>
SELECT "position" FROM "round_seven" WHERE "nationality"='ukraine';<|endoftext|> |
<|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" WHERE "result"='12th';<|endoftext|> |
<|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" WHERE "result"='12th';<|endoftext|> |
<|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 race
<|assistant|>
SELECT "circuit" FROM "other_grands_prix" WHERE "winning_constructor"='alfa romeo' AND "name"='swedish ice race';<|endoftext|> |
<|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 czaykowski
<|assistant|>
SELECT "date" FROM "other_grands_prix" WHERE "winning_constructor"='bugatti' AND "winning_driver"='stanislas czaykowski';<|endoftext|> |
<|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|>
SELECT "circuit" FROM "other_grands_prix" WHERE "date"='20 august';<|endoftext|> |
<|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
<|assistant|>
SELECT "winning_driver" FROM "other_grands_prix" WHERE "name"='avusrennen';<|endoftext|> |
<|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
<|assistant|>
SELECT "report" FROM "other_grands_prix" WHERE "winning_constructor"='bugatti' AND "circuit"='brooklands';<|endoftext|> |
<|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|>
SELECT COUNT("year") FROM "1980_1989" WHERE "location"='helsinki';<|endoftext|> |
<|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 "competition" FROM "1980_1989" WHERE "year"<1982 AND "score"='2:3';<|endoftext|> |
<|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?
<|assistant|>
SELECT "competition" FROM "1980_1989" WHERE "year">1980 AND "score"='0:5' AND "location"='jerusalem';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: When was there an attendance of 51,342?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "attendance"='51,342';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What was the attendance during week 7?
<|assistant|>
SELECT "attendance" FROM "schedule" WHERE "week"=7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What was the score during week 16?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "week"=16;<|endoftext|> |
<|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 during 1960?
<|assistant|>
SELECT "minister" FROM "list_of_ghanaian_foreign_ministers" WHERE "left_office"='1960';<|endoftext|> |
<|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?
<|assistant|>
SELECT "government" FROM "list_of_ghanaian_foreign_ministers" WHERE "number"=6;<|endoftext|> |
<|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.57mph?
<|assistant|>
SELECT "rider" FROM "1970_isle_of_man_lightweight_tt_250cc_fi" WHERE "speed"='90.57mph';<|endoftext|> |
<|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 smaller than 8 and points smaller than 5?
<|assistant|>
SELECT "country" FROM "1970_isle_of_man_lightweight_tt_250cc_fi" WHERE "place"<8 AND "points"<5;<|endoftext|> |
<|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 number of Tie is 2, and the Place is 5?
<|assistant|>
SELECT MIN("losses") FROM "group_b" WHERE "wins"<4 AND "ties"=2 AND "place"=5;<|endoftext|> |
<|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 me the post-season record for kansas city
<|assistant|>
SELECT "post_season_record_e" FROM "season_by_season_results" WHERE "mlb_affiliate"='kansas city';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Tell me the venue of 29 april 2007
<|assistant|>
SELECT "venue" FROM "international_goals" WHERE "date"='29 april 2007';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Tell me the competition of 20 august 2008
<|assistant|>
SELECT "competition" FROM "international_goals" WHERE "date"='20 august 2008';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Tell me the date of stade des martyrs, dr congo
<|assistant|>
SELECT "date" FROM "international_goals" WHERE "venue"='stade des martyrs, dr congo';<|endoftext|> |
<|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 "amount_millions" FROM "finance" WHERE "payee"='infotalent';<|endoftext|> |
<|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 "finance" WHERE "payee"='euromarine';<|endoftext|> |
<|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?
<|assistant|>
SELECT "signatories" FROM "finance" WHERE "purpose"='police security' AND "payee"='infotalent';<|endoftext|> |
<|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|>
SELECT MAX("launched") FROM "oil_refining_and_petrochemical_facilitie" WHERE "name"='trn';<|endoftext|> |
<|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 of 15,0
<|assistant|>
SELECT AVG("launched") FROM "oil_refining_and_petrochemical_facilitie" WHERE "capacity_mln_tpa"='15,0';<|endoftext|> |
<|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"='red rock';<|endoftext|> |
<|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" WHERE "location"='260km ese of calgary';<|endoftext|> |
<|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 "period"='1941-1946';<|endoftext|> |
<|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" FROM "nobel_laureate_alumni" WHERE "degree_year"='1983';<|endoftext|> |
<|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 "nobel_laureate_alumni" WHERE "award_year"=1965 AND "award"='chemistry';<|endoftext|> |
<|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 grey and bell?
<|assistant|>
SELECT "mp_s_term" FROM "initial_composition_of_the_2nd_parliamen" WHERE "electorate"='grey and bell';<|endoftext|> |
<|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 richmond category:articles with hcards?
<|assistant|>
SELECT "election_date" FROM "initial_composition_of_the_2nd_parliamen" WHERE "member"='william richmond category:articles with hcards';<|endoftext|> |
<|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 with hcards's term?
<|assistant|>
SELECT "mp_s_term" FROM "initial_composition_of_the_2nd_parliamen" WHERE "member"='alfred east category:articles with hcards';<|endoftext|> |
<|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 auckland category:articles with hcards?
<|assistant|>
SELECT "election_date" FROM "initial_composition_of_the_2nd_parliamen" WHERE "electorate"='city of auckland category:articles with hcards';<|endoftext|> |
<|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 category:articles with hcards represent?
<|assistant|>
SELECT "electorate" FROM "initial_composition_of_the_2nd_parliamen" WHERE "member"='dingley brittin category:articles with hcards';<|endoftext|> |
<|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 of member charles brown category:articles with hcards?
<|assistant|>
SELECT "election_date" FROM "initial_composition_of_the_2nd_parliamen" WHERE "member"='charles brown category:articles with hcards';<|endoftext|> |
<|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
<|assistant|>
SELECT "date" FROM "1980s" WHERE "acts"='6 bands' AND "year">1981 AND "event"='monsters of rock';<|endoftext|> |
<|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;<|endoftext|> |
<|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 bands';<|endoftext|> |
<|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,
"dialecting" text,
"web_standard" text,
"transformations" text,
"lightweight" text,
"human_readable" text
);
Question: What is the lightweight value with no information model and the flexible value is unknown?
<|assistant|>
SELECT "lightweight" FROM "popular_languages_used_for_data_exchange" WHERE "information_model"='no' AND "flexible"='unknown';<|endoftext|> |
<|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_s_dance" FROM "solo" WHERE "year"=1986 AND "u_s_r_b"='9';<|endoftext|> |
<|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?
<|assistant|>
SELECT "bore" FROM "salmson_post_world_war_one_engines" WHERE "cyl"='9-cyl radial' AND "name"='9 ad';<|endoftext|> |
<|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" FROM "salmson_post_world_war_one_engines" WHERE "name"='18 ab';<|endoftext|> |
<|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 "venue" FROM "major_achievements" WHERE "notes"='10.93 secs';<|endoftext|> |
<|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 "venue" FROM "major_achievements" WHERE "year"<2003;<|endoftext|> |
<|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?
<|assistant|>
SELECT SUM("points") FROM "complete_formula_one_results" WHERE "team_chassis"='alfa romeo 184t';<|endoftext|> |
<|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 "complete_formula_one_results" WHERE "year">1984;<|endoftext|> |
<|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" FROM "complete_formula_one_results" WHERE "points">0;<|endoftext|> |
<|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 "complete_formula_one_results" WHERE "year">1984;<|endoftext|> |
<|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 bp comp 2 for % wt comp 1 of 76
<|assistant|>
SELECT "b_p_comp_2_c" FROM "binary_azeotropes" WHERE "pct_wt_comp_1"=76;<|endoftext|> |
<|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 total number of % wt comp 1 foR % wt comp 2 or 27
<|assistant|>
SELECT COUNT("pct_wt_comp_1") FROM "binary_azeotropes" WHERE "pct_wt_comp_2"=27;<|endoftext|> |
<|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 popular vote when there were 90 seats available?
<|assistant|>
SELECT "pct_of_popular_vote" FROM "election_results" WHERE "num_of_seats_available"=90;<|endoftext|> |
<|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_by_country" WHERE "silver"=39;<|endoftext|> |
<|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 for the 302-2v Windsor v8 engine?
<|assistant|>
SELECT "compression_ratio" FROM "1973_engines" WHERE "engine"='302-2v windsor v8';<|endoftext|> |
<|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|>
SELECT COUNT("games") FROM "career_rushing_statistics_at_ohio_state" WHERE "rushes"=41 AND "yards"<197;<|endoftext|> |
<|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 fewer than 51 rushes and more than 12 games?
<|assistant|>
SELECT MAX("yards") FROM "career_rushing_statistics_at_ohio_state" WHERE "rushes"<51 AND "games">12;<|endoftext|> |
<|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") FROM "round_three" WHERE "player"='dimelon westfield';<|endoftext|> |
<|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?
<|assistant|>
SELECT "result" FROM "schedule_and_results" WHERE "date"='november 8, 2001';<|endoftext|> |
<|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 color of headstamp id of h1z
<|assistant|>
SELECT "bullet_tip_color" FROM "headstamps_and_colour_coding" WHERE "headstamp_id"='h1z';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Tell me the total number of gold for bronze more than 0 and total more than 100
<|assistant|>
SELECT COUNT("gold") FROM "medal_table" WHERE "bronze">0 AND "rank"='total' AND "total">100;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Tell me the least silver for total less than 6 and rank of 8
<|assistant|>
SELECT MIN("silver") FROM "medal_table" WHERE "total"<6 AND "rank"='8';<|endoftext|> |
<|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_singles" FROM "winners" WHERE "year"='1951';<|endoftext|> |
<|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_singles" FROM "winners" WHERE "year"='1955';<|endoftext|> |
<|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, and tian bingyi li yongbo played Men's doubles?
<|assistant|>
SELECT "women_s_singles" FROM "winners" WHERE "men_s_singles"='xiong guobao' AND "men_s_doubles"='tian bingyi li yongbo';<|endoftext|> |
<|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 doubles in 2007?
<|assistant|>
SELECT "men_s_doubles" FROM "winners" WHERE "women_s_doubles"='gao ling huang sui' AND "year"='2007';<|endoftext|> |
<|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's doubles was played by lee dong-soo yoo yong-sung?
<|assistant|>
SELECT "year" FROM "winners" WHERE "women_s_doubles"='huang nanyan yang wei' AND "men_s_doubles"='lee dong-soo yoo yong-sung';<|endoftext|> |
<|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 peng soon and Women's singles was played by cecilia samuel, in 1952?
<|assistant|>
SELECT "men_s_doubles" FROM "winners" WHERE "men_s_singles"='wong peng soon' AND "women_s_singles"='cecilia samuel' AND "year"='1952';<|endoftext|> |
<|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|>
SELECT "1st_leg" FROM "round_of_16" WHERE "team_1"='marseille';<|endoftext|> |
<|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 discovery/publication for still living
<|assistant|>
SELECT "discovery_publication_of_name" FROM "comparative_table_of_homo_species_view_t" WHERE "fossil_record"='still living';<|endoftext|> |
<|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 discovery/publication for red deer cave people
<|assistant|>
SELECT "discovery_publication_of_name" FROM "comparative_table_of_homo_species_view_t" WHERE "species"='red deer cave people';<|endoftext|> |
<|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 discovery/publicatio of name for h.heidelbergensis
<|assistant|>
SELECT "discovery_publication_of_name" FROM "comparative_table_of_homo_species_view_t" WHERE "species"='h.heidelbergensis';<|endoftext|> |
<|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 record for name of 1994/2003
<|assistant|>
SELECT "fossil_record" FROM "comparative_table_of_homo_species_view_t" WHERE "discovery_publication_of_name"='1994/2003';<|endoftext|> |
<|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 name of 1994/2003
<|assistant|>
SELECT "lived_when_mya" FROM "comparative_table_of_homo_species_view_t" WHERE "discovery_publication_of_name"='1994/2003';<|endoftext|> |
<|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?
<|assistant|>
SELECT "date" FROM "european_championship_grands_prix" WHERE "circuit"='monza';<|endoftext|> |
<|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
);
Question: What is Metro's win percentage?
<|assistant|>
SELECT "win_pct" FROM "record_by_conference" WHERE "conference"='metro';<|endoftext|> |
<|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
);
Question: How many elite eight teams came from the Atlantic 10?
<|assistant|>
SELECT "elite_eight" FROM "record_by_conference" WHERE "conference"='atlantic 10';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: Tell me the opponent for attendance of 55,527
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "attendance"='55,527';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.