Question: What are the name of the countries where there is not a single car maker?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

countries : countryname (text) , countryid (number) | car_makers : country (text)


Question: What are the names of the countries with no car makers?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

countries : countryname (text) , countryid (number) | car_makers : country (text)


Question: Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_makers : id (number) , maker (text) | model_list : maker (number) , model (text) , modelid (number) | car_names : model (text) , makeid (number)


Question: What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_makers : id (number) , maker (text) | model_list : maker (number) , model (text) , modelid (number) | car_names : model (text) , makeid (number)


Question: What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

countries : countryid (number) , countryname (text) | car_makers : country (text) , id (number) , maker (text) | model_list : maker (number) , model (text) , modelid (number)


Question: What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

countries : countryid (number) , countryname (text) | car_makers : country (text) , id (number) , maker (text) | model_list : maker (number) , model (text) , modelid (number)


Question: Which country does Airline "JetBlue Airways" belong to?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : country (text) , airline (text)


Question: What country is Jetblue Airways affiliated with?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : country (text) , airline (text)


Question: What is the abbreviation of Airline "JetBlue Airways"?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : abbreviation (text) , airline (text)


Question: Which abbreviation corresponds to Jetblue Airways?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : abbreviation (text) , airline (text)


Question: List all airline names and their abbreviations in "USA".

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , abbreviation (text) , country (text)


Question: What are the airline names and abbreviations for airlines in the USA?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , abbreviation (text) , country (text)


Question: List the airport code and name in the city of Anthony.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airports : airportcode (text) , airportname (text) , city (text)


Question: Give the airport code and airport name corresonding to the city Anthony.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airports : airportcode (text) , airportname (text) , city (text)


Question: How many airlines do we have?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)


Question: What is the total number of airlines?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)


Question: How many airports do we have?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)


Question: Return the number of  airports.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)


Question: How many flights do we have?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)


Question: Return the number of flights.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)


Question: Which airline has abbreviation 'UAL'?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , abbreviation (text)


Question: Give the airline with abbreviation 'UAL'.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , abbreviation (text)


Question: How many airlines are from USA?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : country (text) , uid (number)


Question: Return the number of airlines in the USA.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : country (text) , uid (number)


Question: Which city and country is the Alton airport at?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airports : city (text) , country (text) , airportname (text)


Question: Give the city and country for the Alton airport.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airports : city (text) , country (text) , airportname (text)


Question: What is the airport name for airport 'AKO'?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airports : airportname (text) , airportcode (text)


Question: Return the name of the airport with code 'AKO'.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airports : airportname (text) , airportcode (text)


Question: What are airport names at City 'Aberdeen'?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airports : airportname (text) , city (text)


Question: What are the names of airports in Aberdeen?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airports : airportname (text) , city (text)


Question: How many flights depart from 'APG'?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : sourceairport (text) , airline (text)


Question: Count the number of flights departing from 'APG'.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : sourceairport (text) , airline (text)


Question: How many flights have destination ATO?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : destairport (text) , airline (text)


Question: Count the number of flights into ATO.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : destairport (text) , airline (text)


Question: How many flights depart from City Aberdeen?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : sourceairport (text) , airline (text) | airports : airportcode (text) , city (text)


Question: Return the number of flights departing from Aberdeen.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : sourceairport (text) , airline (text) | airports : airportcode (text) , city (text)


Question: How many flights arriving in Aberdeen city?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : destairport (text) , airline (text) | airports : airportcode (text) , city (text)


Question: Return the number of flights arriving in Aberdeen.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : destairport (text) , airline (text) | airports : airportcode (text) , city (text)


Question: How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : destairport (text) , sourceairport (text) , airline (text) | airports : airportcode (text) , city (text)


Question: How many flights fly from Aberdeen to Ashley?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : destairport (text) , sourceairport (text) , airline (text) | airports : airportcode (text) , city (text)


Question: How many flights does airline 'JetBlue Airways' have?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , uid (number) | flights : airline (number) , airline (text)


Question: Give the number of Jetblue Airways flights.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , uid (number) | flights : airline (number) , airline (text)


Question: How many 'United Airlines' flights go to Airport 'ASY'?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , uid (number) | flights : airline (number) , destairport (text) , airline (text)


