text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: Which tyre is on the car driven by Pedr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: Which constructor made the car with a r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
Question: Which constructor manufactured the car ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What Region is the MHCL-20004 Catalog?
<|assistant|>
SELECT "region" FROM "release_histor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What region is the ALCA-272 Catalog?
<|assistant|>
SELECT "region" FROM "release_history"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What label is the ALCA-9197 Catalog?
<|assistant|>
SELECT "label" FROM "release_history" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What date is the MHCL-20004 Catalog?
<|assistant|>
SELECT "date" FROM "release_history" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: On what date was the Ed Remaster CD and TOCT-24365 Catalog released?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2_1989" (
"episode_title" text,
"villain_s" text,
"identity_ies" text,
"reason_s" text,
"original_airdate" text,
"dvd_volume" real
);
Question: What identities have more than 5 DVD vol... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2_1989" (
"episode_title" text,
"villain_s" text,
"identity_ies" text,
"reason_s" text,
"original_airdate" text,
"dvd_volume" real
);
Question: How many DVD volumes was identified by S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What was the score when St. Louis was the visiting team?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What was the decision when Chicago was the visiting team?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What was the score on December 3 when Detroit was the home... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What was the record when Minnesota was the visiting team?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: On what date was the record with catalog ALCA-275 released?
<|assistant|>
SELECT "date" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What label released a record on March 25, 1984?
<|assistant|>
SELECT "label" FROM "releas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What label released a record on December 19, 2001?
<|assistant|>
SELECT "label" FROM "rel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is the catalog of the record released on May 27, 2009?
<|assistant|>
SELECT "catalog... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: On what date was a record from Village Records with catalog VRCL-2205 released?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: On what date was the record with catalog ALCA-275 released?
<|assistant|>
SELECT "date" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"name" text,
"position" text,
"party" text,
"took_office" real,
"up_for_reelection" real
);
Question: What was the earliest year that Yvette Alexander took office and was up ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"name" text,
"position" text,
"party" text,
"took_office" real,
"up_for_reelection" real
);
Question: What is the earliest year a Chairman who took office after 2011 is up fo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: What year had less than 36 laps?
<|assistant|>
SELECT "year" FROM "indy_500_re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: What was the most laps with a finish of 10 and qualification of 106.185?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: What is the most laps with a qualification of 106.185?
<|assistant|>
SELECT MA... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: In what year were laps less than 64 and the finish at 25?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: What was the qualification in 1932?
<|assistant|>
SELECT "qual" FROM "indy_500... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: What was the start with a rank of 3 in 1936?
<|assistant|>
SELECT "start" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Which 2nd leg came after a 1st leg of 0-3?
<|assistant|>
SELECT "2nd_leg" FROM "round_16" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: For a Team 1 of Al-Merrikh, what was the aggregate?
<|assistant|>
SELECT "agg" FROM "round_16" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Who was the Team 1 for a 2nd leg of 1-4?
<|assistant|>
SELECT "team_1" FROM "round_16" WHERE "2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: For an aggregate of 1-3, what was the 2nd leg?
<|assistant|>
SELECT "2nd_leg" FROM "round_16" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: For a team 2 of Al-Faisaly, what was the 2nd leg?
<|assistant|>
SELECT "2nd_leg" FROM "round_16... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "upper_hutt_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" text
);
Question: What years is the private school in upper hutt?
<|assistant|>
SELECT "ye... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "upper_hutt_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" text
);
Question: What school with a decile of 7 is in upper hutt?
<|assistant|>
SELECT "n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "upper_hutt_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" text
);
Question: What authority is the coed school in pinehaven?
<|assistant|>
SELECT "au... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "upper_hutt_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" text
);
Question: What years does plateau school serve?
<|assistant|>
SELECT "years" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "upper_hutt_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" text
);
Question: Is Upper valley middle school public or private?
<|assistant|>
SELECT "a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What is the record on June 13?
<|assistant|>
SELECT "record" FROM "game_log"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "orders" (
"lot_no" real,
"diagram" real,
"mark" text,
"builder" text,
"fleet_numbers" text,
"notes" text
);
Question: Name the most lot number with notes of b4 bogies and diagram of 185
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "orders" (
"lot_no" real,
"diagram" real,
"mark" text,
"builder" text,
"fleet_numbers" text,
"notes" text
);
Question: Name the fleet numbers for diagram of 186 and lot number of 30798
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lines" (
"direction" text,
"name" text,
"japanese" text,
"terminals" text,
"length_km" real
);
Question: What line is 24.7 km and head towards Toyohashi East?
<|assistant|>
SELECT "name" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"attendance" real
);
Question: What is the record on November 18?
<|assistant|>
SELECT "record" FROM "schedu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"attendance" real
);
Question: What is the record when attendance is more than 19,658 and Los Angeles Rams a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"attendance" real
);
Question: What was the average attendance when Chicago Bears were the home team?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"attendance" real
);
Question: What is the score when the record is 5-4-1?
<|assistant|>
SELECT "score" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"attendance" real
);
Question: What is the largest number in attendance when the record is 1-1-0?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1973_enlargement" (
"member_countries" text,
"population" text,
"area_km" text,
"gdp_billion_us" text,
"gdp_per_capita_us" text
);
Question: What is the GDP of the nation with 56,210,000 people... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1973_enlargement" (
"member_countries" text,
"population" text,
"area_km" text,
"gdp_billion_us" text,
"gdp_per_capita_us" text
);
Question: What is the area of the nation with GDP per capita (... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1973_enlargement" (
"member_countries" text,
"population" text,
"area_km" text,
"gdp_billion_us" text,
"gdp_per_capita_us" text
);
Question: What is the population of the nation that has a GDP ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1973_enlargement" (
"member_countries" text,
"population" text,
"area_km" text,
"gdp_billion_us" text,
"gdp_per_capita_us" text
);
Question: What is the Population of the nation that has an Are... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1973_enlargement" (
"member_countries" text,
"population" text,
"area_km" text,
"gdp_billion_us" text,
"gdp_per_capita_us" text
);
Question: What is the Population of the nation that has a Memb... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_of_broadcast_networks" (
"television_network" text,
"founded" text,
"pct_of_venezuelan_households_reached" text,
"num_of_households_viewable" text,
"type_of_network" text,
"num_of_full_p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1992" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: At what stadium did the Green Bay Packers play an away game?
<|assistant|>
SELECT "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1992" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: At what stadium was the final score 31-28?
<|assistant|>
SELECT "stadium" FROM "1992... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1992" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Which team hosted the Kansas City Chiefs?
<|assistant|>
SELECT "host_team" FROM "199... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1992" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: What team hosted at Tampa Stadium?
<|assistant|>
SELECT "host_team" FROM "1992" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: With a record of 43-26, what was the score that game?
<|assistant|>
SELECT "score" FROM "game_log... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: On June 8, what's the loss when the Blue Jays played the Tigers?
<|assistant|>
SELECT "loss" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: What date was the record 38-22?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "record"='38-22... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: The game that had a record of 39-25, what was the score?
<|assistant|>
SELECT "score" FROM "game_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "epd_tour_6" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_up" text
);
Question: Which runner-up has a 10 strokes margin of victory?
<|assistant|>
SEL... |
<|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: Which of the events only last... |
<|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: Which event only lasted for 3... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "part_time_teams" (
"team" text,
"car_s" text,
"driver_s" text,
"primary_sponsor_s" text,
"owner_s" text,
"crew_chief" text,
"rounds" real
);
Question: What is the Primary Sponsor for the te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "part_time_teams" (
"team" text,
"car_s" text,
"driver_s" text,
"primary_sponsor_s" text,
"owner_s" text,
"crew_chief" text,
"rounds" real
);
Question: Who is the Driver on Bob Keselowski's ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "part_time_teams" (
"team" text,
"car_s" text,
"driver_s" text,
"primary_sponsor_s" text,
"owner_s" text,
"crew_chief" text,
"rounds" real
);
Question: Walter Giles is Crew Chief of what tea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stadia" (
"rank" real,
"stadium" text,
"capacity" real,
"club" text,
"region" text
);
Question: What club does the stadium stc krymteplitsia belong to?
<|assistant|>
SELECT "club" FROM "stadia"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: What was Tony Bettenhausen's qualifying time in 1947?
<|assistant|>
SELECT "qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: Which year did Tony Bettenhausen complete more than 200 laps?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"name" text,
"type" text,
"elevation" text,
"usgs_map" text,
"gnis_id" real
);
Question: What type has a GNIS ID of 1139805
<|assistant|>
SELECT "type" FROM "see_also" WHERE "gnis_i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"name" text,
"type" text,
"elevation" text,
"usgs_map" text,
"gnis_id" real
);
Question: Which name has a USGS Map of clear lake?
<|assistant|>
SELECT "name" FROM "see_also" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"transfer_window" text,
"transfer_fee" text,
"source" text
);
Question: What is the status of Norris?
<|assistant|>
SELECT "status" FROM "ou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"transfer_window" text,
"transfer_fee" text,
"source" text
);
Question: What is the source for Laird?
<|assistant|>
SELECT "source" FROM "ou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "great_northern_railway" (
"class" text,
"type" text,
"fleet_numbers" text,
"quantity_made" real,
"date_made" text,
"1958_ci" text,
"1958_uta" text,
"date_withdrawn" text
);
Question: What... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "great_northern_railway" (
"class" text,
"type" text,
"fleet_numbers" text,
"quantity_made" real,
"date_made" text,
"1958_ci" text,
"1958_uta" text,
"date_withdrawn" text
);
Question: What... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"earnings" real
);
Question: Which player has a score of 74-74-73-70=291?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"earnings" real
);
Question: What is the average earnings of a United States player who had a sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "september" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text
);
Question: What was the attendance at the game that had a loss of Mercker (3-1)?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "september" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text
);
Question: What was the attendance at the game that had a loss of Ayala (6-12)?
<|assistant|>
SELECT "a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "september" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text
);
Question: What was the loss of the game that had a score of 9-7?
<|assistant|>
SELECT "loss" FROM "sep... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "september" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text
);
Question: What was the loss of the game attended by 14,691?
<|assistant|>
SELECT "loss" FROM "septembe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "september" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text
);
Question: What was the loss of the game attended by 29,704?
<|assistant|>
SELECT "loss" FROM "septembe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_results" (
"date" text,
"winner" text,
"score" text,
"location" text,
"series" text
);
Question: What is the Winner, when the Location is Clemson, SC, and when the Date is November 17, 201... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_results" (
"date" text,
"winner" text,
"score" text,
"location" text,
"series" text
);
Question: What is the Location, when the Score is 38-29?
<|assistant|>
SELECT "location" FROM "game_r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_results" (
"date" text,
"winner" text,
"score" text,
"location" text,
"series" text
);
Question: What is the Location, when the Score is 35-31?
<|assistant|>
SELECT "location" FROM "game_r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_results" (
"date" text,
"winner" text,
"score" text,
"location" text,
"series" text
);
Question: What is the Score, when the Location is Clemson, SC, when the Winner is Clemson, and when t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: What year did finish 1st in LMP1 cl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What was the game result on November 16, 1969?
<|assistant|>
SELECT "result" FROM "reg... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" te... |
<|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 venue was the 11 September 2012 game?
<|assistant|>
SELECT "venue" FROM "inte... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kaikoura_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: What is the lowest Decile for a school with a roll smal... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kaikoura_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: What is the Gender of students at a school with a Decil... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.