db_id stringlengths 4 31 | SQL stringlengths 18 1.45k | input_sequence stringlengths 148 11k | question stringlengths 16 325 |
|---|---|---|---|
insurance_fnol | select policy_type_code from available_policies group by policy_type_code having count(*) > 4 | Question: find the policy types more than 4 customers use. show their type code. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. First_Notif... | find the policy types more than 4 customers use. show their type code. |
insurance_fnol | select sum(settlement_amount) , avg(settlement_amount) from settlements | Question: find the total and average amount of settlements. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. First_Notification_of_Loss -> FN... | find the total and average amount of settlements. |
insurance_fnol | select sum(settlement_amount) , avg(settlement_amount) from settlements | Question: return the sum and average of all settlement amounts. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. First_Notification_of_Loss -... | return the sum and average of all settlement amounts. |
insurance_fnol | select t2.service_name from first_notification_of_loss as t1 join services as t2 on t1.service_id = t2.service_id group by t1.service_id having count(*) > 2 | Question: find the name of services that have been used for more than 2 times in first notification of loss. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Open... | find the name of services that have been used for more than 2 times in first notification of loss. |
insurance_fnol | select t2.service_name from first_notification_of_loss as t1 join services as t2 on t1.service_id = t2.service_id group by t1.service_id having count(*) > 2 | Question: which services have been used more than twice in first notification of loss? return the service name. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_O... | which services have been used more than twice in first notification of loss? return the service name. |
insurance_fnol | select t1.effective_date from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id group by t1.claim_id order by sum(t2.settlement_amount) desc limit 1 | Question: what is the effective date of the claim that has the largest amount of total settlement? | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_C... | what is the effective date of the claim that has the largest amount of total settlement? |
insurance_fnol | select t1.effective_date from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id group by t1.claim_id order by sum(t2.settlement_amount) desc limit 1 | Question: find the claim that has the largest total settlement amount. return the effective date of the claim. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Op... | find the claim that has the largest total settlement amount. return the effective date of the claim. |
insurance_fnol | select count(*) from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id where t1.customer_name = 'dayana robel' | Question: how many policies are listed for the customer named 'dayana robel'? | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. First_Notifica... | how many policies are listed for the customer named 'dayana robel'? |
insurance_fnol | select count(*) from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id where t1.customer_name = 'dayana robel' | Question: count the total number of policies used by the customer named 'dayana robel'. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. Firs... | count the total number of policies used by the customer named 'dayana robel'. |
insurance_fnol | select t1.customer_name from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_name order by count(*) desc limit 1 | Question: what is the name of the customer who has the most policies listed? | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. First_Notificat... | what is the name of the customer who has the most policies listed? |
insurance_fnol | select t1.customer_name from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_name order by count(*) desc limit 1 | Question: which customer uses the most policies? give me the customer name. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. First_Notificati... | which customer uses the most policies? give me the customer name. |
insurance_fnol | select distinct t3.policy_type_code from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id join available_policies as t3 on t2.policy_id = t3.policy_id where t1.customer_name = 'dayana robel' | Question: what are all the policy types of the customer named 'dayana robel'? | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. First_Notifica... | what are all the policy types of the customer named 'dayana robel'? |
insurance_fnol | select distinct t3.policy_type_code from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id join available_policies as t3 on t2.policy_id = t3.policy_id where t1.customer_name = 'dayana robel' | Question: tell me the types of the policy used by the customer named 'dayana robel'. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. First_N... | tell me the types of the policy used by the customer named 'dayana robel'. |
insurance_fnol | select distinct t3.policy_type_code from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id join available_policies as t3 on t2.policy_id = t3.policy_id where t1.customer_name = (select t1.customer_name from customers as t1 join customers_policies as t2 on t1.customer_id = t2.custo... | Question: what are all the policy types of the customer that has the most policies listed? | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. F... | what are all the policy types of the customer that has the most policies listed? |
insurance_fnol | select distinct t3.policy_type_code from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id join available_policies as t3 on t2.policy_id = t3.policy_id where t1.customer_name = (select t1.customer_name from customers as t1 join customers_policies as t2 on t1.customer_id = t2.custo... | Question: list all the policy types used by the customer enrolled in the most policies. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. Firs... | list all the policy types used by the customer enrolled in the most policies. |
insurance_fnol | select service_name from services order by service_name | Question: list all the services in the alphabetical order. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. First_Notification_of_Loss -> FNO... | list all the services in the alphabetical order. |
insurance_fnol | select service_name from services order by service_name | Question: give me a list of all the service names sorted alphabetically. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. First_Notification_... | give me a list of all the service names sorted alphabetically. |
insurance_fnol | select count(*) from services | Question: how many services are there? | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. First_Notification_of_Loss -> FNOL_ID, Customer_ID, P... | how many services are there? |
insurance_fnol | select count(*) from services | Question: count the total number of available services. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. First_Notification_of_Loss -> FNOL_I... | count the total number of available services. |
insurance_fnol | select customer_name from customers except select t1.customer_name from customers as t1 join first_notification_of_loss as t2 on t1.customer_id = t2.customer_id | Question: find the names of users who do not have a first notification of loss record. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. First... | find the names of users who do not have a first notification of loss record. |
insurance_fnol | select customer_name from customers except select t1.customer_name from customers as t1 join first_notification_of_loss as t2 on t1.customer_id = t2.customer_id | Question: which customers do not have a first notification of loss record? give me the customer names. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Da... | which customers do not have a first notification of loss record? give me the customer names. |
insurance_fnol | select t1.customer_name from customers as t1 join first_notification_of_loss as t2 on t1.customer_id = t2.customer_id join services as t3 on t2.service_id = t3.service_id where t3.service_name = 'close a policy' or t3.service_name = 'upgrade a policy' | Question: find the names of customers who have used either the service 'close a policy' or the service 'upgrade a policy'. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy... | find the names of customers who have used either the service 'close a policy' or the service 'upgrade a policy'. |
insurance_fnol | select t1.customer_name from customers as t1 join first_notification_of_loss as t2 on t1.customer_id = t2.customer_id join services as t3 on t2.service_id = t3.service_id where t3.service_name = 'close a policy' or t3.service_name = 'upgrade a policy' | Question: which customers have used the service named 'close a policy' or 'upgrade a policy'? give me the customer names. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_... | which customers have used the service named 'close a policy' or 'upgrade a policy'? give me the customer names. |
insurance_fnol | select t1.customer_name from customers as t1 join first_notification_of_loss as t2 on t1.customer_id = t2.customer_id join services as t3 on t2.service_id = t3.service_id where t3.service_name = 'close a policy' intersect select t1.customer_name from customers as t1 join first_notification_of_loss as t2 on t1.cus... | Question: find the names of customers who have used both the service 'close a policy' and the service 'new policy application'. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, P... | find the names of customers who have used both the service 'close a policy' and the service 'new policy application'. |
insurance_fnol | select t1.customer_name from customers as t1 join first_notification_of_loss as t2 on t1.customer_id = t2.customer_id join services as t3 on t2.service_id = t3.service_id where t3.service_name = 'close a policy' intersect select t1.customer_name from customers as t1 join first_notification_of_loss as t2 on t1.cus... | Question: which customers have used both the service named 'close a policy' and the service named 'upgrade a policy'? give me the customer names. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies... | which customers have used both the service named 'close a policy' and the service named 'upgrade a policy'? give me the customer names. |
insurance_fnol | select customer_id from customers where customer_name like '%diana%' | Question: find the ids of customers whose name contains 'diana'. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. First_Notification_of_Loss ... | find the ids of customers whose name contains 'diana'. |
insurance_fnol | select customer_id from customers where customer_name like '%diana%' | Question: what are the ids of customers who have 'diana' in part of their names? | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. First_Notif... | what are the ids of customers who have 'diana' in part of their names? |
insurance_fnol | select max(settlement_amount) , min(settlement_amount) from settlements | Question: what are the maximum and minimum settlement amount on record? | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. First_Notification_o... | what are the maximum and minimum settlement amount on record? |
insurance_fnol | select max(settlement_amount) , min(settlement_amount) from settlements | Question: find the maximum and minimum settlement amount. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. First_Notification_of_Loss -> FNOL... | find the maximum and minimum settlement amount. |
insurance_fnol | select customer_id , customer_name from customers order by customer_id asc | Question: list all the customers in increasing order of ids. | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. First_Notification_of_Loss -> F... | list all the customers in increasing order of ids. |
insurance_fnol | select customer_id , customer_name from customers order by customer_id asc | Question: what is the ordered list of customer ids? | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_ID, Date_Opened, Date_Closed. First_Notification_of_Loss -> FNOL_ID, C... | what is the ordered list of customer ids? |
insurance_fnol | select t2.date_opened , t2.date_closed from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id where t1.customer_name like '%diana%' | Question: retrieve the open and close dates of all the policies associated with the customer whose name contains 'diana' | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Policy_I... | retrieve the open and close dates of all the policies associated with the customer whose name contains 'diana' |
insurance_fnol | select t2.date_opened , t2.date_closed from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id where t1.customer_name like '%diana%' | Question: what are the open and close dates of all the policies used by the customer who have 'diana' in part of their names? | Tables: Customers -> Customer_ID, Customer_name. Services -> Service_ID, Service_name. Available_Policies -> Policy_ID, policy_type_code, Customer_Phone. Customers_Policies -> Customer_ID, Pol... | what are the open and close dates of all the policies used by the customer who have 'diana' in part of their names? |
medicine_enzyme_interaction | select count(*) from enzyme | Question: how many kinds of enzymes are there? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_interaction.medicine_id = medicine.id, medicine_e... | how many kinds of enzymes are there? |
medicine_enzyme_interaction | select count(*) from enzyme | Question: what is the total count of enzymes? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_interaction.medicine_id = medicine.id, medicine_en... | what is the total count of enzymes? |
medicine_enzyme_interaction | select name from enzyme order by name desc | Question: list the name of enzymes in descending lexicographical order. | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_interaction.medicine_id ... | list the name of enzymes in descending lexicographical order. |
medicine_enzyme_interaction | select name from enzyme order by name desc | Question: what are the names of enzymes in descending order? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_interaction.medicine_id = medicine.... | what are the names of enzymes in descending order? |
medicine_enzyme_interaction | select name , location from enzyme | Question: list the names and the locations that the enzymes can make an effect. | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_interaction.medi... | list the names and the locations that the enzymes can make an effect. |
medicine_enzyme_interaction | select name , location from enzyme | Question: what are the names and locations of all enzymes listed? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_interaction.medicine_id = medi... | what are the names and locations of all enzymes listed? |
medicine_enzyme_interaction | select max(omim) from enzyme | Question: what is the maximum online mendelian inheritance in man (omim) value of the enzymes? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_i... | what is the maximum online mendelian inheritance in man (omim) value of the enzymes? |
medicine_enzyme_interaction | select max(omim) from enzyme | Question: what is the maximum omim value in the database? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_interaction.medicine_id = medicine.id,... | what is the maximum omim value in the database? |
medicine_enzyme_interaction | select product , chromosome , porphyria from enzyme where location = 'cytosol' | Question: what is the product, chromosome and porphyria related to the enzymes which take effect at the location 'cytosol'? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_typ... | what is the product, chromosome and porphyria related to the enzymes which take effect at the location 'cytosol'? |
medicine_enzyme_interaction | select product , chromosome , porphyria from enzyme where location = 'cytosol' | Question: what is the product, chromosome, and porphyria of the enzymes located at 'cytosol'? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_in... | what is the product, chromosome, and porphyria of the enzymes located at 'cytosol'? |
medicine_enzyme_interaction | select name from enzyme where product != 'heme' | Question: what are the names of enzymes who does not produce 'heme'? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_interaction.medicine_id = m... | what are the names of enzymes who does not produce 'heme'? |
medicine_enzyme_interaction | select name from enzyme where product != 'heme' | Question: what are the names of enzymes whose product is not 'heme'? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_interaction.medicine_id = m... | what are the names of enzymes whose product is not 'heme'? |
medicine_enzyme_interaction | select name , trade_name from medicine where fda_approved = 'yes' | Question: what are the names and trade names of the medicines which has 'yes' value in the fda record? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_... | what are the names and trade names of the medicines which has 'yes' value in the fda record? |
medicine_enzyme_interaction | select name , trade_name from medicine where fda_approved = 'yes' | Question: what are the names and trade names of the medcines that are fda approved? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_interaction.... | what are the names and trade names of the medcines that are fda approved? |
medicine_enzyme_interaction | select t1.name from enzyme as t1 join medicine_enzyme_interaction as t2 on t1.id = t2.enzyme_id join medicine as t3 on t2.medicine_id = t3.id where t3.name = 'amisulpride' and t2.interaction_type = 'inhibitor' | Question: what are the names of enzymes in the medicine named 'amisulpride' that can serve as an 'inhibitor'? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: me... | what are the names of enzymes in the medicine named 'amisulpride' that can serve as an 'inhibitor'? |
medicine_enzyme_interaction | select t1.name from enzyme as t1 join medicine_enzyme_interaction as t2 on t1.id = t2.enzyme_id join medicine as t3 on t2.medicine_id = t3.id where t3.name = 'amisulpride' and t2.interaction_type = 'inhibitor' | Question: what are the names of the enzymes used in the medicine amisulpride that acts as inhibitors? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_... | what are the names of the enzymes used in the medicine amisulpride that acts as inhibitors? |
medicine_enzyme_interaction | select t1.id , t1.name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id group by t1.id having count(*) >= 2 | Question: what are the ids and names of the medicine that can interact with two or more enzymes? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme... | what are the ids and names of the medicine that can interact with two or more enzymes? |
medicine_enzyme_interaction | select t1.id , t1.name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id group by t1.id having count(*) >= 2 | Question: for every medicine id, what are the names of the medicines that can interact with more than one enzyme? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins... | for every medicine id, what are the names of the medicines that can interact with more than one enzyme? |
medicine_enzyme_interaction | select t1.id , t1.name , t1.fda_approved from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id group by t1.id order by count(*) desc | 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. | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_... | 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_enzyme_interaction | select t1.id , t1.name , t1.fda_approved from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id group by t1.id order by count(*) desc | Question: what are the ids, names, and fda approval status for medicines ordered by descending number of possible enzyme interactions? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, inte... | what are the ids, names, and fda approval status for medicines ordered by descending number of possible enzyme interactions? |
medicine_enzyme_interaction | select t1.id , t1.name from enzyme as t1 join medicine_enzyme_interaction as t2 on t1.id = t2.enzyme_id where t2.interaction_type = 'activitor' group by t1.id order by count(*) desc limit 1 | Question: what is the id and name of the enzyme with most number of medicines that can interact as 'activator'? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: ... | what is the id and name of the enzyme with most number of medicines that can interact as 'activator'? |
medicine_enzyme_interaction | select t1.id , t1.name from enzyme as t1 join medicine_enzyme_interaction as t2 on t1.id = t2.enzyme_id where t2.interaction_type = 'activitor' group by t1.id order by count(*) desc limit 1 | Question: what is the id and name of the enzyme that can interact with the most medicines as an activator? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medic... | what is the id and name of the enzyme that can interact with the most medicines as an activator? |
medicine_enzyme_interaction | select t1.interaction_type from medicine_enzyme_interaction as t1 join medicine as t2 on t1.medicine_id = t2.id join enzyme as t3 on t1.enzyme_id = t3.id where t3.name = 'ala synthase' and t2.name = 'aripiprazole' | Question: what is the interaction type of the enzyme named 'ala synthase' and the medicine named 'aripiprazole'? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins:... | what is the interaction type of the enzyme named 'ala synthase' and the medicine named 'aripiprazole'? |
medicine_enzyme_interaction | select t1.interaction_type from medicine_enzyme_interaction as t1 join medicine as t2 on t1.medicine_id = t2.id join enzyme as t3 on t1.enzyme_id = t3.id where t3.name = 'ala synthase' and t2.name = 'aripiprazole' | Question: what is the type of interaction for the enzyme named 'ala synthase' and the medicine named 'aripiprazole'? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Jo... | what is the type of interaction for the enzyme named 'ala synthase' and the medicine named 'aripiprazole'? |
medicine_enzyme_interaction | select interaction_type , count(*) from medicine_enzyme_interaction group by interaction_type order by count(*) desc limit 1 | Question: what is the most common interaction type between enzymes and medicine? and how many are there? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicin... | what is the most common interaction type between enzymes and medicine? and how many are there? |
medicine_enzyme_interaction | select interaction_type , count(*) from medicine_enzyme_interaction group by interaction_type order by count(*) desc limit 1 | Question: what are the most common types of interactions between enzymes and medicine, and how many types are there? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Jo... | what are the most common types of interactions between enzymes and medicine, and how many types are there? |
medicine_enzyme_interaction | select count(*) from medicine where fda_approved = 'no' | Question: how many medicines have the fda approval status 'no' ? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_interaction.medicine_id = medic... | how many medicines have the fda approval status 'no' ? |
medicine_enzyme_interaction | select count(*) from medicine where fda_approved = 'no' | Question: how many medicines were not approved by the fda? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_interaction.medicine_id = medicine.id... | how many medicines were not approved by the fda? |
medicine_enzyme_interaction | select count(*) from enzyme where id not in ( select enzyme_id from medicine_enzyme_interaction ); | Question: how many enzymes do not have any interactions? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_interaction.medicine_id = medicine.id, ... | how many enzymes do not have any interactions? |
medicine_enzyme_interaction | select count(*) from enzyme where id not in ( select enzyme_id from medicine_enzyme_interaction ); | Question: what is the count of enzymes without any interactions? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_interaction.medicine_id = medic... | what is the count of enzymes without any interactions? |
medicine_enzyme_interaction | select t1.id , t1.trade_name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id group by t1.id having count(*) >= 3 | Question: what is the id and trade name of the medicines can interact with at least 3 enzymes? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_i... | what is the id and trade name of the medicines can interact with at least 3 enzymes? |
medicine_enzyme_interaction | select t1.id , t1.trade_name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id group by t1.id having count(*) >= 3 | Question: what are the ids and trade names of the medicine that can interact with at least 3 enzymes? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_e... | what are the ids and trade names of the medicine that can interact with at least 3 enzymes? |
medicine_enzyme_interaction | select distinct t1.name , t1.location , t1.product from enzyme as t1 join medicine_enzyme_interaction as t2 on t2.enzyme_id = t1.id where t2.interaction_type = 'inhibitor' | Question: what are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins... | what are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction? |
medicine_enzyme_interaction | select distinct t1.name , t1.location , t1.product from enzyme as t1 join medicine_enzyme_interaction as t2 on t2.enzyme_id = t1.id where t2.interaction_type = 'inhibitor' | Question: what are the different names, locations, and products of the enzymes that are capable inhibitor interactions? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. |... | what are the different names, locations, and products of the enzymes that are capable inhibitor interactions? |
medicine_enzyme_interaction | select t1.name , t1.trade_name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id where interaction_type = 'inhibitor' intersect select t1.name , t1.trade_name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id where interaction_type = 'activ... | Question: list the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes. | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Jo... | list the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes. |
medicine_enzyme_interaction | select t1.name , t1.trade_name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id where interaction_type = 'inhibitor' intersect select t1.name , t1.trade_name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id where interaction_type = 'activ... | Question: what are the medicine and trade names that can interact as an inhibitor and activitor with enzymes? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: me... | what are the medicine and trade names that can interact as an inhibitor and activitor with enzymes? |
medicine_enzyme_interaction | select name , trade_name from medicine except select t1.name , t1.trade_name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id join enzyme as t3 on t3.id = t2.enzyme_id where t3.product = 'protoporphyrinogen ix' | Question: show the medicine names and trade names that cannot interact with the enzyme with product 'heme'. | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medi... | show the medicine names and trade names that cannot interact with the enzyme with product 'heme'. |
medicine_enzyme_interaction | select name , trade_name from medicine except select t1.name , t1.trade_name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id join enzyme as t3 on t3.id = t2.enzyme_id where t3.product = 'protoporphyrinogen ix' | Question: what are the medicine and trade names that cannot interact with the enzyme with the product 'heme'? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: me... | what are the medicine and trade names that cannot interact with the enzyme with the product 'heme'? |
medicine_enzyme_interaction | select count(distinct fda_approved) from medicine | Question: how many distinct fda approval statuses are there for the medicines? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_interaction.medic... | how many distinct fda approval statuses are there for the medicines? |
medicine_enzyme_interaction | select count(distinct fda_approved) from medicine | Question: how many different fda approval statuses exist for medicines? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_interaction.medicine_id ... | how many different fda approval statuses exist for medicines? |
medicine_enzyme_interaction | select name from enzyme where name like '%ala%' | Question: which enzyme names have the substring 'ala'? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_interaction.medicine_id = medicine.id, me... | which enzyme names have the substring 'ala'? |
medicine_enzyme_interaction | select name from enzyme where name like '%ala%' | Question: what are the names of enzymes that include the string 'ala'? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_interaction.medicine_id =... | what are the names of enzymes that include the string 'ala'? |
medicine_enzyme_interaction | select trade_name , count(*) from medicine group by trade_name | Question: find the number of medicines offered by each trade. | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_interaction.medicine_id = medicine... | find the number of medicines offered by each trade. |
medicine_enzyme_interaction | select trade_name , count(*) from medicine group by trade_name | Question: how many medicines are offered by each trade name? | Tables: medicine -> id, name, Trade_Name, FDA_approved. enzyme -> id, name, Location, Product, Chromosome, OMIM, Porphyria. medicine_enzyme_interaction -> enzyme_id, medicine_id, interaction_type. | Joins: medicine_enzyme_interaction.medicine_id = medicine.... | how many medicines are offered by each trade name? |
university_basketball | select school , nickname from university order by founded | Question: list all schools and their nicknames in the order of founded year. | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, School, Location, Founded, Affiliation, E... | list all schools and their nicknames in the order of founded year. |
university_basketball | select school , nickname from university order by founded | Question: what are the different schools and their nicknames, ordered by their founding years? | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, School, Location, Found... | what are the different schools and their nicknames, ordered by their founding years? |
university_basketball | select school , location from university where affiliation = 'public' | Question: list all public schools and their locations. | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, School, Location, Founded, Affiliation, Enrollment, Nickname, P... | list all public schools and their locations. |
university_basketball | select school , location from university where affiliation = 'public' | Question: what are the public schools and what are their locations? | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, School, Location, Founded, Affiliation, Enrollment... | what are the public schools and what are their locations? |
university_basketball | select founded from university order by enrollment desc limit 1 | Question: when was the school with the largest enrollment founded? | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, School, Location, Founded, Affiliation, Enrollment,... | when was the school with the largest enrollment founded? |
university_basketball | select founded from university order by enrollment desc limit 1 | Question: return the founded year for the school with the largest enrollment. | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, School, Location, Founded, Affiliation, ... | return the founded year for the school with the largest enrollment. |
university_basketball | select founded from university where affiliation != 'public' order by founded desc limit 1 | Question: find the founded year of the newest non public school. | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, School, Location, Founded, Affiliation, Enrollment, N... | find the founded year of the newest non public school. |
university_basketball | select founded from university where affiliation != 'public' order by founded desc limit 1 | Question: what is the founded year of the non public school that was founded most recently? | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, School, Location, Founded,... | what is the founded year of the non public school that was founded most recently? |
university_basketball | select count(distinct school_id) from basketball_match | Question: how many schools are in the basketball match? | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, School, Location, Founded, Affiliation, Enrollment, Nickname, ... | how many schools are in the basketball match? |
university_basketball | select count(distinct school_id) from basketball_match | Question: count the number of schools that have had basketball matches. | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, School, Location, Founded, Affiliation, Enroll... | count the number of schools that have had basketball matches. |
university_basketball | select acc_percent from basketball_match order by acc_percent desc limit 1 | Question: what is the highest acc percent score in the competition? | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, School, Location, Founded, Affiliation, Enrollment... | what is the highest acc percent score in the competition? |
university_basketball | select acc_percent from basketball_match order by acc_percent desc limit 1 | Question: return the highest acc percent across all basketball matches. | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, School, Location, Founded, Affiliation, Enroll... | return the highest acc percent across all basketball matches. |
university_basketball | select t1.primary_conference from university as t1 join basketball_match as t2 on t1.school_id = t2.school_id order by t2.acc_percent limit 1 | Question: what is the primary conference of the school that has the lowest acc percent score in the competition? | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, Schoo... | what is the primary conference of the school that has the lowest acc percent score in the competition? |
university_basketball | select t1.primary_conference from university as t1 join basketball_match as t2 on t1.school_id = t2.school_id order by t2.acc_percent limit 1 | Question: return the primary conference of the school with the lowest acc percentage score. | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, School, Location, Founded,... | return the primary conference of the school with the lowest acc percentage score. |
university_basketball | select t2.team_name , t2.acc_regular_season from university as t1 join basketball_match as t2 on t1.school_id = t2.school_id order by t1.founded limit 1 | Question: what is the team name and acc regular season score of the school that was founded for the longest time? | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, Scho... | what is the team name and acc regular season score of the school that was founded for the longest time? |
university_basketball | select t2.team_name , t2.acc_regular_season from university as t1 join basketball_match as t2 on t1.school_id = t2.school_id order by t1.founded limit 1 | Question: return the name of the team and the acc during the regular season for the school that was founded the earliest. | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_... | return the name of the team and the acc during the regular season for the school that was founded the earliest. |
university_basketball | select t2.all_games , t1.location from university as t1 join basketball_match as t2 on t1.school_id = t2.school_id where team_name = 'clemson' | Question: find the location and all games score of the school that has clemson as its team name. | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, School, Location, Fou... | find the location and all games score of the school that has clemson as its team name. |
university_basketball | select t2.all_games , t1.location from university as t1 join basketball_match as t2 on t1.school_id = t2.school_id where team_name = 'clemson' | Question: what are the all games score and location of the school called clemson? | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, School, Location, Founded, Affiliati... | what are the all games score and location of the school called clemson? |
university_basketball | select avg(enrollment) from university where founded < 1850 | Question: what are the average enrollment size of the universities that are founded before 1850? | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, School, Location, Fou... | what are the average enrollment size of the universities that are founded before 1850? |
university_basketball | select avg(enrollment) from university where founded < 1850 | Question: return the average enrollment of universities founded before 1850. | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, School, Location, Founded, Affiliation, E... | return the average enrollment of universities founded before 1850. |
university_basketball | select enrollment , primary_conference from university order by founded limit 1 | Question: show the enrollment and primary_conference of the oldest college. | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, School, Location, Founded, Affiliation, En... | show the enrollment and primary_conference of the oldest college. |
university_basketball | select enrollment , primary_conference from university order by founded limit 1 | Question: what are the enrollment and primary conference for the university which was founded the earliest? | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, School, Lo... | what are the enrollment and primary conference for the university which was founded the earliest? |
university_basketball | select sum(enrollment) , min(enrollment) from university | Question: what is the total and minimum enrollment of all schools? | Tables: basketball_match -> Team_ID, School_ID, Team_Name, ACC_Regular_Season, ACC_Percent, ACC_Home, ACC_Road, All_Games, All_Games_Percent, All_Home, All_Road, All_Neutral. university -> School_ID, School, Location, Founded, Affiliation, Enrollment,... | what is the total and minimum enrollment of all schools? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.