Question: Count the number of United Airlines flights arriving in ASY Airport.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , uid (number) | flights : airline (number) , destairport (text) , airline (text)


Question: How many 'United Airlines' flights depart from Airport 'AHD'?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , uid (number) | flights : airline (number) , sourceairport (text) , airline (text)


Question: Return the number of United Airlines flights leaving from AHD Airport.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , uid (number) | flights : airline (number) , sourceairport (text) , airline (text)


Question: How many United Airlines flights go to City 'Aberdeen'?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : destairport (text) , airline (number) , airline (text) | airports : airportcode (text) , city (text) | airlines : uid (number) , airline (text)


Question: Count the number of United Airlines flights that arrive in Aberdeen.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : destairport (text) , airline (number) , airline (text) | airports : airportcode (text) , city (text) | airlines : uid (number) , airline (text)


Question: Which city has most number of arriving flights?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airports : city (text) , airportcode (text) | flights : destairport (text) , airline (text)


Question: Which city has the most frequent destination airport?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airports : city (text) , airportcode (text) | flights : destairport (text) , airline (text)


Question: Which city has most number of departing flights?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airports : city (text) , airportcode (text) | flights : sourceairport (text) , airline (text)


Question: Which city is the most frequent source airport?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airports : city (text) , airportcode (text) | flights : sourceairport (text) , airline (text)


Question: What is the code of airport that has the highest number of flights?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airports : airportcode (text) | flights : destairport (text) , sourceairport (text) , airline (text)


Question: What is the airport code of the airport with the most flights?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airports : airportcode (text) | flights : destairport (text) , sourceairport (text) , airline (text)


Question: What is the code of airport that has fewest number of flights?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airports : airportcode (text) | flights : destairport (text) , sourceairport (text) , airline (text)


Question: Give the code of the airport with the least flights.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airports : airportcode (text) | flights : destairport (text) , sourceairport (text) , airline (text)


Question: Which airline has most number of flights?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , uid (number) | flights : airline (number) , airline (text)


Question: What airline serves the most flights?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , uid (number) | flights : airline (number) , airline (text)


Question: Find the abbreviation and country of the airline that has fewest number of flights?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : abbreviation (text) , country (text) , uid (number) , airline (text) | flights : airline (number) , airline (text)


Question: What is the abbreviation of the airilne has the fewest flights and what country is it in?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : abbreviation (text) , country (text) , uid (number) , airline (text) | flights : airline (number) , airline (text)


Question: What are airlines that have some flight departing from airport 'AHD'?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , uid (number) | flights : airline (number) , sourceairport (text)


Question: Which airlines have a flight with source airport AHD?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , uid (number) | flights : airline (number) , sourceairport (text)


Question: What are airlines that have flights arriving at airport 'AHD'?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , uid (number) | flights : airline (number) , destairport (text)


Question: Which airlines have a flight with destination airport AHD?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , uid (number) | flights : airline (number) , destairport (text)


Question: Find all airlines that have flights from both airports 'APG' and 'CVO'.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , uid (number) | flights : airline (number) , sourceairport (text)


Question: Which airlines have departing flights from both APG and CVO airports?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , uid (number) | flights : airline (number) , sourceairport (text)


Question: Find all airlines that have flights from airport 'CVO' but not from 'APG'.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , uid (number) | flights : airline (number) , sourceairport (text)


Question: Which airlines have departures from CVO but not from APG airports?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , uid (number) | flights : airline (number) , sourceairport (text)


Question: Find all airlines that have at least 10 flights.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , uid (number) | flights : airline (number) , airline (text)


Question: Which airlines have at least 10 flights?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , uid (number) | flights : airline (number) , airline (text)


Question: Find all airlines that have fewer than 200 flights.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , uid (number) | flights : airline (number) , airline (text)


Question: Which airlines have less than 200 flights?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airlines : airline (text) , uid (number) | flights : airline (number) , airline (text)


Question: What are flight numbers of Airline "United Airlines"?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : flightno (number) , airline (number) | airlines : uid (number) , airline (text)


Question: Which flight numbers correspond to United Airlines flights?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : flightno (number) , airline (number) | airlines : uid (number) , airline (text)


