db_id stringlengths 4 31 | text stringlengths 370 4.84k |
|---|---|
bike_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the dates that have an average sea level pressure between 30.3 and 31? | station : id , name , lat , long , dock_... |
bike_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Find the day in which the difference between the max temperature and min temperature was the smallest. Also report the dif... |
bike_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the days that had the smallest temperature range, and what was that range? | station : id , name , lat , long , d... |
bike_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the id and name of the stations that have ever had more than 12 bikes available? | station : id , name , lat , lo... |
bike_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the different ids and names of the stations that have had more than 12 bikes available? | station : id , name , l... |
bike_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Give me the zip code where the average mean humidity is below 70 and at least 100 trips took place. | station : id , name ... |
bike_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the zip codes that have an average mean humidity below 70 and had at least 100 trips come through there? | statio... |
bike_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the names of stations that are located in Palo Alto city but have never been the ending point of trips more than ... |
bike_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the names of the stations that are located in Palo Alto but have never been the ending point of the trips | stati... |
bike_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: How many trips started from Mountain View city and ended at Palo Alto city? | station : id , name , lat , long , dock_coun... |
bike_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: How many trips stated from a station in Mountain View and ended at one in Palo Alto? | station : id , name , lat , long ,... |
bike_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What is the average latitude and longitude of the starting points of all trips? | station : id , name , lat , long , dock_... |
bike_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What is the average latitude and longitude of all starting stations for the trips? | station : id , name , lat , long , do... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: How many books are there? | publication : publication_id , book_id , publisher , publication_date , price | book : book_id... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: List the writers of the books in ascending alphabetical order. | publication : publication_id , book_id , publisher , publ... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: List the titles of the books in ascending order of issues. | publication : publication_id , book_id , publisher , publicat... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the titles of the books whose writer is not "Elaine Lee"? | publication : publication_id , book_id , publisher , ... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the title and issues of the books? | publication : publication_id , book_id , publisher , publication_date , pric... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the dates of publications in descending order of price? | publication : publication_id , book_id , publisher , pu... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the distinct publishers of publications with price higher than 5000000? | publication : publication_id , book_id ... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: List the publisher of the publication with the highest price. | publication : publication_id , book_id , publisher , publi... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: List the publication dates of publications with 3 lowest prices. | publication : publication_id , book_id , publisher , pu... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Show the title and publication dates of books. | publication : publication_id , book_id , publisher , publication_date , p... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Show writers who have published a book with price more than 4000000. | publication : publication_id , book_id , publisher ... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Show the titles of books in descending order of publication price. | publication : publication_id , book_id , publisher , ... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Show publishers that have more than one publication. | publication : publication_id , book_id , publisher , publication_da... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Show different publishers together with the number of publications they have. | publication : publication_id , book_id , p... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Please show the most common publication date. | publication : publication_id , book_id , publisher , publication_date , pr... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: List the writers who have written more than one book. | publication : publication_id , book_id , publisher , publication_d... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: List the titles of books that are not published. | publication : publication_id , book_id , publisher , publication_date ,... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Show the publishers that have publications with price higher than 10000000 and publications with price lower than 5000000.... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What is the number of distinct publication dates? | publication : publication_id , book_id , publisher , publication_date ... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: How many distinct publication dates are there in our record? | publication : publication_id , book_id , publisher , public... |
book_2 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Show the prices of publications whose publisher is either "Person" or "Wiley" | publication : publication_id , book_id , p... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: How many actors are there? | musical : musical_id , name , year , award , category , nominee , result | actor : actor_id ,... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Count the number of actors. | musical : musical_id , name , year , award , category , nominee , result | actor : actor_id ... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: List the name of actors in ascending alphabetical order. | musical : musical_id , name , year , award , category , nominee... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the names of actors, ordered alphabetically? | musical : musical_id , name , year , award , category , nominee , ... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the characters and duration of actors? | musical : musical_id , name , year , award , category , nominee , result... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Return the characters and durations for each actor. | musical : musical_id , name , year , award , category , nominee , re... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: List the name of actors whose age is not 20. | musical : musical_id , name , year , award , category , nominee , result | ... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the names of actors who are not 20 years old? | musical : musical_id , name , year , award , category , nominee ,... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the characters of actors in descending order of age? | musical : musical_id , name , year , award , category , no... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Return the characters for actors, ordered by age descending. | musical : musical_id , name , year , award , category , nom... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What is the duration of the oldest actor? | musical : musical_id , name , year , award , category , nominee , result | act... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Return the duration of the actor with the greatest age. | musical : musical_id , name , year , award , category , nominee ... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the names of musicals with nominee "Bob Fosse"? | musical : musical_id , name , year , award , category , nominee... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Return the names of musicals who have the nominee Bob Fosse. | musical : musical_id , name , year , award , category , nom... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the distinct nominees of the musicals with the award that is not "Tony Award"? | musical : musical_id , name , ye... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Return the different nominees of musicals that have an award that is not the Tony Award. | musical : musical_id , name , y... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Show names of actors and names of musicals they are in. | musical : musical_id , name , year , award , category , nominee ... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the names of actors and the musicals that they are in? | musical : musical_id , name , year , award , category , ... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Show names of actors that have appeared in musical with name "The Phantom of the Opera". | musical : musical_id , name , y... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the names of actors who have been in the musical titled The Phantom of the Opera? | musical : musical_id , name ,... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Show names of actors in descending order of the year their musical is awarded. | musical : musical_id , name , year , awar... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the names of actors ordered descending by the year in which their musical was awarded? | musical : musical_id , n... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Show names of musicals and the number of actors who have appeared in the musicals. | musical : musical_id , name , year , ... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: How many actors have appeared in each musical? | musical : musical_id , name , year , award , category , nominee , result ... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Show names of musicals which have at least three actors. | musical : musical_id , name , year , award , category , nominee... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the names of musicals who have at 3 or more actors? | musical : musical_id , name , year , award , category , nom... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Show different nominees and the number of musicals they have been nominated. | musical : musical_id , name , year , award ... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: How many musicals has each nominee been nominated for? | musical : musical_id , name , year , award , category , nominee ,... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Please show the nominee who has been nominated the greatest number of times. | musical : musical_id , name , year , award ... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Who is the nominee who has been nominated for the most musicals? | musical : musical_id , name , year , award , category ,... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: List the most common result of the musicals. | musical : musical_id , name , year , award , category , nominee , result | ... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Return the most frequent result across all musicals. | musical : musical_id , name , year , award , category , nominee , r... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: List the nominees that have been nominated more than two musicals. | musical : musical_id , name , year , award , category... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Who are the nominees who have been nominated more than two times? | musical : musical_id , name , year , award , category ... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: List the name of musicals that do not have actors. | musical : musical_id , name , year , award , category , nominee , res... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the names of musicals who have no actors? | musical : musical_id , name , year , award , category , nominee , res... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Show the nominees that have nominated musicals for both "Tony Award" and "Drama Desk Award". | musical : musical_id , name... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Who are the nominees who have been nominated for both a Tony Award and a Drama Desk Award? | musical : musical_id , name ,... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Show the musical nominee with award "Bob Fosse" or "Cleavant Derricks". | musical : musical_id , name , year , award , cat... |
musical | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 , ... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Find the emails of the user named "Mary". | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : ui... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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_... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: How many users are there? | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: How many followers does each user have? | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid ... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Find the number of followers for each user. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : ... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Find the number of tweets in record. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , n... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Find the number of users who posted some tweets. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profil... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 ,... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Find the names of users whose emails contain 'superstar' or 'edu'. | follows : f1 , f2 | tweets : id , uid , text , create... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Return the text of tweets about the topic 'intern'. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_pro... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 , c... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 , cr... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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_p... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 | use... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 , create... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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. ... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 , ... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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_profi... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 , ... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 , cre... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 :... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 , te... |
twitter_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 , c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.