Question: Find the phone numbers of customers using the most common policy type among the available policies.

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

available_policies : customer_phone (text) , policy_type_code (text) , policy_id (number)


Question: Find the policy type used by more than 4 customers.

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

available_policies : policy_type_code (text) , policy_id (number)


Question: Find the policy types more than 4 customers use. Show their type code.

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

available_policies : policy_type_code (text) , policy_id (number)


Question: Find the total and average amount of settlements.

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

settlements : settlement_amount (number) , settlement_id (number)


Question: Return the sum and average of all settlement amounts.

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

settlements : settlement_amount (number) , settlement_id (number)


Question: Find the name of services that have been used for more than 2 times in first notification of loss.

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

services : service_name (text) , service_id (number) | first_notification_of_loss : service_id (number) , fnol_id (number)


Question: Which services have been used more than twice in first notification of loss? Return the service name.

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

services : service_name (text) , service_id (number) | first_notification_of_loss : service_id (number) , fnol_id (number)


Question: What is the effective date of the claim that has the largest amount of total settlement?

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

claims : effective_date (time) , claim_id (number) | settlements : effective_date (time) , claim_id (number) , settlement_amount (number) , settlement_id (number)


Question: Find the claim that has the largest total settlement amount. Return the effective date of the claim.

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

claims : effective_date (time) , claim_id (number) | settlements : effective_date (time) , claim_id (number) , settlement_amount (number) , settlement_id (number)


Question: How many policies are listed for the customer named "Dayana Robel"?

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

customers : customer_id (number) , customer_name (text) | customers_policies : customer_id (number)


Question: Count the total number of policies used by the customer named "Dayana Robel".

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

customers : customer_id (number) , customer_name (text) | customers_policies : customer_id (number)


Question: What is the name of the customer who has the most policies listed?

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

customers : customer_name (text) , customer_id (number) | customers_policies : customer_id (number)


Question: Which customer uses the most policies? Give me the customer name.

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

customers : customer_name (text) , customer_id (number) | customers_policies : customer_id (number)


Question: What are all the policy types of the customer named "Dayana Robel"?

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

available_policies : policy_type_code (text) , policy_id (number) | customers : customer_id (number) , customer_name (text) | customers_policies : customer_id (number) , policy_id (number)


Question: Tell me the types of the policy used by the customer named "Dayana Robel".

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

available_policies : policy_type_code (text) , policy_id (number) | customers : customer_id (number) , customer_name (text) | customers_policies : customer_id (number) , policy_id (number)


Question: What are all the policy types of the customer that has the most policies listed?

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

available_policies : policy_type_code (text) , policy_id (number) | customers : customer_id (number) , customer_name (text) | customers_policies : customer_id (number) , policy_id (number)


Question: List all the policy types used by the customer enrolled in the most policies.

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

available_policies : policy_type_code (text) , policy_id (number) | customers : customer_id (number) , customer_name (text) | customers_policies : customer_id (number) , policy_id (number)


Question: List all the services in the alphabetical order.

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

services : service_name (text) , service_id (number)


Question: Give me a list of all the service names sorted alphabetically.

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

services : service_name (text) , service_id (number)


Question: How many services are there?

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)


Question: Count the total number of available services.

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)


Question: Find the names of users who do not have a first notification of loss record.

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

customers : customer_name (text) , customer_id (number) | first_notification_of_loss : customer_id (number) , fnol_id (number)


Question: Which customers do not have a first notification of loss record? Give me the customer names.

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

customers : customer_name (text) , customer_id (number) | first_notification_of_loss : customer_id (number) , fnol_id (number)


Question: Find the names of customers who have used either the service "Close a policy" or the service "Upgrade a policy".

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

customers : customer_name (text) , customer_id (number) | first_notification_of_loss : customer_id (number) , service_id (number) , fnol_id (number) | services : service_id (number) , service_name (text)


Question: Which customers have used the service named "Close a policy" or "Upgrade a policy"? Give me the customer names.

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

customers : customer_name (text) , customer_id (number) | first_notification_of_loss : customer_id (number) , service_id (number) , fnol_id (number) | services : service_id (number) , service_name (text)


Question: Find the names of customers who have used both the service "Close a policy" and the service "New policy application".

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

customers : customer_name (text) , customer_id (number) | first_notification_of_loss : customer_id (number) , service_id (number) , fnol_id (number) | services : service_id (number) , service_name (text)


Question: Which customers have used both the service named "Close a policy" and the service named "Upgrade a policy"? Give me the customer names.

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

customers : customer_name (text) , customer_id (number) | first_notification_of_loss : customer_id (number) , service_id (number) , fnol_id (number) | services : service_id (number) , service_name (text)