Question: What are flight numbers of flights departing from Airport "APG"?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : flightno (number) , sourceairport (text)


Question: Give the flight numbers of flights leaving from APG.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : flightno (number) , sourceairport (text)


Question: What are flight numbers of flights arriving at Airport "APG"?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : flightno (number) , destairport (text)


Question: Give the flight numbers of flights landing at APG.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : flightno (number) , destairport (text)


Question: What are flight numbers of flights departing from City "Aberdeen "?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : flightno (number) , sourceairport (text) | airports : airportcode (text) , city (text)


Question: Give the flight numbers of flights leaving from Aberdeen.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : flightno (number) , sourceairport (text) | airports : airportcode (text) , city (text)


Question: What are flight numbers of flights arriving at City "Aberdeen"?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : flightno (number) , destairport (text) | airports : airportcode (text) , city (text)


Question: Give the flight numbers of flights arriving in Aberdeen.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : flightno (number) , destairport (text) | airports : airportcode (text) , city (text)


Question: Find the number of flights landing in the city of Aberdeen or Abilene.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : destairport (text) , airline (text) | airports : airportcode (text) , city (text)


Question: How many flights land in Aberdeen or Abilene?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

flights : destairport (text) , airline (text) | airports : airportcode (text) , city (text)


Question: Find the name of airports which do not have any flight in and out.

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airports : airportname (text) , airportcode (text) | flights : sourceairport (text) , destairport (text)


Question: Which airports do not have departing or arriving flights?

airlines : uid (number) , airline (text) , abbreviation (text) , country (text) | airports : city (text) , airportcode (text) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (number) , flightno (number) , sourceairport (text) , destairport (text)

airports : airportname (text) , airportcode (text) | flights : sourceairport (text) , destairport (text)


Question: How many employees are there?

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)


Question: Count the number of employees

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)


Question: Sort employee names by their age in ascending order.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)


Question: List the names of employees and sort in ascending order of age.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)


Question: What is the number of employees from each city?

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

employee : city (text) , employee_id (number)


Question: Count the number of employees for each city.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

employee : city (text) , employee_id (number)


Question: Which cities do more than one employee under age 30 come from?

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

employee : city (text) , age (number) , employee_id (number)


Question: Find the cities that have more than one employee under age 30.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

employee : city (text) , age (number) , employee_id (number)


Question: Find the number of shops in each location.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

shop : location (text) , shop_id (number)


Question: How many shops are there in each location?

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

shop : location (text) , shop_id (number)


Question: Find the manager name and district of the shop whose number of products is the largest.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

shop : manager_name (text) , district (text) , number_products (number)


Question: What are the manager name and district of the shop that sells the largest number of products?

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

shop : manager_name (text) , district (text) , number_products (number)


Question: find the minimum and maximum number of products of all stores.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)


Question: What are the minimum and maximum number of products across all the shops?

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)


Question: Return the name, location and district of all shops in descending order of number of products.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

shop : name (text) , location (text) , district (text) , number_products (number)


Question: Sort all the shops by number products in descending order, and return the name, location and district of each shop.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

shop : name (text) , location (text) , district (text) , number_products (number)


Question: Find the names of stores whose number products is more than the average number of products.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

shop : name (text) , number_products (number)


Question: Which shops' number products is above the average? Give me the shop names.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

shop : name (text) , number_products (number)


Question: find the name of employee who was awarded the most times in the evaluation.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

employee : name (text) , employee_id (number) | evaluation : employee_id (text) , employee_id (number)


Question: Which employee received the most awards in evaluations? Give me the employee name.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

employee : name (text) , employee_id (number) | evaluation : employee_id (text) , employee_id (number)


Question: Find the name of the employee who got the highest one time bonus.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

employee : name (text) , employee_id (number) | evaluation : employee_id (text) , bonus (number)


Question: Which employee received the biggest bonus? Give me the employee name.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

employee : name (text) , employee_id (number) | evaluation : employee_id (text) , bonus (number)


Question: Find the names of employees who never won any award in the evaluation.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

employee : name (text) , employee_id (number) | evaluation : employee_id (text)


Question: What are the names of the employees who never received any evaluation?

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

employee : name (text) , employee_id (number) | evaluation : employee_id (text)


