text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"points" text,
"position" text
);
Question: What is the fewest number of wins when he... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_organizations" (
"favorite_professional_sport" text,
"2005" text,
"2008" text,
"2011" text,
"2012" text
);
Question: What's listed for the 2012 that has a 2011 of 7.7% with a 2008 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_organizations" (
"favorite_professional_sport" text,
"2005" text,
"2008" text,
"2011" text,
"2012" text
);
Question: What is listed for the 2011 that has a 2005 of 4.2%?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_organizations" (
"favorite_professional_sport" text,
"2005" text,
"2008" text,
"2011" text,
"2012" text
);
Question: What is listed for the 2012 that has a 2011 of 28.9%?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_organizations" (
"favorite_professional_sport" text,
"2005" text,
"2008" text,
"2011" text,
"2012" text
);
Question: What is listed for the 2005 that has a 2012 of 4.2%?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_organizations" (
"favorite_professional_sport" text,
"2005" text,
"2008" text,
"2011" text,
"2012" text
);
Question: What is listed the Favorite Professional Sport that's got a 200... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "professional_organizations" (
"favorite_professional_sport" text,
"2005" text,
"2008" text,
"2011" text,
"2012" text
);
Question: What is listed as the Favorite Professional Sport that has a 20... |
<|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 was the score of the game that led to a 79-77 record?
<|assistant|>
SEL... |
<|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 was the record after the game in which Rosales (1-1) took the loss?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "living_canadian_supercentenarians" (
"name" text,
"birth_date" text,
"age_as_of_1_february_2014" text,
"province_or_country_of_birth" text,
"province_of_residence" text
);
Question: Which super... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "living_canadian_supercentenarians" (
"name" text,
"birth_date" text,
"age_as_of_1_february_2014" text,
"province_or_country_of_birth" text,
"province_of_residence" text
);
Question: What is the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"tournament" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"tournament" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"tournament" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"tournament" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"tournament" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_mandarin_satellite_television" (
"name" text,
"hanzi" text,
"language" text,
"launch" real,
"owner" text
);
Question: Which language's launch was in 2006 when then hanzi was 青海电视台藏语综合频道?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_mandarin_satellite_television" (
"name" text,
"hanzi" text,
"language" text,
"launch" real,
"owner" text
);
Question: Which hanzi's name is nmtv mongolian satellite television?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_mandarin_satellite_television" (
"name" text,
"hanzi" text,
"language" text,
"launch" real,
"owner" text
);
Question: Which hanzi's launch is before 2009, when the language was tibetan, and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What Team had a 1:24.365 Qual 2?
<|assistant|>
SELECT "team" FROM "qualifying_results" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What Team had a 1:24.152 Best?
<|assistant|>
SELECT "team" FROM "qualifying_results" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What was Robert Doornbos' Best?
<|assistant|>
SELECT "best" FROM "qualifying_results" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What was Alex Figge's Best?
<|assistant|>
SELECT "best" FROM "qualifying_results" WHERE "n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What Team had a 1:25.602 Best?
<|assistant|>
SELECT "team" FROM "qualifying_results" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What was the Name of the person with a Qual 1 of 1:26.056?
<|assistant|>
SELECT "name" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: How many picks were there for the Bentley team?
<|assistant|>
SELECT COUNT("pick") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What is the largest round number for Dan Connor, the player?
<|assistant|>
SELECT MA... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What is the largest round number for the dt position when the pick number is bigger ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_calendar" (
"date" text,
"round" text,
"circuit" text,
"race_1_winner" text,
"race_2_winner" text,
"report" text
);
Question: what circuit is in italy
<|assistant|>
SELECT "circuit" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school" text
);
Question: What is the average pick for clarence mason?
<|assistant|>
SELECT AVG("pick") FROM "nfl_draft"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What is the frequency for the city of Lamar, Colorado?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What is the average ERP W for callsign K207BK?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Which callsign has ERP W of 99 and a frequency of grea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Which city has ERP W under 14 and a frequency over 93.... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_28_wisconsin_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: What were the total number of field goals when there were 0 touc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_28_wisconsin_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: How many field goals did Carter get when he had 0 extra points?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_28_wisconsin_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: What is the highest amount of extra points someone got when they... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_28_wisconsin_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: What is the average field goal someone has when they have 0 extr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: What is the lowest number of wins with more than 113 points in 4th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: How many wins had less than 91 points in 25th rank?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: How many wins in 1992?
<|assistant|>
SELECT "wins" FROM "grand_pri... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: How many wins occurred for 6th rank?
<|assistant|>
SELECT COUNT("w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: Who was the constructor of the car driven by Heikki Kovalainen?
<|assistant|>
SELECT "const... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"reg_season" text,
"playoffs" text
);
Question: Which Reg Season has a Division of 2?
<|assistant|>
SELECT "reg_season" FROM "year_b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"reg_season" text,
"playoffs" text
);
Question: Which Year is the highest one that has a Reg Season of 3rd, western, and a Division ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"reg_season" text,
"playoffs" text
);
Question: Which year is the lowest one when the playoffs did not qualify?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"reg_season" text,
"playoffs" text
);
Question: Which Year has a Reg Season of 3rd, western?
<|assistant|>
SELECT AVG("year") FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"reg_season" text,
"playoffs" text
);
Question: Which Division that has a Reg Season of 1st, western, and Playoffs of champions, and... |
<|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 was the opponent during the game that had more than 31,891 people in attendance?
<|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" real
);
Question: What is the average attendance for the game before week 4 that was on october 16, 1955?
<|as... |
<|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 total number of weeks that were on September 25, 1955 with more than 16,901 peop... |
<|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 was the opponent for the game on November 20, 1955?
<|assistant|>
SELECT "opponent" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "title_history" (
"reign" real,
"days_held" text,
"location" text,
"successful_defenses" real,
"event" text
);
Question: What is the highest number of successful defenses in brandon, florida and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1965" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: What was the date of the game against Norway with a 1:1 result?
<|assistant|>
SELECT "date" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1965" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: What type of game had a 0:0 result?
<|assistant|>
SELECT "type_of_game" FROM "1965" WHERE "re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1965" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: What city held that game with a 5:2 result?
<|assistant|>
SELECT "city" FROM "1965" WHERE "re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is the score of the game that has a record of 1-2-1?
<|assistant|>
SELECT "sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is the team's record in games against the Hartford Whalers?
<|assistant|>
SEL... |
<|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,
"record" text,
"game_site" text,
"attendance" text
);
Question: What was the Record on Week 13 at the Hoosier Dome?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" text
);
Question: What was the Week on October 18, 1992?
<|assistant|>
SE... |
<|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 loss has 16-6 as the record?
<|assistant|>
SELECT "loss" 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,
"attendance" real,
"record" text
);
Question: What loss has 4-2 as the record?
<|assistant|>
SELECT "loss" 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,
"attendance" real,
"record" text
);
Question: What attendance has astros as the opponent, and april 29 as the date?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "high_floor_versions" (
"city" text,
"operator" text,
"type_designation" text,
"number_of_vehicles" real,
"width" text
);
Question: Which Operator has a Width of 2.65 m, and a Type designation o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "high_floor_versions" (
"city" text,
"operator" text,
"type_designation" text,
"number_of_vehicles" real,
"width" text
);
Question: Which Width has a Number of vehicles larger than 15, and a Typ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "high_floor_versions" (
"city" text,
"operator" text,
"type_designation" text,
"number_of_vehicles" real,
"width" text
);
Question: Which Number of vehicles has a Type designation of u5-25 (bi-d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_counties" (
"county" text,
"irish_name" text,
"county_town" text,
"most_populous_city_town" text,
"province" text,
"region" text
);
Question: Province of leinster, and a County of fin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_counties" (
"county" text,
"irish_name" text,
"county_town" text,
"most_populous_city_town" text,
"province" text,
"region" text
);
Question: Irish name of an dún (contae an dúin) has... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_counties" (
"county" text,
"irish_name" text,
"county_town" text,
"most_populous_city_town" text,
"province" text,
"region" text
);
Question: Most populous city/town of clonmel, and a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_counties" (
"county" text,
"irish_name" text,
"county_town" text,
"most_populous_city_town" text,
"province" text,
"region" text
);
Question: County town of dún laoghaire has the most... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_counties" (
"county" text,
"irish_name" text,
"county_town" text,
"most_populous_city_town" text,
"province" text,
"region" text
);
Question: Irish name of dún na ngall (contae dhún n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_counties" (
"county" text,
"irish_name" text,
"county_town" text,
"most_populous_city_town" text,
"province" text,
"region" text
);
Question: County town of castlebar has the most pop... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medalists" (
"medal" text,
"name" text,
"games" text,
"sport" text,
"event" text
);
Question: Name the games for rubén limardo
<|assistant|>
SELECT "games" FROM "medalists" WHERE "name"='rubén ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medalists" (
"medal" text,
"name" text,
"games" text,
"sport" text,
"event" text
);
Question: Name the sport for men's light flyweight with medal of gold
<|assistant|>
SELECT "sport" FROM "meda... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medalists" (
"medal" text,
"name" text,
"games" text,
"sport" text,
"event" text
);
Question: Tell me the name for men's featherweight and sport of weightlifting
<|assistant|>
SELECT "name" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "great_little_railways" (
"episode_no" real,
"episode_title" text,
"uk_broadcast_date" text,
"narrator" text,
"writer" text,
"details_of_journey" text,
"countries_visited" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "great_little_railways" (
"episode_no" real,
"episode_title" text,
"uk_broadcast_date" text,
"narrator" text,
"writer" text,
"details_of_journey" text,
"countries_visited" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "louisville" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" real,
"class" text,
"hometown" text,
"games" real
);
Question: How tall is Zipp Duncan?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "louisville" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" real,
"class" text,
"hometown" text,
"games" real
);
Question: What is the average games of Tony Dixon?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the total of wins where the top 25 is 6, top 10 i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the total of cuts made where the top 25 is less t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: How many top-10 numbers had a top 25 of more than 6 with ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2006" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Name the 2011 with 2010 of 1r and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2006" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Name the 2008 with 2012 of 2r and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2006" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Name the 2008 for 2012 of sf
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2006" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Name the 2013 for 2011 of 1r
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2006" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Name the 2011 with 2006 of 2r and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2006" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Name the 2012 with 2013 of 2r and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_48_ohio_northern_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: How many Field goals have Points larger than 5, and Touchdow... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_48_ohio_northern_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: How many Touchdowns have Extra points larger than 0, and Poi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_48_ohio_northern_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: Which Touchdowns have an Extra points smaller than 5, and a ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_48_ohio_northern_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: Which Points have Touchdowns larger than 0, and an Extra poi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "september" (
"week_of" text,
"tournament" text,
"champions" text,
"runners_up" text,
"semifinalists" text
);
Question: Which Semifinalists has a Champions of michael chang 6-0 6-4?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "september" (
"week_of" text,
"tournament" text,
"champions" text,
"runners_up" text,
"semifinalists" text
);
Question: Whose Runner-up has a Semifinalist of guillermo pérez-roldán andrea gauden... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "club_career_stats" (
"season" real,
"team" text,
"country" text,
"league" text,
"level" real,
"apps" text,
"goals" real
);
Question: Tell me the least season with level less than 1
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_and_rankings_timeline" (
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
);
Question: Which 2007... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_and_rankings_timeline" (
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
);
Question: Which 2009... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_and_rankings_timeline" (
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
);
Question: Which 2011... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_and_rankings_timeline" (
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
);
Question: Which 2011... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_and_rankings_timeline" (
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
);
Question: Which 2007... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.