Question: Find the IDs of customers whose name contains "Diana".

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)


Question: What are the IDs of customers who have "Diana" in part of their names?

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)


Question: What are the maximum and minimum settlement amount on record?

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

settlements : settlement_amount (number) , settlement_id (number)


Question: Find the maximum and minimum settlement amount.

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

settlements : settlement_amount (number) , settlement_id (number)


Question: List all the customers in increasing order of IDs.

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)


Question: What is the ordered list of customer ids?

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)


Question: Retrieve the open and close dates of all the policies associated with the customer whose name contains "Diana"

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

customers_policies : date_opened (time) , date_closed (time) , customer_id (number) | customers : customer_id (number) , customer_name (text)


Question: What are the open and close dates of all the policies used by the customer who have "Diana" in part of their names?

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

customers_policies : date_opened (time) , date_closed (time) , customer_id (number) | customers : customer_id (number) , customer_name (text)


Question: How many kinds of enzymes are there?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)


Question: What is the total count of enzymes?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)


Question: List the name of enzymes in descending lexicographical order.

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)


Question: What are the names of enzymes in descending order?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)


Question: List the names and the locations that the enzymes can make an effect.

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

enzyme : name (text) , location (text) , id (number)


Question: What are the names and locations of all enzymes listed?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

enzyme : name (text) , location (text) , id (number)


Question: What is the maximum Online Mendelian Inheritance in Man (OMIM) value of the enzymes?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)


Question: What is the maximum OMIM value in the database?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)


Question: What is the product, chromosome and porphyria related to the enzymes which take effect at the location 'Cytosol'?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

enzyme : product (text) , chromosome (text) , porphyria (text) , location (text) , id (number)


Question: What is the product, chromosome, and porphyria of the enzymes located at 'Cytosol'?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

enzyme : product (text) , chromosome (text) , porphyria (text) , location (text) , id (number)


Question: What are the names of enzymes who does not produce 'Heme'?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

enzyme : name (text) , product (text) , id (number)


Question: What are the names of enzymes whose product is not 'Heme'?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

enzyme : name (text) , product (text) , id (number)


Question: What are the names and trade names of the medicines which has 'Yes' value in the FDA record?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine : name (text) , trade_name (text) , fda_approved (text) , id (number)


Question: What are the names and trade names of the medcines that are FDA approved?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine : name (text) , trade_name (text) , fda_approved (text) , id (number)


Question: What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine : name (text) , id (number) | enzyme : name (text) , id (number) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)


Question: What are the names of the enzymes used in the medicine  Amisulpride that acts as inhibitors?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine : name (text) , id (number) | enzyme : name (text) , id (number) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)


Question: What are the ids and names of the medicine that can interact with two or more enzymes?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine : id (number) , name (text) | medicine_enzyme_interaction : medicine_id (number) , enzyme_id (number)


Question: For every medicine id, what are the names of the medicines that can interact with more than one enzyme?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine : id (number) , name (text) | medicine_enzyme_interaction : medicine_id (number) , enzyme_id (number)


Question: What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with.

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine : id (number) , name (text) , fda_approved (text) | medicine_enzyme_interaction : medicine_id (number) , enzyme_id (number)


Question: What are the ids, names, and FDA approval status for medicines ordered by descending number of possible enzyme interactions?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine : id (number) , name (text) , fda_approved (text) | medicine_enzyme_interaction : medicine_id (number) , enzyme_id (number)


Question: What is the id and name of the enzyme with most number of medicines that can interact as 'activator'?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

enzyme : id (number) , name (text) | medicine_enzyme_interaction : enzyme_id (number) , interaction_type (text)


Question: What is the id and name of the enzyme that can interact with the most medicines as an activator?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

enzyme : id (number) , name (text) | medicine_enzyme_interaction : enzyme_id (number) , interaction_type (text)


Question: What is the interaction type of the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine_enzyme_interaction : interaction_type (text) , medicine_id (number) , enzyme_id (number) | medicine : id (number) , name (text) | enzyme : id (number) , name (text)


Question: What is the type of interaction for the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine_enzyme_interaction : interaction_type (text) , medicine_id (number) , enzyme_id (number) | medicine : id (number) , name (text) | enzyme : id (number) , name (text)


Question: What is the most common interaction type between enzymes and medicine? And how many are there?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine_enzyme_interaction : interaction_type (text) , enzyme_id (number)


Question: What are the most common types of interactions between enzymes and medicine, and how many types are there?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine_enzyme_interaction : interaction_type (text) , enzyme_id (number)