Question: What is the name of the shop that is hiring the largest number of employees?

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

shop : name (text) , shop_id (number) | hiring : shop_id (number) , employee_id (number)


Question: Which shop has the most employees? Give me the shop name.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

shop : name (text) , shop_id (number) | hiring : shop_id (number) , employee_id (number)


Question: Find the name of the shops that do not hire any employee.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

shop : name (text) , shop_id (number) | hiring : shop_id (number)


Question: Which shops run with no employees? Find the shop names

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

shop : name (text) , shop_id (number) | hiring : shop_id (number)


Question: Find the number of employees hired in each shop; show the shop name as well.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

shop : name (text) , shop_id (number) | hiring : shop_id (number) , employee_id (number)


Question: For each shop, return the number of employees working there and the name of the shop.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

shop : name (text) , shop_id (number) | hiring : shop_id (number) , employee_id (number)


Question: What is total bonus given in all evaluations?

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)


Question: Find the total amount of bonus given in all the evaluations.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)


Question: Give me all the information about hiring.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)


Question: What is all the information about hiring?

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)


Question: Which district has both stores with less than 3000 products and stores with more than 10000 products?

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

shop : district (text) , number_products (number)


Question: Find the districts in which there are both shops selling less than 3000 products and shops selling more than 10000 products.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)

shop : district (text) , number_products (number)


Question: How many different store locations are there?

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)


Question: Count the number of distinct store locations.

employee : employee_id (number) , name (text) , age (number) , city (text) | shop : shop_id (number) , name (text) , location (text) , district (text) , number_products (number) , manager_name (text) | hiring : shop_id (number) , employee_id (number) , start_from (text) , is_full_time (others) | evaluation : employee_id (text) , year_awarded (text) , bonus (number)


Question: How many documents do we have?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)


Question: Count the number of documents.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)


Question: List document IDs, document names, and document descriptions for all documents.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , document_name (text) , document_description (text)


Question: What are the ids, names, and descriptions for all documents?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , document_name (text) , document_description (text)


Question: What is the document name and template id for document with description with the letter 'w' in it?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_name (text) , template_id (number) , document_description (text)


Question: Return the names and template ids for documents that contain the letter w in their description.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_name (text) , template_id (number) , document_description (text)


Question: What is the document id, template id and description for document named "Robbin CV"?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , template_id (number) , document_description (text) , document_name (text)


Question: Return the document id, template id, and description for the document with the name Robbin CV.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , template_id (number) , document_description (text) , document_name (text)


Question: How many different templates do all document use?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)


Question: Count the number of different templates used for documents.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)


Question: How many documents are using the template with type code 'PPT'?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_id (number) , template_type_code (text) | documents : template_id (number) , document_id (number)


Question: Count the number of documents that use the PPT template type.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_id (number) , template_type_code (text) | documents : template_id (number) , document_id (number)


Question: Show all template ids and number of documents using each template.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : template_id (number) , document_id (number)


Question: What are all different template ids used for documents, and how many times were each of them used?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : template_id (number) , document_id (number)


Question: What is the id and type code for the template used by the most documents?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_id (number) , template_type_code (text) | documents : template_id (number) , document_id (number)


Question: Return the id and type code of the template that is used for the greatest number of documents.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_id (number) , template_type_code (text) | documents : template_id (number) , document_id (number)


Question: Show ids for all templates that are used by more than one document.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : template_id (number) , document_id (number)


Question: What are the template ids of any templates used in more than a single document?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : template_id (number) , document_id (number)


Question: Show ids for all templates not used by any document.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_id (number) | documents : template_id (number)


Question: What are the ids for templates that are not used in any documents?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_id (number) | documents : template_id (number)


Question: How many templates do we have?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)


Question: Count the number of templates.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)


Question: Show template ids, version numbers, and template type codes for all templates.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)


Question: What are the ids, version numbers, and type codes for each template?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)


Question: Show all distinct template type codes for all templates.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)


Question: What are the different template type codes?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)


Question: What are the ids of templates with template type code PP or PPT?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_id (number) , template_type_code (text)


Question: Return the ids of templates that have the code PP or PPT.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_id (number) , template_type_code (text)


