text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "governors_of_missouri" (
"governor" text,
"took_office" text,
"left_office" text,
"party" text,
"lieutenant_governor" text,
"terms" text
);
Question: How many terms did the governor that left... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "governors_of_missouri" (
"governor" text,
"took_office" text,
"left_office" text,
"party" text,
"lieutenant_governor" text,
"terms" text
);
Question: On what date did the Democratic governor ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "governors_of_missouri" (
"governor" text,
"took_office" text,
"left_office" text,
"party" text,
"lieutenant_governor" text,
"terms" text
);
Question: Which governor had William Henry Ashley a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"county" text
);
Question: Which IHSAA Class has a School of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"county" text
);
Question: Which County has a School of bloom... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"county" text
);
Question: How much Enrollment has a School o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"county" text
);
Question: Which IHSAA Class has a Mascot of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"1986" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"1986" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"1986" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"1986" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"1986" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"1986" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" real,
"fa_cup_goals" real,
"league_cup_apps" real,
"league_cup_goals" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" real,
"fa_cup_goals" real,
"league_cup_apps" real,
"league_cup_goals" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" real,
"fa_cup_goals" real,
"league_cup_apps" real,
"league_cup_goals" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
Question: Where was the September 3 game?
<|assistant|>
SELECT "location" FROM "re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
Question: Which game was on September 12?
<|assistant|>
SELECT "game" FROM "regula... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"matches" real,
"average" real
);
Question: What is cork's rank?
<|assistant|>
SELECT "rank" FROM "season" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"matches" real,
"average" real
);
Question: How many totals does cork have whose rank is larger than 2?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"matches" real,
"average" real
);
Question: Which Matches have a Tally of 1-38?
<|assistant|>
SELECT "matche... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many silver medals did spain have when they had more than 0 bronze medals ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What was the highest number of gold medals when there were 0 silver medals?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_1" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What's Brazil's rank when it has notes of R?
<|assistant|>
SELECT COUNT("rank") FROM "heat_1" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rank_by_time_in_office" (
"rank" real,
"premier" text,
"party" text,
"assumed_office" text,
"left_office" text,
"total_time_in_office" text
);
Question: What rank was the premier Sir John See... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"date" text,
"title" text,
"peak_position" real,
"weeks" text,
"sales" real
);
Question: Which Peak Position has a Date of 10 june 1998?
<|assistant|>
SELECT "peak_position" FROM "si... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_in_paraguayan_football" (
"date" text,
"venue" text,
"score" text,
"comp" text,
"report" text
);
Question: What Report is on June 3, 2000?
<|assistant|>
SELECT "report" FROM "2000_in_parag... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_in_paraguayan_football" (
"date" text,
"venue" text,
"score" text,
"comp" text,
"report" text
);
Question: What is the Report on November 15, 2000?
<|assistant|>
SELECT "report" FROM "2000... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_in_paraguayan_football" (
"date" text,
"venue" text,
"score" text,
"comp" text,
"report" text
);
Question: What is the Score on October 7, 2000?
<|assistant|>
SELECT "score" FROM "2000_in_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "records" (
"world_record" text,
"snatch" text,
"yang_lian_chn" text,
"98kg" text,
"santo_domingo_dominican" text
);
Question: What is the figure for Santo Domingo, Dominican for the world recor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "records" (
"world_record" text,
"snatch" text,
"yang_lian_chn" text,
"98kg" text,
"santo_domingo_dominican" text
);
Question: What is the 98kg for Santo Domingo, Domincan on 1 October 2006?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"municipality" text,
"fips_code" real,
"founded" real,
"population_2010" real,
"area" text
);
Question: What is the FIPS code for the municipality that has an area of 114.76 sq ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"municipality" text,
"fips_code" real,
"founded" real,
"population_2010" real,
"area" text
);
Question: What is the FIPS code for the municipality that has an area of 58.60 sq m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"municipality" text,
"fips_code" real,
"founded" real,
"population_2010" real,
"area" text
);
Question: In what year was Yauco, which had over 42,043 people in 2010, founded?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: Which Result has an Attendance larger than 38,354, and a Date of october 23, 1988?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What is the attendance for a week smaller than 9 with a result of L 38-20?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"enrollment_08_09" real,
"ihsaa_class" text,
"county" text,
"year_joined" real,
"previous_conference" text
);
Question: Can yo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"enrollment_08_09" real,
"ihsaa_class" text,
"county" text,
"year_joined" real,
"previous_conference" text
);
Question: Can yo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_raiding_history" (
"date" text,
"ship_name" text,
"flag" text,
"tonnage_grt" real,
"fate" text,
"deaths" real
);
Question: How many Deaths have a Fate of damaged, and a Tonnage (GR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_raiding_history" (
"date" text,
"ship_name" text,
"flag" text,
"tonnage_grt" real,
"fate" text,
"deaths" real
);
Question: Which Tonnage has a Fate of sunk, and Deaths smaller than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_raiding_history" (
"date" text,
"ship_name" text,
"flag" text,
"tonnage_grt" real,
"fate" text,
"deaths" real
);
Question: How much tonnage has a Fate of sunk, and a Flag of great ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_raiding_history" (
"date" text,
"ship_name" text,
"flag" text,
"tonnage_grt" real,
"fate" text,
"deaths" real
);
Question: Which tonnage has a Date of 26 september 1940, and a Ship... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"athlete" text,
"country" text,
"time" text
);
Question: What is the highest lane for Brazil, ranked less than 8?
<|assistant|>
SELECT MAX("lane") FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_of_hiroo_district_july_2008" (
"district" text,
"number_of_households" real,
"total_population" real,
"male" real,
"female" real
);
Question: What is the total population with less t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_of_hiroo_district_july_2008" (
"district" text,
"number_of_households" real,
"total_population" real,
"male" real,
"female" real
);
Question: What is the lowest female number of the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_of_hiroo_district_july_2008" (
"district" text,
"number_of_households" real,
"total_population" real,
"male" real,
"female" real
);
Question: What is the highest number of males wher... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_of_hiroo_district_july_2008" (
"district" text,
"number_of_households" real,
"total_population" real,
"male" real,
"female" real
);
Question: What is the total number of females wher... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_6_3_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What was the outcome when the partner was Iryna ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_6_3_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What tournament had a Score of 6–3, 2–6, [10–8]?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_6_3_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Who was the partner when the surface was clay, a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_4" (
"rank" real,
"athletes" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the rank of Manuel Cortina Martínez?
<|assistant|>
SELECT "rank" FROM "heat_4" WHERE "athl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_4" (
"rank" real,
"athletes" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the rank if the person with a time of 1:40.626?
<|assistant|>
SELECT SUM("rank") FROM "hea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_4" (
"rank" real,
"athletes" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the rank of the person with a time of 1:44.757?
<|assistant|>
SELECT MAX("rank") FROM "hea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_4" (
"rank" real,
"athletes" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the rank of Israel?
<|assistant|>
SELECT MAX("rank") FROM "heat_4" WHERE "country"='israel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_4" (
"rank" real,
"athletes" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the name of the athlete from Myanmar?
<|assistant|>
SELECT "athletes" FROM "heat_4" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heat_4" (
"rank" real,
"athletes" text,
"country" text,
"time" text,
"notes" text
);
Question: What are the notes for the person ranked larger than 2, and a time of 1:48.179?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_results_2005" (
"party" text,
"burnley" real,
"chorley" real,
"fylde" real,
"hyndburn" real,
"lancaster" real,
"pendle" real,
"preston" real,
"ribble_valley" real,
"rossenda... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_results_2005" (
"party" text,
"burnley" real,
"chorley" real,
"fylde" real,
"hyndburn" real,
"lancaster" real,
"pendle" real,
"preston" real,
"ribble_valley" real,
"rossenda... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_results_2005" (
"party" text,
"burnley" real,
"chorley" real,
"fylde" real,
"hyndburn" real,
"lancaster" real,
"pendle" real,
"preston" real,
"ribble_valley" real,
"rossenda... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_results_2005" (
"party" text,
"burnley" real,
"chorley" real,
"fylde" real,
"hyndburn" real,
"lancaster" real,
"pendle" real,
"preston" real,
"ribble_valley" real,
"rossenda... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1945_63" (
"season" text,
"division" text,
"rank" text,
"avg_att" text,
"top_goalscorer" text,
"goals" real
);
Question: In what season was Schädlich the top goalscorer?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1945_63" (
"season" text,
"division" text,
"rank" text,
"avg_att" text,
"top_goalscorer" text,
"goals" real
);
Question: What is the average attendance when the rank is 5?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_2_senior_classic_race" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
Question: What is the Speed for Chris Swallow?
<|assistant|>
SELECT "speed" FROM "race_2_senio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_2_senior_classic_race" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
Question: What is the speed when the rank is larger than 2, and team is 500cc norton manx?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_2_senior_classic_race" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
Question: What is the time for Alan Oversby?
<|assistant|>
SELECT "time" FROM "race_2_senior_c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_2_senior_classic_race" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
Question: What is the Speed when the rank is smaller than 3, and time is 1:06.19.90?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_2_senior_classic_race" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
Question: What is the team when the time is 1:11.19.89?
<|assistant|>
SELECT "team" FROM "race... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "germany" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
Question: Which actor plays the character Helga Beimer?
<|assistant|>
SELECT "actor" FROM "germany... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "germany" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
Question: How long did the soap opera run in which Nadine Spruß acted in?
<|assistant|>
SELECT "ch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "germany" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
Question: How many years did the soap opera run in which the character Clemens Richter was include... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "germany" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
);
Question: What years did Marienhof run, which featured Leonore Capell and lasted 10 years?
<|assis... |
<|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: Who was the opponent in week 6?
<|assistant|>
SELECT "opponent" 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" text
);
Question: What's the result when the Carolina Panthers were the opponent?
<|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" text
);
Question: What date had a result of W 41-0?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "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" text
);
Question: What's the attendance when the week was more than 16?
<|assistant|>
SELECT "attendance" FROM... |
<|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,
"event" text
);
Question: What was the year of the World Half Marathon Championships with a result of 3rd?
<|assista... |
<|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,
"event" text
);
Question: What was the result of the tournament in 2001?
<|assistant|>
SELECT "result" FROM "achieve... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "modern_competition" (
"driver" text,
"navigator" text,
"vehicle" text,
"class" text,
"capacity" real,
"total_time" text,
"margin" text
);
Question: What is the average capacity for the vehi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "modern_competition" (
"driver" text,
"navigator" text,
"vehicle" text,
"class" text,
"capacity" real,
"total_time" text,
"margin" text
);
Question: Which vehicle had a class of CM14?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "modern_competition" (
"driver" text,
"navigator" text,
"vehicle" text,
"class" text,
"capacity" real,
"total_time" text,
"margin" text
);
Question: Who was the driver of the vehicle having ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "modern_competition" (
"driver" text,
"navigator" text,
"vehicle" text,
"class" text,
"capacity" real,
"total_time" text,
"margin" text
);
Question: What is the total time of the vehicle hav... |
<|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: What is the bronze with more than 2 gold and less than 14 total and 4 silver?
<... |
<|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: How many silvers are there with a total of 11?
<|assistant|>
SELECT SUM("silver... |
<|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: How many silvers are there with more than 2 golds in Germany?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinals" (
"heat" real,
"name" text,
"nationality" text,
"reaction" real,
"result" text
);
Question: What is the average reaction for brigitte foster-hylton after heat 1?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fixtures" (
"round" real,
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" real,
"stadium" text
);
Question: What round did the home team Pohang Steelers play?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fixtures" (
"round" real,
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" real,
"stadium" text
);
Question: What is the latest round for Pohang Steelers as the a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "remixes" (
"year" real,
"artist" text,
"song" text,
"album" text,
"remix" text
);
Question: what is the album when the remix is dead guys remix and the year is after 2003?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "remixes" (
"year" real,
"artist" text,
"song" text,
"album" text,
"remix" text
);
Question: what is the album with the song "party like ur 18" feat. sway?
<|assistant|>
SELECT "album" FROM "rem... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
Question: What is Joselito Escobar's Pick number?
<|assistant|>
SELECT SUM("pick") FROM "roun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
Question: What is the Pick 3 Player from East College?
<|assistant|>
SELECT "player" FROM "ro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
Question: What is Ateneo de Manila's PBA Team?
<|assistant|>
SELECT "pba_team" FROM "round_1"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
Question: What is the College of the Player from PBA Team Alaska Milkmen with a Pick number o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
Question: What is the College of the Player from San Miguel Beermen PBA Team?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_chart" (
"project" text,
"license" text,
"date" text,
"protocol" text,
"technology" text,
"server" text,
"client" text,
"web_client" text,
"multiple_sessions" text,
"encrypt... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_chart" (
"project" text,
"license" text,
"date" text,
"protocol" text,
"technology" text,
"server" text,
"client" text,
"web_client" text,
"multiple_sessions" text,
"encrypt... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_chart" (
"project" text,
"license" text,
"date" text,
"protocol" text,
"technology" text,
"server" text,
"client" text,
"web_client" text,
"multiple_sessions" text,
"encrypt... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_chart" (
"project" text,
"license" text,
"date" text,
"protocol" text,
"technology" text,
"server" text,
"client" text,
"web_client" text,
"multiple_sessions" text,
"encrypt... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_chart" (
"project" text,
"license" text,
"date" text,
"protocol" text,
"technology" text,
"server" text,
"client" text,
"web_client" text,
"multiple_sessions" text,
"encrypt... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "45_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"turbo" text,
"cores" text,
"l2_cache" text,
"l3_cache" text,
"i_o_bus" text,
"mult" text,
"memory" text,
"volta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.