Question: How many medicines have the FDA approval status 'No' ?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine : fda_approved (text) , id (number)


Question: How many medicines were not approved by the FDA?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine : fda_approved (text) , id (number)


Question: How many enzymes do not have any interactions?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

enzyme : id (number) | medicine_enzyme_interaction : enzyme_id (number)


Question: What is the count of enzymes without any interactions?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

enzyme : id (number) | medicine_enzyme_interaction : enzyme_id (number)


Question: What is the id and trade name of the medicines can interact with at least 3 enzymes?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine : id (number) , trade_name (text) | medicine_enzyme_interaction : medicine_id (number) , enzyme_id (number)


Question: What are the ids and trade names of the medicine that can interact with at least 3 enzymes?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine : id (number) , trade_name (text) | medicine_enzyme_interaction : medicine_id (number) , enzyme_id (number)


Question: What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

enzyme : name (text) , location (text) , product (text) , id (number) | medicine_enzyme_interaction : enzyme_id (number) , interaction_type (text)


Question: What are the different names, locations, and products of the enzymes that are capable inhibitor interactions?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

enzyme : name (text) , location (text) , product (text) , id (number) | medicine_enzyme_interaction : enzyme_id (number) , interaction_type (text)


Question: List the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes.

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine : name (text) , trade_name (text) , id (number) | medicine_enzyme_interaction : medicine_id (number) , interaction_type (text) , enzyme_id (number)


Question: What are the medicine and trade names that can interact as an inhibitor and activitor with enzymes?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine : name (text) , trade_name (text) , id (number) | medicine_enzyme_interaction : medicine_id (number) , interaction_type (text) , enzyme_id (number)


Question: Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'.

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine : name (text) , trade_name (text) , id (number) | enzyme : name (text) , id (number) , product (text) | medicine_enzyme_interaction : medicine_id (number) , enzyme_id (number)


Question: What are the medicine and trade names that cannot interact with the enzyme with the product 'Heme'?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine : name (text) , trade_name (text) , id (number) | enzyme : name (text) , id (number) , product (text) | medicine_enzyme_interaction : medicine_id (number) , enzyme_id (number)


Question: How many distinct FDA approval statuses are there for the medicines?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine : fda_approved (text) , id (number)


Question: How many different FDA approval statuses exist for medicines?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine : fda_approved (text) , id (number)


Question: Which enzyme names have the substring "ALA"?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)


Question: What are the names of enzymes that include the string 'ALA'?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)


Question: find the number of medicines offered by each trade.

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine : trade_name (text) , id (number)


Question: How many medicines are offered by each trade name?

medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)

medicine : trade_name (text) , id (number)


Question: List all schools and their nicknames in the order of founded year.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : school (text) , nickname (text) , founded (number) , school_id (number)


Question: What are the different schools and their nicknames, ordered by their founding years?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : school (text) , nickname (text) , founded (number) , school_id (number)


Question: List all public schools and their locations.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : school (text) , location (text) , affiliation (text) , school_id (number)


Question: What are the public schools and what are their locations?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : school (text) , location (text) , affiliation (text) , school_id (number)


Question: When was the school with the largest enrollment founded?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : founded (number) , enrollment (number) , school_id (number)


Question: Return the founded year for the school with the largest enrollment.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : founded (number) , enrollment (number) , school_id (number)


Question: Find the founded year of the newest non public school.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : founded (number) , affiliation (text) , school_id (number)


Question: What is the founded year of the non public school that was founded most recently?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : founded (number) , affiliation (text) , school_id (number)


Question: How many schools are in the basketball match?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

basketball_match : school_id (number) , team_id (number)


Question: Count the number of schools that have had basketball matches.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

basketball_match : school_id (number) , team_id (number)


Question: What is the highest acc percent score in the competition?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

basketball_match : acc_percent (text) , team_id (number)


Question: Return the highest acc percent across all basketball matches.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

basketball_match : acc_percent (text) , team_id (number)


Question: What is the primary conference of the school that has the lowest acc percent score in the competition?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : primary_conference (text) , school_id (number) | basketball_match : school_id (number) , acc_percent (text) , team_id (number)


Question: Return the primary conference of the school with the lowest acc percentage score.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : primary_conference (text) , school_id (number) | basketball_match : school_id (number) , acc_percent (text) , team_id (number)


Question: What is the team name and acc regular season score of the school that was founded for the longest time?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

basketball_match : team_name (text) , acc_regular_season (text) , school_id (number) , team_id (number) | university : school_id (number) , founded (number)


Question: Return the name of the team and the acc during the regular season for the school that was founded the earliest.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