Question: How many templates have template type code CV?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_type_code (text) , template_id (number)


Question: Count the number of templates of the type CV.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_type_code (text) , template_id (number)


Question: What is the version number and template type code for the template with version number later than 5?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : version_number (number) , template_type_code (text)


Question: Return the version numbers and template type codes of templates with a version number greater than 5.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : version_number (number) , template_type_code (text)


Question: Show all template type codes and number of templates for each.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_type_code (text) , template_id (number)


Question: What are the different template type codes, and how many templates correspond to each?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_type_code (text) , template_id (number)


Question: Which template type code has most number of templates?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_type_code (text) , template_id (number)


Question: Return the type code of the template type that the most templates belong to.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_type_code (text) , template_id (number)


Question: Show all template type codes with less than three templates.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_type_code (text) , template_id (number)


Question: What are the codes of template types that have fewer than 3 templates?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_type_code (text) , template_id (number)


Question: What the smallest version number and its template type code?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : version_number (number) , template_type_code (text)


Question: Return the lowest version number, along with its corresponding template type code.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : version_number (number) , template_type_code (text)


Question: What is the template type code of the template used by document with the name "Data base"?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_type_code (text) , template_id (number) | documents : template_id (number) , document_name (text)


Question: Return the template type code of the template that is used by a document named Data base.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_type_code (text) , template_id (number) | documents : template_id (number) , document_name (text)


Question: Show all document names using templates with template type code BK.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_name (text) , template_id (number) | templates : template_id (number) , template_type_code (text)


Question: What are the names of documents that use templates with the code BK?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_name (text) , template_id (number) | templates : template_id (number) , template_type_code (text)


Question: Show all template type codes and the number of documents using each type.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_type_code (text) , template_id (number) | documents : template_id (number) , document_id (number)


Question: What are the different template type codes, and how many documents use each type?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_type_code (text) , template_id (number) | documents : template_id (number) , document_id (number)


Question: Which template type code is used by most number of documents?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_type_code (text) , template_id (number) | documents : template_id (number) , document_id (number)


Question: Return the code of the template type that is most commonly used in documents.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_type_code (text) , template_id (number) | documents : template_id (number) , document_id (number)


Question: Show all template type codes that are not used by any document.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_type_code (text) , template_id (number) | documents : template_id (number)


Question: What are the codes of template types that are not used for any document?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_type_code (text) , template_id (number) | documents : template_id (number)


Question: Show all template type codes and descriptions.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)


Question: What are the type codes and descriptions for all template types?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)


Question: What is the template type descriptions for template type code "AD".

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

ref_template_types : template_type_description (text) , template_type_code (text)


Question: Return the template type description of the template type with the code AD.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

ref_template_types : template_type_description (text) , template_type_code (text)


Question: What is the template type code for template type description "Book".

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)


Question: Return the type code of the template type with the description "Book".

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)


Question: What are the distinct template type descriptions for the templates ever used by any document?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

ref_template_types : template_type_description (text) , template_type_code (text) | templates : template_type_code (text) , template_id (number) | documents : template_id (number)


Question: Return the different descriptions for templates that have been used in a document.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

ref_template_types : template_type_description (text) , template_type_code (text) | templates : template_type_code (text) , template_id (number) | documents : template_id (number)


Question: What are the template ids with template type description "Presentation".

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_id (number) , template_type_code (text) | ref_template_types : template_type_code (text) , template_type_description (text)


Question: Return the ids corresponding to templates with the description 'Presentation'.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_id (number) , template_type_code (text) | ref_template_types : template_type_code (text) , template_type_description (text)


Question: How many paragraphs in total?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)


Question: Count the number of paragraphs.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)


Question: How many paragraphs for the document with name 'Summer Show'?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , document_name (text) | paragraphs : document_id (number) , paragraph_id (number)


Question: Count the number of paragraphs in the document named 'Summer Show'.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , document_name (text) | paragraphs : document_id (number) , paragraph_id (number)


Question: Show paragraph details for paragraph with text 'Korea ' .

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

paragraphs : other_details (text) , paragraph_text (text)


Question: What are the details for the paragraph that includes the text 'Korea ' ?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

paragraphs : other_details (text) , paragraph_text (text)