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

Convert text to sql: What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction? | 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 distinct _ from _ where _ | select distinct enzyme.name , enzyme.location , enzyme.product from enzyme join medicine_enzyme_interaction on medicine_enzyme_interaction.enzyme_id = enzyme.id where medicine_enzyme_interaction.interaction_type = 'inhibitor'
### Instruction:

Convert text to sql: What are the different names, locations, and products of the enzymes that are capable inhibitor 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 distinct _ from _ where _ | select distinct enzyme.name , enzyme.location , enzyme.product from enzyme join medicine_enzyme_interaction on medicine_enzyme_interaction.enzyme_id = enzyme.id where medicine_enzyme_interaction.interaction_type = 'inhibitor'
### Instruction:

Convert text to sql: List the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with 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 _ where _ intersect select _ from _ where _ | select medicine.name , medicine.trade_name from medicine join medicine_enzyme_interaction on medicine_enzyme_interaction.medicine_id = medicine.id where interaction_type = 'inhibitor' intersect select medicine.name , medicine.trade_name from medicine join medicine_enzyme_interaction on medicine_enzyme_interaction.medicine_id = medicine.id where interaction_type = 'activitor'
### Instruction:

Convert text to sql: What are the medicine and trade names that can interact as an inhibitor and activitor with 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 _ where _ intersect select _ from _ where _ | select medicine.name , medicine.trade_name from medicine join medicine_enzyme_interaction on medicine_enzyme_interaction.medicine_id = medicine.id where interaction_type = 'inhibitor' intersect select medicine.name , medicine.trade_name from medicine join medicine_enzyme_interaction on medicine_enzyme_interaction.medicine_id = medicine.id where interaction_type = 'activitor'
### Instruction:

Convert text to sql: Show the medicine names and trade names that cannot interact with the enzyme with product '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 _ except select _ from _ where _ | select name , trade_name from medicine except select medicine.name , medicine.trade_name from medicine join medicine_enzyme_interaction on medicine_enzyme_interaction.medicine_id = medicine.id join enzyme on enzyme.id = medicine_enzyme_interaction.enzyme_id where enzyme.product = 'Protoporphyrinogen IX'
### Instruction:

Convert text to sql: What are the medicine and trade names that cannot interact with the enzyme with the product '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 _ except select _ from _ where _ | select name , trade_name from medicine except select medicine.name , medicine.trade_name from medicine join medicine_enzyme_interaction on medicine_enzyme_interaction.medicine_id = medicine.id join enzyme on enzyme.id = medicine_enzyme_interaction.enzyme_id where enzyme.product = 'Protoporphyrinogen IX'
### Instruction:

Convert text to sql: How many distinct FDA approval statuses are there for the medicines? | 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 ( distinct _ ) from _ | select count ( distinct fda_approved ) from medicine
### Instruction:

Convert text to sql: How many different FDA approval statuses exist for medicines? | 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 ( distinct _ ) from _ | select count ( distinct fda_approved ) from medicine
### Instruction:

Convert text to sql: Which enzyme names have the substring "ALA"? | 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 _ like _ | select name from enzyme where name like '%ALA%'
### Instruction:

Convert text to sql: What are the names of enzymes that include the string 'ALA'? | 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 _ like _ | select name from enzyme where name like '%ALA%'
### Instruction:

Convert text to sql: find the number of medicines offered by each trade. | 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 _ | select trade_name , count ( * ) from medicine group by trade_name
### Instruction:

Convert text to sql: How many medicines are offered by each trade name? | 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 _ | select trade_name , count ( * ) from medicine group by trade_name
### Instruction:

Convert text to sql: List all schools and their nicknames in the order of founded year. | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ order by _ asc | select school , nickname from university order by founded asc
### Instruction:

Convert text to sql: What are the different schools and their nicknames, ordered by their founding years? | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ order by _ asc | select school , nickname from university order by founded asc
### Instruction:

Convert text to sql: List all public schools and their locations. | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ where _ | select school , location from university where affiliation = 'Public'
### Instruction:

Convert text to sql: What are the public schools and what are their locations? | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ where _ | select school , location from university where affiliation = 'Public'
### Instruction:

Convert text to sql: When was the school with the largest enrollment founded? | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ order by _ desc limit _ | select founded from university order by enrollment desc limit 1
### Instruction:

