text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "critical_temperature_t_c_crystal_structu" (
"formula" text,
"notation" text,
"t_c_k" real,
"no_of_cu_o_planes_in_unit_cell" real,
"crystal_structure" text
);
Question: Which crystal structures ... |
<|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: Name the gold with total larger than 33
<|assistant|>
SELECT "gold" FROM "medal... |
<|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: Name the fewest gold for tanzania with bronze less than 0
<|assistant|>
SELECT ... |
<|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: Who is the opponent for week 10?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "week... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: For countries that won more than 32 gold medals, what was the highest number of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australasian_championships" (
"year" real,
"host" text,
"winners" text,
"runners_up" text,
"third_place" text,
"fourth_place" text
);
Question: Tell me fourth place for year of 2010
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
Question: Tell me the result for 2010 fifa world cup qualification
<|assistant|>
SELECT "resu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
Question: Tell me the date for 2010 fifa world cup qualification
<|assistant|>
SELECT "date" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_8_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Tell me the surface for november 28, 2010
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_8_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Tell me the tournament with a hard surface for 6–1, 6–2
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_8_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Tell me the date for 6–3, 6–2
<|assistant|>
SELECT "date... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_8_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Tell me the date for johanna konta
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1970_isle_of_man_production_500_cc_tt_fi" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
Question: What is the time value for the rider Brian Finch and a rank greater th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prizes_and_awards" (
"year" real,
"director" text,
"project" text,
"category" text,
"result" text
);
Question: What result does the project Once Upon A Time In The West, directed by Sergio Leon... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prizes_and_awards" (
"year" real,
"director" text,
"project" text,
"category" text,
"result" text
);
Question: What year was Bulworth nominated?
<|assistant|>
SELECT "year" FROM "prizes_and_awa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prizes_and_awards" (
"year" real,
"director" text,
"project" text,
"category" text,
"result" text
);
Question: What is the average Year for the project The Untouchables?
<|assistant|>
SELECT AV... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_to_season" (
"season" text,
"level" text,
"division" text,
"section" text,
"position" text
);
Question: Tell me the section for position of 8th and season of 2003
<|assistant|>
SELECT "s... |
<|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 is the date of week 17?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "week"=17;<|e... |
<|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 latest week that the Tampa Bay Buccaneers were an opponent?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "points" (
"points" real,
"name" text,
"club" text,
"tries" real,
"drop" real
);
Question: Name the fewest tries for leicester tigers with points less than 207
<|assistant|>
SELECT MIN("tries") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_07_york_city_f_c_season" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: Name the date of st albans city for result of drew 0-0
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_07_york_city_f_c_season" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: Name the venue for 15 august 2006
<|assistant|>
SELECT "venue" FROM "20... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_07_york_city_f_c_season" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: Name the most attendance for tamworth with home venue
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_07_york_city_f_c_season" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: Name the least attendance for 10 october 2006
<|assistant|>
SELECT MIN(... |
<|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: I want the average bronze for total of 19 and silver of 8 with rank of 31
<|ass... |
<|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 average bronze for rank of 43 and total less than 11
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "affiliates" (
"calls" text,
"frequency" text,
"branding" text,
"format" text,
"timeslot" text,
"group_owner" text
);
Question: Say the frequency of 1290 khz
<|assistant|>
SELECT "format" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "affiliates" (
"calls" text,
"frequency" text,
"branding" text,
"format" text,
"timeslot" text,
"group_owner" text
);
Question: Tell me the timeslot of calls of wrko
<|assistant|>
SELECT "time... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "affiliates" (
"calls" text,
"frequency" text,
"branding" text,
"format" text,
"timeslot" text,
"group_owner" text
);
Question: Tell me the format for calls of wrko
<|assistant|>
SELECT "forma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "affiliates" (
"calls" text,
"frequency" text,
"branding" text,
"format" text,
"timeslot" text,
"group_owner" text
);
Question: Tell me the calls for frequency of 1290 khz
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "affiliates" (
"calls" text,
"frequency" text,
"branding" text,
"format" text,
"timeslot" text,
"group_owner" text
);
Question: Tell me the branding for frequency of 680 khz
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "affiliates" (
"calls" text,
"frequency" text,
"branding" text,
"format" text,
"timeslot" text,
"group_owner" text
);
Question: Tell me the timeslot for calls of whyn
<|assistant|>
SELECT "tim... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat_rank" real,
"lane" real,
"swimmer" text,
"country" text,
"time" real,
"overall_rank" text
);
Question: For how long did Bolivia have a lane greater than 6?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat_rank" real,
"lane" real,
"swimmer" text,
"country" text,
"time" real,
"overall_rank" text
);
Question: In heat rank 7, what is the sum of lanes?
<|assistant|>
SELECT SUM("lane"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat_rank" real,
"lane" real,
"swimmer" text,
"country" text,
"time" real,
"overall_rank" text
);
Question: Which country is ranked 56 overall and has a heat rank smaller than 8?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat_rank" real,
"lane" real,
"swimmer" text,
"country" text,
"time" real,
"overall_rank" text
);
Question: What is the greatest lane with an overall rank of 79 and a time larger th... |
<|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,
"venue" text,
"attendance" real
);
Question: Tell me the highest week for metropolitan stadium for attendance more than 4... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "coaches" (
"manager" text,
"period" text,
"played" real,
"drawn" real,
"lost" real,
"win_pct" text
);
Question: Name the sum of played for serik berdalin and drawn more than 4
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"party" text,
"pr_seats" real,
"district_seats" real,
"total_elected_2001" text,
"total_seats" real
);
Question: Who had the highest total PR seats of 48 with a District seat larger ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "since_1945" (
"candidate" text,
"party" text,
"constituency" text,
"year" text,
"days" text
);
Question: In 1955 which party did Thomas Mitchell belong to?
<|assistant|>
SELECT "party" FROM "si... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "since_1945" (
"candidate" text,
"party" text,
"constituency" text,
"year" text,
"days" text
);
Question: What are the number of days did the ulster unionist Party have the constituate fermanagh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "since_1945" (
"candidate" text,
"party" text,
"constituency" text,
"year" text,
"days" text
);
Question: What are the number of days in 1945 where the constituent was heywood and radcliffe?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "since_1945" (
"candidate" text,
"party" text,
"constituency" text,
"year" text,
"days" text
);
Question: What year was Hazel Grove the constituent for the liberal party?
<|assistant|>
SELECT "y... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: Tell me the average Laps for grid larger than 12 and bikes of ducati 999rs for d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: Tell me the highest Laps for grid less than 22 and riderS of ruben xaus
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: Tell me the total number of grid for rider of james toseland
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: Tell me the least Laps for grid larger than 2 with 35:26.734
<|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" text
);
Question: Tell me the date with week of 13
<|assistant|>
SELECT "date" FROM "schedule" WHERE "week"=13... |
<|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 average week for attendance of 48,113
<|assistant|>
SELECT AVG("week") FROM "sch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "albums" (
"year" real,
"album" text,
"song" text,
"label" text,
"catalognum" text,
"format" text,
"country" text
);
Question: Which Album had a year less than 2005 with a Label by Ministry ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "albums" (
"year" real,
"album" text,
"song" text,
"label" text,
"catalognum" text,
"format" text,
"country" text
);
Question: Which Album had a bigger year than 2005 and whose country was A... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "albums" (
"year" real,
"album" text,
"song" text,
"label" text,
"catalognum" text,
"format" text,
"country" text
);
Question: Which song had Central Station as a label and whose album was V... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in_a_match" (
"sixes" text,
"player" text,
"opponent" text,
"venue" text,
"date" text
);
Question: Where did Zimbabwe play?
<|assistant|>
SELECT "venue" FROM "in_a_match" WHERE "opponent"='zimb... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in_a_match" (
"sixes" text,
"player" text,
"opponent" text,
"venue" text,
"date" text
);
Question: What is the date when Canada played?
<|assistant|>
SELECT "date" FROM "in_a_match" WHERE "oppo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Tell me the lowest silver for rank of 9 and bronze less than 2
<|assistant|>
SE... |
<|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: Name the report for raymond sommer
<|as... |
<|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: Name the winning driver for monaco gran... |
<|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: Name the circuit for marcel lehoux
<|as... |
<|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: Name the report for per-viktor widengre... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1925_1929" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
);
Question: Tell me the date for warsaw 1929
<|assistant|>
SELECT "date" FROM "1925_19... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1925_1929" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
);
Question: Tell me the result for warsaw 1929
<|assistant|>
SELECT "result" FROM "192... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1925_1929" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
);
Question: Tell me the result for harrogate
<|assistant|>
SELECT "result" FROM "1925_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "honorifics" (
"stem_meaning" text,
"2nd_person_sg" text,
"2nd_person_sg_honorific" text,
"3rd_person_sg" text,
"3rd_person_sg_honorific" text
);
Question: Tell me the Stem Meaning of ical
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "honorifics" (
"stem_meaning" text,
"2nd_person_sg" text,
"2nd_person_sg_honorific" text,
"3rd_person_sg" text,
"3rd_person_sg_honorific" text
);
Question: Tell me the 3rd person sg for tiecal, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat_rank" real,
"lane" real,
"swimmer" text,
"country" text,
"time" real,
"overall_rank" text
);
Question: Tell me the overall rank for roland schoeman
<|assistant|>
SELECT "overal... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many Silver medals did nation who is ranked greater than 1 and has 4 Gold m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which nation has more than 6 Silver medals and fewer than 8 Gold medals?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the rank of the Nation that has fewer than 24 total medals are more tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the rank of the nation that has more than 1 Bronze medals and fewer tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many silver medals does Belarus (blr) along with 4 gold and 4 bronze?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What rank is Belarus (BLR), which earned 15 medals total?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grandes_preuves" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
);
Question: What was the name of the race on 24 September?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grandes_preuves" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
);
Question: What is the name of the race on 9 July?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grandes_preuves" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
);
Question: What was the race that was won by a Maserati being ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grandes_preuves" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
);
Question: What date was the race won by Louis Chiron?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grandes_preuves" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
);
Question: What brand of vehicle won a race driven by Tazio Nu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grandes_preuves" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
);
Question: What race was won by Tazio Nuvolari?
<|assistant|>
... |
<|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: Tell me the result for week less than 4 and september 7, 1986
<|assistant|>
SELECT "result" ... |
<|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: Tell me the result for week of 3
<|assistant|>
SELECT "result" FROM "schedule" WHERE "week"=... |
<|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: Tell me the lowest week for attedance less thaan 32,738
<|assistant|>
SELECT MIN("week") FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_served_in_by_richard_bolitho" (
"ship" text,
"guns" text,
"class" text,
"captain" text,
"rank" text,
"year" text
);
Question: Tell me the ship for lieutenant montagu verling
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_served_in_by_richard_bolitho" (
"ship" text,
"guns" text,
"class" text,
"captain" text,
"rank" text,
"year" text
);
Question: Tell me the class for admiral and hms frobisher
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_served_in_by_richard_bolitho" (
"ship" text,
"guns" text,
"class" text,
"captain" text,
"rank" text,
"year" text
);
Question: Tell me the guns for third-rate ship of the line and rank o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_served_in_by_richard_bolitho" (
"ship" text,
"guns" text,
"class" text,
"captain" text,
"rank" text,
"year" text
);
Question: Tell me the captain for 1774 and guns of 14
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_served_in_by_richard_bolitho" (
"ship" text,
"guns" text,
"class" text,
"captain" text,
"rank" text,
"year" text
);
Question: Tell me the captain for guns of 28
<|assistant|>
SELECT "ca... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "star_struck_standing" (
"week_num" real,
"finalists" text,
"status" text,
"eliminated" text,
"date" text
);
Question: Tell me the status of eliminated of anton dela paz
<|assistant|>
SELECT "st... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "star_struck_standing" (
"week_num" real,
"finalists" text,
"status" text,
"eliminated" text,
"date" text
);
Question: Tell me the finalists for week # less than 2
<|assistant|>
SELECT "finalist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "star_struck_standing" (
"week_num" real,
"finalists" text,
"status" text,
"eliminated" text,
"date" text
);
Question: Tell me the eliminated for week # larger than 4
<|assistant|>
SELECT "elimi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: At the UFC 78, what is the av... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: When there was a draw, what w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "gp2_series" (
"year" real,
"drivers" text,
"races" real,
"wins" real,
"poles" real,
"f_l" real,
"points" real,
"d_c" text,
"t_c" text
);
Question: What is the sum of points in 2010 when... |
<|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 day was the game that had an attendance of more than 46,551 people and had a week numbe... |
<|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 was the outcome of the game that had a week number of less than 2?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"rank" real,
"heat_lane" text,
"name" text,
"nationality" text,
"time" text
);
Question: What heat and what lane is thi hue pham in?
<|assistant|>
SELECT "heat_lane" FROM "heats" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"rank" real,
"heat_lane" text,
"name" text,
"nationality" text,
"time" text
);
Question: What Heat & Lane is the person who has a time of 1:01.12?
<|assistant|>
SELECT "heat_lane" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: How many laps did Fernando Alonso do?
<|assistant|>
SELECT "laps" FROM "race" WHERE "driver... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What was Jenson Button's constructor?
<|assistant|>
SELECT "constructor" FROM "race" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "supported_microcontrollers_according_to_" (
"chip" text,
"flash_size" text,
"eeprom" real,
"sram" real,
"frequency_m_hz" real,
"package" text
);
Question: Tell me the package for EEPROM less ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "supported_microcontrollers_according_to_" (
"chip" text,
"flash_size" text,
"eeprom" real,
"sram" real,
"frequency_m_hz" real,
"package" text
);
Question: Tell me the chip with frequency larg... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: I want the highest Grid for Toyota and jarno trulli
<|assistant|>
SELECT MAX("grid") FROM "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.