text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: What is the first year of the European Championships competition?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: Which position has a venue of Helsinki, Finland?
<|assistant|>
SELECT "position" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_war_ii" (
"estimate" text,
"name" text,
"nat" text,
"ship_type" text,
"where_sunk" text,
"date" text
);
Question: What is the date that a hell ship sunk in the East China Sea?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_war_ii" (
"estimate" text,
"name" text,
"nat" text,
"ship_type" text,
"where_sunk" text,
"date" text
);
Question: Which nation had a battlecruiser with an estimate of 513?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_war_ii" (
"estimate" text,
"name" text,
"nat" text,
"ship_type" text,
"where_sunk" text,
"date" text
);
Question: What is the date that a ship sank in the South Atlantic?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_war_ii" (
"estimate" text,
"name" text,
"nat" text,
"ship_type" text,
"where_sunk" text,
"date" text
);
Question: What type of ship was the Shinano?
<|assistant|>
SELECT "ship_type" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_war_ii" (
"estimate" text,
"name" text,
"nat" text,
"ship_type" text,
"where_sunk" text,
"date" text
);
Question: What nation had a ship named Roma?
<|assistant|>
SELECT "nat" FROM "wor... |
<|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 score of the Blue Jays' game versus the Indians when their record w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"division" text,
"team" text,
"city" text,
"home_arena" text,
"capacity" real,
"joined_nt_et" text
);
Question: What city has a team in south division with a home arena with a greater... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" real
);
Question: During what years did the tallest building, located ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" real
);
Question: What is the average number of floors at 170 Fourth A... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" real
);
Question: What is the address of the Life & Casualty Tower?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "southern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is listed as the Tie no for Home team of Gillingham?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "southern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is the Tie no listed for the Away team of Barnet?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "southern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is listed for the Attendance that has a Tie no of 5?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "southern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: Which Away team has a Tie no of 4?
<|assistant|>
SELECT "away_team" FROM "sou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "southern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: Which Home Team has an Attendance of 1,859?
<|assistant|>
SELECT "home_team" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "southern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is listed as the Away team for the Home team of the Bristol Rovers?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "clubs" (
"team" text,
"city" text,
"founded" real,
"first_season_in_segunda_divisi_n" real,
"first_season_of_current_spell_in_segunda_divisi_n" real,
"stadium" text,
"capacity" real,
"fiel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "clubs" (
"team" text,
"city" text,
"founded" real,
"first_season_in_segunda_divisi_n" real,
"first_season_of_current_spell_in_segunda_divisi_n" real,
"stadium" text,
"capacity" real,
"fiel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "clubs" (
"team" text,
"city" text,
"founded" real,
"first_season_in_segunda_divisi_n" real,
"first_season_of_current_spell_in_segunda_divisi_n" real,
"stadium" text,
"capacity" real,
"fiel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "clubs" (
"team" text,
"city" text,
"founded" real,
"first_season_in_segunda_divisi_n" real,
"first_season_of_current_spell_in_segunda_divisi_n" real,
"stadium" text,
"capacity" real,
"fiel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r_seau_du_sport_tudiant_du_qu_bec_dunsmo" (
"institution" text,
"team" text,
"city" text,
"province" text,
"first_season" real,
"head_coach" text,
"enrollment" real,
"football_stadium" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r_seau_du_sport_tudiant_du_qu_bec_dunsmo" (
"institution" text,
"team" text,
"city" text,
"province" text,
"first_season" real,
"head_coach" text,
"enrollment" real,
"football_stadium" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r_seau_du_sport_tudiant_du_qu_bec_dunsmo" (
"institution" text,
"team" text,
"city" text,
"province" text,
"first_season" real,
"head_coach" text,
"enrollment" real,
"football_stadium" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r_seau_du_sport_tudiant_du_qu_bec_dunsmo" (
"institution" text,
"team" text,
"city" text,
"province" text,
"first_season" real,
"head_coach" text,
"enrollment" real,
"football_stadium" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r_seau_du_sport_tudiant_du_qu_bec_dunsmo" (
"institution" text,
"team" text,
"city" text,
"province" text,
"first_season" real,
"head_coach" text,
"enrollment" real,
"football_stadium" tex... |
<|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 has the qual 2 of 1:44.050?
<|assistant|>
SELECT "best" FROM "qualifying_results... |
<|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 name goes along with the team of forsythe racing, and a Qual 2 of 1:47.132?
<|assista... |
<|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 the 1:44.027 qual 2?
<|assistant|>
SELECT "team" FROM "qualifying_results" W... |
<|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 is the qual 1 for alex tagliani?
<|assistant|>
SELECT "qual_1" FROM "qualifying_resul... |
<|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 is the team with the best of 1:43.134?
<|assistant|>
SELECT "team" FROM "qualifying_r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: What Women's Doubles team played after 20... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: After 1999, who played Men's Doubles when... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: In 2010, who was the Women's Singles play... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1994" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Who was the visiting team at the matchup at the RCA Dome?
<|assistant|>
SELECT "visi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1994" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: What was the final score in the game in which the Detroit Lions were the home team?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1994" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Which stadium hosted the November 20 game?
<|assistant|>
SELECT "stadium" FROM "1994... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1994" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Who was the visiting team against the Minnesota Vikings?
<|assistant|>
SELECT "visit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1994" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Who was the host team at Candlestick Park?
<|assistant|>
SELECT "host_team" FROM "19... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1994" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Which date had a final score of 20-27?
<|assistant|>
SELECT "date" FROM "1994" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: How many years have had the position of 2nd?
<|assistant|>
SELECT COUNT("year") FROM "a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: What position had notes of 20km and a year earlier than 2002?
<|assistant|>
SELECT "pos... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: What was the venue before 2006, with the position of 10th?
<|assistant|>
SELECT "venue"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: What were the notes when the Venue was Turin, Italy?
<|assistant|>
SELECT "notes" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "characters" (
"code_name" text,
"function_figure" text,
"real_name" text,
"birthplace" text,
"serial_number" text,
"primary_military_speciality" text,
"secondary_military_speciality" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "characters" (
"code_name" text,
"function_figure" text,
"real_name" text,
"birthplace" text,
"serial_number" text,
"primary_military_speciality" text,
"secondary_military_speciality" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_teams" (
"club" text,
"district" text,
"area_province" text,
"stadium" text,
"first_season" text,
"last_title" text
);
Question: Name the last title for greater buenos aires and first... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_teams" (
"club" text,
"district" text,
"area_province" text,
"stadium" text,
"first_season" text,
"last_title" text
);
Question: Name the area for District of córdoba
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_teams" (
"club" text,
"district" text,
"area_province" text,
"stadium" text,
"first_season" text,
"last_title" text
);
Question: Name the last title for club of quilmes
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_teams" (
"club" text,
"district" text,
"area_province" text,
"stadium" text,
"first_season" text,
"last_title" text
);
Question: Name the last time for club of newell's old boys
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_career" (
"date" text,
"venue" text,
"result" text,
"scored" real,
"competition" text
);
Question: Name the averag scored for 2011 long teng cup and 2 october 2011
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "le_series_models" (
"colt_model_no" text,
"stock" text,
"fire_control" text,
"rear_sight" text,
"forward_assist" text,
"barrel_length" text,
"barrel_profile" text,
"barrel_twist" text,
"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"year" real,
"region_total" real,
"goondiwindi" real,
"waggamba" real,
"inglewood" real
);
Question: What is the region total before 1986 with a Waggamba of 2,732, and a Goondiwin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"year" real,
"region_total" real,
"goondiwindi" real,
"waggamba" real,
"inglewood" real
);
Question: What is the average year that had a value less than 2,575 in Inglewood?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"year" real,
"region_total" real,
"goondiwindi" real,
"waggamba" real,
"inglewood" real
);
Question: What is the highest value in Waggamba were Inglewwod had 2,771, but Goondiwind... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"year" real,
"region_total" real,
"goondiwindi" real,
"waggamba" real,
"inglewood" real
);
Question: What is the lost amount in Goondiwindi after 2001, and Inglewood had more than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"year" real,
"region_total" real,
"goondiwindi" real,
"waggamba" real,
"inglewood" real
);
Question: In 1996, what was the value for Inglewood when Goondiwindi had more than 4,374... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"year" real,
"region_total" real,
"goondiwindi" real,
"waggamba" real,
"inglewood" real
);
Question: What is the region total after 2001 when Goondiwindi had more than 4,103 and I... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
);
Question: What is the nature of the incident in Kabul on 2004-01-28?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
);
Question: What is the nature of the incident that's a bomb attack?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
);
Question: What is the nature of the incident with Casualties of 3 wia, and Circumstan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
);
Question: Which Casualties have a Location of kunduz, and Circumstances of suicide?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
);
Question: Which Casualties have a hostile Nature of incident and Circumstances of mor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "delegates" (
"district" text,
"party" text,
"religion" text,
"former_experience" text,
"assumed_office" real,
"born_in" real
);
Question: When was the delegate who has previous experience as ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What is the name of the airport in the city of Kota Kinabalu?
<|assistant|>
SELECT "airport" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What is the IATA for the city of Amsterdam?
<|assistant|>
SELECT "iata" FROM "see_also" WHERE "cit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Which country has an IATA of JFK?
<|assistant|>
SELECT "country" FROM "see_also" WHERE "iata"='jfk... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Which city has an IATA of AUH?
<|assistant|>
SELECT "city" FROM "see_also" WHERE "iata"='auh';<|en... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Which airport has an IATA of AMS?
<|assistant|>
SELECT "airport" FROM "see_also" WHERE "iata"='ams... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Which city has an ICAO of Kiah?
<|assistant|>
SELECT "city" FROM "see_also" WHERE "icao"='kiah';<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "actor" (
"original_title" text,
"title_in_english" text,
"genre" text,
"role" text,
"directed_by" text
);
Question: What Genre did Sándor Simó direct?
<|assistant|>
SELECT "genre" FROM "actor" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "actor" (
"original_title" text,
"title_in_english" text,
"genre" text,
"role" text,
"directed_by" text
);
Question: What is the Genre for Malina (ger.-aus.-fr.), an Original Title?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "actor" (
"original_title" text,
"title_in_english" text,
"genre" text,
"role" text,
"directed_by" text
);
Question: The Last Metro refers to which Original Title?
<|assistant|>
SELECT "original... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "actor" (
"original_title" text,
"title_in_english" text,
"genre" text,
"role" text,
"directed_by" text
);
Question: What original title, Franciska Vasárnapjai (hungarian), had an Episode Actor ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "actor" (
"original_title" text,
"title_in_english" text,
"genre" text,
"role" text,
"directed_by" text
);
Question: What is the Original title for an Episode Actor role which was Directed by Gé... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "june_draft" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
);
Question: What is the round for bob randall?
<|assistant|>
SELECT AVG("round") FROM "june_draft" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "june_draft" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
);
Question: what is the position when signed is yes, round is less than 24 and name is charlie hough?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "june_draft" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
);
Question: what is the school when signed is no and round is 50?
<|assistant|>
SELECT "school" FROM "jun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "june_draft" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
);
Question: what is the school for round 8?
<|assistant|>
SELECT "school" FROM "june_draft" WHERE "round"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "june_draft" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
);
Question: what is the position for robert johnson?
<|assistant|>
SELECT "position" FROM "june_draft" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "june_draft" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
);
Question: Was position ss from carson city high school signed?
<|assistant|>
SELECT "signed" FROM "june... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"year" text,
"class" text,
"games" real,
"starts" real,
"comp" real,
"yards" real
);
Question: What was the average number of yards Michael Henig had in a year when he had more ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"year" text,
"class" text,
"games" real,
"starts" real,
"comp" real,
"yards" real
);
Question: What was the average number of starts Michael Henig had in a year when he had more... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Name the airport with IATA of cxb
<|assistant|>
SELECT "airport" FROM "list" WHERE "iata"='cxb';<|endo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Name the airport with IATA of dmk
<|assistant|>
SELECT "airport" FROM "list" WHERE "iata"='dmk';<|endo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Name the city that has singapore changi airport
<|assistant|>
SELECT "city" FROM "list" WHERE "airport... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Name the ICAO for when IATA is zyl
<|assistant|>
SELECT "icao" FROM "list" WHERE "iata"='zyl';<|endoft... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Name the ICAO for IATA of rgn
<|assistant|>
SELECT "icao" FROM "list" WHERE "iata"='rgn';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Name the ICAO for IATA of ccu
<|assistant|>
SELECT "icao" FROM "list" WHERE "iata"='ccu';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the largest gold with a Total larger than 16?
<|assistant|>
SELECT MAX(... |
<|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 largest silver with a Total smaller than 2, a Bronze smaller than 1... |
<|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 smallest bronze with a Nation of west germany, and a Gold larger th... |
<|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 on July 2?
<|assistant|>
SELECT "record" FROM "game_log"... |
<|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 largest silver with less than 0 gold?
<|assistant|>
SELECT MAX("sil... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_1" (
"episode_no" real,
"airdate" text,
"total_viewers" real,
"share" text,
"bbc_one_weekly_ranking" text
);
Question: What's the average total viewers that has 17.6% Share?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_1" (
"episode_no" real,
"airdate" text,
"total_viewers" real,
"share" text,
"bbc_one_weekly_ranking" text
);
Question: What's the share of Episode 1?
<|assistant|>
SELECT "share" FROM "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dublin_and_south_eastern_railway_1854_19" (
"type" text,
"fleet_numbers" text,
"quantity_made" real,
"date_made" text,
"gsr_class" text,
"gsr_nos" text,
"withdrawn" text
);
Question: How ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dublin_and_south_eastern_railway_1854_19" (
"type" text,
"fleet_numbers" text,
"quantity_made" real,
"date_made" text,
"gsr_class" text,
"gsr_nos" text,
"withdrawn" text
);
Question: What i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dublin_and_south_eastern_railway_1854_19" (
"type" text,
"fleet_numbers" text,
"quantity_made" real,
"date_made" text,
"gsr_class" text,
"gsr_nos" text,
"withdrawn" text
);
Question: What i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.