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 |
|---|---|---|---|---|---|---|
flight_2 | SELECT AirportName FROM AIRPORTS WHERE AirportCode = "AKO" | Return the name of the airport with code 'AKO'. | [
"SELECT",
"AirportName",
"FROM",
"AIRPORTS",
"WHERE",
"AirportCode",
"=",
"``",
"AKO",
"''"
] | [
"select",
"airportname",
"from",
"airports",
"where",
"airportcode",
"=",
"value"
] | [
"Return",
"the",
"name",
"of",
"the",
"airport",
"with",
"code",
"'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... |
flight_2 | SELECT AirportName FROM AIRPORTS WHERE City = "Aberdeen" | What are airport names at City 'Aberdeen'? | [
"SELECT",
"AirportName",
"FROM",
"AIRPORTS",
"WHERE",
"City",
"=",
"``",
"Aberdeen",
"''"
] | [
"select",
"airportname",
"from",
"airports",
"where",
"city",
"=",
"value"
] | [
"What",
"are",
"airport",
"names",
"at",
"City",
"'Aberdeen",
"'",
"?"
] | 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 City = "Aberdeen" | What are the names of airports in Aberdeen? | [
"SELECT",
"AirportName",
"FROM",
"AIRPORTS",
"WHERE",
"City",
"=",
"``",
"Aberdeen",
"''"
] | [
"select",
"airportname",
"from",
"airports",
"where",
"city",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"airports",
"in",
"Aberdeen",
"?"
] | 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 WHERE SourceAirport = "APG" | How many flights depart from 'APG'? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"FLIGHTS",
"WHERE",
"SourceAirport",
"=",
"``",
"APG",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"flights",
"where",
"sourceairport",
"=",
"value"
] | [
"How",
"many",
"flights",
"depart",
"from",
"'APG",
"'",
"?"
] | 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 WHERE SourceAirport = "APG" | Count the number of flights departing from 'APG'. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"FLIGHTS",
"WHERE",
"SourceAirport",
"=",
"``",
"APG",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"flights",
"where",
"sourceairport",
"=",
"value"
] | [
"Count",
"the",
"number",
"of",
"flights",
"departing",
"from",
"'APG",
"'",
"."
] | 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 WHERE DestAirport = "ATO" | How many flights have destination ATO? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"FLIGHTS",
"WHERE",
"DestAirport",
"=",
"``",
"ATO",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"flights",
"where",
"destairport",
"=",
"value"
] | [
"How",
"many",
"flights",
"have",
"destination",
"ATO",
"?"
] | 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 WHERE DestAirport = "ATO" | Count the number of flights into ATO. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"FLIGHTS",
"WHERE",
"DestAirport",
"=",
"``",
"ATO",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"flights",
"where",
"destairport",
"=",
"value"
] | [
"Count",
"the",
"number",
"of",
"flights",
"into",
"ATO",
"."
] | 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 AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = "Aberdeen" | How many flights depart from City Aberdeen? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"FLIGHTS",
"AS",
"T1",
"JOIN",
"AIRPORTS",
"AS",
"T2",
"ON",
"T1.SourceAirport",
"=",
"T2.AirportCode",
"WHERE",
"T2.City",
"=",
"``",
"Aberdeen",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"flights",
"as",
"t1",
"join",
"airports",
"as",
"t2",
"on",
"t1",
".",
"sourceairport",
"=",
"t2",
".",
"airportcode",
"where",
"t2",
".",
"city",
"=",
"value"
] | [
"How",
"many",
"flights",
"depart",
"from",
"City",
"Aberdeen",
"?"
] | 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 AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = "Aberdeen" | Return the number of flights departing from Aberdeen. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"FLIGHTS",
"AS",
"T1",
"JOIN",
"AIRPORTS",
"AS",
"T2",
"ON",
"T1.SourceAirport",
"=",
"T2.AirportCode",
"WHERE",
"T2.City",
"=",
"``",
"Aberdeen",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"flights",
"as",
"t1",
"join",
"airports",
"as",
"t2",
"on",
"t1",
".",
"sourceairport",
"=",
"t2",
".",
"airportcode",
"where",
"t2",
".",
"city",
"=",
"value"
] | [
"Return",
"the",
"number",
"of",
"flights",
"departing",
"from",
"Aberdeen",
"."
] | 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 AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = "Aberdeen" | How many flights arriving in Aberdeen city? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"FLIGHTS",
"AS",
"T1",
"JOIN",
"AIRPORTS",
"AS",
"T2",
"ON",
"T1.DestAirport",
"=",
"T2.AirportCode",
"WHERE",
"T2.City",
"=",
"``",
"Aberdeen",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"flights",
"as",
"t1",
"join",
"airports",
"as",
"t2",
"on",
"t1",
".",
"destairport",
"=",
"t2",
".",
"airportcode",
"where",
"t2",
".",
"city",
"=",
"value"
] | [
"How",
"many",
"flights",
"arriving",
"in",
"Aberdeen",
"city",
"?"
] | 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 AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = "Aberdeen" | Return the number of flights arriving in Aberdeen. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"FLIGHTS",
"AS",
"T1",
"JOIN",
"AIRPORTS",
"AS",
"T2",
"ON",
"T1.DestAirport",
"=",
"T2.AirportCode",
"WHERE",
"T2.City",
"=",
"``",
"Aberdeen",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"flights",
"as",
"t1",
"join",
"airports",
"as",
"t2",
"on",
"t1",
".",
"destairport",
"=",
"t2",
".",
"airportcode",
"where",
"t2",
".",
"city",
"=",
"value"
] | [
"Return",
"the",
"number",
"of",
"flights",
"arriving",
"in",
"Aberdeen",
"."
] | 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 AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = "Ashley" AND T3.City = "Aberdeen" | How many flights depart from City 'Aberdeen' and have destination City 'Ashley'? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"FLIGHTS",
"AS",
"T1",
"JOIN",
"AIRPORTS",
"AS",
"T2",
"ON",
"T1.DestAirport",
"=",
"T2.AirportCode",
"JOIN",
"AIRPORTS",
"AS",
"T3",
"ON",
"T1.SourceAirport",
"=",
"T3.AirportCode",
"WHERE",
"T2.City",
"=",
"``",
"A... | [
"select",
"count",
"(",
"*",
")",
"from",
"flights",
"as",
"t1",
"join",
"airports",
"as",
"t2",
"on",
"t1",
".",
"destairport",
"=",
"t2",
".",
"airportcode",
"join",
"airports",
"as",
"t3",
"on",
"t1",
".",
"sourceairport",
"=",
"t3",
".",
"airportco... | [
"How",
"many",
"flights",
"depart",
"from",
"City",
"'Aberdeen",
"'",
"and",
"have",
"destination",
"City",
"'Ashley",
"'",
"?"
] | 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 AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = "Ashley" AND T3.City = "Aberdeen" | How many flights fly from Aberdeen to Ashley? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"FLIGHTS",
"AS",
"T1",
"JOIN",
"AIRPORTS",
"AS",
"T2",
"ON",
"T1.DestAirport",
"=",
"T2.AirportCode",
"JOIN",
"AIRPORTS",
"AS",
"T3",
"ON",
"T1.SourceAirport",
"=",
"T3.AirportCode",
"WHERE",
"T2.City",
"=",
"``",
"A... | [
"select",
"count",
"(",
"*",
")",
"from",
"flights",
"as",
"t1",
"join",
"airports",
"as",
"t2",
"on",
"t1",
".",
"destairport",
"=",
"t2",
".",
"airportcode",
"join",
"airports",
"as",
"t3",
"on",
"t1",
".",
"sourceairport",
"=",
"t3",
".",
"airportco... | [
"How",
"many",
"flights",
"fly",
"from",
"Aberdeen",
"to",
"Ashley",
"?"
] | 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 AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = "JetBlue Airways" | How many flights does airline 'JetBlue Airways' have? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"FLIGHTS",
"AS",
"T1",
"JOIN",
"AIRLINES",
"AS",
"T2",
"ON",
"T1.Airline",
"=",
"T2.uid",
"WHERE",
"T2.Airline",
"=",
"``",
"JetBlue",
"Airways",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"flights",
"as",
"t1",
"join",
"airlines",
"as",
"t2",
"on",
"t1",
".",
"airline",
"=",
"t2",
".",
"uid",
"where",
"t2",
".",
"airline",
"=",
"value"
] | [
"How",
"many",
"flights",
"does",
"airline",
"'JetBlue",
"Airways",
"'",
"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 AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = "JetBlue Airways" | Give the number of Jetblue Airways flights. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"FLIGHTS",
"AS",
"T1",
"JOIN",
"AIRLINES",
"AS",
"T2",
"ON",
"T1.Airline",
"=",
"T2.uid",
"WHERE",
"T2.Airline",
"=",
"``",
"JetBlue",
"Airways",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"flights",
"as",
"t1",
"join",
"airlines",
"as",
"t2",
"on",
"t1",
".",
"airline",
"=",
"t2",
".",
"uid",
"where",
"t2",
".",
"airline",
"=",
"value"
] | [
"Give",
"the",
"number",
"of",
"Jetblue",
"Airways",
"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 count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = "United Airlines" AND T2.DestAirport = "ASY" | How many 'United Airlines' flights go to Airport 'ASY'? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T2.Airline",
"=",
"T1.uid",
"WHERE",
"T1.Airline",
"=",
"``",
"United",
"Airlines",
"''",
"AND",
"T2.DestAirport",
"=",
"``",
"ASY",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"airlines",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t2",
".",
"airline",
"=",
"t1",
".",
"uid",
"where",
"t1",
".",
"airline",
"=",
"value",
"and",
"t2",
".",
"destairport",
"=",
"value"
] | [
"How",
"many",
"'United",
"Airlines",
"'",
"flights",
"go",
"to",
"Airport",
"'ASY",
"'",
"?"
] | 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 AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = "United Airlines" AND T2.DestAirport = "ASY" | Count the number of United Airlines flights arriving in ASY Airport. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T2.Airline",
"=",
"T1.uid",
"WHERE",
"T1.Airline",
"=",
"``",
"United",
"Airlines",
"''",
"AND",
"T2.DestAirport",
"=",
"``",
"ASY",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"airlines",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t2",
".",
"airline",
"=",
"t1",
".",
"uid",
"where",
"t1",
".",
"airline",
"=",
"value",
"and",
"t2",
".",
"destairport",
"=",
"value"
] | [
"Count",
"the",
"number",
"of",
"United",
"Airlines",
"flights",
"arriving",
"in",
"ASY",
"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 count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = "United Airlines" AND T2.SourceAirport = "AHD" | How many 'United Airlines' flights depart from Airport 'AHD'? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T2.Airline",
"=",
"T1.uid",
"WHERE",
"T1.Airline",
"=",
"``",
"United",
"Airlines",
"''",
"AND",
"T2.SourceAirport",
"=",
"``",
"AHD",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"airlines",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t2",
".",
"airline",
"=",
"t1",
".",
"uid",
"where",
"t1",
".",
"airline",
"=",
"value",
"and",
"t2",
".",
"sourceairport",
"=",
"value"
] | [
"How",
"many",
"'United",
"Airlines",
"'",
"flights",
"depart",
"from",
"Airport",
"'AHD",
"'",
"?"
] | 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 AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = "United Airlines" AND T2.SourceAirport = "AHD" | Return the number of United Airlines flights leaving from AHD Airport. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T2.Airline",
"=",
"T1.uid",
"WHERE",
"T1.Airline",
"=",
"``",
"United",
"Airlines",
"''",
"AND",
"T2.SourceAirport",
"=",
"``",
"AHD",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"airlines",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t2",
".",
"airline",
"=",
"t1",
".",
"uid",
"where",
"t1",
".",
"airline",
"=",
"value",
"and",
"t2",
".",
"sourceairport",
"=",
"value"
] | [
"Return",
"the",
"number",
"of",
"United",
"Airlines",
"flights",
"leaving",
"from",
"AHD",
"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 count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = "Aberdeen" AND T3.Airline = "United Airlines" | How many United Airlines flights go to City 'Aberdeen'? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"FLIGHTS",
"AS",
"T1",
"JOIN",
"AIRPORTS",
"AS",
"T2",
"ON",
"T1.DestAirport",
"=",
"T2.AirportCode",
"JOIN",
"AIRLINES",
"AS",
"T3",
"ON",
"T3.uid",
"=",
"T1.Airline",
"WHERE",
"T2.City",
"=",
"``",
"Aberdeen",
"'... | [
"select",
"count",
"(",
"*",
")",
"from",
"flights",
"as",
"t1",
"join",
"airports",
"as",
"t2",
"on",
"t1",
".",
"destairport",
"=",
"t2",
".",
"airportcode",
"join",
"airlines",
"as",
"t3",
"on",
"t3",
".",
"uid",
"=",
"t1",
".",
"airline",
"where"... | [
"How",
"many",
"United",
"Airlines",
"flights",
"go",
"to",
"City",
"'Aberdeen",
"'",
"?"
] | 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 AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = "Aberdeen" AND T3.Airline = "United Airlines" | Count the number of United Airlines flights that arrive in Aberdeen. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"FLIGHTS",
"AS",
"T1",
"JOIN",
"AIRPORTS",
"AS",
"T2",
"ON",
"T1.DestAirport",
"=",
"T2.AirportCode",
"JOIN",
"AIRLINES",
"AS",
"T3",
"ON",
"T3.uid",
"=",
"T1.Airline",
"WHERE",
"T2.City",
"=",
"``",
"Aberdeen",
"'... | [
"select",
"count",
"(",
"*",
")",
"from",
"flights",
"as",
"t1",
"join",
"airports",
"as",
"t2",
"on",
"t1",
".",
"destairport",
"=",
"t2",
".",
"airportcode",
"join",
"airlines",
"as",
"t3",
"on",
"t3",
".",
"uid",
"=",
"t1",
".",
"airline",
"where"... | [
"Count",
"the",
"number",
"of",
"United",
"Airlines",
"flights",
"that",
"arrive",
"in",
"Aberdeen",
"."
] | 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 T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1 | Which city has most number of arriving flights? | [
"SELECT",
"T1.City",
"FROM",
"AIRPORTS",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.AirportCode",
"=",
"T2.DestAirport",
"GROUP",
"BY",
"T1.City",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"city",
"from",
"airports",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"airportcode",
"=",
"t2",
".",
"destairport",
"group",
"by",
"t1",
".",
"city",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"valu... | [
"Which",
"city",
"has",
"most",
"number",
"of",
"arriving",
"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 T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1 | Which city has the most frequent destination airport? | [
"SELECT",
"T1.City",
"FROM",
"AIRPORTS",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.AirportCode",
"=",
"T2.DestAirport",
"GROUP",
"BY",
"T1.City",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"city",
"from",
"airports",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"airportcode",
"=",
"t2",
".",
"destairport",
"group",
"by",
"t1",
".",
"city",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"valu... | [
"Which",
"city",
"has",
"the",
"most",
"frequent",
"destination",
"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 T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1 | Which city has most number of departing flights? | [
"SELECT",
"T1.City",
"FROM",
"AIRPORTS",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.AirportCode",
"=",
"T2.SourceAirport",
"GROUP",
"BY",
"T1.City",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"city",
"from",
"airports",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"airportcode",
"=",
"t2",
".",
"sourceairport",
"group",
"by",
"t1",
".",
"city",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"va... | [
"Which",
"city",
"has",
"most",
"number",
"of",
"departing",
"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 T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1 | Which city is the most frequent source airport? | [
"SELECT",
"T1.City",
"FROM",
"AIRPORTS",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.AirportCode",
"=",
"T2.SourceAirport",
"GROUP",
"BY",
"T1.City",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"city",
"from",
"airports",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"airportcode",
"=",
"t2",
".",
"sourceairport",
"group",
"by",
"t1",
".",
"city",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"va... | [
"Which",
"city",
"is",
"the",
"most",
"frequent",
"source",
"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 T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1 | What is the code of airport that has the highest number of flights? | [
"SELECT",
"T1.AirportCode",
"FROM",
"AIRPORTS",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.AirportCode",
"=",
"T2.DestAirport",
"OR",
"T1.AirportCode",
"=",
"T2.SourceAirport",
"GROUP",
"BY",
"T1.AirportCode",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DE... | [
"select",
"t1",
".",
"airportcode",
"from",
"airports",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"airportcode",
"=",
"t2",
".",
"destairport",
"or",
"t1",
".",
"airportcode",
"=",
"t2",
".",
"sourceairport",
"group",
"by",
"t1",
".",
... | [
"What",
"is",
"the",
"code",
"of",
"airport",
"that",
"has",
"the",
"highest",
"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 T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1 | What is the airport code of the airport with the most flights? | [
"SELECT",
"T1.AirportCode",
"FROM",
"AIRPORTS",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.AirportCode",
"=",
"T2.DestAirport",
"OR",
"T1.AirportCode",
"=",
"T2.SourceAirport",
"GROUP",
"BY",
"T1.AirportCode",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DE... | [
"select",
"t1",
".",
"airportcode",
"from",
"airports",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"airportcode",
"=",
"t2",
".",
"destairport",
"or",
"t1",
".",
"airportcode",
"=",
"t2",
".",
"sourceairport",
"group",
"by",
"t1",
".",
... | [
"What",
"is",
"the",
"airport",
"code",
"of",
"the",
"airport",
"with",
"the",
"most",
"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 T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1 | What is the code of airport that has fewest number of flights? | [
"SELECT",
"T1.AirportCode",
"FROM",
"AIRPORTS",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.AirportCode",
"=",
"T2.DestAirport",
"OR",
"T1.AirportCode",
"=",
"T2.SourceAirport",
"GROUP",
"BY",
"T1.AirportCode",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"LI... | [
"select",
"t1",
".",
"airportcode",
"from",
"airports",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"airportcode",
"=",
"t2",
".",
"destairport",
"or",
"t1",
".",
"airportcode",
"=",
"t2",
".",
"sourceairport",
"group",
"by",
"t1",
".",
... | [
"What",
"is",
"the",
"code",
"of",
"airport",
"that",
"has",
"fewest",
"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 T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1 | Give the code of the airport with the least flights. | [
"SELECT",
"T1.AirportCode",
"FROM",
"AIRPORTS",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.AirportCode",
"=",
"T2.DestAirport",
"OR",
"T1.AirportCode",
"=",
"T2.SourceAirport",
"GROUP",
"BY",
"T1.AirportCode",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"LI... | [
"select",
"t1",
".",
"airportcode",
"from",
"airports",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"airportcode",
"=",
"t2",
".",
"destairport",
"or",
"t1",
".",
"airportcode",
"=",
"t2",
".",
"sourceairport",
"group",
"by",
"t1",
".",
... | [
"Give",
"the",
"code",
"of",
"the",
"airport",
"with",
"the",
"least",
"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 T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1 | Which airline has most number of flights? | [
"SELECT",
"T1.Airline",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.uid",
"=",
"T2.Airline",
"GROUP",
"BY",
"T1.Airline",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"airline",
"from",
"airlines",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"uid",
"=",
"t2",
".",
"airline",
"group",
"by",
"t1",
".",
"airline",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Which",
"airline",
"has",
"most",
"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 T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1 | What airline serves the most flights? | [
"SELECT",
"T1.Airline",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.uid",
"=",
"T2.Airline",
"GROUP",
"BY",
"T1.Airline",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"airline",
"from",
"airlines",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"uid",
"=",
"t2",
".",
"airline",
"group",
"by",
"t1",
".",
"airline",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"airline",
"serves",
"the",
"most",
"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 T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1 | Find the abbreviation and country of the airline that has fewest number of flights? | [
"SELECT",
"T1.Abbreviation",
",",
"T1.Country",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.uid",
"=",
"T2.Airline",
"GROUP",
"BY",
"T1.Airline",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"abbreviation",
",",
"t1",
".",
"country",
"from",
"airlines",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"uid",
"=",
"t2",
".",
"airline",
"group",
"by",
"t1",
".",
"airline",
"order",
"by",
"count",
"(",
"*",
... | [
"Find",
"the",
"abbreviation",
"and",
"country",
"of",
"the",
"airline",
"that",
"has",
"fewest",
"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 T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1 | What is the abbreviation of the airilne has the fewest flights and what country is it in? | [
"SELECT",
"T1.Abbreviation",
",",
"T1.Country",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.uid",
"=",
"T2.Airline",
"GROUP",
"BY",
"T1.Airline",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"abbreviation",
",",
"t1",
".",
"country",
"from",
"airlines",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"uid",
"=",
"t2",
".",
"airline",
"group",
"by",
"t1",
".",
"airline",
"order",
"by",
"count",
"(",
"*",
... | [
"What",
"is",
"the",
"abbreviation",
"of",
"the",
"airilne",
"has",
"the",
"fewest",
"flights",
"and",
"what",
"country",
"is",
"it",
"in",
"?"
] | 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 T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "AHD" | What are airlines that have some flight departing from airport 'AHD'? | [
"SELECT",
"T1.Airline",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.uid",
"=",
"T2.Airline",
"WHERE",
"T2.SourceAirport",
"=",
"``",
"AHD",
"''"
] | [
"select",
"t1",
".",
"airline",
"from",
"airlines",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"uid",
"=",
"t2",
".",
"airline",
"where",
"t2",
".",
"sourceairport",
"=",
"value"
] | [
"What",
"are",
"airlines",
"that",
"have",
"some",
"flight",
"departing",
"from",
"airport",
"'AHD",
"'",
"?"
] | 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 T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "AHD" | Which airlines have a flight with source airport AHD? | [
"SELECT",
"T1.Airline",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.uid",
"=",
"T2.Airline",
"WHERE",
"T2.SourceAirport",
"=",
"``",
"AHD",
"''"
] | [
"select",
"t1",
".",
"airline",
"from",
"airlines",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"uid",
"=",
"t2",
".",
"airline",
"where",
"t2",
".",
"sourceairport",
"=",
"value"
] | [
"Which",
"airlines",
"have",
"a",
"flight",
"with",
"source",
"airport",
"AHD",
"?"
] | 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 T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = "AHD" | What are airlines that have flights arriving at airport 'AHD'? | [
"SELECT",
"T1.Airline",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.uid",
"=",
"T2.Airline",
"WHERE",
"T2.DestAirport",
"=",
"``",
"AHD",
"''"
] | [
"select",
"t1",
".",
"airline",
"from",
"airlines",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"uid",
"=",
"t2",
".",
"airline",
"where",
"t2",
".",
"destairport",
"=",
"value"
] | [
"What",
"are",
"airlines",
"that",
"have",
"flights",
"arriving",
"at",
"airport",
"'AHD",
"'",
"?"
] | 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 T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = "AHD" | Which airlines have a flight with destination airport AHD? | [
"SELECT",
"T1.Airline",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.uid",
"=",
"T2.Airline",
"WHERE",
"T2.DestAirport",
"=",
"``",
"AHD",
"''"
] | [
"select",
"t1",
".",
"airline",
"from",
"airlines",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"uid",
"=",
"t2",
".",
"airline",
"where",
"t2",
".",
"destairport",
"=",
"value"
] | [
"Which",
"airlines",
"have",
"a",
"flight",
"with",
"destination",
"airport",
"AHD",
"?"
] | 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 T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "APG" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "CVO" | Find all airlines that have flights from both airports 'APG' and 'CVO'. | [
"SELECT",
"T1.Airline",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.uid",
"=",
"T2.Airline",
"WHERE",
"T2.SourceAirport",
"=",
"``",
"APG",
"''",
"INTERSECT",
"SELECT",
"T1.Airline",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS... | [
"select",
"t1",
".",
"airline",
"from",
"airlines",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"uid",
"=",
"t2",
".",
"airline",
"where",
"t2",
".",
"sourceairport",
"=",
"value",
"intersect",
"select",
"t1",
".",
"airline",
"from",
"a... | [
"Find",
"all",
"airlines",
"that",
"have",
"flights",
"from",
"both",
"airports",
"'APG",
"'",
"and",
"'CVO",
"'",
"."
] | 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 T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "APG" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "CVO" | Which airlines have departing flights from both APG and CVO airports? | [
"SELECT",
"T1.Airline",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.uid",
"=",
"T2.Airline",
"WHERE",
"T2.SourceAirport",
"=",
"``",
"APG",
"''",
"INTERSECT",
"SELECT",
"T1.Airline",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS... | [
"select",
"t1",
".",
"airline",
"from",
"airlines",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"uid",
"=",
"t2",
".",
"airline",
"where",
"t2",
".",
"sourceairport",
"=",
"value",
"intersect",
"select",
"t1",
".",
"airline",
"from",
"a... | [
"Which",
"airlines",
"have",
"departing",
"flights",
"from",
"both",
"APG",
"and",
"CVO",
"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 T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "CVO" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "APG" | Find all airlines that have flights from airport 'CVO' but not from 'APG'. | [
"SELECT",
"T1.Airline",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.uid",
"=",
"T2.Airline",
"WHERE",
"T2.SourceAirport",
"=",
"``",
"CVO",
"''",
"EXCEPT",
"SELECT",
"T1.Airline",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
... | [
"select",
"t1",
".",
"airline",
"from",
"airlines",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"uid",
"=",
"t2",
".",
"airline",
"where",
"t2",
".",
"sourceairport",
"=",
"value",
"except",
"select",
"t1",
".",
"airline",
"from",
"airl... | [
"Find",
"all",
"airlines",
"that",
"have",
"flights",
"from",
"airport",
"'CVO",
"'",
"but",
"not",
"from",
"'APG",
"'",
"."
] | 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 T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "CVO" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "APG" | Which airlines have departures from CVO but not from APG airports? | [
"SELECT",
"T1.Airline",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.uid",
"=",
"T2.Airline",
"WHERE",
"T2.SourceAirport",
"=",
"``",
"CVO",
"''",
"EXCEPT",
"SELECT",
"T1.Airline",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
... | [
"select",
"t1",
".",
"airline",
"from",
"airlines",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"uid",
"=",
"t2",
".",
"airline",
"where",
"t2",
".",
"sourceairport",
"=",
"value",
"except",
"select",
"t1",
".",
"airline",
"from",
"airl... | [
"Which",
"airlines",
"have",
"departures",
"from",
"CVO",
"but",
"not",
"from",
"APG",
"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 T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10 | Find all airlines that have at least 10 flights. | [
"SELECT",
"T1.Airline",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.uid",
"=",
"T2.Airline",
"GROUP",
"BY",
"T1.Airline",
"HAVING",
"count",
"(",
"*",
")",
">",
"10"
] | [
"select",
"t1",
".",
"airline",
"from",
"airlines",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"uid",
"=",
"t2",
".",
"airline",
"group",
"by",
"t1",
".",
"airline",
"having",
"count",
"(",
"*",
")",
">",
"value"
] | [
"Find",
"all",
"airlines",
"that",
"have",
"at",
"least",
"10",
"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 T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10 | Which airlines have at least 10 flights? | [
"SELECT",
"T1.Airline",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.uid",
"=",
"T2.Airline",
"GROUP",
"BY",
"T1.Airline",
"HAVING",
"count",
"(",
"*",
")",
">",
"10"
] | [
"select",
"t1",
".",
"airline",
"from",
"airlines",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"uid",
"=",
"t2",
".",
"airline",
"group",
"by",
"t1",
".",
"airline",
"having",
"count",
"(",
"*",
")",
">",
"value"
] | [
"Which",
"airlines",
"have",
"at",
"least",
"10",
"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 T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200 | Find all airlines that have fewer than 200 flights. | [
"SELECT",
"T1.Airline",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.uid",
"=",
"T2.Airline",
"GROUP",
"BY",
"T1.Airline",
"HAVING",
"count",
"(",
"*",
")",
"<",
"200"
] | [
"select",
"t1",
".",
"airline",
"from",
"airlines",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"uid",
"=",
"t2",
".",
"airline",
"group",
"by",
"t1",
".",
"airline",
"having",
"count",
"(",
"*",
")",
"<",
"value"
] | [
"Find",
"all",
"airlines",
"that",
"have",
"fewer",
"than",
"200",
"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 T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200 | Which airlines have less than 200 flights? | [
"SELECT",
"T1.Airline",
"FROM",
"AIRLINES",
"AS",
"T1",
"JOIN",
"FLIGHTS",
"AS",
"T2",
"ON",
"T1.uid",
"=",
"T2.Airline",
"GROUP",
"BY",
"T1.Airline",
"HAVING",
"count",
"(",
"*",
")",
"<",
"200"
] | [
"select",
"t1",
".",
"airline",
"from",
"airlines",
"as",
"t1",
"join",
"flights",
"as",
"t2",
"on",
"t1",
".",
"uid",
"=",
"t2",
".",
"airline",
"group",
"by",
"t1",
".",
"airline",
"having",
"count",
"(",
"*",
")",
"<",
"value"
] | [
"Which",
"airlines",
"have",
"less",
"than",
"200",
"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 T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = "United Airlines" | What are flight numbers of Airline "United Airlines"? | [
"SELECT",
"T1.FlightNo",
"FROM",
"FLIGHTS",
"AS",
"T1",
"JOIN",
"AIRLINES",
"AS",
"T2",
"ON",
"T2.uid",
"=",
"T1.Airline",
"WHERE",
"T2.Airline",
"=",
"``",
"United",
"Airlines",
"''"
] | [
"select",
"t1",
".",
"flightno",
"from",
"flights",
"as",
"t1",
"join",
"airlines",
"as",
"t2",
"on",
"t2",
".",
"uid",
"=",
"t1",
".",
"airline",
"where",
"t2",
".",
"airline",
"=",
"value"
] | [
"What",
"are",
"flight",
"numbers",
"of",
"Airline",
"``",
"United",
"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 T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = "United Airlines" | Which flight numbers correspond to United Airlines flights? | [
"SELECT",
"T1.FlightNo",
"FROM",
"FLIGHTS",
"AS",
"T1",
"JOIN",
"AIRLINES",
"AS",
"T2",
"ON",
"T2.uid",
"=",
"T1.Airline",
"WHERE",
"T2.Airline",
"=",
"``",
"United",
"Airlines",
"''"
] | [
"select",
"t1",
".",
"flightno",
"from",
"flights",
"as",
"t1",
"join",
"airlines",
"as",
"t2",
"on",
"t2",
".",
"uid",
"=",
"t1",
".",
"airline",
"where",
"t2",
".",
"airline",
"=",
"value"
] | [
"Which",
"flight",
"numbers",
"correspond",
"to",
"United",
"Airlines",
"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 FlightNo FROM FLIGHTS WHERE SourceAirport = "APG" | What are flight numbers of flights departing from Airport "APG"? | [
"SELECT",
"FlightNo",
"FROM",
"FLIGHTS",
"WHERE",
"SourceAirport",
"=",
"``",
"APG",
"''"
] | [
"select",
"flightno",
"from",
"flights",
"where",
"sourceairport",
"=",
"value"
] | [
"What",
"are",
"flight",
"numbers",
"of",
"flights",
"departing",
"from",
"Airport",
"``",
"APG",
"''",
"?"
] | 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 FlightNo FROM FLIGHTS WHERE SourceAirport = "APG" | Give the flight numbers of flights leaving from APG. | [
"SELECT",
"FlightNo",
"FROM",
"FLIGHTS",
"WHERE",
"SourceAirport",
"=",
"``",
"APG",
"''"
] | [
"select",
"flightno",
"from",
"flights",
"where",
"sourceairport",
"=",
"value"
] | [
"Give",
"the",
"flight",
"numbers",
"of",
"flights",
"leaving",
"from",
"APG",
"."
] | 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 FlightNo FROM FLIGHTS WHERE DestAirport = "APG" | What are flight numbers of flights arriving at Airport "APG"? | [
"SELECT",
"FlightNo",
"FROM",
"FLIGHTS",
"WHERE",
"DestAirport",
"=",
"``",
"APG",
"''"
] | [
"select",
"flightno",
"from",
"flights",
"where",
"destairport",
"=",
"value"
] | [
"What",
"are",
"flight",
"numbers",
"of",
"flights",
"arriving",
"at",
"Airport",
"``",
"APG",
"''",
"?"
] | 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 FlightNo FROM FLIGHTS WHERE DestAirport = "APG" | Give the flight numbers of flights landing at APG. | [
"SELECT",
"FlightNo",
"FROM",
"FLIGHTS",
"WHERE",
"DestAirport",
"=",
"``",
"APG",
"''"
] | [
"select",
"flightno",
"from",
"flights",
"where",
"destairport",
"=",
"value"
] | [
"Give",
"the",
"flight",
"numbers",
"of",
"flights",
"landing",
"at",
"APG",
"."
] | 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 T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = "Aberdeen" | What are flight numbers of flights departing from City "Aberdeen "? | [
"SELECT",
"T1.FlightNo",
"FROM",
"FLIGHTS",
"AS",
"T1",
"JOIN",
"AIRPORTS",
"AS",
"T2",
"ON",
"T1.SourceAirport",
"=",
"T2.AirportCode",
"WHERE",
"T2.City",
"=",
"``",
"Aberdeen",
"''"
] | [
"select",
"t1",
".",
"flightno",
"from",
"flights",
"as",
"t1",
"join",
"airports",
"as",
"t2",
"on",
"t1",
".",
"sourceairport",
"=",
"t2",
".",
"airportcode",
"where",
"t2",
".",
"city",
"=",
"value"
] | [
"What",
"are",
"flight",
"numbers",
"of",
"flights",
"departing",
"from",
"City",
"``",
"Aberdeen",
"``",
"?"
] | 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 T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = "Aberdeen" | Give the flight numbers of flights leaving from Aberdeen. | [
"SELECT",
"T1.FlightNo",
"FROM",
"FLIGHTS",
"AS",
"T1",
"JOIN",
"AIRPORTS",
"AS",
"T2",
"ON",
"T1.SourceAirport",
"=",
"T2.AirportCode",
"WHERE",
"T2.City",
"=",
"``",
"Aberdeen",
"''"
] | [
"select",
"t1",
".",
"flightno",
"from",
"flights",
"as",
"t1",
"join",
"airports",
"as",
"t2",
"on",
"t1",
".",
"sourceairport",
"=",
"t2",
".",
"airportcode",
"where",
"t2",
".",
"city",
"=",
"value"
] | [
"Give",
"the",
"flight",
"numbers",
"of",
"flights",
"leaving",
"from",
"Aberdeen",
"."
] | 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 T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = "Aberdeen" | What are flight numbers of flights arriving at City "Aberdeen"? | [
"SELECT",
"T1.FlightNo",
"FROM",
"FLIGHTS",
"AS",
"T1",
"JOIN",
"AIRPORTS",
"AS",
"T2",
"ON",
"T1.DestAirport",
"=",
"T2.AirportCode",
"WHERE",
"T2.City",
"=",
"``",
"Aberdeen",
"''"
] | [
"select",
"t1",
".",
"flightno",
"from",
"flights",
"as",
"t1",
"join",
"airports",
"as",
"t2",
"on",
"t1",
".",
"destairport",
"=",
"t2",
".",
"airportcode",
"where",
"t2",
".",
"city",
"=",
"value"
] | [
"What",
"are",
"flight",
"numbers",
"of",
"flights",
"arriving",
"at",
"City",
"``",
"Aberdeen",
"''",
"?"
] | 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 T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = "Aberdeen" | Give the flight numbers of flights arriving in Aberdeen. | [
"SELECT",
"T1.FlightNo",
"FROM",
"FLIGHTS",
"AS",
"T1",
"JOIN",
"AIRPORTS",
"AS",
"T2",
"ON",
"T1.DestAirport",
"=",
"T2.AirportCode",
"WHERE",
"T2.City",
"=",
"``",
"Aberdeen",
"''"
] | [
"select",
"t1",
".",
"flightno",
"from",
"flights",
"as",
"t1",
"join",
"airports",
"as",
"t2",
"on",
"t1",
".",
"destairport",
"=",
"t2",
".",
"airportcode",
"where",
"t2",
".",
"city",
"=",
"value"
] | [
"Give",
"the",
"flight",
"numbers",
"of",
"flights",
"arriving",
"in",
"Aberdeen",
"."
] | 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 AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = "Aberdeen" OR T2.city = "Abilene" | Find the number of flights landing in the city of Aberdeen or Abilene. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Flights",
"AS",
"T1",
"JOIN",
"Airports",
"AS",
"T2",
"ON",
"T1.DestAirport",
"=",
"T2.AirportCode",
"WHERE",
"T2.city",
"=",
"``",
"Aberdeen",
"''",
"OR",
"T2.city",
"=",
"``",
"Abilene",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"flights",
"as",
"t1",
"join",
"airports",
"as",
"t2",
"on",
"t1",
".",
"destairport",
"=",
"t2",
".",
"airportcode",
"where",
"t2",
".",
"city",
"=",
"value",
"or",
"t2",
".",
"city",
"=",
"value"
] | [
"Find",
"the",
"number",
"of",
"flights",
"landing",
"in",
"the",
"city",
"of",
"Aberdeen",
"or",
"Abilene",
"."
] | 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 AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = "Aberdeen" OR T2.city = "Abilene" | How many flights land in Aberdeen or Abilene? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Flights",
"AS",
"T1",
"JOIN",
"Airports",
"AS",
"T2",
"ON",
"T1.DestAirport",
"=",
"T2.AirportCode",
"WHERE",
"T2.city",
"=",
"``",
"Aberdeen",
"''",
"OR",
"T2.city",
"=",
"``",
"Abilene",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"flights",
"as",
"t1",
"join",
"airports",
"as",
"t2",
"on",
"t1",
".",
"destairport",
"=",
"t2",
".",
"airportcode",
"where",
"t2",
".",
"city",
"=",
"value",
"or",
"t2",
".",
"city",
"=",
"value"
] | [
"How",
"many",
"flights",
"land",
"in",
"Aberdeen",
"or",
"Abilene",
"?"
] | 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 NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights) | Find the name of airports which do not have any flight in and out. | [
"SELECT",
"AirportName",
"FROM",
"Airports",
"WHERE",
"AirportCode",
"NOT",
"IN",
"(",
"SELECT",
"SourceAirport",
"FROM",
"Flights",
"UNION",
"SELECT",
"DestAirport",
"FROM",
"Flights",
")"
] | [
"select",
"airportname",
"from",
"airports",
"where",
"airportcode",
"not",
"in",
"(",
"select",
"sourceairport",
"from",
"flights",
"union",
"select",
"destairport",
"from",
"flights",
")"
] | [
"Find",
"the",
"name",
"of",
"airports",
"which",
"do",
"not",
"have",
"any",
"flight",
"in",
"and",
"out",
"."
] | 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 NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights) | Which airports do not have departing or arriving flights? | [
"SELECT",
"AirportName",
"FROM",
"Airports",
"WHERE",
"AirportCode",
"NOT",
"IN",
"(",
"SELECT",
"SourceAirport",
"FROM",
"Flights",
"UNION",
"SELECT",
"DestAirport",
"FROM",
"Flights",
")"
] | [
"select",
"airportname",
"from",
"airports",
"where",
"airportcode",
"not",
"in",
"(",
"select",
"sourceairport",
"from",
"flights",
"union",
"select",
"destairport",
"from",
"flights",
")"
] | [
"Which",
"airports",
"do",
"not",
"have",
"departing",
"or",
"arriving",
"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... |
employee_hire_evaluation | SELECT count(*) FROM employee | How many employees are there? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"employee"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"employee"
] | [
"How",
"many",
"employees",
"are",
"there",
"?"
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT count(*) FROM employee | Count the number of employees | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"employee"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"employee"
] | [
"Count",
"the",
"number",
"of",
"employees"
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT name FROM employee ORDER BY age | Sort employee names by their age in ascending order. | [
"SELECT",
"name",
"FROM",
"employee",
"ORDER",
"BY",
"age"
] | [
"select",
"name",
"from",
"employee",
"order",
"by",
"age"
] | [
"Sort",
"employee",
"names",
"by",
"their",
"age",
"in",
"ascending",
"order",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT name FROM employee ORDER BY age | List the names of employees and sort in ascending order of age. | [
"SELECT",
"name",
"FROM",
"employee",
"ORDER",
"BY",
"age"
] | [
"select",
"name",
"from",
"employee",
"order",
"by",
"age"
] | [
"List",
"the",
"names",
"of",
"employees",
"and",
"sort",
"in",
"ascending",
"order",
"of",
"age",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT count(*) , city FROM employee GROUP BY city | What is the number of employees from each city? | [
"SELECT",
"count",
"(",
"*",
")",
",",
"city",
"FROM",
"employee",
"GROUP",
"BY",
"city"
] | [
"select",
"count",
"(",
"*",
")",
",",
"city",
"from",
"employee",
"group",
"by",
"city"
] | [
"What",
"is",
"the",
"number",
"of",
"employees",
"from",
"each",
"city",
"?"
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT count(*) , city FROM employee GROUP BY city | Count the number of employees for each city. | [
"SELECT",
"count",
"(",
"*",
")",
",",
"city",
"FROM",
"employee",
"GROUP",
"BY",
"city"
] | [
"select",
"count",
"(",
"*",
")",
",",
"city",
"from",
"employee",
"group",
"by",
"city"
] | [
"Count",
"the",
"number",
"of",
"employees",
"for",
"each",
"city",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1 | Which cities do more than one employee under age 30 come from? | [
"SELECT",
"city",
"FROM",
"employee",
"WHERE",
"age",
"<",
"30",
"GROUP",
"BY",
"city",
"HAVING",
"count",
"(",
"*",
")",
">",
"1"
] | [
"select",
"city",
"from",
"employee",
"where",
"age",
"<",
"value",
"group",
"by",
"city",
"having",
"count",
"(",
"*",
")",
">",
"value"
] | [
"Which",
"cities",
"do",
"more",
"than",
"one",
"employee",
"under",
"age",
"30",
"come",
"from",
"?"
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1 | Find the cities that have more than one employee under age 30. | [
"SELECT",
"city",
"FROM",
"employee",
"WHERE",
"age",
"<",
"30",
"GROUP",
"BY",
"city",
"HAVING",
"count",
"(",
"*",
")",
">",
"1"
] | [
"select",
"city",
"from",
"employee",
"where",
"age",
"<",
"value",
"group",
"by",
"city",
"having",
"count",
"(",
"*",
")",
">",
"value"
] | [
"Find",
"the",
"cities",
"that",
"have",
"more",
"than",
"one",
"employee",
"under",
"age",
"30",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION | Find the number of shops in each location. | [
"SELECT",
"count",
"(",
"*",
")",
",",
"LOCATION",
"FROM",
"shop",
"GROUP",
"BY",
"LOCATION"
] | [
"select",
"count",
"(",
"*",
")",
",",
"location",
"from",
"shop",
"group",
"by",
"location"
] | [
"Find",
"the",
"number",
"of",
"shops",
"in",
"each",
"location",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION | How many shops are there in each location? | [
"SELECT",
"count",
"(",
"*",
")",
",",
"LOCATION",
"FROM",
"shop",
"GROUP",
"BY",
"LOCATION"
] | [
"select",
"count",
"(",
"*",
")",
",",
"location",
"from",
"shop",
"group",
"by",
"location"
] | [
"How",
"many",
"shops",
"are",
"there",
"in",
"each",
"location",
"?"
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1 | Find the manager name and district of the shop whose number of products is the largest. | [
"SELECT",
"manager_name",
",",
"district",
"FROM",
"shop",
"ORDER",
"BY",
"number_products",
"DESC",
"LIMIT",
"1"
] | [
"select",
"manager_name",
",",
"district",
"from",
"shop",
"order",
"by",
"number_products",
"desc",
"limit",
"value"
] | [
"Find",
"the",
"manager",
"name",
"and",
"district",
"of",
"the",
"shop",
"whose",
"number",
"of",
"products",
"is",
"the",
"largest",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1 | What are the manager name and district of the shop that sells the largest number of products? | [
"SELECT",
"manager_name",
",",
"district",
"FROM",
"shop",
"ORDER",
"BY",
"number_products",
"DESC",
"LIMIT",
"1"
] | [
"select",
"manager_name",
",",
"district",
"from",
"shop",
"order",
"by",
"number_products",
"desc",
"limit",
"value"
] | [
"What",
"are",
"the",
"manager",
"name",
"and",
"district",
"of",
"the",
"shop",
"that",
"sells",
"the",
"largest",
"number",
"of",
"products",
"?"
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT min(Number_products) , max(Number_products) FROM shop | find the minimum and maximum number of products of all stores. | [
"SELECT",
"min",
"(",
"Number_products",
")",
",",
"max",
"(",
"Number_products",
")",
"FROM",
"shop"
] | [
"select",
"min",
"(",
"number_products",
")",
",",
"max",
"(",
"number_products",
")",
"from",
"shop"
] | [
"find",
"the",
"minimum",
"and",
"maximum",
"number",
"of",
"products",
"of",
"all",
"stores",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT min(Number_products) , max(Number_products) FROM shop | What are the minimum and maximum number of products across all the shops? | [
"SELECT",
"min",
"(",
"Number_products",
")",
",",
"max",
"(",
"Number_products",
")",
"FROM",
"shop"
] | [
"select",
"min",
"(",
"number_products",
")",
",",
"max",
"(",
"number_products",
")",
"from",
"shop"
] | [
"What",
"are",
"the",
"minimum",
"and",
"maximum",
"number",
"of",
"products",
"across",
"all",
"the",
"shops",
"?"
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC | Return the name, location and district of all shops in descending order of number of products. | [
"SELECT",
"name",
",",
"LOCATION",
",",
"district",
"FROM",
"shop",
"ORDER",
"BY",
"number_products",
"DESC"
] | [
"select",
"name",
",",
"location",
",",
"district",
"from",
"shop",
"order",
"by",
"number_products",
"desc"
] | [
"Return",
"the",
"name",
",",
"location",
"and",
"district",
"of",
"all",
"shops",
"in",
"descending",
"order",
"of",
"number",
"of",
"products",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC | Sort all the shops by number products in descending order, and return the name, location and district of each shop. | [
"SELECT",
"name",
",",
"LOCATION",
",",
"district",
"FROM",
"shop",
"ORDER",
"BY",
"number_products",
"DESC"
] | [
"select",
"name",
",",
"location",
",",
"district",
"from",
"shop",
"order",
"by",
"number_products",
"desc"
] | [
"Sort",
"all",
"the",
"shops",
"by",
"number",
"products",
"in",
"descending",
"order",
",",
"and",
"return",
"the",
"name",
",",
"location",
"and",
"district",
"of",
"each",
"shop",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop) | Find the names of stores whose number products is more than the average number of products. | [
"SELECT",
"name",
"FROM",
"shop",
"WHERE",
"number_products",
">",
"(",
"SELECT",
"avg",
"(",
"number_products",
")",
"FROM",
"shop",
")"
] | [
"select",
"name",
"from",
"shop",
"where",
"number_products",
">",
"(",
"select",
"avg",
"(",
"number_products",
")",
"from",
"shop",
")"
] | [
"Find",
"the",
"names",
"of",
"stores",
"whose",
"number",
"products",
"is",
"more",
"than",
"the",
"average",
"number",
"of",
"products",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop) | Which shops' number products is above the average? Give me the shop names. | [
"SELECT",
"name",
"FROM",
"shop",
"WHERE",
"number_products",
">",
"(",
"SELECT",
"avg",
"(",
"number_products",
")",
"FROM",
"shop",
")"
] | [
"select",
"name",
"from",
"shop",
"where",
"number_products",
">",
"(",
"select",
"avg",
"(",
"number_products",
")",
"from",
"shop",
")"
] | [
"Which",
"shops",
"'",
"number",
"products",
"is",
"above",
"the",
"average",
"?",
"Give",
"me",
"the",
"shop",
"names",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1 | find the name of employee who was awarded the most times in the evaluation. | [
"SELECT",
"t1.name",
"FROM",
"employee",
"AS",
"t1",
"JOIN",
"evaluation",
"AS",
"t2",
"ON",
"t1.Employee_ID",
"=",
"t2.Employee_ID",
"GROUP",
"BY",
"t2.Employee_ID",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"name",
"from",
"employee",
"as",
"t1",
"join",
"evaluation",
"as",
"t2",
"on",
"t1",
".",
"employee_id",
"=",
"t2",
".",
"employee_id",
"group",
"by",
"t2",
".",
"employee_id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit... | [
"find",
"the",
"name",
"of",
"employee",
"who",
"was",
"awarded",
"the",
"most",
"times",
"in",
"the",
"evaluation",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1 | Which employee received the most awards in evaluations? Give me the employee name. | [
"SELECT",
"t1.name",
"FROM",
"employee",
"AS",
"t1",
"JOIN",
"evaluation",
"AS",
"t2",
"ON",
"t1.Employee_ID",
"=",
"t2.Employee_ID",
"GROUP",
"BY",
"t2.Employee_ID",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"name",
"from",
"employee",
"as",
"t1",
"join",
"evaluation",
"as",
"t2",
"on",
"t1",
".",
"employee_id",
"=",
"t2",
".",
"employee_id",
"group",
"by",
"t2",
".",
"employee_id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit... | [
"Which",
"employee",
"received",
"the",
"most",
"awards",
"in",
"evaluations",
"?",
"Give",
"me",
"the",
"employee",
"name",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1 | Find the name of the employee who got the highest one time bonus. | [
"SELECT",
"t1.name",
"FROM",
"employee",
"AS",
"t1",
"JOIN",
"evaluation",
"AS",
"t2",
"ON",
"t1.Employee_ID",
"=",
"t2.Employee_ID",
"ORDER",
"BY",
"t2.bonus",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"name",
"from",
"employee",
"as",
"t1",
"join",
"evaluation",
"as",
"t2",
"on",
"t1",
".",
"employee_id",
"=",
"t2",
".",
"employee_id",
"order",
"by",
"t2",
".",
"bonus",
"desc",
"limit",
"value"
] | [
"Find",
"the",
"name",
"of",
"the",
"employee",
"who",
"got",
"the",
"highest",
"one",
"time",
"bonus",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1 | Which employee received the biggest bonus? Give me the employee name. | [
"SELECT",
"t1.name",
"FROM",
"employee",
"AS",
"t1",
"JOIN",
"evaluation",
"AS",
"t2",
"ON",
"t1.Employee_ID",
"=",
"t2.Employee_ID",
"ORDER",
"BY",
"t2.bonus",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"name",
"from",
"employee",
"as",
"t1",
"join",
"evaluation",
"as",
"t2",
"on",
"t1",
".",
"employee_id",
"=",
"t2",
".",
"employee_id",
"order",
"by",
"t2",
".",
"bonus",
"desc",
"limit",
"value"
] | [
"Which",
"employee",
"received",
"the",
"biggest",
"bonus",
"?",
"Give",
"me",
"the",
"employee",
"name",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation) | Find the names of employees who never won any award in the evaluation. | [
"SELECT",
"name",
"FROM",
"employee",
"WHERE",
"Employee_ID",
"NOT",
"IN",
"(",
"SELECT",
"Employee_ID",
"FROM",
"evaluation",
")"
] | [
"select",
"name",
"from",
"employee",
"where",
"employee_id",
"not",
"in",
"(",
"select",
"employee_id",
"from",
"evaluation",
")"
] | [
"Find",
"the",
"names",
"of",
"employees",
"who",
"never",
"won",
"any",
"award",
"in",
"the",
"evaluation",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation) | What are the names of the employees who never received any evaluation? | [
"SELECT",
"name",
"FROM",
"employee",
"WHERE",
"Employee_ID",
"NOT",
"IN",
"(",
"SELECT",
"Employee_ID",
"FROM",
"evaluation",
")"
] | [
"select",
"name",
"from",
"employee",
"where",
"employee_id",
"not",
"in",
"(",
"select",
"employee_id",
"from",
"evaluation",
")"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"employees",
"who",
"never",
"received",
"any",
"evaluation",
"?"
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1 | What is the name of the shop that is hiring the largest number of employees? | [
"SELECT",
"t2.name",
"FROM",
"hiring",
"AS",
"t1",
"JOIN",
"shop",
"AS",
"t2",
"ON",
"t1.shop_id",
"=",
"t2.shop_id",
"GROUP",
"BY",
"t1.shop_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t2",
".",
"name",
"from",
"hiring",
"as",
"t1",
"join",
"shop",
"as",
"t2",
"on",
"t1",
".",
"shop_id",
"=",
"t2",
".",
"shop_id",
"group",
"by",
"t1",
".",
"shop_id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"name",
"of",
"the",
"shop",
"that",
"is",
"hiring",
"the",
"largest",
"number",
"of",
"employees",
"?"
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1 | Which shop has the most employees? Give me the shop name. | [
"SELECT",
"t2.name",
"FROM",
"hiring",
"AS",
"t1",
"JOIN",
"shop",
"AS",
"t2",
"ON",
"t1.shop_id",
"=",
"t2.shop_id",
"GROUP",
"BY",
"t1.shop_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t2",
".",
"name",
"from",
"hiring",
"as",
"t1",
"join",
"shop",
"as",
"t2",
"on",
"t1",
".",
"shop_id",
"=",
"t2",
".",
"shop_id",
"group",
"by",
"t1",
".",
"shop_id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Which",
"shop",
"has",
"the",
"most",
"employees",
"?",
"Give",
"me",
"the",
"shop",
"name",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring) | Find the name of the shops that do not hire any employee. | [
"SELECT",
"name",
"FROM",
"shop",
"WHERE",
"shop_id",
"NOT",
"IN",
"(",
"SELECT",
"shop_id",
"FROM",
"hiring",
")"
] | [
"select",
"name",
"from",
"shop",
"where",
"shop_id",
"not",
"in",
"(",
"select",
"shop_id",
"from",
"hiring",
")"
] | [
"Find",
"the",
"name",
"of",
"the",
"shops",
"that",
"do",
"not",
"hire",
"any",
"employee",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring) | Which shops run with no employees? Find the shop names | [
"SELECT",
"name",
"FROM",
"shop",
"WHERE",
"shop_id",
"NOT",
"IN",
"(",
"SELECT",
"shop_id",
"FROM",
"hiring",
")"
] | [
"select",
"name",
"from",
"shop",
"where",
"shop_id",
"not",
"in",
"(",
"select",
"shop_id",
"from",
"hiring",
")"
] | [
"Which",
"shops",
"run",
"with",
"no",
"employees",
"?",
"Find",
"the",
"shop",
"names"
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name | Find the number of employees hired in each shop; show the shop name as well. | [
"SELECT",
"count",
"(",
"*",
")",
",",
"t2.name",
"FROM",
"hiring",
"AS",
"t1",
"JOIN",
"shop",
"AS",
"t2",
"ON",
"t1.shop_id",
"=",
"t2.shop_id",
"GROUP",
"BY",
"t2.name"
] | [
"select",
"count",
"(",
"*",
")",
",",
"t2",
".",
"name",
"from",
"hiring",
"as",
"t1",
"join",
"shop",
"as",
"t2",
"on",
"t1",
".",
"shop_id",
"=",
"t2",
".",
"shop_id",
"group",
"by",
"t2",
".",
"name"
] | [
"Find",
"the",
"number",
"of",
"employees",
"hired",
"in",
"each",
"shop",
";",
"show",
"the",
"shop",
"name",
"as",
"well",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name | For each shop, return the number of employees working there and the name of the shop. | [
"SELECT",
"count",
"(",
"*",
")",
",",
"t2.name",
"FROM",
"hiring",
"AS",
"t1",
"JOIN",
"shop",
"AS",
"t2",
"ON",
"t1.shop_id",
"=",
"t2.shop_id",
"GROUP",
"BY",
"t2.name"
] | [
"select",
"count",
"(",
"*",
")",
",",
"t2",
".",
"name",
"from",
"hiring",
"as",
"t1",
"join",
"shop",
"as",
"t2",
"on",
"t1",
".",
"shop_id",
"=",
"t2",
".",
"shop_id",
"group",
"by",
"t2",
".",
"name"
] | [
"For",
"each",
"shop",
",",
"return",
"the",
"number",
"of",
"employees",
"working",
"there",
"and",
"the",
"name",
"of",
"the",
"shop",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT sum(bonus) FROM evaluation | What is total bonus given in all evaluations? | [
"SELECT",
"sum",
"(",
"bonus",
")",
"FROM",
"evaluation"
] | [
"select",
"sum",
"(",
"bonus",
")",
"from",
"evaluation"
] | [
"What",
"is",
"total",
"bonus",
"given",
"in",
"all",
"evaluations",
"?"
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT sum(bonus) FROM evaluation | Find the total amount of bonus given in all the evaluations. | [
"SELECT",
"sum",
"(",
"bonus",
")",
"FROM",
"evaluation"
] | [
"select",
"sum",
"(",
"bonus",
")",
"from",
"evaluation"
] | [
"Find",
"the",
"total",
"amount",
"of",
"bonus",
"given",
"in",
"all",
"the",
"evaluations",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT * FROM hiring | Give me all the information about hiring. | [
"SELECT",
"*",
"FROM",
"hiring"
] | [
"select",
"*",
"from",
"hiring"
] | [
"Give",
"me",
"all",
"the",
"information",
"about",
"hiring",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT * FROM hiring | What is all the information about hiring? | [
"SELECT",
"*",
"FROM",
"hiring"
] | [
"select",
"*",
"from",
"hiring"
] | [
"What",
"is",
"all",
"the",
"information",
"about",
"hiring",
"?"
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000 | Which district has both stores with less than 3000 products and stores with more than 10000 products? | [
"SELECT",
"district",
"FROM",
"shop",
"WHERE",
"Number_products",
"<",
"3000",
"INTERSECT",
"SELECT",
"district",
"FROM",
"shop",
"WHERE",
"Number_products",
">",
"10000"
] | [
"select",
"district",
"from",
"shop",
"where",
"number_products",
"<",
"value",
"intersect",
"select",
"district",
"from",
"shop",
"where",
"number_products",
">",
"value"
] | [
"Which",
"district",
"has",
"both",
"stores",
"with",
"less",
"than",
"3000",
"products",
"and",
"stores",
"with",
"more",
"than",
"10000",
"products",
"?"
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000 | Find the districts in which there are both shops selling less than 3000 products and shops selling more than 10000 products. | [
"SELECT",
"district",
"FROM",
"shop",
"WHERE",
"Number_products",
"<",
"3000",
"INTERSECT",
"SELECT",
"district",
"FROM",
"shop",
"WHERE",
"Number_products",
">",
"10000"
] | [
"select",
"district",
"from",
"shop",
"where",
"number_products",
"<",
"value",
"intersect",
"select",
"district",
"from",
"shop",
"where",
"number_products",
">",
"value"
] | [
"Find",
"the",
"districts",
"in",
"which",
"there",
"are",
"both",
"shops",
"selling",
"less",
"than",
"3000",
"products",
"and",
"shops",
"selling",
"more",
"than",
"10000",
"products",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT count(DISTINCT LOCATION) FROM shop | How many different store locations are there? | [
"SELECT",
"count",
"(",
"DISTINCT",
"LOCATION",
")",
"FROM",
"shop"
] | [
"select",
"count",
"(",
"distinct",
"location",
")",
"from",
"shop"
] | [
"How",
"many",
"different",
"store",
"locations",
"are",
"there",
"?"
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
employee_hire_evaluation | SELECT count(DISTINCT LOCATION) FROM shop | Count the number of distinct store locations. | [
"SELECT",
"count",
"(",
"DISTINCT",
"LOCATION",
")",
"FROM",
"shop"
] | [
"select",
"count",
"(",
"distinct",
"location",
")",
"from",
"shop"
] | [
"Count",
"the",
"number",
"of",
"distinct",
"store",
"locations",
"."
] | CREATE TABLE employee (
Employee_ID NUMBER PRIMARY KEY,
Name TEXT,
Age NUMBER,
City TEXT
);
CREATE TABLE shop (
Shop_ID NUMBER PRIMARY KEY,
Name TEXT,
Location TEXT,
District TEXT,
Number_products NUMBER,
Manager_name TEXT
);
CREATE TABLE hiring (
Shop_ID NUMBER,
Employee_ID NUMBER PRIMARY KEY... |
cre_Doc_Template_Mgt | SELECT count(*) FROM Documents | How many documents do we have? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Documents"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"documents"
] | [
"How",
"many",
"documents",
"do",
"we",
"have",
"?"
] | CREATE TABLE Ref_Template_Types (
Template_Type_Code TEXT PRIMARY KEY,
Template_Type_Description TEXT
);
CREATE TABLE Templates (
Template_ID NUMBER PRIMARY KEY,
Version_Number NUMBER,
Template_Type_Code TEXT,
Date_Effective_From TIME,
Date_Effective_To TIME,
Template_Details TEXT,
FOREIGN KEY (Templ... |
cre_Doc_Template_Mgt | SELECT count(*) FROM Documents | Count the number of documents. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Documents"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"documents"
] | [
"Count",
"the",
"number",
"of",
"documents",
"."
] | CREATE TABLE Ref_Template_Types (
Template_Type_Code TEXT PRIMARY KEY,
Template_Type_Description TEXT
);
CREATE TABLE Templates (
Template_ID NUMBER PRIMARY KEY,
Version_Number NUMBER,
Template_Type_Code TEXT,
Date_Effective_From TIME,
Date_Effective_To TIME,
Template_Details TEXT,
FOREIGN KEY (Templ... |
cre_Doc_Template_Mgt | SELECT document_id , document_name , document_description FROM Documents | List document IDs, document names, and document descriptions for all documents. | [
"SELECT",
"document_id",
",",
"document_name",
",",
"document_description",
"FROM",
"Documents"
] | [
"select",
"document_id",
",",
"document_name",
",",
"document_description",
"from",
"documents"
] | [
"List",
"document",
"IDs",
",",
"document",
"names",
",",
"and",
"document",
"descriptions",
"for",
"all",
"documents",
"."
] | CREATE TABLE Ref_Template_Types (
Template_Type_Code TEXT PRIMARY KEY,
Template_Type_Description TEXT
);
CREATE TABLE Templates (
Template_ID NUMBER PRIMARY KEY,
Version_Number NUMBER,
Template_Type_Code TEXT,
Date_Effective_From TIME,
Date_Effective_To TIME,
Template_Details TEXT,
FOREIGN KEY (Templ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.