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

Convert text to sql: Who are the nominees who were nominated for either of the Bob Fosse or Cleavant Derricks awards? | musical : musical_id , name , year , award , category , nominee , result | actor : actor_id , name , musical_id , character , duration , age | actor.musical_id = actor.actor_id | 

### Response:

select _ from _ where _ | select nominee from musical where award = 'Tony Award' or award = 'Cleavant Derricks'
### Instruction:

Convert text to sql: Find the emails of the user named "Mary". | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select _ from _ where _ | select email from user_profiles where name = 'Mary'
### Instruction:

Convert text to sql: What is the partition id of the user named "Iron Man". | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select _ from _ where _ | select partitionid from user_profiles where name = 'Iron Man'
### Instruction:

Convert text to sql: How many users are there? | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

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

Convert text to sql: How many followers does each user have? | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

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

Convert text to sql: Find the number of followers for each user. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select count ( _ ) from _ group by _ | select count ( * ) from follows group by f1
### Instruction:

Convert text to sql: Find the number of tweets in record. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

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

Convert text to sql: Find the number of users who posted some tweets. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct uid ) from tweets
### Instruction:

Convert text to sql: Find the name and email of the user whose name contains the word 'Swift'. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select _ from _ where _ like _ | select name , email from user_profiles where name like '%Swift%'
### Instruction:

Convert text to sql: Find the names of users whose emails contain 'superstar' or 'edu'. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select _ from _ where _ like _ or _ like _ | select name from user_profiles where email like '%superstar%' or email like '%edu%'
### Instruction:

Convert text to sql: Return the text of tweets about the topic 'intern'. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select _ from _ where _ like _ | select text from tweets where text like '%intern%'
### Instruction:

Convert text to sql: Find the name and email of the users who have more than 1000 followers. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select _ from _ where _ | select name , email from user_profiles where followers > 1000
### Instruction:

Convert text to sql: Find the names of the users whose number of followers is greater than that of the user named "Tyler Swift". | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select _ from _ group by _ having count ( _ ) > ( select count ( _ ) from _ where _ ) | select user_profiles.name from user_profiles join follows on user_profiles.uid = follows.f1 group by follows.f1 having count ( * ) > ( select count ( * ) from user_profiles join follows on user_profiles.uid = follows.f1 where user_profiles.name = 'Tyler Swift' )
### Instruction:

Convert text to sql: Find the name and email for the users who have more than one follower. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select _ from _ group by _ having count ( _ ) > _ | select user_profiles.name , user_profiles.email from user_profiles join follows on user_profiles.uid = follows.f1 group by follows.f1 having count ( * ) > 1
### Instruction:

Convert text to sql: Find the names of users who have more than one tweet. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select _ from _ group by _ having count ( _ ) > _ | select user_profiles.name from user_profiles join tweets on user_profiles.uid = tweets.uid group by tweets.uid having count ( * ) > 1
### Instruction:

Convert text to sql: Find the id of users who are followed by Mary and Susan. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select follows.f1 from user_profiles join follows on user_profiles.uid = follows.f2 where user_profiles.name = 'Mary' intersect select follows.f1 from user_profiles join follows on user_profiles.uid = follows.f2 where user_profiles.name = 'Susan'
### Instruction:

Convert text to sql: Find the id of users who are followed by Mary or Susan. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select _ from _ where _ | select follows.f1 from user_profiles join follows on user_profiles.uid = follows.f2 where user_profiles.name = 'Mary' or user_profiles.name = 'Susan'
### Instruction:

Convert text to sql: Find the name of the user who has the largest number of followers. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select _ from _ order by _ desc limit _ | select name from user_profiles order by followers desc limit 1
### Instruction:

Convert text to sql: Find the name and email of the user followed by the least number of people. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select _ from _ order by _ asc limit _ | select name , email from user_profiles order by followers asc limit 1
### Instruction:

Convert text to sql: List the name and number of followers for each user, and sort the results by the number of followers in descending order. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select _ from _ order by _ desc | select name , followers from user_profiles order by followers desc
### Instruction:

Convert text to sql: List the names of 5 users followed by the largest number of other users. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select _ from _ order by _ desc limit _ | select name from user_profiles order by followers desc limit 5
### Instruction:

Convert text to sql: List the text of all tweets in the order of date. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select _ from _ order by _ asc | select text from tweets order by createdate asc
### Instruction:

Convert text to sql: Find the name of each user and number of tweets tweeted by each of them. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select _ , count ( _ ) from _ group by _ | select user_profiles.name , count ( * ) from user_profiles join tweets on user_profiles.uid = tweets.uid group by tweets.uid
### Instruction:

Convert text to sql: Find the name and partition id for users who tweeted less than twice. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select _ from _ group by _ having count ( _ ) < _ | select user_profiles.name , user_profiles.partitionid from user_profiles join tweets on user_profiles.uid = tweets.uid group by tweets.uid having count ( * ) < 2
### Instruction:

Convert text to sql: Find the name of the user who tweeted more than once, and number of tweets tweeted by them. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select _ , count ( _ ) from _ group by _ having count ( _ ) > _ | select user_profiles.name , count ( * ) from user_profiles join tweets on user_profiles.uid = tweets.uid group by tweets.uid having count ( * ) > 1
### Instruction:

Convert text to sql: Find the average number of followers for the users who do not have any tweet. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select avg ( _ ) from _ where _ not in ( select _ from _ ) | select avg ( followers ) from user_profiles where uid not in ( select uid from tweets )
### Instruction:

Convert text to sql: Find the average number of followers for the users who had some tweets. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select avg ( _ ) from _ where _ in ( select _ from _ ) | select avg ( followers ) from user_profiles where uid in ( select uid from tweets )
### Instruction:

Convert text to sql: Find the maximum and total number of followers of all users. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | 

### Response:

select max ( _ ) , sum ( _ ) from _ | select max ( followers ) , sum ( followers ) from user_profiles
### Instruction:

Convert text to sql: Find the names of all the catalog entries. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | 

### Response:

select distinct ( _ ) from _ | select distinct ( catalog_entry_name ) from catalog_contents
### Instruction:

Convert text to sql: What are all the catalog entry names? | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | 

### Response:

select distinct ( _ ) from _ | select distinct ( catalog_entry_name ) from catalog_contents
### Instruction:

Convert text to sql: Find the list of attribute data types possessed by more than 3 attribute definitions. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | 

### Response:

select _ from _ group by _ having count ( _ ) > _ | select attribute_data_type from attribute_definitions group by attribute_data_type having count ( * ) > 3
### Instruction:

Convert text to sql: What are the attribute data types with more than 3 attribute definitions? | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | 

### Response:

select _ from _ group by _ having count ( _ ) > _ | select attribute_data_type from attribute_definitions group by attribute_data_type having count ( * ) > 3
### Instruction:

Convert text to sql: What is the attribute data type of the attribute with name "Green"? | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | 

### Response:

select _ from _ where _ | select attribute_data_type from attribute_definitions where attribute_name = 'Green'
### Instruction:

Convert text to sql: Find the attribute data type for the attribute named "Green". | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | 

### Response:

select _ from _ where _ | select attribute_data_type from attribute_definitions where attribute_name = 'Green'
### Instruction:

Convert text to sql: Find the name and level of catalog structure with level between 5 and 10. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | 

### Response:

select _ from _ where _ between _ and _ | select catalog_level_name , catalog_level_number from catalog_structure where catalog_level_number between 5 and 10
### Instruction:

Convert text to sql: What are the name and level of catalog structure with level number between 5 and 10 | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | 

### Response:

select _ from _ where _ between _ and _ | select catalog_level_name , catalog_level_number from catalog_structure where catalog_level_number between 5 and 10
### Instruction:

Convert text to sql: Find all the catalog publishers whose name contains "Murray" | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | 

### Response:

select distinct ( _ ) from _ where _ like _ | select distinct ( catalog_publisher ) from catalogs where catalog_publisher like '%Murray%'