text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senior_pga_tour_wins_10" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What races were Chi-Chi Rodriguez the runner-up in?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senior_pga_tour_wins_10" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was the margin of victory for Isao Aoki when he w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senior_pga_tour_wins_10" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was the winning score in the mazda senior tournam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senior_pga_tour_wins_10" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Which tournament ended with a winning score of –27 (65... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senior_pga_tour_wins_10" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Who was the runner(s)-up for the Feb 18, 1996 tourname... |
<|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 is Oriol Servia's average Grid on races with more than 43 laps?
<|assistant|... |
<|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: How many laps were there in the race that netted the winner 19 points?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "domestic_goals_summary" (
"date" text,
"season" text,
"playing_for" text,
"opponent" text,
"final_score" text
);
Question: In what Season is Necaxa an Opponent?
<|assistant|>
SELECT "season" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "domestic_goals_summary" (
"date" text,
"season" text,
"playing_for" text,
"opponent" text,
"final_score" text
);
Question: In what season is Victoria the Opponent?
<|assistant|>
SELECT "season"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tararua_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Name the authority when the decile is 6 for pongaroa sch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tararua_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Name the years for dannevirke south school
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tararua_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Name the least decile for state authority and area of ek... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tararua_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Tell me the name with area of eketahuna
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "e_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"completed" text
);
Question: Name what was completed on 12 april 1934
<|assistant|>
SELECT "completed" FROM "e... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "e_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"completed" text
);
Question: Name the launched for 13 september 1934 completion
<|assistant|>
SELECT "launched... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "e_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"completed" text
);
Question: Name the ship launched 29 may 1934
<|assistant|>
SELECT "ship" FROM "e_class" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "e_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"completed" text
);
Question: Name the laid down for launched being 16 february 1934
<|assistant|>
SELECT "laid... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "e_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"completed" text
);
Question: Name the pennant number for completion of 30 october 1934 and launched 29 march 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "e_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"completed" text
);
Question: Name the laid down for completed of 22 october 1934
<|assistant|>
SELECT "laid_do... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "36_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
);
Question: what is the candidates name who is ranked 8th?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "36_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
);
Question: where is harold j. ludwig riding when the vote... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "36_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
);
Question: what is the gender of Ron Gray, ranked 5th?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "36_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
);
Question: what is the lowest votes of the candidate rank... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "england_in_australia" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: Which home captian has aus by 295 runs as the result?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "england_in_australia" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: Which result has adelaide oval as the venue?
<|assistant|>
SELECT "result... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fiba_euro_basket_2007_squads" (
"player" text,
"height" real,
"position" text,
"year_born" real,
"current_club" text
);
Question: Born in 1982, this guard has what listed as a height?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jersey_progress_chart" (
"stage_winner" text,
"general_classification_yellow_jersey" text,
"mountains_classification_green_jersey" text,
"points_classification_navy_blue_jersey" text,
"intermedi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jersey_progress_chart" (
"stage_winner" text,
"general_classification_yellow_jersey" text,
"mountains_classification_green_jersey" text,
"points_classification_navy_blue_jersey" text,
"intermedi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jersey_progress_chart" (
"stage_winner" text,
"general_classification_yellow_jersey" text,
"mountains_classification_green_jersey" text,
"points_classification_navy_blue_jersey" text,
"intermedi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jersey_progress_chart" (
"stage_winner" text,
"general_classification_yellow_jersey" text,
"mountains_classification_green_jersey" text,
"points_classification_navy_blue_jersey" text,
"intermedi... |
<|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 attendance on April 7?
<|assistant|>
SELECT SUM("attendance") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_recent_northumberland_cup_winner" (
"season" text,
"northumberland_senior_cup" text,
"northumberland_senior_benevolent_bowl" text,
"northumberland_minor_cup" text,
"northumberland_women_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_recent_northumberland_cup_winner" (
"season" text,
"northumberland_senior_cup" text,
"northumberland_senior_benevolent_bowl" text,
"northumberland_minor_cup" text,
"northumberland_women_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_recent_northumberland_cup_winner" (
"season" text,
"northumberland_senior_cup" text,
"northumberland_senior_benevolent_bowl" text,
"northumberland_minor_cup" text,
"northumberland_women_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_recent_northumberland_cup_winner" (
"season" text,
"northumberland_senior_cup" text,
"northumberland_senior_benevolent_bowl" text,
"northumberland_minor_cup" text,
"northumberland_women_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"country" text,
"film_title_used_in_nomination" text,
"language" text,
"original_title" text,
"director" text
);
Question: What was the film nomination in the Netherlands?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"country" text,
"film_title_used_in_nomination" text,
"language" text,
"original_title" text,
"director" text
);
Question: Who directed Turks Fruit?
<|assistant|>
SELECT "director... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"country" text,
"film_title_used_in_nomination" text,
"language" text,
"original_title" text,
"director" text
);
Question: What director is from Poland?
<|assistant|>
SELECT "dire... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"country" text,
"film_title_used_in_nomination" text,
"language" text,
"original_title" text,
"director" text
);
Question: Who directed the Romanian film?
<|assistant|>
SELECT "di... |
<|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: What placement gets more than $400?
<|assistant|>
SELECT "place" FROM ... |
<|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: What's the average payout of toney penna with a +2 par?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What is the attendance number of the game on April 16?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1981_kansas_city_chiefs_season" (
"round" real,
"pick" real,
"name" text,
"position" text,
"college" text
);
Question: What was the average pick of northwestern state college under round 3?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1981_kansas_city_chiefs_season" (
"round" real,
"pick" real,
"name" text,
"position" text,
"college" text
);
Question: Rutgers college holds what position?
<|assistant|>
SELECT "position" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1981_kansas_city_chiefs_season" (
"round" real,
"pick" real,
"name" text,
"position" text,
"college" text
);
Question: In what round smaller than 10, was the center les studdard picked in?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1981_kansas_city_chiefs_season" (
"round" real,
"pick" real,
"name" text,
"position" text,
"college" text
);
Question: Which college had rounds smaller than 2?
<|assistant|>
SELECT "college" FR... |
<|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,
"attendance" real,
"record" text
);
Question: What record was reached with a score of 7 - 2?
<|assistant|>
SELECT "record" FROM "game_log... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_games_for_each_club" (
"rank" text,
"games" text,
"player" text,
"club" text,
"career_span" text
);
Question: What is the name of the club with a rank of 5?
<|assistant|>
SELECT "club" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_games_for_each_club" (
"rank" text,
"games" text,
"player" text,
"club" text,
"career_span" text
);
Question: What is the rank that shows 276 games?
<|assistant|>
SELECT "rank" FROM "most_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_games_for_each_club" (
"rank" text,
"games" text,
"player" text,
"club" text,
"career_span" text
);
Question: What is the rank that shows 426 games?
<|assistant|>
SELECT "rank" FROM "most_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_games_for_each_club" (
"rank" text,
"games" text,
"player" text,
"club" text,
"career_span" text
);
Question: What is the number of games for Roger Merrett?
<|assistant|>
SELECT "games" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_500" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text,
"entrant" text
);
Question: What Engine had a Finish of 27?
<|assistant|>
SELECT "engine" FROM "in... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_500" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text,
"entrant" text
);
Question: What Engine had a chassis of March 85c?
<|assistant|>
SELECT "engine" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_500" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text,
"entrant" text
);
Question: What Engine has a Finish of 21?
<|assistant|>
SELECT "engine" FROM "in... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cry_engine_2" (
"title" text,
"year" text,
"developer" text,
"publisher" text,
"platform" text
);
Question: On what platform does Mindark publish?
<|assistant|>
SELECT "platform" FROM "cry_engi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cry_engine_2" (
"title" text,
"year" text,
"developer" text,
"publisher" text,
"platform" text
);
Question: What year did Avatar Reality release a game?
<|assistant|>
SELECT "year" FROM "cry_en... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cry_engine_2" (
"title" text,
"year" text,
"developer" text,
"publisher" text,
"platform" text
);
Question: What publisher created Crysis Warhead?
<|assistant|>
SELECT "publisher" FROM "cry_eng... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cry_engine_2" (
"title" text,
"year" text,
"developer" text,
"publisher" text,
"platform" text
);
Question: For what platform does Mindark publish?
<|assistant|>
SELECT "platform" FROM "cry_eng... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cry_engine_2" (
"title" text,
"year" text,
"developer" text,
"publisher" text,
"platform" text
);
Question: What publisher does Paleo Entertainment develop for?
<|assistant|>
SELECT "publisher"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cry_engine_2" (
"title" text,
"year" text,
"developer" text,
"publisher" text,
"platform" text
);
Question: Who was the developer for Vigilance?
<|assistant|>
SELECT "developer" FROM "cry_engin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_2014_roster" (
"number" text,
"player" text,
"position" text,
"height" text,
"weight" text,
"home_town" text
);
Question: Which player's home town is Swift Current, AB?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_2014_roster" (
"number" text,
"player" text,
"position" text,
"height" text,
"weight" text,
"home_town" text
);
Question: Which position does number 23 play?
<|assistant|>
SELECT "positi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_2014_roster" (
"number" text,
"player" text,
"position" text,
"height" text,
"weight" text,
"home_town" text
);
Question: Which number plays the skaters position?
<|assistant|>
SELECT "n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_2014_roster" (
"number" text,
"player" text,
"position" text,
"height" text,
"weight" text,
"home_town" text
);
Question: How much does number 26 weigh?
<|assistant|>
SELECT "weight" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cetacea" (
"name" text,
"species_authority" text,
"order" text,
"family" text,
"red_list" real
);
Question: Which family has a Name of humpback whale?
<|assistant|>
SELECT "family" FROM "cetace... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cetacea" (
"name" text,
"species_authority" text,
"order" text,
"family" text,
"red_list" real
);
Question: Which name has a Red List larger than 0, and a Species/Authority of balaenoptera acut... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cetacea" (
"name" text,
"species_authority" text,
"order" text,
"family" text,
"red_list" real
);
Question: Which Species/Authority has a Name of true's beaked whale?
<|assistant|>
SELECT "spec... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points" text
);
Question: What engine has 2 points?
<|assistant|>
SELECT "engine_s" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points" text
);
Question: What tyres are associated with a year after 1974 and 5 points?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points" text
);
Question: What is the engine(s) on the car before 1978 with ensign n177 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points" text
);
Question: What tyres have 1 point and an ensign n177 chassis?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
);
Question: Before 1987, what is the Entrant with bmw straight-4 (t/c) as Engine and a gr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What did Ku Hyo-Jin rank?
<|assistant|>
SELECT COUNT("rank") FROM "semifinal_1" WHERE "name"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What was the rank of the person who swam in Lane 7 with a time of 2:25.86?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
Question: Which Laid down has a Ship of fearless?
<|assistant|>
SELECT "laid_down" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
Question: Which ship has a Pennant number of h.69?
<|assistant|>
SELECT "ship" FROM "f_c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
Question: Which Launched has Commissioned 6 june 1935?
<|assistant|>
SELECT "launched" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
Question: What launch has a Ship of fearless?
<|assistant|>
SELECT "launched" FROM "f_cl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"commissioned" text
);
Question: Which commission was launched 28 june 1934, and has a Pennant number of h.78?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_scores_for_each_quarter" (
"quarter" text,
"score" text,
"club" text,
"opponent" text,
"year" text,
"round" text,
"venue" text
);
Question: Which year has a Round of 17?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_scores_for_each_quarter" (
"quarter" text,
"score" text,
"club" text,
"opponent" text,
"year" text,
"round" text,
"venue" text
);
Question: Which opponent has a Club of essendon, an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_scores_for_each_quarter" (
"quarter" text,
"score" text,
"club" text,
"opponent" text,
"year" text,
"round" text,
"venue" text
);
Question: Which opponent has a Score of 15.4.94?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_scores_for_each_quarter" (
"quarter" text,
"score" text,
"club" text,
"opponent" text,
"year" text,
"round" text,
"venue" text
);
Question: Which opponent has a Round of 12?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_scores_for_each_quarter" (
"quarter" text,
"score" text,
"club" text,
"opponent" text,
"year" text,
"round" text,
"venue" text
);
Question: Which Quarter has a Round of 17?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"br_no" real,
"name" text,
"builder" text,
"whenbuilt" text,
"withdrawn" text
);
Question: When was moray firth built?
<|assistant|>
SELECT "whenbuilt" FROM "references" WHERE "na... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"br_no" real,
"name" text,
"builder" text,
"whenbuilt" text,
"withdrawn" text
);
Question: Name the withdrawn for charles dickens
<|assistant|>
SELECT "withdrawn" FROM "references... |
<|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: Which loss has an Attendance larger than 20,841, and a Date of july 9?
<|ass... |
<|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: Which opponent has a Date of july 27?
<|assistant|>
SELECT "opponent" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"event" text
);
Question: What Venue held the World Race Walking Cup tourney before 2008?
<|assistant|>
SELECT "venu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"event" text
);
Question: What tournement was held in Helsinki, Finland in 2005?
<|assistant|>
SELECT "event" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"event" text
);
Question: What Venue held the Olympic games in 2012?
<|assistant|>
SELECT "venue" FROM "achievements... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "asia" (
"name" text,
"est" real,
"city" text,
"country" text,
"website" text
);
Question: What's the website for the yamagata international documentary film festival?
<|assistant|>
SELECT "webs... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: How did Johnnie Parsons finish when his qualifying time was 135.328?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: What was Johnnie Parsons rank when he completed over 200 laps?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"wins" text,
"podiums" text,
"position" text
);
Question: What is the value for Podiums when the value for Wins is 2, and when the Season is 2008... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"wins" text,
"podiums" text,
"position" text
);
Question: What is the value for Position, when the Series is the Macau Grand Prix, and when the S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"wins" text,
"podiums" text,
"position" text
);
Question: What is the value for Wins when the Position is 7th?
<|assistant|>
SELECT "wins" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"wins" text,
"podiums" text,
"position" text
);
Question: What is the Series, when the Season is after 2008, when the value for Podiums is 3, and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"wins" text,
"podiums" text,
"position" text
);
Question: What is the value for Podiums, when the Season is after 2008, and when the Series is GP... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"wins" text,
"podiums" text,
"position" text
);
Question: What is the value for Wins, when the Series is GP2 Series, and when the Season is befor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.