text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"rnd" real,
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
);
Question: What was the constructor for round 15?
<|assistant|>
SELECT "constructor" FROM "season_review" WHERE "rnd"=15;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: Who won the Brands Hatch circuit?
<|assistant|>
SELECT "winning_driver" FROM "non_championship_race_results" WHERE "circuit"='Brands Hatch';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: Who constructed the I Italian Republic Grand Prix?
<|assistant|>
SELECT "constructor" FROM "non_championship_race_results" WHERE "race_name"='I Italian Republic Grand Prix';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What race was held at Oulton Park?
<|assistant|>
SELECT "race_name" FROM "non_championship_race_results" WHERE "circuit"='Oulton Park';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: Did the I Brazilian Grand Prix have a report?
<|assistant|>
SELECT "report" FROM "non_championship_race_results" WHERE "race_name"='I Brazilian Grand Prix';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"rnd" real,
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
);
Question: what is the race where the pole position is niki lauda and the date is 27 april?
<|assistant|>
SELECT "race" FROM "season_review" WHERE "pole_position"='Niki Lauda' AND "date"='27 April';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"rnd" real,
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
);
Question: what is the date where the constructor is ferrari and the location is anderstorp?
<|assistant|>
SELECT "date" FROM "season_review" WHERE "constructor"='Ferrari' AND "location"='Anderstorp';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"rnd" real,
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
);
Question: how many times is the pole position niki lauda and the race is monaco grand prix?
<|assistant|>
SELECT COUNT("rnd") FROM "season_review" WHERE "pole_position"='Niki Lauda' AND "race"='Monaco Grand Prix';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"rnd" real,
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
);
Question: what is the report where the location is kyalami?
<|assistant|>
SELECT "report" FROM "season_review" WHERE "location"='Kyalami';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"rnd" real,
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
);
Question: who is the pole position for the rnd 3
<|assistant|>
SELECT "pole_position" FROM "season_review" WHERE "rnd"=3;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"rnd" real,
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
);
Question: what is the race where the fastest lap is by jean-pierre jarier?
<|assistant|>
SELECT "race" FROM "season_review" WHERE "fastest_lap"='Jean-Pierre Jarier';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What circuit did Clay Regazzoni win?
<|assistant|>
SELECT "circuit" FROM "non_championship_race_results" WHERE "winning_driver"='Clay Regazzoni';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What was the date when Chris Amon won?
<|assistant|>
SELECT "date" FROM "non_championship_race_results" WHERE "winning_driver"='Chris Amon';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What circuit is the Vi Rhein-Pokalrennen race in?
<|assistant|>
SELECT "circuit" FROM "non_championship_race_results" WHERE "race_name"='VI Rhein-Pokalrennen';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"num" real,
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What date is listed at place 13
<|assistant|>
SELECT "date" FROM "non_championship_race_results" WHERE "num"=13;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"num" real,
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What date has a solitudering circuit
<|assistant|>
SELECT "date" FROM "non_championship_race_results" WHERE "circuit"='Solitudering';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"num" real,
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: How many dates have silverstone circuit
<|assistant|>
SELECT COUNT("date") FROM "non_championship_race_results" WHERE "circuit"='Silverstone';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"num" real,
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: How many constructors are listed for the XVI BRDC international trophy race
<|assistant|>
SELECT COUNT("constructor") FROM "non_championship_race_results" WHERE "race_name"='XVI BRDC International Trophy';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_races_review" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What is the name of the circuit in which the race name is ii danish grand prix?
<|assistant|>
SELECT "circuit" FROM "non_championship_races_review" WHERE "race_name"='II Danish Grand Prix';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_races_review" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What is te name of the constructors dated 26 march?
<|assistant|>
SELECT "constructor" FROM "non_championship_races_review" WHERE "date"='26 March';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_races_review" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What is the total amount of circuts dated 22 april?
<|assistant|>
SELECT COUNT("circuit") FROM "non_championship_races_review" WHERE "date"='22 April';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_races_review" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: what is the name of the constructor that has the circuit zeltweg airfield?
<|assistant|>
SELECT "constructor" FROM "non_championship_races_review" WHERE "circuit"='Zeltweg Airfield';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_races_review" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What is the name of the winning driver where the circuit name is posillipo?
<|assistant|>
SELECT "winning_driver" FROM "non_championship_races_review" WHERE "circuit"='Posillipo';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_races_review" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What is the name of the circuit where the race xi Syracuse grand prix was held?
<|assistant|>
SELECT "circuit" FROM "non_championship_races_review" WHERE "race_name"='XI Syracuse Grand Prix';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What kind of report is for the Pau circuit?
<|assistant|>
SELECT "report" FROM "non_championship_race_results" WHERE "circuit"='Pau';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: How many different kinds of reports are there for races that Juan Manuel Fangio won?
<|assistant|>
SELECT COUNT("report") FROM "non_championship_race_results" WHERE "winning_driver"='Juan Manuel Fangio';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: Who constructed the Syracuse circuit?
<|assistant|>
SELECT "constructor" FROM "non_championship_race_results" WHERE "circuit"='Syracuse';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What is the name of the race in the Modena circuit?
<|assistant|>
SELECT "race_name" FROM "non_championship_race_results" WHERE "circuit"='Modena';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What is the race name in the Monza circuit?
<|assistant|>
SELECT "race_name" FROM "non_championship_race_results" WHERE "circuit"='Monza';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: When does V Madgwick Cup take place?
<|assistant|>
SELECT "date" FROM "non_championship_race_results" WHERE "race_name"='V Madgwick Cup';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: Which driver won the race xiv eläintarhanajot?
<|assistant|>
SELECT "winning_driver" FROM "non_championship_race_results" WHERE "race_name"='XIV Eläintarhanajot';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: Who won the Modena circuit?
<|assistant|>
SELECT "winning_driver" FROM "non_championship_race_results" WHERE "circuit"='Modena';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: How many constructors won the III Redex Trophy?
<|assistant|>
SELECT COUNT("constructor") FROM "non_championship_race_results" WHERE "race_name"='III RedeX Trophy';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What was the report of Mike Hawthorn's winning race?
<|assistant|>
SELECT "report" FROM "non_championship_race_results" WHERE "winning_driver"='Mike Hawthorn';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What was the name of the race in Bordeaux?
<|assistant|>
SELECT "race_name" FROM "non_championship_race_results" WHERE "circuit"='Bordeaux';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What is the report for the race name V Ulster Trophy?
<|assistant|>
SELECT "report" FROM "non_championship_race_results" WHERE "race_name"='V Ulster Trophy';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What is the constructor for the Silverstone circuit?
<|assistant|>
SELECT "constructor" FROM "non_championship_race_results" WHERE "circuit"='Silverstone';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What's the report for the Silverstone circuit?
<|assistant|>
SELECT "report" FROM "non_championship_race_results" WHERE "circuit"='Silverstone';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What's the report for the race name, XIII Grand Prix de l'Albigeois?
<|assistant|>
SELECT "report" FROM "non_championship_race_results" WHERE "race_name"='XIII Grand Prix de l''Albigeois';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: Which date did the race name XII Pau Grand Prix take place on?
<|assistant|>
SELECT "date" FROM "non_championship_race_results" WHERE "race_name"='XII Pau Grand Prix';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: Who was the winning driver for the goodwood circuit?
<|assistant|>
SELECT "winning_driver" FROM "non_championship_race_results" WHERE "circuit"='Goodwood';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11411026_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: How many millions of U.S. viewers whatched episodes written by Krystal Houghton?
<|assistant|>
SELECT "u_s_viewers_millions" FROM "table1_11411026_2" WHERE "written_by"='Krystal Houghton';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11411026_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: How many titles were directed in series 79?
<|assistant|>
SELECT COUNT("directed_by") FROM "table1_11411026_2" WHERE "no_in_series"=79;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11411026_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: Who wrote an episode watched by 19.01 million US viewers?
<|assistant|>
SELECT "written_by" FROM "table1_11411026_2" WHERE "u_s_viewers_millions"='19.01';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11404452_1" (
"series_num" real,
"episode_title" text,
"writer_s" text,
"director" text,
"u_s_viewers_millions" text,
"original_air_date" text
);
Question: What are the titles of the episodes where Rodman Flender is the director?
<|assistant|>
SELECT "episode_title" FROM "table1_11404452_1" WHERE "director"='Rodman Flender';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11404452_1" (
"series_num" real,
"episode_title" text,
"writer_s" text,
"director" text,
"u_s_viewers_millions" text,
"original_air_date" text
);
Question: What is the original air date of the Jamie Babbit directed episode?
<|assistant|>
SELECT "original_air_date" FROM "table1_11404452_1" WHERE "director"='Jamie Babbit';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11404452_1" (
"series_num" real,
"episode_title" text,
"writer_s" text,
"director" text,
"u_s_viewers_millions" text,
"original_air_date" text
);
Question: What is the original air date when there were 12.81 million u.s viewers?
<|assistant|>
SELECT "original_air_date" FROM "table1_11404452_1" WHERE "u_s_viewers_millions"='12.81';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11404452_1" (
"series_num" real,
"episode_title" text,
"writer_s" text,
"director" text,
"u_s_viewers_millions" text,
"original_air_date" text
);
Question: When did Shelia Lawrence join the series?
<|assistant|>
SELECT MIN("series_num") FROM "table1_11404452_1" WHERE "writer_s"='Shelia Lawrence';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11404452_1" (
"series_num" real,
"episode_title" text,
"writer_s" text,
"director" text,
"u_s_viewers_millions" text,
"original_air_date" text
);
Question: Who was the director when there were 13.66 million u.s viewers?
<|assistant|>
SELECT "director" FROM "table1_11404452_1" WHERE "u_s_viewers_millions"='13.66';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "yearly_results" (
"season" text,
"games" real,
"won" real,
"lost" real,
"tied" real,
"points" real,
"pct_pct" text,
"goals_for" real,
"goals_against" real,
"standing" text
);
Question: Name the percentage where the amount won was 25
<|assistant|>
SELECT "pct_pct" FROM "yearly_results" WHERE "won"=25;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "yearly_results" (
"season" text,
"games" real,
"won" real,
"lost" real,
"tied" real,
"points" real,
"pct_pct" text,
"goals_for" real,
"goals_against" real,
"standing" text
);
Question: How many games were won with 2nd oha was standing and there were 62 games?
<|assistant|>
SELECT "won" FROM "yearly_results" WHERE "standing"='2nd OHA' AND "games"=62;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_by_ward" (
"ward" text,
"bello" text,
"ben_tahir" text,
"doucet" text,
"furtenbacher" text,
"gauthier" text,
"haydon" text,
"larter" text,
"lawrance" text,
"libweshya" text,
"liscumb" text
);
Question: What is the Liscumb when Gauthier is 34?
<|assistant|>
SELECT "liscumb" FROM "results_by_ward" WHERE "gauthier"='34';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_by_ward" (
"ward" text,
"bello" text,
"ben_tahir" text,
"doucet" text,
"furtenbacher" text,
"gauthier" text,
"haydon" text,
"larter" text,
"lawrance" text,
"libweshya" text,
"liscumb" text
);
Question: What is the Bello when Ben-Tahir is 296?
<|assistant|>
SELECT "bello" FROM "results_by_ward" WHERE "ben_tahir"='296';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_by_ward" (
"ward" text,
"bello" text,
"ben_tahir" text,
"doucet" text,
"furtenbacher" text,
"gauthier" text,
"haydon" text,
"larter" text,
"lawrance" text,
"libweshya" text,
"liscumb" text
);
Question: What is Ben-Tahir when Bello is 51?
<|assistant|>
SELECT "ben_tahir" FROM "results_by_ward" WHERE "bello"='51';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_by_ward" (
"ward" text,
"bello" text,
"ben_tahir" text,
"doucet" text,
"furtenbacher" text,
"gauthier" text,
"haydon" text,
"larter" text,
"lawrance" text,
"libweshya" text,
"liscumb" text
);
Question: What is Haydon when Larter is 11 and Libweshya is 4?
<|assistant|>
SELECT "haydon" FROM "results_by_ward" WHERE "larter"='11' AND "libweshya"='4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_by_ward" (
"ward" text,
"bello" text,
"ben_tahir" text,
"doucet" text,
"furtenbacher" text,
"gauthier" text,
"haydon" text,
"larter" text,
"lawrance" text,
"libweshya" text,
"liscumb" text
);
Question: What is Liscumb when Haydon is 1632?
<|assistant|>
SELECT "liscumb" FROM "results_by_ward" WHERE "haydon"='1632';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_by_ward" (
"ward" text,
"bello" text,
"ben_tahir" text,
"doucet" text,
"furtenbacher" text,
"gauthier" text,
"haydon" text,
"larter" text,
"lawrance" text,
"libweshya" text,
"liscumb" text
);
Question: What is Doucet when Lawrance is 36?
<|assistant|>
SELECT "doucet" FROM "results_by_ward" WHERE "lawrance"='36';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"tv" text,
"attendance" text,
"record" text
);
Question: Which tv had the date december 7, 1986?
<|assistant|>
SELECT "tv" FROM "schedule" WHERE "date"='December 7, 1986';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"tv" text,
"attendance" text,
"record" text
);
Question: Which kickoff has the opponent at new orleans saints?
<|assistant|>
SELECT "kickoff_a" FROM "schedule" WHERE "opponent"='at New Orleans Saints';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "houses" (
"house_name" text,
"composition" text,
"named_after" text,
"founded" real,
"colours" text
);
Question: How many houses are green?
<|assistant|>
SELECT COUNT("house_name") FROM "houses" WHERE "colours"='Green';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "houses" (
"house_name" text,
"composition" text,
"named_after" text,
"founded" real,
"colours" text
);
Question: What year was the house named gongola made?
<|assistant|>
SELECT "founded" FROM "houses" WHERE "house_name"='Gongola';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "houses" (
"house_name" text,
"composition" text,
"named_after" text,
"founded" real,
"colours" text
);
Question: What is the name of the green house?
<|assistant|>
SELECT "house_name" FROM "houses" WHERE "colours"='Green';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "houses" (
"house_name" text,
"composition" text,
"named_after" text,
"founded" real,
"colours" text
);
Question: What is the green house made of?
<|assistant|>
SELECT "composition" FROM "houses" WHERE "colours"='Green';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "houses" (
"house_name" text,
"composition" text,
"named_after" text,
"founded" real,
"colours" text
);
Question: What is the benue house made of?
<|assistant|>
SELECT "composition" FROM "houses" WHERE "house_name"='Benue';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"tv" text,
"attendance" text,
"record" text
);
Question: In which week was the game against a team with a record of 3-6 played?
<|assistant|>
SELECT COUNT("week") FROM "schedule" WHERE "record"='3-6';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"tv" text,
"attendance" text,
"record" text
);
Question: Which channel had the game against the Minnesota Vikings?
<|assistant|>
SELECT "tv" FROM "schedule" WHERE "opponent"='Minnesota Vikings';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"tv" text,
"attendance" text,
"record" text
);
Question: How many opponents were there at the game with 64,087 people in attendance?
<|assistant|>
SELECT COUNT("opponent") FROM "schedule" WHERE "attendance"='64,087';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"tv" text,
"attendance" text,
"record" text
);
Question: Where was the game played when the team's record was 1-3?
<|assistant|>
SELECT "game_site" FROM "schedule" WHERE "record"='1-3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"tv" text,
"attendance" text,
"record" text
);
Question: How many times was there a kickoff in the September 4, 1988 game?
<|assistant|>
SELECT COUNT("kickoff_a") FROM "schedule" WHERE "date"='September 4, 1988';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"tv" text,
"attendance" text,
"record" text
);
Question: How many crowds watched the game where the record was 1-3?
<|assistant|>
SELECT COUNT("attendance") FROM "schedule" WHERE "record"='1-3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_summary" (
"series" real,
"year" text,
"winner" text,
"runner_up" text,
"third_place" text,
"fourth_place" text,
"fifth_place" text,
"sixth_place" text,
"host" text
);
Question: What year finished with Daniel Zueras as the runner-up?
<|assistant|>
SELECT COUNT("year") FROM "series_summary" WHERE "runner_up"='Daniel Zueras';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_summary" (
"series" real,
"year" text,
"winner" text,
"runner_up" text,
"third_place" text,
"fourth_place" text,
"fifth_place" text,
"sixth_place" text,
"host" text
);
Question: How many people hosted the show in the year when Chenoa ended up in fourth place?
<|assistant|>
SELECT COUNT("host") FROM "series_summary" WHERE "fourth_place"='Chenoa';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_summary" (
"series" real,
"year" text,
"winner" text,
"runner_up" text,
"third_place" text,
"fourth_place" text,
"fifth_place" text,
"sixth_place" text,
"host" text
);
Question: How many fourth places were there in 2003?
<|assistant|>
SELECT COUNT("fourth_place") FROM "series_summary" WHERE "year"='2003';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "models_and_engines" (
"model" text,
"max_motive_power" text,
"max_torque_at_rpm" text,
"engine_displacement" text,
"engine_type" text,
"engine_configuration_notes_0_100km_h" text
);
Question: What is the engine type when the max torque at rpm is n·m ( lbf·ft ) @ 4,800 Answers:?
<|assistant|>
SELECT "engine_type" FROM "models_and_engines" WHERE "max_torque_at_rpm"='N·m ( lbf·ft ) @ 4,800';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "models_and_engines" (
"model" text,
"max_motive_power" text,
"max_torque_at_rpm" text,
"engine_displacement" text,
"engine_type" text,
"engine_configuration_notes_0_100km_h" text
);
Question: What is the engine configuration $notes 0-100km/h for the engine type b5244 t2?
<|assistant|>
SELECT "engine_configuration_notes_0_100km_h" FROM "models_and_engines" WHERE "engine_type"='B5244 T2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "models_and_engines" (
"model" text,
"max_motive_power" text,
"max_torque_at_rpm" text,
"engine_displacement" text,
"engine_type" text,
"engine_configuration_notes_0_100km_h" text
);
Question: What is the engine displacement for the engine type b5254 t?
<|assistant|>
SELECT "engine_displacement" FROM "models_and_engines" WHERE "engine_type"='B5254 T';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "models_and_engines" (
"model" text,
"max_motive_power" text,
"max_torque_at_rpm" text,
"engine_displacement" text,
"engine_type" text,
"engine_configuration_notes_0_100km_h" text
);
Question: How many have are model 2.4 awd?
<|assistant|>
SELECT COUNT("engine_type") FROM "models_and_engines" WHERE "model"='2.4 AWD';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "models_and_engines" (
"model" text,
"max_motive_power" text,
"max_torque_at_rpm" text,
"engine_displacement" text,
"engine_type" text,
"engine_configuration_notes_0_100km_h" text
);
Question: How many engine b5204 t3?
<|assistant|>
SELECT COUNT("engine_displacement") FROM "models_and_engines" WHERE "engine_type"='B5204 T3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "models_and_engines" (
"model" text,
"max_motive_power" text,
"max_torque_at_rpm" text,
"engine_displacement" text,
"engine_type" text,
"engine_configuration_notes_0_100km_h" text
);
Question: How many engine b5234 t3?
<|assistant|>
SELECT COUNT("model") FROM "models_and_engines" WHERE "engine_type"='B5234 T3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"model_name" text,
"power_ps" real,
"torque_nm_rpm" text,
"displacement_cm" real,
"engine_code" text,
"comment" text
);
Question: how many power (ps) with torque (nm@rpm) being 240@2200-5000
<|assistant|>
SELECT COUNT("power_ps") FROM "engines" WHERE "torque_nm_rpm"='240@2200-5000';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"model_name" text,
"power_ps" real,
"torque_nm_rpm" text,
"displacement_cm" real,
"engine_code" text,
"comment" text
);
Question: what's the comment with model name being 2.4 (2001-2007)
<|assistant|>
SELECT "comment" FROM "engines" WHERE "model_name"='2.4 (2001-2007)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"model_name" text,
"power_ps" real,
"torque_nm_rpm" text,
"displacement_cm" real,
"engine_code" text,
"comment" text
);
Question: what's the model name with engine code being b5204 t5
<|assistant|>
SELECT "model_name" FROM "engines" WHERE "engine_code"='B5204 T5';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"model_name" text,
"power_ps" real,
"torque_nm_rpm" text,
"displacement_cm" real,
"engine_code" text,
"comment" text
);
Question: what's the dbeingplacement (cm³) with torque (nm@rpm) being 350@1800-6000
<|assistant|>
SELECT "displacement_cm" FROM "engines" WHERE "torque_nm_rpm"='350@1800-6000';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"model_name" text,
"power_ps" real,
"torque_nm_rpm" text,
"displacement_cm" real,
"engine_code" text,
"comment" text
);
Question: what's the model name with torque (nm@rpm) being 230@4500
<|assistant|>
SELECT "model_name" FROM "engines" WHERE "torque_nm_rpm"='230@4500';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"model_name" text,
"power_ps" real,
"torque_nm_rpm" text,
"displacement_cm" real,
"engine_code" text,
"comment" text
);
Question: what's the model name with engine code being b5254 t4
<|assistant|>
SELECT "model_name" FROM "engines" WHERE "engine_code"='B5254 T4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"model_name" text,
"power_ps" real,
"torque_nm_rpm" text,
"displacement_cm" real,
"engine_code" text,
"comment" text
);
Question: Name the torque of the engine is d5244 t5
<|assistant|>
SELECT "torque_nm_rpm" FROM "engines" WHERE "engine_code"='D5244 T5';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"model_name" text,
"power_ps" real,
"torque_nm_rpm" text,
"displacement_cm" real,
"engine_code" text,
"comment" text
);
Question: What is the model of the engine d5244 t?
<|assistant|>
SELECT "model_name" FROM "engines" WHERE "engine_code"='D5244 T';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"model_name" text,
"power_ps" real,
"torque_nm_rpm" text,
"displacement_cm" real,
"engine_code" text,
"comment" text
);
Question: What is the model of the enginge d5252 t?
<|assistant|>
SELECT "model_name" FROM "engines" WHERE "engine_code"='D5252 T';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engines" (
"model_name" text,
"power_ps" real,
"torque_nm_rpm" text,
"displacement_cm" real,
"engine_code" text,
"comment" text
);
Question: What is the model of the engine d5244 t7?
<|assistant|>
SELECT "model_name" FROM "engines" WHERE "engine_code"='D5244 T7';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "k" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the position of number 47?
<|assistant|>
SELECT "position" FROM "k" WHERE "no"='47';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "k" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Name the position of Turkey
<|assistant|>
SELECT "position" FROM "k" WHERE "nationality"='Turkey';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "k" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Who is player number 51?
<|assistant|>
SELECT "player" FROM "k" WHERE "no"='51';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "k" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the position for the years 1998-99
<|assistant|>
SELECT "position" FROM "k" WHERE "years_for_jazz"='1998-99';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "k" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: How many positions are for creighton?
<|assistant|>
SELECT COUNT("position") FROM "k" WHERE "school_club_team"='Creighton';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Which player is from Marshall and played 1974-75?
<|assistant|>
SELECT "player" FROM "l" WHERE "years_for_jazz"='1974-75' AND "school_club_team"='Marshall';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Which country is the player that went to Oregon?
<|assistant|>
SELECT "nationality" FROM "l" WHERE "school_club_team"='Oregon';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Which country is Jim Les from?
<|assistant|>
SELECT "nationality" FROM "l" WHERE "player"='Jim Les';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Which number is the player from Minnesota?
<|assistant|>
SELECT MAX("no") FROM "l" WHERE "school_club_team"='Minnesota';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Which player played for years 2000-02
<|assistant|>
SELECT "player" FROM "s" WHERE "years_for_jazz"='2000-02';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Which school is Kirk Snyder from?
<|assistant|>
SELECT "school_club_team" FROM "s" WHERE "player"='Kirk Snyder';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.