Convert text to sql: Return the founded year for the school with the largest enrollment. | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ order by _ desc limit _ | select founded from university order by enrollment desc limit 1
### Instruction:

Convert text to sql: Find the founded year of the newest non public school. | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ where _ order by _ desc limit _ | select founded from university where affiliation != 'Public' order by founded desc limit 1
### Instruction:

Convert text to sql: What is the founded year of the non public school that was founded most recently? | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ where _ order by _ desc limit _ | select founded from university where affiliation != 'Public' order by founded desc limit 1
### Instruction:

Convert text to sql: How many schools are in the basketball match? | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct school_id ) from basketball_match
### Instruction:

Convert text to sql: Count the number of schools that have had basketball matches. | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct school_id ) from basketball_match
### Instruction:

Convert text to sql: What is the highest acc percent score in the competition? | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ order by _ desc limit _ | select acc_percent from basketball_match order by acc_percent desc limit 1
### Instruction:

Convert text to sql: Return the highest acc percent across all basketball matches. | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ order by _ desc limit _ | select acc_percent from basketball_match order by acc_percent desc limit 1
### Instruction:

Convert text to sql: What is the primary conference of the school that has the lowest acc percent score in the competition? | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ order by _ asc limit _ | select university.primary_conference from university join basketball_match on university.school_id = basketball_match.school_id order by basketball_match.acc_percent asc limit 1
### Instruction:

Convert text to sql: Return the primary conference of the school with the lowest acc percentage score. | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ order by _ asc limit _ | select university.primary_conference from university join basketball_match on university.school_id = basketball_match.school_id order by basketball_match.acc_percent asc limit 1
### Instruction:

Convert text to sql: What is the team name and acc regular season score of the school that was founded for the longest time? | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ order by _ asc limit _ | select basketball_match.team_name , basketball_match.acc_regular_season from university join basketball_match on university.school_id = basketball_match.school_id order by university.founded asc limit 1
### Instruction:

Convert text to sql: 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 , 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ order by _ asc limit _ | select basketball_match.team_name , basketball_match.acc_regular_season from university join basketball_match on university.school_id = basketball_match.school_id order by university.founded asc limit 1
### Instruction:

Convert text to sql: Find the location and all games score of the school that has Clemson as its team name. | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ where _ | select basketball_match.all_games , university.location from university join basketball_match on university.school_id = basketball_match.school_id where team_name = 'Clemson'
### Instruction:

Convert text to sql: What are the all games score and location of the school called Clemson? | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ where _ | select basketball_match.all_games , university.location from university join basketball_match on university.school_id = basketball_match.school_id where team_name = 'Clemson'
### Instruction:

Convert text to sql: What are the average enrollment size of the universities that are founded before 1850? | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select avg ( _ ) from _ where _ | select avg ( enrollment ) from university where founded < 1850
### Instruction:

Convert text to sql: Return the average enrollment of universities founded before 1850. | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select avg ( _ ) from _ where _ | select avg ( enrollment ) from university where founded < 1850
### Instruction:

Convert text to sql: Show the enrollment and primary_conference of the oldest college. | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ order by _ asc limit _ | select enrollment , primary_conference from university order by founded asc limit 1
### Instruction:

Convert text to sql: What are the enrollment and primary conference for the university which was founded the earliest? | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ order by _ asc limit _ | select enrollment , primary_conference from university order by founded asc limit 1
### Instruction:

Convert text to sql: What is the total and minimum enrollment of all schools? | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select sum ( _ ) , min ( _ ) from _ | select sum ( enrollment ) , min ( enrollment ) from university
### Instruction:

Convert text to sql: Return the total and minimum enrollments across all schools. | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select sum ( _ ) , min ( _ ) from _ | select sum ( enrollment ) , min ( enrollment ) from university
### Instruction:

Convert text to sql: Find the total student enrollment for different affiliation type schools. | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select sum ( _ ) , _ from _ group by _ | select sum ( enrollment ) , affiliation from university group by affiliation
### Instruction:

Convert text to sql: What are the total enrollments of universities of each affiliation type? | 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 , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select sum ( _ ) , _ from _ group by _ | select sum ( enrollment ) , affiliation from university group by affiliation