richardr1126/spider-skeleton-context-instruct huggingface dataset:
### Instruction:

Convert text to sql: List all the customers in increasing order of IDs. | 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 , policy_id , service_id | claims : claim_id , fnol_id , effective_date | settlements : settlement_id , claim_id , effective_date , settlement_amount | customers_policies.policy_id = available_policies.policy_id | customers_policies.customer_id = customers.customer_id | first_notification_of_loss.customer_id = customers_policies.customer_id | first_notification_of_loss.policy_id = customers_policies.policy_id | first_notification_of_loss.service_id = services.service_id | claims.fnol_id = first_notification_of_loss.fnol_id | settlements.claim_id = claims.claim_id | 

### Response:

select _ from _ order by _ asc | select customer_id , customer_name from customers order by customer_id asc
### Instruction:

Convert text to sql: What is the ordered list of customer ids? | 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 , policy_id , service_id | claims : claim_id , fnol_id , effective_date | settlements : settlement_id , claim_id , effective_date , settlement_amount | customers_policies.policy_id = available_policies.policy_id | customers_policies.customer_id = customers.customer_id | first_notification_of_loss.customer_id = customers_policies.customer_id | first_notification_of_loss.policy_id = customers_policies.policy_id | first_notification_of_loss.service_id = services.service_id | claims.fnol_id = first_notification_of_loss.fnol_id | settlements.claim_id = claims.claim_id | 

### Response:

select _ from _ order by _ asc | select customer_id , customer_name from customers order by customer_id asc
### Instruction:

Convert text to sql: Retrieve the open and close dates of all the policies associated with the customer whose name contains "Diana" | 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 , policy_id , service_id | claims : claim_id , fnol_id , effective_date | settlements : settlement_id , claim_id , effective_date , settlement_amount | customers_policies.policy_id = available_policies.policy_id | customers_policies.customer_id = customers.customer_id | first_notification_of_loss.customer_id = customers_policies.customer_id | first_notification_of_loss.policy_id = customers_policies.policy_id | first_notification_of_loss.service_id = services.service_id | claims.fnol_id = first_notification_of_loss.fnol_id | settlements.claim_id = claims.claim_id | 

### Response:

select _ from _ where _ like _ | select customers_policies.date_opened , customers_policies.date_closed from customers join customers_policies on customers.customer_id = customers_policies.customer_id where customers.customer_name like '%Diana%'
### Instruction:

Convert text to sql: 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 , 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 , policy_id , service_id | claims : claim_id , fnol_id , effective_date | settlements : settlement_id , claim_id , effective_date , settlement_amount | customers_policies.policy_id = available_policies.policy_id | customers_policies.customer_id = customers.customer_id | first_notification_of_loss.customer_id = customers_policies.customer_id | first_notification_of_loss.policy_id = customers_policies.policy_id | first_notification_of_loss.service_id = services.service_id | claims.fnol_id = first_notification_of_loss.fnol_id | settlements.claim_id = claims.claim_id | 

### Response:

select _ from _ where _ like _ | select customers_policies.date_opened , customers_policies.date_closed from customers join customers_policies on customers.customer_id = customers_policies.customer_id where customers.customer_name like '%Diana%'
### Instruction:

Convert text to sql: How many kinds of enzymes are there? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select count ( _ ) from _ | select count ( * ) from enzyme
### Instruction:

Convert text to sql: What is the total count of enzymes? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select count ( _ ) from _ | select count ( * ) from enzyme
### Instruction:

Convert text to sql: List the name of enzymes in descending lexicographical order. | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ order by _ desc | select name from enzyme order by name desc
### Instruction:

Convert text to sql: What are the names of enzymes in descending order? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ order by _ desc | select name from enzyme order by name desc
### Instruction:

Convert text to sql: List the names and the locations that the enzymes can make an effect. | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ | select name , location from enzyme
### Instruction:

Convert text to sql: What are the names and locations of all enzymes listed? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ | select name , location from enzyme
### Instruction:

Convert text to sql: What is the maximum Online Mendelian Inheritance in Man (OMIM) value of the enzymes? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select max ( _ ) from _ | select max ( omim ) from enzyme
### Instruction:

Convert text to sql: What is the maximum OMIM value in the database? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select max ( _ ) from _ | select max ( omim ) from enzyme
### Instruction:

Convert text to sql: What is the product, chromosome and porphyria related to the enzymes which take effect at the location 'Cytosol'? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ where _ | select product , chromosome , porphyria from enzyme where location = 'Cytosol'
### Instruction:

Convert text to sql: What is the product, chromosome, and porphyria of the enzymes located at 'Cytosol'? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ where _ | select product , chromosome , porphyria from enzyme where location = 'Cytosol'
### Instruction:

Convert text to sql: What are the names of enzymes who does not produce 'Heme'? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ where _ | select name from enzyme where product != 'Heme'
### Instruction:

Convert text to sql: What are the names of enzymes whose product is not 'Heme'? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ where _ | select name from enzyme where product != 'Heme'
### Instruction:

Convert text to sql: What are the names and trade names of the medicines which has 'Yes' value in the FDA record? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ where _ | select name , trade_name from medicine where fda_approved = 'Yes'
### Instruction:

Convert text to sql: What are the names and trade names of the medcines that are FDA approved? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ where _ | select name , trade_name from medicine where fda_approved = 'Yes'
### Instruction:

Convert text to sql: What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ where _ | select enzyme.name from enzyme join medicine_enzyme_interaction on enzyme.id = medicine_enzyme_interaction.enzyme_id join medicine on medicine_enzyme_interaction.medicine_id = medicine.id where medicine.name = 'Amisulpride' and medicine_enzyme_interaction.interaction_type = 'inhibitor'
### Instruction:

Convert text to sql: What are the names of the enzymes used in the medicine  Amisulpride that acts as inhibitors? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ where _ | select enzyme.name from enzyme join medicine_enzyme_interaction on enzyme.id = medicine_enzyme_interaction.enzyme_id join medicine on medicine_enzyme_interaction.medicine_id = medicine.id where medicine.name = 'Amisulpride' and medicine_enzyme_interaction.interaction_type = 'inhibitor'
### Instruction:

Convert text to sql: What are the ids and names of the medicine that can interact with two or more enzymes? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ group by _ having count ( _ ) >= _ | select medicine.id , medicine.name from medicine join medicine_enzyme_interaction on medicine_enzyme_interaction.medicine_id = medicine.id group by medicine.id having count ( * ) >= 2
### Instruction:

Convert text to sql: For every medicine id, what are the names of the medicines that can interact with more than one enzyme? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ group by _ having count ( _ ) >= _ | select medicine.id , medicine.name from medicine join medicine_enzyme_interaction on medicine_enzyme_interaction.medicine_id = medicine.id group by medicine.id having count ( * ) >= 2
### Instruction:

Convert text to sql: 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 , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc | select medicine.id , medicine.name , medicine.fda_approved from medicine join medicine_enzyme_interaction on medicine_enzyme_interaction.medicine_id = medicine.id group by medicine.id order by count ( * ) desc
### Instruction:

Convert text to sql: What are the ids, names, and FDA approval status for medicines ordered by descending number of possible enzyme interactions? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc | select medicine.id , medicine.name , medicine.fda_approved from medicine join medicine_enzyme_interaction on medicine_enzyme_interaction.medicine_id = medicine.id group by medicine.id order by count ( * ) desc
### Instruction:

Convert text to sql: What is the id and name of the enzyme with most number of medicines that can interact as 'activator'? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ where _ group by _ order by count ( _ ) desc limit _ | select enzyme.id , enzyme.name from enzyme join medicine_enzyme_interaction on enzyme.id = medicine_enzyme_interaction.enzyme_id where medicine_enzyme_interaction.interaction_type = 'activitor' group by enzyme.id order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: What is the id and name of the enzyme that can interact with the most medicines as an activator? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ where _ group by _ order by count ( _ ) desc limit _ | select enzyme.id , enzyme.name from enzyme join medicine_enzyme_interaction on enzyme.id = medicine_enzyme_interaction.enzyme_id where medicine_enzyme_interaction.interaction_type = 'activitor' group by enzyme.id order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: What is the interaction type of the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ where _ | select medicine_enzyme_interaction.interaction_type from medicine_enzyme_interaction join medicine on medicine_enzyme_interaction.medicine_id = medicine.id join enzyme on medicine_enzyme_interaction.enzyme_id = enzyme.id where enzyme.name = 'ALA synthase' and medicine.name = 'Aripiprazole'
### Instruction:

Convert text to sql: What is the type of interaction for the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ where _ | select medicine_enzyme_interaction.interaction_type from medicine_enzyme_interaction join medicine on medicine_enzyme_interaction.medicine_id = medicine.id join enzyme on medicine_enzyme_interaction.enzyme_id = enzyme.id where enzyme.name = 'ALA synthase' and medicine.name = 'Aripiprazole'
### Instruction:

Convert text to sql: What is the most common interaction type between enzymes and medicine? And how many are there? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ , count ( _ ) from _ group by _ order by count ( _ ) desc limit _ | select interaction_type , count ( * ) from medicine_enzyme_interaction group by interaction_type order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: What are the most common types of interactions between enzymes and medicine, and how many types are there? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ , count ( _ ) from _ group by _ order by count ( _ ) desc limit _ | select interaction_type , count ( * ) from medicine_enzyme_interaction group by interaction_type order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: How many medicines have the FDA approval status 'No' ? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from medicine where fda_approved = 'No'
### Instruction:

Convert text to sql: How many medicines were not approved by the FDA? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from medicine where fda_approved = 'No'
### Instruction:

Convert text to sql: How many enzymes do not have any interactions? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select count ( _ ) from _ where _ not in ( select _ from _ ) | select count ( * ) from enzyme where id not in ( select enzyme_id from medicine_enzyme_interaction )
### Instruction:

Convert text to sql: What is the count of enzymes without any interactions? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select count ( _ ) from _ where _ not in ( select _ from _ ) | select count ( * ) from enzyme where id not in ( select enzyme_id from medicine_enzyme_interaction )
### Instruction:

Convert text to sql: What is the id and trade name of the medicines can interact with at least 3 enzymes? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ group by _ having count ( _ ) >= _ | select medicine.id , medicine.trade_name from medicine join medicine_enzyme_interaction on medicine_enzyme_interaction.medicine_id = medicine.id group by medicine.id having count ( * ) >= 3
### Instruction:

Convert text to sql: What are the ids and trade names of the medicine that can interact with at least 3 enzymes? | medicine : id , name , trade_name , fda_approved | enzyme : id , name , location , product , chromosome , omim , porphyria | medicine_enzyme_interaction : enzyme_id , medicine_id , interaction_type | medicine_enzyme_interaction.medicine_id = medicine.id | medicine_enzyme_interaction.enzyme_id = enzyme.id | 

### Response:

select _ from _ group by _ having count ( _ ) >= _ | select medicine.id , medicine.trade_name from medicine join medicine_enzyme_interaction on medicine_enzyme_interaction.medicine_id = medicine.id group by medicine.id having count ( * ) >= 3