db_id stringclasses 20
values | query stringlengths 20 422 | question stringlengths 18 174 | query_toks listlengths 4 63 | query_toks_no_value listlengths 4 88 | question_toks listlengths 5 33 | schema stringclasses 20
values |
|---|---|---|---|---|---|---|
car_1 | SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970'; | What is the name of the different car makers who produced a car in 1970? | [
"SELECT",
"DISTINCT",
"T1.Maker",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"MODEL_LIST",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.Maker",
"JOIN",
"CAR_NAMES",
"AS",
"T3",
"ON",
"T2.model",
"=",
"T3.model",
"JOIN",
"CARS_DATA",
"AS",
"T4",
"ON",
"T3.MakeId",
"=",... | [
"select",
"distinct",
"t1",
".",
"maker",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"maker",
"join",
"car_names",
"as",
"t3",
"on",
"t2",
".",
"model",
"=",
"t3",
".",
"model",
"join",
... | [
"What",
"is",
"the",
"name",
"of",
"the",
"different",
"car",
"makers",
"who",
"produced",
"a",
"car",
"in",
"1970",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T2.Make , T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT min(YEAR) FROM CARS_DATA); | Find the make and production time of the cars that were produced in the earliest year? | [
"SELECT",
"T2.Make",
",",
"T1.Year",
"FROM",
"CARS_DATA",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.MakeId",
"WHERE",
"T1.Year",
"=",
"(",
"SELECT",
"min",
"(",
"YEAR",
")",
"FROM",
"CARS_DATA",
")",
";"
] | [
"select",
"t2",
".",
"make",
",",
"t1",
".",
"year",
"from",
"cars_data",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"makeid",
"where",
"t1",
".",
"year",
"=",
"(",
"select",
"min",
"(",
"year",
")",
"from... | [
"Find",
"the",
"make",
"and",
"production",
"time",
"of",
"the",
"cars",
"that",
"were",
"produced",
"in",
"the",
"earliest",
"year",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T2.Make , T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT min(YEAR) FROM CARS_DATA); | What is the maker of the carr produced in the earliest year and what year was it? | [
"SELECT",
"T2.Make",
",",
"T1.Year",
"FROM",
"CARS_DATA",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.MakeId",
"WHERE",
"T1.Year",
"=",
"(",
"SELECT",
"min",
"(",
"YEAR",
")",
"FROM",
"CARS_DATA",
")",
";"
] | [
"select",
"t2",
".",
"make",
",",
"t1",
".",
"year",
"from",
"cars_data",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"makeid",
"where",
"t1",
".",
"year",
"=",
"(",
"select",
"min",
"(",
"year",
")",
"from... | [
"What",
"is",
"the",
"maker",
"of",
"the",
"carr",
"produced",
"in",
"the",
"earliest",
"year",
"and",
"what",
"year",
"was",
"it",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980; | Which distinct car models are the produced after 1980? | [
"SELECT",
"DISTINCT",
"T1.model",
"FROM",
"MODEL_LIST",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.model",
"=",
"T2.model",
"JOIN",
"CARS_DATA",
"AS",
"T3",
"ON",
"T2.MakeId",
"=",
"T3.id",
"WHERE",
"T3.year",
">",
"1980",
";"
] | [
"select",
"distinct",
"t1",
".",
"model",
"from",
"model_list",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"model",
"=",
"t2",
".",
"model",
"join",
"cars_data",
"as",
"t3",
"on",
"t2",
".",
"makeid",
"=",
"t3",
".",
"id",
"where",... | [
"Which",
"distinct",
"car",
"models",
"are",
"the",
"produced",
"after",
"1980",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980; | What are the different models for the cards produced after 1980? | [
"SELECT",
"DISTINCT",
"T1.model",
"FROM",
"MODEL_LIST",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.model",
"=",
"T2.model",
"JOIN",
"CARS_DATA",
"AS",
"T3",
"ON",
"T2.MakeId",
"=",
"T3.id",
"WHERE",
"T3.year",
">",
"1980",
";"
] | [
"select",
"distinct",
"t1",
".",
"model",
"from",
"model_list",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"model",
"=",
"t2",
".",
"model",
"join",
"cars_data",
"as",
"t3",
"on",
"t2",
".",
"makeid",
"=",
"t3",
".",
"id",
"where",... | [
"What",
"are",
"the",
"different",
"models",
"for",
"the",
"cards",
"produced",
"after",
"1980",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent; | How many car makers are there in each continents? List the continent name and the count. | [
"SELECT",
"T1.Continent",
",",
"count",
"(",
"*",
")",
"FROM",
"CONTINENTS",
"AS",
"T1",
"JOIN",
"COUNTRIES",
"AS",
"T2",
"ON",
"T1.ContId",
"=",
"T2.continent",
"JOIN",
"car_makers",
"AS",
"T3",
"ON",
"T2.CountryId",
"=",
"T3.Country",
"GROUP",
"BY",
"T1.Co... | [
"select",
"t1",
".",
"continent",
",",
"count",
"(",
"*",
")",
"from",
"continents",
"as",
"t1",
"join",
"countries",
"as",
"t2",
"on",
"t1",
".",
"contid",
"=",
"t2",
".",
"continent",
"join",
"car_makers",
"as",
"t3",
"on",
"t2",
".",
"countryid",
... | [
"How",
"many",
"car",
"makers",
"are",
"there",
"in",
"each",
"continents",
"?",
"List",
"the",
"continent",
"name",
"and",
"the",
"count",
"."
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent; | What is the name of each continent and how many car makers are there in each one? | [
"SELECT",
"T1.Continent",
",",
"count",
"(",
"*",
")",
"FROM",
"CONTINENTS",
"AS",
"T1",
"JOIN",
"COUNTRIES",
"AS",
"T2",
"ON",
"T1.ContId",
"=",
"T2.continent",
"JOIN",
"car_makers",
"AS",
"T3",
"ON",
"T2.CountryId",
"=",
"T3.Country",
"GROUP",
"BY",
"T1.Co... | [
"select",
"t1",
".",
"continent",
",",
"count",
"(",
"*",
")",
"from",
"continents",
"as",
"t1",
"join",
"countries",
"as",
"t2",
"on",
"t1",
".",
"contid",
"=",
"t2",
".",
"continent",
"join",
"car_makers",
"as",
"t3",
"on",
"t2",
".",
"countryid",
... | [
"What",
"is",
"the",
"name",
"of",
"each",
"continent",
"and",
"how",
"many",
"car",
"makers",
"are",
"there",
"in",
"each",
"one",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1; | Which of the countries has the most car makers? List the country name. | [
"SELECT",
"T2.CountryName",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"COUNTRIES",
"AS",
"T2",
"ON",
"T1.Country",
"=",
"T2.CountryId",
"GROUP",
"BY",
"T1.Country",
"ORDER",
"BY",
"Count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1",
";"
] | [
"select",
"t2",
".",
"countryname",
"from",
"car_makers",
"as",
"t1",
"join",
"countries",
"as",
"t2",
"on",
"t1",
".",
"country",
"=",
"t2",
".",
"countryid",
"group",
"by",
"t1",
".",
"country",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",... | [
"Which",
"of",
"the",
"countries",
"has",
"the",
"most",
"car",
"makers",
"?",
"List",
"the",
"country",
"name",
"."
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1; | What is the name of the country with the most car makers? | [
"SELECT",
"T2.CountryName",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"COUNTRIES",
"AS",
"T2",
"ON",
"T1.Country",
"=",
"T2.CountryId",
"GROUP",
"BY",
"T1.Country",
"ORDER",
"BY",
"Count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1",
";"
] | [
"select",
"t2",
".",
"countryname",
"from",
"car_makers",
"as",
"t1",
"join",
"countries",
"as",
"t2",
"on",
"t1",
".",
"country",
"=",
"t2",
".",
"countryid",
"group",
"by",
"t1",
".",
"country",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",... | [
"What",
"is",
"the",
"name",
"of",
"the",
"country",
"with",
"the",
"most",
"car",
"makers",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | select count(*) , t2.fullname from model_list as t1 join car_makers as t2 on t1.maker = t2.id group by t2.id; | How many car models are produced by each maker ? Only list the count and the maker full name . | [
"select",
"count",
"(",
"*",
")",
",",
"t2.fullname",
"from",
"model_list",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1.maker",
"=",
"t2.id",
"group",
"by",
"t2.id",
";"
] | [
"select",
"count",
"(",
"*",
")",
",",
"t2",
".",
"fullname",
"from",
"model_list",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"maker",
"=",
"t2",
".",
"id",
"group",
"by",
"t2",
".",
"id"
] | [
"How",
"many",
"car",
"models",
"are",
"produced",
"by",
"each",
"maker",
"?",
"Only",
"list",
"the",
"count",
"and",
"the",
"maker",
"full",
"name",
"."
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT Count(*) , T2.FullName , T2.id FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id GROUP BY T2.id; | What is the number of car models that are produced by each maker and what is the id and full name of each maker? | [
"SELECT",
"Count",
"(",
"*",
")",
",",
"T2.FullName",
",",
"T2.id",
"FROM",
"MODEL_LIST",
"AS",
"T1",
"JOIN",
"CAR_MAKERS",
"AS",
"T2",
"ON",
"T1.Maker",
"=",
"T2.Id",
"GROUP",
"BY",
"T2.id",
";"
] | [
"select",
"count",
"(",
"*",
")",
",",
"t2",
".",
"fullname",
",",
"t2",
".",
"id",
"from",
"model_list",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"maker",
"=",
"t2",
".",
"id",
"group",
"by",
"t2",
".",
"id"
] | [
"What",
"is",
"the",
"number",
"of",
"car",
"models",
"that",
"are",
"produced",
"by",
"each",
"maker",
"and",
"what",
"is",
"the",
"id",
"and",
"full",
"name",
"of",
"each",
"maker",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)'; | What is the accelerate of the car make amc hornet sportabout (sw)? | [
"SELECT",
"T1.Accelerate",
"FROM",
"CARS_DATA",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.MakeId",
"WHERE",
"T2.Make",
"=",
"'amc",
"hornet",
"sportabout",
"(",
"sw",
")",
"'",
";"
] | [
"select",
"t1",
".",
"accelerate",
"from",
"cars_data",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"makeid",
"where",
"t2",
".",
"make",
"=",
"value"
] | [
"What",
"is",
"the",
"accelerate",
"of",
"the",
"car",
"make",
"amc",
"hornet",
"sportabout",
"(",
"sw",
")",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)'; | How much does the car accelerate that makes amc hornet sportabout (sw)? | [
"SELECT",
"T1.Accelerate",
"FROM",
"CARS_DATA",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.MakeId",
"WHERE",
"T2.Make",
"=",
"'amc",
"hornet",
"sportabout",
"(",
"sw",
")",
"'",
";"
] | [
"select",
"t1",
".",
"accelerate",
"from",
"cars_data",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"makeid",
"where",
"t2",
".",
"make",
"=",
"value"
] | [
"How",
"much",
"does",
"the",
"car",
"accelerate",
"that",
"makes",
"amc",
"hornet",
"sportabout",
"(",
"sw",
")",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france'; | How many car makers are there in france? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"COUNTRIES",
"AS",
"T2",
"ON",
"T1.Country",
"=",
"T2.CountryId",
"WHERE",
"T2.CountryName",
"=",
"'france",
"'",
";"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"car_makers",
"as",
"t1",
"join",
"countries",
"as",
"t2",
"on",
"t1",
".",
"country",
"=",
"t2",
".",
"countryid",
"where",
"t2",
".",
"countryname",
"=",
"value"
] | [
"How",
"many",
"car",
"makers",
"are",
"there",
"in",
"france",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france'; | What is the number of makers of care in France? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"COUNTRIES",
"AS",
"T2",
"ON",
"T1.Country",
"=",
"T2.CountryId",
"WHERE",
"T2.CountryName",
"=",
"'france",
"'",
";"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"car_makers",
"as",
"t1",
"join",
"countries",
"as",
"t2",
"on",
"t1",
".",
"country",
"=",
"t2",
".",
"countryid",
"where",
"t2",
".",
"countryname",
"=",
"value"
] | [
"What",
"is",
"the",
"number",
"of",
"makers",
"of",
"care",
"in",
"France",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa'; | How many car models are produced in the usa? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"MODEL_LIST",
"AS",
"T1",
"JOIN",
"CAR_MAKERS",
"AS",
"T2",
"ON",
"T1.Maker",
"=",
"T2.Id",
"JOIN",
"COUNTRIES",
"AS",
"T3",
"ON",
"T2.Country",
"=",
"T3.CountryId",
"WHERE",
"T3.CountryName",
"=",
"'usa",
"'",
";"... | [
"select",
"count",
"(",
"*",
")",
"from",
"model_list",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"maker",
"=",
"t2",
".",
"id",
"join",
"countries",
"as",
"t3",
"on",
"t2",
".",
"country",
"=",
"t3",
".",
"countryid",
"where",
... | [
"How",
"many",
"car",
"models",
"are",
"produced",
"in",
"the",
"usa",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa'; | What is the count of the car models produced in the United States? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"MODEL_LIST",
"AS",
"T1",
"JOIN",
"CAR_MAKERS",
"AS",
"T2",
"ON",
"T1.Maker",
"=",
"T2.Id",
"JOIN",
"COUNTRIES",
"AS",
"T3",
"ON",
"T2.Country",
"=",
"T3.CountryId",
"WHERE",
"T3.CountryName",
"=",
"'usa",
"'",
";"... | [
"select",
"count",
"(",
"*",
")",
"from",
"model_list",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"maker",
"=",
"t2",
".",
"id",
"join",
"countries",
"as",
"t3",
"on",
"t2",
".",
"country",
"=",
"t3",
".",
"countryid",
"where",
... | [
"What",
"is",
"the",
"count",
"of",
"the",
"car",
"models",
"produced",
"in",
"the",
"United",
"States",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4; | What is the average miles per gallon(mpg) of the cars with 4 cylinders? | [
"SELECT",
"avg",
"(",
"mpg",
")",
"FROM",
"CARS_DATA",
"WHERE",
"Cylinders",
"=",
"4",
";"
] | [
"select",
"avg",
"(",
"mpg",
")",
"from",
"cars_data",
"where",
"cylinders",
"=",
"value"
] | [
"What",
"is",
"the",
"average",
"miles",
"per",
"gallon",
"(",
"mpg",
")",
"of",
"the",
"cars",
"with",
"4",
"cylinders",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4; | What is the average miles per gallon of all the cards with 4 cylinders? | [
"SELECT",
"avg",
"(",
"mpg",
")",
"FROM",
"CARS_DATA",
"WHERE",
"Cylinders",
"=",
"4",
";"
] | [
"select",
"avg",
"(",
"mpg",
")",
"from",
"cars_data",
"where",
"cylinders",
"=",
"value"
] | [
"What",
"is",
"the",
"average",
"miles",
"per",
"gallon",
"of",
"all",
"the",
"cards",
"with",
"4",
"cylinders",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | select min(weight) from cars_data where cylinders = 8 and year = 1974 | What is the smallest weight of the car produced with 8 cylinders on 1974 ? | [
"select",
"min",
"(",
"weight",
")",
"from",
"cars_data",
"where",
"cylinders",
"=",
"8",
"and",
"year",
"=",
"1974"
] | [
"select",
"min",
"(",
"weight",
")",
"from",
"cars_data",
"where",
"cylinders",
"=",
"value",
"and",
"year",
"=",
"value"
] | [
"What",
"is",
"the",
"smallest",
"weight",
"of",
"the",
"car",
"produced",
"with",
"8",
"cylinders",
"on",
"1974",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | select min(weight) from cars_data where cylinders = 8 and year = 1974 | What is the minimum weight of the car with 8 cylinders produced in 1974 ? | [
"select",
"min",
"(",
"weight",
")",
"from",
"cars_data",
"where",
"cylinders",
"=",
"8",
"and",
"year",
"=",
"1974"
] | [
"select",
"min",
"(",
"weight",
")",
"from",
"cars_data",
"where",
"cylinders",
"=",
"value",
"and",
"year",
"=",
"value"
] | [
"What",
"is",
"the",
"minimum",
"weight",
"of",
"the",
"car",
"with",
"8",
"cylinders",
"produced",
"in",
"1974",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT Maker , Model FROM MODEL_LIST; | What are all the makers and models? | [
"SELECT",
"Maker",
",",
"Model",
"FROM",
"MODEL_LIST",
";"
] | [
"select",
"maker",
",",
"model",
"from",
"model_list"
] | [
"What",
"are",
"all",
"the",
"makers",
"and",
"models",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT Maker , Model FROM MODEL_LIST; | What are the makers and models? | [
"SELECT",
"Maker",
",",
"Model",
"FROM",
"MODEL_LIST",
";"
] | [
"select",
"maker",
",",
"model",
"from",
"model_list"
] | [
"What",
"are",
"the",
"makers",
"and",
"models",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T1.CountryName , T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) >= 1; | What are the countries having at least one car maker? List name and id. | [
"SELECT",
"T1.CountryName",
",",
"T1.CountryId",
"FROM",
"COUNTRIES",
"AS",
"T1",
"JOIN",
"CAR_MAKERS",
"AS",
"T2",
"ON",
"T1.CountryId",
"=",
"T2.Country",
"GROUP",
"BY",
"T1.CountryId",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"1",
";"
] | [
"select",
"t1",
".",
"countryname",
",",
"t1",
".",
"countryid",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"countryid",
"=",
"t2",
".",
"country",
"group",
"by",
"t1",
".",
"countryid",
"having",
"count",
"(",
... | [
"What",
"are",
"the",
"countries",
"having",
"at",
"least",
"one",
"car",
"maker",
"?",
"List",
"name",
"and",
"id",
"."
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T1.CountryName , T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) >= 1; | What are the names and ids of all countries with at least one car maker? | [
"SELECT",
"T1.CountryName",
",",
"T1.CountryId",
"FROM",
"COUNTRIES",
"AS",
"T1",
"JOIN",
"CAR_MAKERS",
"AS",
"T2",
"ON",
"T1.CountryId",
"=",
"T2.Country",
"GROUP",
"BY",
"T1.CountryId",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"1",
";"
] | [
"select",
"t1",
".",
"countryname",
",",
"t1",
".",
"countryid",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"countryid",
"=",
"t2",
".",
"country",
"group",
"by",
"t1",
".",
"countryid",
"having",
"count",
"(",
... | [
"What",
"are",
"the",
"names",
"and",
"ids",
"of",
"all",
"countries",
"with",
"at",
"least",
"one",
"car",
"maker",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT count(*) FROM CARS_DATA WHERE horsepower > 150; | What is the number of the cars with horsepower more than 150? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CARS_DATA",
"WHERE",
"horsepower",
">",
"150",
";"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"cars_data",
"where",
"horsepower",
">",
"value"
] | [
"What",
"is",
"the",
"number",
"of",
"the",
"cars",
"with",
"horsepower",
"more",
"than",
"150",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT count(*) FROM CARS_DATA WHERE horsepower > 150; | What is the number of cars with a horsepower greater than 150? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CARS_DATA",
"WHERE",
"horsepower",
">",
"150",
";"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"cars_data",
"where",
"horsepower",
">",
"value"
] | [
"What",
"is",
"the",
"number",
"of",
"cars",
"with",
"a",
"horsepower",
"greater",
"than",
"150",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR; | What is the average weight of cars each year? | [
"SELECT",
"avg",
"(",
"Weight",
")",
",",
"YEAR",
"FROM",
"CARS_DATA",
"GROUP",
"BY",
"YEAR",
";"
] | [
"select",
"avg",
"(",
"weight",
")",
",",
"year",
"from",
"cars_data",
"group",
"by",
"year"
] | [
"What",
"is",
"the",
"average",
"weight",
"of",
"cars",
"each",
"year",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR; | What is the average weight and year for each year? | [
"SELECT",
"avg",
"(",
"Weight",
")",
",",
"YEAR",
"FROM",
"CARS_DATA",
"GROUP",
"BY",
"YEAR",
";"
] | [
"select",
"avg",
"(",
"weight",
")",
",",
"year",
"from",
"cars_data",
"group",
"by",
"year"
] | [
"What",
"is",
"the",
"average",
"weight",
"and",
"year",
"for",
"each",
"year",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3; | Which countries in europe have at least 3 car manufacturers? | [
"SELECT",
"T1.CountryName",
"FROM",
"COUNTRIES",
"AS",
"T1",
"JOIN",
"CONTINENTS",
"AS",
"T2",
"ON",
"T1.Continent",
"=",
"T2.ContId",
"JOIN",
"CAR_MAKERS",
"AS",
"T3",
"ON",
"T1.CountryId",
"=",
"T3.Country",
"WHERE",
"T2.Continent",
"=",
"'europe",
"'",
"GROUP... | [
"select",
"t1",
".",
"countryname",
"from",
"countries",
"as",
"t1",
"join",
"continents",
"as",
"t2",
"on",
"t1",
".",
"continent",
"=",
"t2",
".",
"contid",
"join",
"car_makers",
"as",
"t3",
"on",
"t1",
".",
"countryid",
"=",
"t3",
".",
"country",
"w... | [
"Which",
"countries",
"in",
"europe",
"have",
"at",
"least",
"3",
"car",
"manufacturers",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3; | What are the names of all European countries with at least 3 manufacturers? | [
"SELECT",
"T1.CountryName",
"FROM",
"COUNTRIES",
"AS",
"T1",
"JOIN",
"CONTINENTS",
"AS",
"T2",
"ON",
"T1.Continent",
"=",
"T2.ContId",
"JOIN",
"CAR_MAKERS",
"AS",
"T3",
"ON",
"T1.CountryId",
"=",
"T3.Country",
"WHERE",
"T2.Continent",
"=",
"'europe",
"'",
"GROUP... | [
"select",
"t1",
".",
"countryname",
"from",
"countries",
"as",
"t1",
"join",
"continents",
"as",
"t2",
"on",
"t1",
".",
"continent",
"=",
"t2",
".",
"contid",
"join",
"car_makers",
"as",
"t3",
"on",
"t1",
".",
"countryid",
"=",
"t3",
".",
"country",
"w... | [
"What",
"are",
"the",
"names",
"of",
"all",
"European",
"countries",
"with",
"at",
"least",
"3",
"manufacturers",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T2.horsepower , T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1; | What is the maximum horsepower and the make of the car models with 3 cylinders? | [
"SELECT",
"T2.horsepower",
",",
"T1.Make",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"CARS_DATA",
"AS",
"T2",
"ON",
"T1.MakeId",
"=",
"T2.Id",
"WHERE",
"T2.cylinders",
"=",
"3",
"ORDER",
"BY",
"T2.horsepower",
"DESC",
"LIMIT",
"1",
";"
] | [
"select",
"t2",
".",
"horsepower",
",",
"t1",
".",
"make",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1",
".",
"makeid",
"=",
"t2",
".",
"id",
"where",
"t2",
".",
"cylinders",
"=",
"value",
"order",
"by",
"t2",
".",
"... | [
"What",
"is",
"the",
"maximum",
"horsepower",
"and",
"the",
"make",
"of",
"the",
"car",
"models",
"with",
"3",
"cylinders",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T2.horsepower , T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1; | What is the largest amount of horsepower for the models with 3 cylinders and what make is it? | [
"SELECT",
"T2.horsepower",
",",
"T1.Make",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"CARS_DATA",
"AS",
"T2",
"ON",
"T1.MakeId",
"=",
"T2.Id",
"WHERE",
"T2.cylinders",
"=",
"3",
"ORDER",
"BY",
"T2.horsepower",
"DESC",
"LIMIT",
"1",
";"
] | [
"select",
"t2",
".",
"horsepower",
",",
"t1",
".",
"make",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1",
".",
"makeid",
"=",
"t2",
".",
"id",
"where",
"t2",
".",
"cylinders",
"=",
"value",
"order",
"by",
"t2",
".",
"... | [
"What",
"is",
"the",
"largest",
"amount",
"of",
"horsepower",
"for",
"the",
"models",
"with",
"3",
"cylinders",
"and",
"what",
"make",
"is",
"it",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.mpg DESC LIMIT 1; | Which model saves the most gasoline? That is to say, have the maximum miles per gallon. | [
"SELECT",
"T1.Model",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"CARS_DATA",
"AS",
"T2",
"ON",
"T1.MakeId",
"=",
"T2.Id",
"ORDER",
"BY",
"T2.mpg",
"DESC",
"LIMIT",
"1",
";"
] | [
"select",
"t1",
".",
"model",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1",
".",
"makeid",
"=",
"t2",
".",
"id",
"order",
"by",
"t2",
".",
"mpg",
"desc",
"limit",
"value"
] | [
"Which",
"model",
"saves",
"the",
"most",
"gasoline",
"?",
"That",
"is",
"to",
"say",
",",
"have",
"the",
"maximum",
"miles",
"per",
"gallon",
"."
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id order by t2.mpg desc limit 1; | What is the car model with the highest mpg ? | [
"select",
"t1.model",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1.makeid",
"=",
"t2.id",
"order",
"by",
"t2.mpg",
"desc",
"limit",
"1",
";"
] | [
"select",
"t1",
".",
"model",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1",
".",
"makeid",
"=",
"t2",
".",
"id",
"order",
"by",
"t2",
".",
"mpg",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"car",
"model",
"with",
"the",
"highest",
"mpg",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT avg(horsepower) FROM CARS_DATA WHERE YEAR < 1980; | What is the average horsepower of the cars before 1980? | [
"SELECT",
"avg",
"(",
"horsepower",
")",
"FROM",
"CARS_DATA",
"WHERE",
"YEAR",
"<",
"1980",
";"
] | [
"select",
"avg",
"(",
"horsepower",
")",
"from",
"cars_data",
"where",
"year",
"<",
"value"
] | [
"What",
"is",
"the",
"average",
"horsepower",
"of",
"the",
"cars",
"before",
"1980",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | select avg(horsepower) from cars_data where year < 1980; | What is the average horsepower for all cars produced before 1980 ? | [
"select",
"avg",
"(",
"horsepower",
")",
"from",
"cars_data",
"where",
"year",
"<",
"1980",
";"
] | [
"select",
"avg",
"(",
"horsepower",
")",
"from",
"cars_data",
"where",
"year",
"<",
"value"
] | [
"What",
"is",
"the",
"average",
"horsepower",
"for",
"all",
"cars",
"produced",
"before",
"1980",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo'; | What is the average edispl of the cars of model volvo? | [
"SELECT",
"avg",
"(",
"T2.edispl",
")",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"CARS_DATA",
"AS",
"T2",
"ON",
"T1.MakeId",
"=",
"T2.Id",
"WHERE",
"T1.Model",
"=",
"'volvo",
"'",
";"
] | [
"select",
"avg",
"(",
"t2",
".",
"edispl",
")",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1",
".",
"makeid",
"=",
"t2",
".",
"id",
"where",
"t1",
".",
"model",
"=",
"value"
] | [
"What",
"is",
"the",
"average",
"edispl",
"of",
"the",
"cars",
"of",
"model",
"volvo",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo'; | What is the average edispl for all volvos? | [
"SELECT",
"avg",
"(",
"T2.edispl",
")",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"CARS_DATA",
"AS",
"T2",
"ON",
"T1.MakeId",
"=",
"T2.Id",
"WHERE",
"T1.Model",
"=",
"'volvo",
"'",
";"
] | [
"select",
"avg",
"(",
"t2",
".",
"edispl",
")",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1",
".",
"makeid",
"=",
"t2",
".",
"id",
"where",
"t1",
".",
"model",
"=",
"value"
] | [
"What",
"is",
"the",
"average",
"edispl",
"for",
"all",
"volvos",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders; | What is the maximum accelerate for different number of cylinders? | [
"SELECT",
"max",
"(",
"Accelerate",
")",
",",
"Cylinders",
"FROM",
"CARS_DATA",
"GROUP",
"BY",
"Cylinders",
";"
] | [
"select",
"max",
"(",
"accelerate",
")",
",",
"cylinders",
"from",
"cars_data",
"group",
"by",
"cylinders"
] | [
"What",
"is",
"the",
"maximum",
"accelerate",
"for",
"different",
"number",
"of",
"cylinders",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders; | What is the maximum accelerate for all the different cylinders? | [
"SELECT",
"max",
"(",
"Accelerate",
")",
",",
"Cylinders",
"FROM",
"CARS_DATA",
"GROUP",
"BY",
"Cylinders",
";"
] | [
"select",
"max",
"(",
"accelerate",
")",
",",
"cylinders",
"from",
"cars_data",
"group",
"by",
"cylinders"
] | [
"What",
"is",
"the",
"maximum",
"accelerate",
"for",
"all",
"the",
"different",
"cylinders",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1; | Which model has the most version(make) of cars? | [
"SELECT",
"Model",
"FROM",
"CAR_NAMES",
"GROUP",
"BY",
"Model",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1",
";"
] | [
"select",
"model",
"from",
"car_names",
"group",
"by",
"model",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Which",
"model",
"has",
"the",
"most",
"version",
"(",
"make",
")",
"of",
"cars",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1; | What model has the most different versions? | [
"SELECT",
"Model",
"FROM",
"CAR_NAMES",
"GROUP",
"BY",
"Model",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1",
";"
] | [
"select",
"model",
"from",
"car_names",
"group",
"by",
"model",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"model",
"has",
"the",
"most",
"different",
"versions",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4; | How many cars have more than 4 cylinders? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CARS_DATA",
"WHERE",
"Cylinders",
">",
"4",
";"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"cars_data",
"where",
"cylinders",
">",
"value"
] | [
"How",
"many",
"cars",
"have",
"more",
"than",
"4",
"cylinders",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4; | What is the number of cars with more than 4 cylinders? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CARS_DATA",
"WHERE",
"Cylinders",
">",
"4",
";"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"cars_data",
"where",
"cylinders",
">",
"value"
] | [
"What",
"is",
"the",
"number",
"of",
"cars",
"with",
"more",
"than",
"4",
"cylinders",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980; | how many cars were produced in 1980? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CARS_DATA",
"WHERE",
"YEAR",
"=",
"1980",
";"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"cars_data",
"where",
"year",
"=",
"value"
] | [
"how",
"many",
"cars",
"were",
"produced",
"in",
"1980",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980; | In 1980, how many cars were made? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CARS_DATA",
"WHERE",
"YEAR",
"=",
"1980",
";"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"cars_data",
"where",
"year",
"=",
"value"
] | [
"In",
"1980",
",",
"how",
"many",
"cars",
"were",
"made",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company'; | How many car models were produced by the maker with full name American Motor Company? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"MODEL_LIST",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.Maker",
"WHERE",
"T1.FullName",
"=",
"'American",
"Motor",
"Company",
"'",
";"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"maker",
"where",
"t1",
".",
"fullname",
"=",
"value"
] | [
"How",
"many",
"car",
"models",
"were",
"produced",
"by",
"the",
"maker",
"with",
"full",
"name",
"American",
"Motor",
"Company",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company'; | What is the number of car models created by the car maker American Motor Company? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"MODEL_LIST",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.Maker",
"WHERE",
"T1.FullName",
"=",
"'American",
"Motor",
"Company",
"'",
";"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"maker",
"where",
"t1",
".",
"fullname",
"=",
"value"
] | [
"What",
"is",
"the",
"number",
"of",
"car",
"models",
"created",
"by",
"the",
"car",
"maker",
"American",
"Motor",
"Company",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T1.FullName , T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) > 3; | Which makers designed more than 3 car models? List full name and the id. | [
"SELECT",
"T1.FullName",
",",
"T1.Id",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"MODEL_LIST",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.Maker",
"GROUP",
"BY",
"T1.Id",
"HAVING",
"count",
"(",
"*",
")",
">",
"3",
";"
] | [
"select",
"t1",
".",
"fullname",
",",
"t1",
".",
"id",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"maker",
"group",
"by",
"t1",
".",
"id",
"having",
"count",
"(",
"*",
")",
">",
"val... | [
"Which",
"makers",
"designed",
"more",
"than",
"3",
"car",
"models",
"?",
"List",
"full",
"name",
"and",
"the",
"id",
"."
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T1.FullName , T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) > 3; | What are the names and ids of all makers with more than 3 models? | [
"SELECT",
"T1.FullName",
",",
"T1.Id",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"MODEL_LIST",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.Maker",
"GROUP",
"BY",
"T1.Id",
"HAVING",
"count",
"(",
"*",
")",
">",
"3",
";"
] | [
"select",
"t1",
".",
"fullname",
",",
"t1",
".",
"id",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"maker",
"group",
"by",
"t1",
".",
"id",
"having",
"count",
"(",
"*",
")",
">",
"val... | [
"What",
"are",
"the",
"names",
"and",
"ids",
"of",
"all",
"makers",
"with",
"more",
"than",
"3",
"models",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500; | Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500? | [
"SELECT",
"DISTINCT",
"T2.Model",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"MODEL_LIST",
"AS",
"T2",
"ON",
"T1.Model",
"=",
"T2.Model",
"JOIN",
"CAR_MAKERS",
"AS",
"T3",
"ON",
"T2.Maker",
"=",
"T3.Id",
"JOIN",
"CARS_DATA",
"AS",
"T4",
"ON",
"T1.MakeId",
"=",... | [
"select",
"distinct",
"t2",
".",
"model",
"from",
"car_names",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"model",
"=",
"t2",
".",
"model",
"join",
"car_makers",
"as",
"t3",
"on",
"t2",
".",
"maker",
"=",
"t3",
".",
"id",
"join",
... | [
"Which",
"distinctive",
"models",
"are",
"produced",
"by",
"maker",
"with",
"the",
"full",
"name",
"General",
"Motors",
"or",
"weighing",
"more",
"than",
"3500",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500; | What are the different models created by either the car maker General Motors or weighed more than 3500? | [
"SELECT",
"DISTINCT",
"T2.Model",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"MODEL_LIST",
"AS",
"T2",
"ON",
"T1.Model",
"=",
"T2.Model",
"JOIN",
"CAR_MAKERS",
"AS",
"T3",
"ON",
"T2.Maker",
"=",
"T3.Id",
"JOIN",
"CARS_DATA",
"AS",
"T4",
"ON",
"T1.MakeId",
"=",... | [
"select",
"distinct",
"t2",
".",
"model",
"from",
"car_names",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"model",
"=",
"t2",
".",
"model",
"join",
"car_makers",
"as",
"t3",
"on",
"t2",
".",
"maker",
"=",
"t3",
".",
"id",
"join",
... | [
"What",
"are",
"the",
"different",
"models",
"created",
"by",
"either",
"the",
"car",
"maker",
"General",
"Motors",
"or",
"weighed",
"more",
"than",
"3500",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | select distinct year from cars_data where weight between 3000 and 4000; | In which years cars were produced weighing no less than 3000 and no more than 4000 ? | [
"select",
"distinct",
"year",
"from",
"cars_data",
"where",
"weight",
"between",
"3000",
"and",
"4000",
";"
] | [
"select",
"distinct",
"year",
"from",
"cars_data",
"where",
"weight",
"between",
"value",
"and",
"value"
] | [
"In",
"which",
"years",
"cars",
"were",
"produced",
"weighing",
"no",
"less",
"than",
"3000",
"and",
"no",
"more",
"than",
"4000",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | select distinct year from cars_data where weight between 3000 and 4000; | What are the different years in which there were cars produced that weighed less than 4000 and also cars that weighted more than 3000 ? | [
"select",
"distinct",
"year",
"from",
"cars_data",
"where",
"weight",
"between",
"3000",
"and",
"4000",
";"
] | [
"select",
"distinct",
"year",
"from",
"cars_data",
"where",
"weight",
"between",
"value",
"and",
"value"
] | [
"What",
"are",
"the",
"different",
"years",
"in",
"which",
"there",
"were",
"cars",
"produced",
"that",
"weighed",
"less",
"than",
"4000",
"and",
"also",
"cars",
"that",
"weighted",
"more",
"than",
"3000",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1; | What is the horsepower of the car with the largest accelerate? | [
"SELECT",
"T1.horsepower",
"FROM",
"CARS_DATA",
"AS",
"T1",
"ORDER",
"BY",
"T1.accelerate",
"DESC",
"LIMIT",
"1",
";"
] | [
"select",
"t1",
".",
"horsepower",
"from",
"cars_data",
"as",
"t1",
"order",
"by",
"t1",
".",
"accelerate",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"horsepower",
"of",
"the",
"car",
"with",
"the",
"largest",
"accelerate",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1; | What is the horsepower of the car with the greatest accelerate? | [
"SELECT",
"T1.horsepower",
"FROM",
"CARS_DATA",
"AS",
"T1",
"ORDER",
"BY",
"T1.accelerate",
"DESC",
"LIMIT",
"1",
";"
] | [
"select",
"t1",
".",
"horsepower",
"from",
"cars_data",
"as",
"t1",
"order",
"by",
"t1",
".",
"accelerate",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"horsepower",
"of",
"the",
"car",
"with",
"the",
"greatest",
"accelerate",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1; | For model volvo, how many cylinders does the car with the least accelerate have? | [
"SELECT",
"T1.cylinders",
"FROM",
"CARS_DATA",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.MakeId",
"WHERE",
"T2.Model",
"=",
"'volvo",
"'",
"ORDER",
"BY",
"T1.accelerate",
"ASC",
"LIMIT",
"1",
";"
] | [
"select",
"t1",
".",
"cylinders",
"from",
"cars_data",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"makeid",
"where",
"t2",
".",
"model",
"=",
"value",
"order",
"by",
"t1",
".",
"accelerate",
"asc",
"limit",
"v... | [
"For",
"model",
"volvo",
",",
"how",
"many",
"cylinders",
"does",
"the",
"car",
"with",
"the",
"least",
"accelerate",
"have",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1; | For a volvo model, how many cylinders does the version with least accelerate have? | [
"SELECT",
"T1.cylinders",
"FROM",
"CARS_DATA",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.MakeId",
"WHERE",
"T2.Model",
"=",
"'volvo",
"'",
"ORDER",
"BY",
"T1.accelerate",
"ASC",
"LIMIT",
"1",
";"
] | [
"select",
"t1",
".",
"cylinders",
"from",
"cars_data",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"makeid",
"where",
"t2",
".",
"model",
"=",
"value",
"order",
"by",
"t1",
".",
"accelerate",
"asc",
"limit",
"v... | [
"For",
"a",
"volvo",
"model",
",",
"how",
"many",
"cylinders",
"does",
"the",
"version",
"with",
"least",
"accelerate",
"have",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 ); | How many cars have a larger accelerate than the car with the largest horsepower? | [
"SELECT",
"COUNT",
"(",
"*",
")",
"FROM",
"CARS_DATA",
"WHERE",
"Accelerate",
">",
"(",
"SELECT",
"Accelerate",
"FROM",
"CARS_DATA",
"ORDER",
"BY",
"Horsepower",
"DESC",
"LIMIT",
"1",
")",
";"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"cars_data",
"where",
"accelerate",
">",
"(",
"select",
"accelerate",
"from",
"cars_data",
"order",
"by",
"horsepower",
"desc",
"limit",
"value",
")"
] | [
"How",
"many",
"cars",
"have",
"a",
"larger",
"accelerate",
"than",
"the",
"car",
"with",
"the",
"largest",
"horsepower",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 ); | What is the number of cars with a greater accelerate than the one with the most horsepower? | [
"SELECT",
"COUNT",
"(",
"*",
")",
"FROM",
"CARS_DATA",
"WHERE",
"Accelerate",
">",
"(",
"SELECT",
"Accelerate",
"FROM",
"CARS_DATA",
"ORDER",
"BY",
"Horsepower",
"DESC",
"LIMIT",
"1",
")",
";"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"cars_data",
"where",
"accelerate",
">",
"(",
"select",
"accelerate",
"from",
"cars_data",
"order",
"by",
"horsepower",
"desc",
"limit",
"value",
")"
] | [
"What",
"is",
"the",
"number",
"of",
"cars",
"with",
"a",
"greater",
"accelerate",
"than",
"the",
"one",
"with",
"the",
"most",
"horsepower",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2 | How many countries has more than 2 car makers ? | [
"select",
"count",
"(",
"*",
")",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1.countryid",
"=",
"t2.country",
"group",
"by",
"t1.countryid",
"having",
"count",
"(",
"*",
")",
">",
"2"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"countryid",
"=",
"t2",
".",
"country",
"group",
"by",
"t1",
".",
"countryid",
"having",
"count",
"(",
"*",
")",
">",
"value"
] | [
"How",
"many",
"countries",
"has",
"more",
"than",
"2",
"car",
"makers",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2 | What is the number of countries with more than 2 car makers ? | [
"select",
"count",
"(",
"*",
")",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1.countryid",
"=",
"t2.country",
"group",
"by",
"t1.countryid",
"having",
"count",
"(",
"*",
")",
">",
"2"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"countryid",
"=",
"t2",
".",
"country",
"group",
"by",
"t1",
".",
"countryid",
"having",
"count",
"(",
"*",
")",
">",
"value"
] | [
"What",
"is",
"the",
"number",
"of",
"countries",
"with",
"more",
"than",
"2",
"car",
"makers",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6; | How many cars has over 6 cylinders? | [
"SELECT",
"COUNT",
"(",
"*",
")",
"FROM",
"CARS_DATA",
"WHERE",
"Cylinders",
">",
"6",
";"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"cars_data",
"where",
"cylinders",
">",
"value"
] | [
"How",
"many",
"cars",
"has",
"over",
"6",
"cylinders",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6; | What is the number of carsw ith over 6 cylinders? | [
"SELECT",
"COUNT",
"(",
"*",
")",
"FROM",
"CARS_DATA",
"WHERE",
"Cylinders",
">",
"6",
";"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"cars_data",
"where",
"cylinders",
">",
"value"
] | [
"What",
"is",
"the",
"number",
"of",
"carsw",
"ith",
"over",
"6",
"cylinders",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1; | For the cars with 4 cylinders, which model has the largest horsepower? | [
"SELECT",
"T1.Model",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"CARS_DATA",
"AS",
"T2",
"ON",
"T1.MakeId",
"=",
"T2.Id",
"WHERE",
"T2.Cylinders",
"=",
"4",
"ORDER",
"BY",
"T2.horsepower",
"DESC",
"LIMIT",
"1",
";"
] | [
"select",
"t1",
".",
"model",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1",
".",
"makeid",
"=",
"t2",
".",
"id",
"where",
"t2",
".",
"cylinders",
"=",
"value",
"order",
"by",
"t2",
".",
"horsepower",
"desc",
"limit",
"... | [
"For",
"the",
"cars",
"with",
"4",
"cylinders",
",",
"which",
"model",
"has",
"the",
"largest",
"horsepower",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1; | For all of the 4 cylinder cars, which model has the most horsepower? | [
"SELECT",
"T1.Model",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"CARS_DATA",
"AS",
"T2",
"ON",
"T1.MakeId",
"=",
"T2.Id",
"WHERE",
"T2.Cylinders",
"=",
"4",
"ORDER",
"BY",
"T2.horsepower",
"DESC",
"LIMIT",
"1",
";"
] | [
"select",
"t1",
".",
"model",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1",
".",
"makeid",
"=",
"t2",
".",
"id",
"where",
"t2",
".",
"cylinders",
"=",
"value",
"order",
"by",
"t2",
".",
"horsepower",
"desc",
"limit",
"... | [
"For",
"all",
"of",
"the",
"4",
"cylinder",
"cars",
",",
"which",
"model",
"has",
"the",
"most",
"horsepower",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T2.MakeId , T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT min(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3; | Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name. | [
"SELECT",
"T2.MakeId",
",",
"T2.Make",
"FROM",
"CARS_DATA",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.MakeId",
"WHERE",
"T1.Horsepower",
">",
"(",
"SELECT",
"min",
"(",
"Horsepower",
")",
"FROM",
"CARS_DATA",
")",
"AND",
"T1.Cylind... | [
"select",
"t2",
".",
"makeid",
",",
"t2",
".",
"make",
"from",
"cars_data",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"makeid",
"where",
"t1",
".",
"horsepower",
">",
"(",
"select",
"min",
"(",
"horsepower",
... | [
"Among",
"the",
"cars",
"with",
"more",
"than",
"lowest",
"horsepower",
",",
"which",
"ones",
"do",
"not",
"have",
"more",
"than",
"3",
"cylinders",
"?",
"List",
"the",
"car",
"makeid",
"and",
"make",
"name",
"."
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | select t2.makeid , t2.make from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t1.horsepower > (select min(horsepower) from cars_data) and t1.cylinders < 4; | Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ? | [
"select",
"t2.makeid",
",",
"t2.make",
"from",
"cars_data",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1.id",
"=",
"t2.makeid",
"where",
"t1.horsepower",
">",
"(",
"select",
"min",
"(",
"horsepower",
")",
"from",
"cars_data",
")",
"and",
"t1.cylind... | [
"select",
"t2",
".",
"makeid",
",",
"t2",
".",
"make",
"from",
"cars_data",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"makeid",
"where",
"t1",
".",
"horsepower",
">",
"(",
"select",
"min",
"(",
"horsepower",
... | [
"Among",
"the",
"cars",
"that",
"do",
"not",
"have",
"the",
"minimum",
"horsepower",
",",
"what",
"are",
"the",
"make",
"ids",
"and",
"names",
"of",
"all",
"those",
"with",
"less",
"than",
"4",
"cylinders",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | select max(mpg) from cars_data where cylinders = 8 or year < 1980 | What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ? | [
"select",
"max",
"(",
"mpg",
")",
"from",
"cars_data",
"where",
"cylinders",
"=",
"8",
"or",
"year",
"<",
"1980"
] | [
"select",
"max",
"(",
"mpg",
")",
"from",
"cars_data",
"where",
"cylinders",
"=",
"value",
"or",
"year",
"<",
"value"
] | [
"What",
"is",
"the",
"maximum",
"miles",
"per",
"gallon",
"of",
"the",
"car",
"with",
"8",
"cylinders",
"or",
"produced",
"before",
"1980",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | select max(mpg) from cars_data where cylinders = 8 or year < 1980 | What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980 ? | [
"select",
"max",
"(",
"mpg",
")",
"from",
"cars_data",
"where",
"cylinders",
"=",
"8",
"or",
"year",
"<",
"1980"
] | [
"select",
"max",
"(",
"mpg",
")",
"from",
"cars_data",
"where",
"cylinders",
"=",
"value",
"or",
"year",
"<",
"value"
] | [
"What",
"is",
"the",
"maximum",
"mpg",
"of",
"the",
"cars",
"that",
"had",
"8",
"cylinders",
"or",
"that",
"were",
"produced",
"before",
"1980",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName != 'Ford Motor Company'; | Which models are lighter than 3500 but not built by the 'Ford Motor Company'? | [
"SELECT",
"DISTINCT",
"T1.model",
"FROM",
"MODEL_LIST",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.Model",
"=",
"T2.Model",
"JOIN",
"CARS_DATA",
"AS",
"T3",
"ON",
"T2.MakeId",
"=",
"T3.Id",
"JOIN",
"CAR_MAKERS",
"AS",
"T4",
"ON",
"T1.Maker",
"=",... | [
"select",
"distinct",
"t1",
".",
"model",
"from",
"model_list",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"model",
"=",
"t2",
".",
"model",
"join",
"cars_data",
"as",
"t3",
"on",
"t2",
".",
"makeid",
"=",
"t3",
".",
"id",
"join",
... | [
"Which",
"models",
"are",
"lighter",
"than",
"3500",
"but",
"not",
"built",
"by",
"the",
"'Ford",
"Motor",
"Company",
"'",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName != 'Ford Motor Company'; | What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company? | [
"SELECT",
"DISTINCT",
"T1.model",
"FROM",
"MODEL_LIST",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.Model",
"=",
"T2.Model",
"JOIN",
"CARS_DATA",
"AS",
"T3",
"ON",
"T2.MakeId",
"=",
"T3.Id",
"JOIN",
"CAR_MAKERS",
"AS",
"T4",
"ON",
"T1.Maker",
"=",... | [
"select",
"distinct",
"t1",
".",
"model",
"from",
"model_list",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"model",
"=",
"t2",
".",
"model",
"join",
"cars_data",
"as",
"t3",
"on",
"t2",
".",
"makeid",
"=",
"t3",
".",
"id",
"join",
... | [
"What",
"are",
"the",
"different",
"models",
"wthat",
"are",
"lighter",
"than",
"3500",
"but",
"were",
"not",
"built",
"by",
"the",
"Ford",
"Motor",
"Company",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country; | What are the name of the countries where there is not a single car maker? | [
"SELECT",
"CountryName",
"FROM",
"countries",
"EXCEPT",
"SELECT",
"T1.CountryName",
"FROM",
"countries",
"AS",
"T1",
"JOIN",
"CAR_MAKERS",
"AS",
"T2",
"ON",
"T1.countryId",
"=",
"T2.Country",
";"
] | [
"select",
"countryname",
"from",
"countries",
"except",
"select",
"t1",
".",
"countryname",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"countryid",
"=",
"t2",
".",
"country"
] | [
"What",
"are",
"the",
"name",
"of",
"the",
"countries",
"where",
"there",
"is",
"not",
"a",
"single",
"car",
"maker",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country; | What are the names of the countries with no car makers? | [
"SELECT",
"CountryName",
"FROM",
"countries",
"EXCEPT",
"SELECT",
"T1.CountryName",
"FROM",
"countries",
"AS",
"T1",
"JOIN",
"CAR_MAKERS",
"AS",
"T2",
"ON",
"T1.countryId",
"=",
"T2.Country",
";"
] | [
"select",
"countryname",
"from",
"countries",
"except",
"select",
"t1",
".",
"countryname",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"countryid",
"=",
"t2",
".",
"country"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"countries",
"with",
"no",
"car",
"makers",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | select t1.id , t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id having count(*) >= 2 intersect select t1.id , t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_names as t3 on t2.model = t3.model group by t1.id having count(*) > 3; | Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker . | [
"select",
"t1.id",
",",
"t1.maker",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1.id",
"=",
"t2.maker",
"group",
"by",
"t1.id",
"having",
"count",
"(",
"*",
")",
">=",
"2",
"intersect",
"select",
"t1.id",
",",
"t1.maker",
... | [
"select",
"t1",
".",
"id",
",",
"t1",
".",
"maker",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"maker",
"group",
"by",
"t1",
".",
"id",
"having",
"count",
"(",
"*",
")",
">",
"=",
... | [
"Which",
"are",
"the",
"car",
"makers",
"which",
"produce",
"at",
"least",
"2",
"models",
"and",
"more",
"than",
"3",
"car",
"makers",
"?",
"List",
"the",
"id",
"and",
"the",
"maker",
"."
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T1.Id , T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) >= 2 INTERSECT SELECT T1.Id , T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model GROUP BY T1.Id HAVING count(*) > 3; | What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars? | [
"SELECT",
"T1.Id",
",",
"T1.Maker",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"MODEL_LIST",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.Maker",
"GROUP",
"BY",
"T1.Id",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2",
"INTERSECT",
"SELECT",
"T1.Id",
",",
"T1.Make... | [
"select",
"t1",
".",
"id",
",",
"t1",
".",
"maker",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"maker",
"group",
"by",
"t1",
".",
"id",
"having",
"count",
"(",
"*",
")",
">",
"=",
... | [
"What",
"are",
"the",
"ids",
"and",
"makers",
"of",
"all",
"car",
"makers",
"that",
"produce",
"at",
"least",
"2",
"models",
"and",
"make",
"more",
"than",
"3",
"cars",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING count(*) > 3 UNION SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WH... | What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model? | [
"SELECT",
"T1.countryId",
",",
"T1.CountryName",
"FROM",
"Countries",
"AS",
"T1",
"JOIN",
"CAR_MAKERS",
"AS",
"T2",
"ON",
"T1.CountryId",
"=",
"T2.Country",
"GROUP",
"BY",
"T1.countryId",
"HAVING",
"count",
"(",
"*",
")",
">",
"3",
"UNION",
"SELECT",
"T1.count... | [
"select",
"t1",
".",
"countryid",
",",
"t1",
".",
"countryname",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"countryid",
"=",
"t2",
".",
"country",
"group",
"by",
"t1",
".",
"countryid",
"having",
"count",
"(",
... | [
"What",
"are",
"the",
"id",
"and",
"names",
"of",
"the",
"countries",
"which",
"have",
"more",
"than",
"3",
"car",
"makers",
"or",
"produce",
"the",
"'fiat",
"'",
"model",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
car_1 | select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 3 union select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country join model_list as t3 on t2.id = t3.maker wh... | What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ? | [
"select",
"t1.countryid",
",",
"t1.countryname",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1.countryid",
"=",
"t2.country",
"group",
"by",
"t1.countryid",
"having",
"count",
"(",
"*",
")",
">",
"3",
"union",
"select",
"t1.count... | [
"select",
"t1",
".",
"countryid",
",",
"t1",
".",
"countryname",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"countryid",
"=",
"t2",
".",
"country",
"group",
"by",
"t1",
".",
"countryid",
"having",
"count",
"(",
... | [
"What",
"are",
"the",
"ids",
"and",
"names",
"of",
"all",
"countries",
"that",
"either",
"have",
"more",
"than",
"3",
"car",
"makers",
"or",
"produce",
"fiat",
"model",
"?"
] | CREATE TABLE continents (
ContId NUMBER PRIMARY KEY,
Continent TEXT
);
CREATE TABLE countries (
CountryId NUMBER PRIMARY KEY,
CountryName TEXT,
Continent NUMBER,
FOREIGN KEY (Continent) REFERENCES continents(ContId)
);
CREATE TABLE car_makers (
Id NUMBER PRIMARY KEY,
Maker TEXT,
FullName TEXT,
Cou... |
flight_2 | SELECT Country FROM AIRLINES WHERE Airline = "JetBlue Airways" | Which country does Airline "JetBlue Airways" belong to? | [
"SELECT",
"Country",
"FROM",
"AIRLINES",
"WHERE",
"Airline",
"=",
"``",
"JetBlue",
"Airways",
"''"
] | [
"select",
"country",
"from",
"airlines",
"where",
"airline",
"=",
"value"
] | [
"Which",
"country",
"does",
"Airline",
"``",
"JetBlue",
"Airways",
"''",
"belong",
"to",
"?"
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
flight_2 | SELECT Country FROM AIRLINES WHERE Airline = "JetBlue Airways" | What country is Jetblue Airways affiliated with? | [
"SELECT",
"Country",
"FROM",
"AIRLINES",
"WHERE",
"Airline",
"=",
"``",
"JetBlue",
"Airways",
"''"
] | [
"select",
"country",
"from",
"airlines",
"where",
"airline",
"=",
"value"
] | [
"What",
"country",
"is",
"Jetblue",
"Airways",
"affiliated",
"with",
"?"
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
flight_2 | SELECT Abbreviation FROM AIRLINES WHERE Airline = "JetBlue Airways" | What is the abbreviation of Airline "JetBlue Airways"? | [
"SELECT",
"Abbreviation",
"FROM",
"AIRLINES",
"WHERE",
"Airline",
"=",
"``",
"JetBlue",
"Airways",
"''"
] | [
"select",
"abbreviation",
"from",
"airlines",
"where",
"airline",
"=",
"value"
] | [
"What",
"is",
"the",
"abbreviation",
"of",
"Airline",
"``",
"JetBlue",
"Airways",
"''",
"?"
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
flight_2 | SELECT Abbreviation FROM AIRLINES WHERE Airline = "JetBlue Airways" | Which abbreviation corresponds to Jetblue Airways? | [
"SELECT",
"Abbreviation",
"FROM",
"AIRLINES",
"WHERE",
"Airline",
"=",
"``",
"JetBlue",
"Airways",
"''"
] | [
"select",
"abbreviation",
"from",
"airlines",
"where",
"airline",
"=",
"value"
] | [
"Which",
"abbreviation",
"corresponds",
"to",
"Jetblue",
"Airways",
"?"
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
flight_2 | SELECT Airline , Abbreviation FROM AIRLINES WHERE Country = "USA" | List all airline names and their abbreviations in "USA". | [
"SELECT",
"Airline",
",",
"Abbreviation",
"FROM",
"AIRLINES",
"WHERE",
"Country",
"=",
"``",
"USA",
"''"
] | [
"select",
"airline",
",",
"abbreviation",
"from",
"airlines",
"where",
"country",
"=",
"value"
] | [
"List",
"all",
"airline",
"names",
"and",
"their",
"abbreviations",
"in",
"``",
"USA",
"''",
"."
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
flight_2 | SELECT Airline , Abbreviation FROM AIRLINES WHERE Country = "USA" | What are the airline names and abbreviations for airlines in the USA? | [
"SELECT",
"Airline",
",",
"Abbreviation",
"FROM",
"AIRLINES",
"WHERE",
"Country",
"=",
"``",
"USA",
"''"
] | [
"select",
"airline",
",",
"abbreviation",
"from",
"airlines",
"where",
"country",
"=",
"value"
] | [
"What",
"are",
"the",
"airline",
"names",
"and",
"abbreviations",
"for",
"airlines",
"in",
"the",
"USA",
"?"
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
flight_2 | SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = "Anthony" | List the airport code and name in the city of Anthony. | [
"SELECT",
"AirportCode",
",",
"AirportName",
"FROM",
"AIRPORTS",
"WHERE",
"city",
"=",
"``",
"Anthony",
"''"
] | [
"select",
"airportcode",
",",
"airportname",
"from",
"airports",
"where",
"city",
"=",
"value"
] | [
"List",
"the",
"airport",
"code",
"and",
"name",
"in",
"the",
"city",
"of",
"Anthony",
"."
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
flight_2 | SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = "Anthony" | Give the airport code and airport name corresonding to the city Anthony. | [
"SELECT",
"AirportCode",
",",
"AirportName",
"FROM",
"AIRPORTS",
"WHERE",
"city",
"=",
"``",
"Anthony",
"''"
] | [
"select",
"airportcode",
",",
"airportname",
"from",
"airports",
"where",
"city",
"=",
"value"
] | [
"Give",
"the",
"airport",
"code",
"and",
"airport",
"name",
"corresonding",
"to",
"the",
"city",
"Anthony",
"."
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
flight_2 | SELECT count(*) FROM AIRLINES | How many airlines do we have? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"AIRLINES"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"airlines"
] | [
"How",
"many",
"airlines",
"do",
"we",
"have",
"?"
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
flight_2 | SELECT count(*) FROM AIRLINES | What is the total number of airlines? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"AIRLINES"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"airlines"
] | [
"What",
"is",
"the",
"total",
"number",
"of",
"airlines",
"?"
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
flight_2 | SELECT count(*) FROM AIRPORTS | How many airports do we have? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"AIRPORTS"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"airports"
] | [
"How",
"many",
"airports",
"do",
"we",
"have",
"?"
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
flight_2 | SELECT count(*) FROM AIRPORTS | Return the number of airports. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"AIRPORTS"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"airports"
] | [
"Return",
"the",
"number",
"of",
"airports",
"."
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
flight_2 | SELECT count(*) FROM FLIGHTS | How many flights do we have? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"FLIGHTS"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"flights"
] | [
"How",
"many",
"flights",
"do",
"we",
"have",
"?"
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
flight_2 | SELECT count(*) FROM FLIGHTS | Return the number of flights. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"FLIGHTS"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"flights"
] | [
"Return",
"the",
"number",
"of",
"flights",
"."
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
flight_2 | SELECT Airline FROM AIRLINES WHERE Abbreviation = "UAL" | Which airline has abbreviation 'UAL'? | [
"SELECT",
"Airline",
"FROM",
"AIRLINES",
"WHERE",
"Abbreviation",
"=",
"``",
"UAL",
"''"
] | [
"select",
"airline",
"from",
"airlines",
"where",
"abbreviation",
"=",
"value"
] | [
"Which",
"airline",
"has",
"abbreviation",
"'UAL",
"'",
"?"
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
flight_2 | SELECT Airline FROM AIRLINES WHERE Abbreviation = "UAL" | Give the airline with abbreviation 'UAL'. | [
"SELECT",
"Airline",
"FROM",
"AIRLINES",
"WHERE",
"Abbreviation",
"=",
"``",
"UAL",
"''"
] | [
"select",
"airline",
"from",
"airlines",
"where",
"abbreviation",
"=",
"value"
] | [
"Give",
"the",
"airline",
"with",
"abbreviation",
"'UAL",
"'",
"."
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
flight_2 | SELECT count(*) FROM AIRLINES WHERE Country = "USA" | How many airlines are from USA? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"AIRLINES",
"WHERE",
"Country",
"=",
"``",
"USA",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"airlines",
"where",
"country",
"=",
"value"
] | [
"How",
"many",
"airlines",
"are",
"from",
"USA",
"?"
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
flight_2 | SELECT count(*) FROM AIRLINES WHERE Country = "USA" | Return the number of airlines in the USA. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"AIRLINES",
"WHERE",
"Country",
"=",
"``",
"USA",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"airlines",
"where",
"country",
"=",
"value"
] | [
"Return",
"the",
"number",
"of",
"airlines",
"in",
"the",
"USA",
"."
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
flight_2 | SELECT City , Country FROM AIRPORTS WHERE AirportName = "Alton" | Which city and country is the Alton airport at? | [
"SELECT",
"City",
",",
"Country",
"FROM",
"AIRPORTS",
"WHERE",
"AirportName",
"=",
"``",
"Alton",
"''"
] | [
"select",
"city",
",",
"country",
"from",
"airports",
"where",
"airportname",
"=",
"value"
] | [
"Which",
"city",
"and",
"country",
"is",
"the",
"Alton",
"airport",
"at",
"?"
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
flight_2 | SELECT City , Country FROM AIRPORTS WHERE AirportName = "Alton" | Give the city and country for the Alton airport. | [
"SELECT",
"City",
",",
"Country",
"FROM",
"AIRPORTS",
"WHERE",
"AirportName",
"=",
"``",
"Alton",
"''"
] | [
"select",
"city",
",",
"country",
"from",
"airports",
"where",
"airportname",
"=",
"value"
] | [
"Give",
"the",
"city",
"and",
"country",
"for",
"the",
"Alton",
"airport",
"."
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
flight_2 | SELECT AirportName FROM AIRPORTS WHERE AirportCode = "AKO" | What is the airport name for airport 'AKO'? | [
"SELECT",
"AirportName",
"FROM",
"AIRPORTS",
"WHERE",
"AirportCode",
"=",
"``",
"AKO",
"''"
] | [
"select",
"airportname",
"from",
"airports",
"where",
"airportcode",
"=",
"value"
] | [
"What",
"is",
"the",
"airport",
"name",
"for",
"airport",
"'AKO",
"'",
"?"
] | CREATE TABLE airlines (
uid NUMBER PRIMARY KEY,
Airline TEXT,
Abbreviation TEXT,
Country TEXT
);
CREATE TABLE airports (
City TEXT,
AirportCode TEXT PRIMARY KEY,
AirportName TEXT,
Country TEXT,
CountryAbbrev TEXT
);
CREATE TABLE flights (
Airline NUMBER PRIMARY KEY,
FlightNo NUMBER,
SourceAirp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.