text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "projects_as_of_march_2013" (
"building" text,
"location" text,
"height" text,
"floors" real,
"status" text
);
Question: How many floors are in little Italy?
<|assistant|>
SELECT COUNT("floors")... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_races" (
"place" text,
"country" text,
"qualifying_grand_prix" text,
"class" text,
"dates" text
);
Question: What is Country, when Class is "15 meters", and when Qualifying Grand Pri... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_races" (
"place" text,
"country" text,
"qualifying_grand_prix" text,
"class" text,
"dates" text
);
Question: What is Class, when Dates is "22 April - 3 May 2009"?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_races" (
"place" text,
"country" text,
"qualifying_grand_prix" text,
"class" text,
"dates" text
);
Question: What is Country, when Class is "club"?
<|assistant|>
SELECT "country" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_races" (
"place" text,
"country" text,
"qualifying_grand_prix" text,
"class" text,
"dates" text
);
Question: What is Country, when Place is "Torino"?
<|assistant|>
SELECT "country" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"squad_no" real,
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "male_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text
);
Question: What... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "male_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text
);
Question: What... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "male_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text
);
Question: What... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "male_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text
);
Question: What... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "male_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text
);
Question: What... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "male_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" 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,
"money" real
);
Question: How much did Larry Nelson win?
<|assistant|>
SELECT "money" FROM "fina... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_wins_27" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What is Tournament, when Date is "Sep 12, 1976"?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_wins_27" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What is Tournament, when Date is "Sep 25, 1977"?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_wins_27" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What is Margin of Victory, when Tournament is "Women's Kempe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "male_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text
);
Question: What... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "male_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text
);
Question: What... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "male_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text
);
Question: What... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "male_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text
);
Question: What... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "male_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text
);
Question: What... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "male_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text
);
Question: What... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_final" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" text
);
Question: What was the draw of Maggie Toal?
<|assistant|>
SELECT AVG("draw") FROM "national_final" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_final" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" text
);
Question: What is the highest point total that placed 3rd and has a draw larger than 5?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "champions" (
"year" text,
"gold" text,
"silver" text,
"bronze" text,
"host_city_cities" text,
"host_country_countries" text
);
Question: Who won the gold in 1958?
<|assistant|>
SELECT "gold" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "champions" (
"year" text,
"gold" text,
"silver" text,
"bronze" text,
"host_city_cities" text,
"host_country_countries" text
);
Question: What was the host country when the silver was [[|]] (2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "champions" (
"year" text,
"gold" text,
"silver" text,
"bronze" text,
"host_city_cities" text,
"host_country_countries" text
);
Question: Who was the host country in 2007?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "champions" (
"year" text,
"gold" text,
"silver" text,
"bronze" text,
"host_city_cities" text,
"host_country_countries" text
);
Question: Who was the host country when bronze is [[|]] (1) and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: What is the result for Boston's road team in game 4?
<|assistant|>
SELECT "result" FROM "n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: Which road team has a result of 117-114?
<|assistant|>
SELECT "road_team" FROM "nba_finals... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: What is the road team playing against Boston on April 16?
<|assistant|>
SELECT "road_team"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: Which home team is on April 21?
<|assistant|>
SELECT "home_team" FROM "nba_finals" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: Which game has a result of 113-106?
<|assistant|>
SELECT "game" FROM "nba_finals" WHERE "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
Question: Which home team played against Los Angeles in game 1?
<|assistant|>
SELECT "home_team" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chessmetrics" (
"rank" real,
"1_year_peak" text,
"5_year_peak" text,
"10_year_peak" text,
"15_year_peak" text,
"20_year_peak" text
);
Question: What is the lowest rank of 5-year peak bobby fi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chessmetrics" (
"rank" real,
"1_year_peak" text,
"5_year_peak" text,
"10_year_peak" text,
"15_year_peak" text,
"20_year_peak" text
);
Question: What is the 1-year peak with anatoly karpov, 28... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chessmetrics" (
"rank" real,
"1_year_peak" text,
"5_year_peak" text,
"10_year_peak" text,
"15_year_peak" text,
"20_year_peak" text
);
Question: What is the 20-year peak with emanuel lasker, 2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real,
"2000_result" text
);
Question: What percentage of other ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real,
"2000_result" text
);
Question: How many votes did Kerry ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real,
"2000_result" text
);
Question: How many votes went to ot... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seat_allocation" (
"governorate" text,
"seats_2010" real,
"seats_2005" real,
"in_de_creased_by" real,
"percentage_in_de_crease" text
);
Question: How many Seats 2005 has a Percentage in/de-crea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seat_allocation" (
"governorate" text,
"seats_2010" real,
"seats_2005" real,
"in_de_creased_by" real,
"percentage_in_de_crease" text
);
Question: Name the lowest Seats 2010 which has Seats 2005... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seat_allocation" (
"governorate" text,
"seats_2010" real,
"seats_2005" real,
"in_de_creased_by" real,
"percentage_in_de_crease" text
);
Question: Name the average In/de-creased by which has a G... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seat_allocation" (
"governorate" text,
"seats_2010" real,
"seats_2005" real,
"in_de_creased_by" real,
"percentage_in_de_crease" text
);
Question: Name the highest In/de-creased which has a Perc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: What player has a score larger than 67?
<|assistant|>
SELECT "player" FROM "first_round" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
Question: What is the celtics record after game 33 when they score of the game was 111-1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "supersport_race_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: Which Rider is grid 7?
<|assistant|>
SELECT "rider" FROM "supersport_race_classif... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "supersport_race_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is the total number of laps done by Massimo Roccoli when his grid was smalle... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "supersport_race_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is the time recorded by David Salom on his Yamaha yzf-r6 when his grid was l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "platforms" (
"stop_no" text,
"platform" text,
"line" text,
"stopping_pattern" text,
"destination" text
);
Question: What is Stop No., when Destination is [2778] Claisebrook Station Platforms?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "platforms" (
"stop_no" text,
"platform" text,
"line" text,
"stopping_pattern" text,
"destination" text
);
Question: What is Stopping Pattern, when Platform is 4?
<|assistant|>
SELECT "stopping_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "platforms" (
"stop_no" text,
"platform" text,
"line" text,
"stopping_pattern" text,
"destination" text
);
Question: What is Stop No., when Destination is Perth, and when Line is Midland?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "annual_passenger_statistics_for_turku_ai" (
"year" real,
"domestic_passengers" real,
"international_passengers" real,
"total_passengers" real,
"change" text
);
Question: What year did the Turku... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_australia" (
"team" text,
"coach" text,
"home_ground" text,
"location" text,
"founded" real
);
Question: Which coach founded the Western Strikers team after 1963?
<|assistant|>
SELECT "co... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_australia" (
"team" text,
"coach" text,
"home_ground" text,
"location" text,
"founded" real
);
Question: Who is the coach located in Oakden?
<|assistant|>
SELECT "coach" FROM "south_austr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_australia" (
"team" text,
"coach" text,
"home_ground" text,
"location" text,
"founded" real
);
Question: Which team has coach John Kosmina?
<|assistant|>
SELECT "team" FROM "south_austral... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_australia" (
"team" text,
"coach" text,
"home_ground" text,
"location" text,
"founded" real
);
Question: Who is the coach for the Adelaide Galaxy team?
<|assistant|>
SELECT "coach" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
Question: Count the average Wins which has a Class of 250cc, and a Year of 1972?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
Question: Name the lowest Wins which has Points of 28, and a Year smaller than 1972... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
Question: Name the Team which has Points larger than 9, and a Year larger than 1971... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
Question: Name the Wins which has a Class of 350cc, and a Year smaller than 1973?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
);
Question: How many Points has Wins larger than 0?
<|assistant|>
SELECT COUNT("point... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_roster" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2013_club" text
);
Question: SHOW THE Name who has a 2013 club of voléro zürich?
<|assistant|>
SELECT "name" FROM "cu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_roster" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2013_club" text
);
Question: Name the Height which has a 2013 club of wvc dynamo moscow?
<|assistant|>
SELECT "height... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_roster" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2013_club" text
);
Question: What kind of Spike has a Name of mia jerkov category:articles with hcards?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_roster" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2013_club" text
);
Question: Name the 2013 club which has a Name of ana grbac category:articles with hcards?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_roster" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2013_club" text
);
Question: Name the Spike which has a Name of senna ušić-jogunica category:articles with hcards?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What was the Overall number for the player with a pos... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What was the Overall number that is the lowest, and h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
Question: Which ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" text
);
Question: what is the points when the entrant is brabham racing organisa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" text
);
Question: who is the entrant when the points is 42 (45) and the chassis ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" text
);
Question: how many times is the chassis brabham bt33?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tour_de_france_stages_with_summit_finish" (
"year" real,
"stage" real,
"start_of_stage" text,
"distance_km" text,
"category" text,
"stage_winner" text,
"yellow_jersey" text
);
Question: Who... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matches" (
"date" text,
"venue" text,
"opponents" text,
"score" text,
"comp" text,
"attendance" text
);
Question: Who was the opponent at Ullevi?
<|assistant|>
SELECT "opponents" FROM "matche... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matches" (
"date" text,
"venue" text,
"opponents" text,
"score" text,
"comp" text,
"attendance" text
);
Question: When was Göteborg the opponent with a score of 3-1?
<|assistant|>
SELECT "dat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: Which Finish had a To par of +10?
<|assistant|>
SELECT "finish" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: Which years was there a To par of +1?
<|assistant|>
SELECT "year_s_wo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
Question: What were Sébastien Bourdais' lowest points when there were less than 63 laps?
<|... |
<|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,
"event" text
);
Question: What is Position, when Event is 60 m, and when Venue is Budapest , Hungary?
<|assistant... |
<|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,
"event" text
);
Question: What is Event, when Position is 6th, and when Year is after 2006?
<|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,
"event" text
);
Question: What is the average Year, when Position is 9th, when Event is 100 m, and when Venue is ... |
<|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,
"event" text
);
Question: What is the Event, when Year is 2002, and when Competition is European Indoor Champions... |
<|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 Nation, when Bronze is 1, when Gold is greater than 0, and when Rank is... |
<|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 average Total, when Bronze is greater than 0, when Silver is greate... |
<|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 average Gold, when Nation is Yugoslavia, and when Silver is greater... |
<|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 average Bronze, when Total is 4, and when Silver is less than 2?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_qualifying_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the aggregate for the tie with a team 2 of Irtysh?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_qualifying_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What was the aggregate in the match with a team 1 of Dinamo Minsk?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "java" (
"product" text,
"vendor" text,
"edition" text,
"release_date" text,
"java_ee_compatibility" text,
"license" text
);
Question: What is the Java EE compatibility of the 5.2.4 edition?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "java" (
"product" text,
"vendor" text,
"edition" text,
"release_date" text,
"java_ee_compatibility" text,
"license" text
);
Question: What is the release date for Eclipse Foundation?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "java" (
"product" text,
"vendor" text,
"edition" text,
"release_date" text,
"java_ee_compatibility" text,
"license" text
);
Question: Which Oracle Corporation product has a Java EE compatibil... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "java" (
"product" text,
"vendor" text,
"edition" text,
"release_date" text,
"java_ee_compatibility" text,
"license" text
);
Question: Which edition released on 2007-06-07 has a Java EE compat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "java" (
"product" text,
"vendor" text,
"edition" text,
"release_date" text,
"java_ee_compatibility" text,
"license" text
);
Question: When was Glassfish released?
<|assistant|>
SELECT "releas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "java" (
"product" text,
"vendor" text,
"edition" text,
"release_date" text,
"java_ee_compatibility" text,
"license" text
);
Question: Which licence has a release date of 2009-08?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner" text,
"finalist" text,
"semifinalists" text
);
Question: WHO ARE THE SEMIFINALISTS FOR TOURNAMENT OF PARIS?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner" text,
"finalist" text,
"semifinalists" text
);
Question: WHO WAS THE SEMIFINALISTS FOR THE HAMBURG TOURNAMENT?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scottish_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: Which opponent had a round of SF?
<|assistant|>
SELECT "opponent" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scottish_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: What was the result when the opponent was Celtic?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scottish_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: What was the result for round r3?
<|assistant|>
SELECT "result" FROM "s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.