basketball_match : team_name (text) , acc_regular_season (text) , school_id (number) , team_id (number) | university : school_id (number) , founded (number)


Question: Find the location and all games score of the school that has Clemson as its team name.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

basketball_match : all_games (text) , school_id (number) , team_name (text) , team_id (number) | university : location (text) , school_id (number)


Question: What are the all games score and location of the school called Clemson?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

basketball_match : all_games (text) , school_id (number) , team_name (text) , team_id (number) | university : location (text) , school_id (number)


Question: What are the average enrollment size of the universities that are founded before 1850?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : enrollment (number) , founded (number) , school_id (number)


Question: Return the average enrollment of universities founded before 1850.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : enrollment (number) , founded (number) , school_id (number)


Question: Show the enrollment and primary_conference of the oldest college.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : enrollment (number) , primary_conference (text) , founded (number) , school_id (number)


Question: What are the enrollment and primary conference for the university which was founded the earliest?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : enrollment (number) , primary_conference (text) , founded (number) , school_id (number)


Question: What is the total and minimum enrollment of all schools?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : enrollment (number) , school_id (number)


Question: Return the total and minimum enrollments across all schools.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : enrollment (number) , school_id (number)


Question: Find the total student enrollment for different affiliation type schools.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : enrollment (number) , affiliation (text) , school_id (number)


Question: What are the total enrollments of universities of each affiliation type?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : enrollment (number) , affiliation (text) , school_id (number)


Question: How many schools do not participate in the basketball match?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

basketball_match : school_id (number) , team_id (number) | university : school_id (number)


Question: Count the number of universities that do not participate in the baketball match.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

basketball_match : school_id (number) , team_id (number) | university : school_id (number)


Question: Find the schools that were either founded after 1850 or public.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : school (text) , founded (number) , affiliation (text) , school_id (number)


Question: What are the schools that were either founded before 1850 or are public?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : school (text) , founded (number) , affiliation (text) , school_id (number)


Question: Find how many different affiliation types there are.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : affiliation (text) , school_id (number)


Question: Count the number of different affiliation types.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : affiliation (text) , school_id (number)


Question: Find how many school locations have the word 'NY'.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : location (text) , school_id (number)


Question: How many universities have a location that contains NY?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : location (text) , school_id (number)


Question: Find the team names of the universities whose enrollments are smaller than the average enrollment size.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

basketball_match : team_name (text) , school_id (number) , team_id (number) | university : school_id (number) , enrollment (number)


Question: What are the names of teams from universities that have a below average enrollment?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

basketball_match : team_name (text) , school_id (number) , team_id (number) | university : school_id (number) , enrollment (number)


Question: Find the number of universities that have over a 20000 enrollment size for each affiliation type.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : affiliation (text) , enrollment (number) , school_id (number)


Question: What are the different affiliations, and how many schools with each have an enrollment size of above 20000?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : affiliation (text) , enrollment (number) , school_id (number)


Question: Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : enrollment (number) , affiliation (text) , founded (number) , school_id (number)


Question: What are the different affiliations, and what is the total enrollment of schools founded after 1850 for each enrollment type?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : enrollment (number) , affiliation (text) , founded (number) , school_id (number)


Question: What is the maximum enrollment across all schools?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : enrollment (number) , school_id (number)


Question: Return the maximum enrollment across all schools.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

university : enrollment (number) , school_id (number)


Question: List all information regarding the basketball match.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)


Question: What is all the information about the basketball match?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)


Question: List names of all teams in the basketball competition, ordered by all home scores in descending order.

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

basketball_match : team_name (text) , all_home (text) , team_id (number)


Question: What are the names of all the teams in the basketball competition, sorted by all home scores in descending order?

basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)

basketball_match : team_name (text) , all_home (text) , team_id (number)


Question: the names of models that launched between 2002 and 2004.

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)


Question: Which model has the least amount of RAM? List the model name and the amount of RAM.

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

chip_model : model_name (text) , ram_mib (number)


Question: What are the chip model and screen mode of the phone with hardware model name "LG-P760"?

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

phone : chip_model (text) , screen_mode (text) , hardware_model_name (text) | chip_model : model_name (text) | screen_mode : graphics_mode (number)


Question: How many phone hardware models are produced by the company named "Nokia Corporation"?

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)


Question: What is maximum and minimum RAM size of phone produced by company named "Nokia Corporation"?

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

chip_model : ram_mib (number) , model_name (text) | phone : chip_model (text) , company_name (text) , hardware_model_name (text)


Question: What is the average ROM size of phones produced by the company named "Nokia Corporation"?

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

