text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which venue has an Away team score of 18... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What date has a Home team score of 7.11 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is moorabbin oval's away team?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the home score with an Away team... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is Karl Wendlinger's total grid #?
<|assistant|>
SELECT COUNT("grid") FROM "race" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which away team score also had a home te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Home team score had a Home team of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_representatives_who_resigned" (
"name" text,
"party" text,
"date_of_resignation" text,
"replacement" text,
"notes" text
);
Question: Who was replaced by Lieve Wierinck?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_rmsp_company_vessels" (
"ship" text,
"date_commissioned" real,
"gross_tonnage" real,
"propulsion" text,
"material" text
);
Question: Name the sum of gross tonnage for wood on date more ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_rmsp_company_vessels" (
"ship" text,
"date_commissioned" real,
"gross_tonnage" real,
"propulsion" text,
"material" text
);
Question: Tell me the sum of Gross Tonnage for isis ship on da... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_rmsp_company_vessels" (
"ship" text,
"date_commissioned" real,
"gross_tonnage" real,
"propulsion" text,
"material" text
);
Question: Tell me the lowest date commissioned for iron rmsrho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_tournament" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
);
Question: Name the height for 2008 club of trentino volley
<|assistant|>
SELECT "height" FROM "m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_tournament" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
);
Question: Who was in the 2008 club of gabeca montichiari?
<|assistant|>
SELECT "name" FROM "men_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What Constructor has a +1.027 Time/Retired?
<|assistant|>
SELECT "constructor" FROM "race" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What Constructor has 56 Laps?
<|assistant|>
SELECT "constructor" FROM "race" WHERE "laps"=5... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What Driver has 28 Laps and a Grid greater than 5?
<|assistant|>
SELECT "driver" FROM "race... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the highest Laps with a Time/Retired Wheel?
<|assistant|>
SELECT MAX("laps") FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What Driver has a +1.027 Time/Retired?
<|assistant|>
SELECT "driver" FROM "race" WHERE "tim... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "challenge_cup" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text,
"goals" text
);
Question: What game has a score of 44-20?
<|assistant|>
SELECT "result" FROM "chal... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "challenge_cup" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text,
"goals" text
);
Question: What date was a game played at Headingley Stadium?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "challenge_cup" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text,
"goals" text
);
Question: What competition was played at Shay Stadium?
<|assistant|>
SELECT "compe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "filmography" (
"year" real,
"show" text,
"season" real,
"episode_title" text,
"episode" real
);
Question: Which show had a part 3 before 2011?
<|assistant|>
SELECT "show" FROM "filmography" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "residents_of_white_deer_park" (
"animal_name" text,
"species" text,
"books" text,
"tv_series" text,
"gender" text,
"tv_seasons" text,
"mate" text,
"first_appearance" text,
"last_appearan... |
<|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: How many people attended on April 12?
<|assistant|>
SELECT COUNT("attendance... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1905_1911" (
"class" text,
"wheels" text,
"date" text,
"no_built" real,
"loco_nos" text
);
Question: On what date were 5 built with 4-4-2t wheels?
<|assistant|>
SELECT "date" FROM "1905_1911" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1905_1911" (
"class" text,
"wheels" text,
"date" text,
"no_built" real,
"loco_nos" text
);
Question: On what date was the number of locomotives 421-6?
<|assistant|>
SELECT "date" FROM "1905_191... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1905_1911" (
"class" text,
"wheels" text,
"date" text,
"no_built" real,
"loco_nos" text
);
Question: How many were built with a locomotive number of 11-20?
<|assistant|>
SELECT "no_built" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1905_1911" (
"class" text,
"wheels" text,
"date" text,
"no_built" real,
"loco_nos" text
);
Question: On what date were more than 5 built with 4-4-2 wheels?
<|assistant|>
SELECT "date" FROM "190... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1905_1911" (
"class" text,
"wheels" text,
"date" text,
"no_built" real,
"loco_nos" text
);
Question: On what date were less than 10 built with a locomotive number of 31-35?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many spectators watched when the awa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What did Essendon score when they were t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When did the home team score 19.17 (131)... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the home team at Brunswick Street... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was South Melbourne's away team scor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the away team at Brunswick Street... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the" (
"peak" text,
"height_m" real,
"prom_m" real,
"class" text,
"parent" text
);
Question: Tell me the lowest height for class of hewitt and prom less than 148
<|assistant|>
SELECT MIN("heigh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the" (
"peak" text,
"height_m" real,
"prom_m" real,
"class" text,
"parent" text
);
Question: Tell me the total number of prom for height less than 615
<|assistant|>
SELECT COUNT("prom_m") FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the" (
"peak" text,
"height_m" real,
"prom_m" real,
"class" text,
"parent" text
);
Question: I want to know the peak which is prom less than 147 and height less than 619
<|assistant|>
SELECT "p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the" (
"peak" text,
"height_m" real,
"prom_m" real,
"class" text,
"parent" text
);
Question: Tell me the peak for prom being less than 147
<|assistant|>
SELECT "peak" FROM "the" WHERE "prom_m"<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the" (
"peak" text,
"height_m" real,
"prom_m" real,
"class" text,
"parent" text
);
Question: Tell me the lowest prom for class of hewitt and peak of cushat law and height more than 615
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the" (
"peak" text,
"height_m" real,
"prom_m" real,
"class" text,
"parent" text
);
Question: Name the peak for height more than 619 and class of hewitt with prom being 148
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "partisan_mix_of_the_house_by_state" (
"state_ranked_in_partisan_order" text,
"percentage_democrats" text,
"percentage_republicans" text,
"democratic_republican" text,
"democratic_seat_plurality"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "partisan_mix_of_the_house_by_state" (
"state_ranked_in_partisan_order" text,
"percentage_democrats" text,
"percentage_republicans" text,
"democratic_republican" text,
"democratic_seat_plurality"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "partisan_mix_of_the_house_by_state" (
"state_ranked_in_partisan_order" text,
"percentage_democrats" text,
"percentage_republicans" text,
"democratic_republican" text,
"democratic_seat_plurality"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "partisan_mix_of_the_house_by_state" (
"state_ranked_in_partisan_order" text,
"percentage_democrats" text,
"percentage_republicans" text,
"democratic_republican" text,
"democratic_seat_plurality"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "partisan_mix_of_the_house_by_state" (
"state_ranked_in_partisan_order" text,
"percentage_democrats" text,
"percentage_republicans" text,
"democratic_republican" text,
"democratic_seat_plurality"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: What is the score of the game with Pacers as the Vis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: Who was Home on December 5, 2007?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "administered_by_the_national_government_" (
"english_name" text,
"japanese_orthography" text,
"pronouciation" text,
"abbreviation" text,
"provider_national_government" text,
"foundation" real
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "administered_by_the_national_government_" (
"english_name" text,
"japanese_orthography" text,
"pronouciation" text,
"abbreviation" text,
"provider_national_government" text,
"foundation" real
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What did the team score when playing at ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the top crowd when the away tea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What did st kilda score at home?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the top crowd when collingwood ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which team plays home in western oval ve... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: When the driver is innes ireland and they drove under 53 laps, what was the Time/Retired?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: How many laps does peter arundell have?
<|assistant|>
SELECT "laps" FROM "race" WHERE "driv... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which driver has a grid value larger than 11, and drove more than 52 laps?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Tell me the away team score with the crow... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the crowd for away team of north ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the date when the away team is es... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Name the visitor from vancouver on february 24
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_great_central_railway_locomotive" (
"number_name" text,
"description" text,
"livery" text,
"owner_s" text,
"date" text
);
Question: Which description is dated 1962?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Moorabbin oval is home to what team?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which away team scored 10.14 (74)?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many crowds had a home team score of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many people were in the crowd on the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_in_tour_de_france" (
"year" real,
"stage" real,
"category" text,
"start" text,
"finish" text,
"leader_at_the_summit" text
);
Question: Who was the leader at the summit for the rac... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_in_tour_de_france" (
"year" real,
"stage" real,
"category" text,
"start" text,
"finish" text,
"leader_at_the_summit" text
);
Question: What is the sum of the stages for category 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the stadium of melbourne?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How big was the average crowd when the op... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What was the record in the game where the decision was Bac... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "zamora_trophy" (
"goalkeeper" text,
"goals" real,
"matches" real,
"average" real,
"team" text
);
Question: For Getafe CF, what is the highest number of goals scored?
<|assistant|>
SELECT MAX("g... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "zamora_trophy" (
"goalkeeper" text,
"goals" real,
"matches" real,
"average" real,
"team" text
);
Question: For players with fewer than 41 goals for CA Osasuna and averages under 1.06, what is t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "zamora_trophy" (
"goalkeeper" text,
"goals" real,
"matches" real,
"average" real,
"team" text
);
Question: For averages of 1.58 and matches under 38, what is the average number of goals?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"season" text,
"uefa_season" text,
"coeff" text,
"ranking" real,
"champions" text,
"runner_up" text,
"3rd_place" text,
"cup_winner" text,
"cup_runner_up" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"season" text,
"uefa_season" text,
"coeff" text,
"ranking" real,
"champions" text,
"runner_up" text,
"3rd_place" text,
"cup_winner" text,
"cup_runner_up" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"season" text,
"uefa_season" text,
"coeff" text,
"ranking" real,
"champions" text,
"runner_up" text,
"3rd_place" text,
"cup_winner" text,
"cup_runner_up" text
);
Question: In... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"season" text,
"uefa_season" text,
"coeff" text,
"ranking" real,
"champions" text,
"runner_up" text,
"3rd_place" text,
"cup_winner" text,
"cup_runner_up" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_games" (
"game" real,
"date" text,
"batting_1st" text,
"batting_2nd" text,
"result" text
);
Question: what is the game for 23 april when batting 2nd is england 5/113 (19)?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_games" (
"game" real,
"date" text,
"batting_1st" text,
"batting_2nd" text,
"result" text
);
Question: what is the game when batting 2nd is new zealand 6/133 (18)?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_games" (
"game" real,
"date" text,
"batting_1st" text,
"batting_2nd" text,
"result" text
);
Question: what is the game when the result is new zealand by 4 wickets?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_games" (
"game" real,
"date" text,
"batting_1st" text,
"batting_2nd" text,
"result" text
);
Question: who is batting 1st in game 8?
<|assistant|>
SELECT "batting_1st" FROM "qualifyin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"season" text,
"pyramid_level" text,
"regular_season_1" text,
"playoffs_1" text,
"regular_season_2" text,
"playoffs_2" text,
"copa_m_xico" text,
"concacaf" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"season" text,
"pyramid_level" text,
"regular_season_1" text,
"playoffs_1" text,
"regular_season_2" text,
"playoffs_2" text,
"copa_m_xico" text,
"concacaf" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"season" text,
"pyramid_level" text,
"regular_season_1" text,
"playoffs_1" text,
"regular_season_2" text,
"playoffs_2" text,
"copa_m_xico" text,
"concacaf" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"season" text,
"pyramid_level" text,
"regular_season_1" text,
"playoffs_1" text,
"regular_season_2" text,
"playoffs_2" text,
"copa_m_xico" text,
"concacaf" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which Grid did Alain Prost drive on?
<|assistant|>
SELECT SUM("grid") FROM "race" WHERE "dr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What was Riccardo Patrese's time/retired?
<|assistant|>
SELECT "time_retired" FROM "race" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What venue has a score of 14.15 (99) for... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What venue has the score of 14.11 (95) f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
);
Question: How many rounds did geoff lees drive with chassis of n18... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
);
Question: What is the tyres for Didier pironi?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
);
Question: Who was the constructor of the car that Jan Lammers made... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
);
Question: What engine was used during the race driven by Jan Lamme... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Which Competition has a Venue of Seoul, and Result of 4-1?
<|assistant|>
SELECT "c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What's the Result listed that has a Date of June 12, 1997?
<|assistant|>
SELECT "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What's the Score listed that has a Result of 1-0?
<|assistant|>
SELECT "score" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What's the Result for the Competition of 1994 FIFA World Cup Qualification, with t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Which Competition had a Result of 3-0 and VEnue of Suwon?
<|assistant|>
SELECT "co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.