chip_model : rom_mib (number) , model_name (text) | phone : chip_model (text) , company_name (text) , hardware_model_name (text)


Question: List the hardware model name and company name for all the phones that were launched in year 2002 or have RAM size greater than 32.

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

phone : hardware_model_name (text) , company_name (text) , chip_model (text) | chip_model : model_name (text) , launch_year (number) , ram_mib (number)


Question: Find all phones that have word 'Full' in their accreditation types. List the Hardware Model name and Company name.

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

phone : hardware_model_name (text) , company_name (text) , accreditation_type (text)


Question: Find the Char cells, Pixels and Hardware colours for the screen of the phone whose hardware model name is "LG-P760".

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

screen_mode : char_cells (text) , pixels (text) , hardware_colours (number) , graphics_mode (number) | phone : screen_mode (text) , hardware_model_name (text)


Question: List the hardware model name and company name for the phone whose screen mode type is "Graphics."

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

phone : hardware_model_name (text) , company_name (text) , screen_mode (text) | screen_mode : graphics_mode (number) , type (text)


Question: Find the name of the company that has the least number of phone models. List the company name and the number of phone model produced by that company.

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)


Question: List the name of the company that produced more than one phone model.

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)


Question: List the maximum, minimum and average number of used kb in screen mode.

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

screen_mode : used_kb (number) , graphics_mode (number)


Question: List the name of the phone model launched in year 2002 and with the highest RAM size.

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

phone : hardware_model_name (text) , chip_model (text) | chip_model : model_name (text) , launch_year (number) , ram_mib (number)


Question: What are the wifi and screen mode type of the hardware model named "LG-P760"?

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

chip_model : wifi (text) , model_name (text) | screen_mode : type (text) , graphics_mode (number) | phone : chip_model (text) , screen_mode (text) , hardware_model_name (text)


Question: List the hardware model name for the phones that have screen mode type "Text" or RAM size greater than 32.

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

phone : hardware_model_name (text) , chip_model (text) , screen_mode (text) | chip_model : model_name (text) , ram_mib (number) | screen_mode : graphics_mode (number) , type (text)


Question: List the hardware model name for the phones that were produced by "Nokia Corporation" or whose screen mode type is "Graphics."

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

phone : hardware_model_name (text) , screen_mode (text) , company_name (text) | screen_mode : graphics_mode (number) , type (text)


Question: List the hardware model name for the phons that were produced by "Nokia Corporation" but whose screen mode type is not Text.

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

phone : hardware_model_name (text) , screen_mode (text) , company_name (text) | screen_mode : graphics_mode (number) , type (text)


Question: List the phone hardware model and company name for the phones whose screen usage in kb is between 10 and 15.

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

phone : hardware_model_name (text) , company_name (text) , screen_mode (text) | screen_mode : graphics_mode (number) , used_kb (number)


Question: Find the number of phones for each accreditation type.

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

phone : accreditation_type (text) , hardware_model_name (text)


Question: How many phones belongs to each accreditation type?

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

phone : accreditation_type (text) , hardware_model_name (text)


Question: Find the accreditation level that more than 3 phones use.

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

phone : accreditation_level (text) , hardware_model_name (text)


Question: Find the details for all chip models.

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)


Question: How many models do not have the wifi function?

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

chip_model : wifi (text) , model_name (text)


Question: Count the number of chip model that do not have wifi.

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

chip_model : wifi (text) , model_name (text)


Question: List all the model names sorted by their launch year.

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)


Question: Find the average ram mib size of the chip models that are never used by any phone.

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

chip_model : ram_mib (number) , model_name (text) | phone : chip_model (text) , hardware_model_name (text)


Question: Find the names of the chip models that are not used by any phone with full accreditation type.

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

chip_model : model_name (text) | phone : chip_model (text) , accreditation_type (text) , hardware_model_name (text)


Question: Find the pixels of the screen modes that are used by both phones with full accreditation types and phones with Provisional accreditation types.

chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)

screen_mode : pixels (text) , graphics_mode (number) | phone : screen_mode (text) , accreditation_type (text) , hardware_model_name (text)


Question: How many countries are there in total?

country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)


Question: Count the number of countries.

country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)


Question: Show the country name and capital of all countries.

country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)

country : country_name (text) , capital (text) , country_id (number)


Question: What are the names and capitals of each country?

country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)

country : country_name (text) , capital (text) , country_id (number)


Question: Show all official native languages that contain the word "English".

country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)

country : official_native_language (text) , country_id (number)


Question: What are the official native languages that contain the string "English".

country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)

country : official_native_language (text) , country_id (number)