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

Convert text to sql: Which customer, who has made at least one payment, has spent the least money? List his or her first name, last name, and the id. | actor : actor_id , first_name , last_name , last_update | address : address_id , address , address2 , district , city_id , postal_code , phone , last_update | category : category_id , name , last_update | city : city_id , city , country_id , last_update | country : country_id , country , last_update | customer : customer_id , store_id , first_name , last_name , email , address_id , active , create_date , last_update | film : film_id , title , description , release_year , language_id , original_language_id , rental_duration , rental_rate , length , replacement_cost , rating , special_features , last_update | film_actor : actor_id , film_id , last_update | film_category : film_id , category_id , last_update | film_text : film_id , title , description | inventory : inventory_id , film_id , store_id , last_update | language : language_id , name , last_update | payment : payment_id , customer_id , staff_id , rental_id , amount , payment_date , last_update | rental : rental_id , rental_date , inventory_id , customer_id , return_date , staff_id , last_update | staff : staff_id , first_name , last_name , address_id , picture , email , store_id , active , username , password , last_update | store : store_id , manager_staff_id , address_id , last_update | address.city_id = city.city_id | city.country_id = country.country_id | customer.store_id = store.store_id | customer.address_id = address.address_id | film.original_language_id = language.language_id | film.language_id = language.language_id | film_actor.film_id = film.film_id | film_actor.actor_id = actor.actor_id | film_category.category_id = category.category_id | film_category.film_id = film.film_id | inventory.film_id = film.film_id | inventory.store_id = store.store_id | payment.staff_id = staff.staff_id | payment.customer_id = customer.customer_id | payment.rental_id = rental.rental_id | rental.customer_id = customer.customer_id | rental.inventory_id = inventory.inventory_id | rental.staff_id = staff.staff_id | staff.address_id = address.address_id | store.address_id = address.address_id | store.manager_staff_id = staff.staff_id | 

### Response:

select _ from _ group by _ order by sum ( _ ) asc limit _ | select customer.first_name , customer.last_name , customer.customer_id from customer join payment on customer.customer_id = payment.customer_id group by customer.customer_id order by sum ( amount ) asc limit 1
### Instruction:

Convert text to sql: What is the full name and id of the customer who has the lowest total amount of payment? | actor : actor_id , first_name , last_name , last_update | address : address_id , address , address2 , district , city_id , postal_code , phone , last_update | category : category_id , name , last_update | city : city_id , city , country_id , last_update | country : country_id , country , last_update | customer : customer_id , store_id , first_name , last_name , email , address_id , active , create_date , last_update | film : film_id , title , description , release_year , language_id , original_language_id , rental_duration , rental_rate , length , replacement_cost , rating , special_features , last_update | film_actor : actor_id , film_id , last_update | film_category : film_id , category_id , last_update | film_text : film_id , title , description | inventory : inventory_id , film_id , store_id , last_update | language : language_id , name , last_update | payment : payment_id , customer_id , staff_id , rental_id , amount , payment_date , last_update | rental : rental_id , rental_date , inventory_id , customer_id , return_date , staff_id , last_update | staff : staff_id , first_name , last_name , address_id , picture , email , store_id , active , username , password , last_update | store : store_id , manager_staff_id , address_id , last_update | address.city_id = city.city_id | city.country_id = country.country_id | customer.store_id = store.store_id | customer.address_id = address.address_id | film.original_language_id = language.language_id | film.language_id = language.language_id | film_actor.film_id = film.film_id | film_actor.actor_id = actor.actor_id | film_category.category_id = category.category_id | film_category.film_id = film.film_id | inventory.film_id = film.film_id | inventory.store_id = store.store_id | payment.staff_id = staff.staff_id | payment.customer_id = customer.customer_id | payment.rental_id = rental.rental_id | rental.customer_id = customer.customer_id | rental.inventory_id = inventory.inventory_id | rental.staff_id = staff.staff_id | staff.address_id = address.address_id | store.address_id = address.address_id | store.manager_staff_id = staff.staff_id | 

### Response:

select _ from _ group by _ order by sum ( _ ) asc limit _ | select customer.first_name , customer.last_name , customer.customer_id from customer join payment on customer.customer_id = payment.customer_id group by customer.customer_id order by sum ( amount ) asc limit 1
### Instruction:

Convert text to sql: What is the genre name of the film HUNGER ROOF? | actor : actor_id , first_name , last_name , last_update | address : address_id , address , address2 , district , city_id , postal_code , phone , last_update | category : category_id , name , last_update | city : city_id , city , country_id , last_update | country : country_id , country , last_update | customer : customer_id , store_id , first_name , last_name , email , address_id , active , create_date , last_update | film : film_id , title , description , release_year , language_id , original_language_id , rental_duration , rental_rate , length , replacement_cost , rating , special_features , last_update | film_actor : actor_id , film_id , last_update | film_category : film_id , category_id , last_update | film_text : film_id , title , description | inventory : inventory_id , film_id , store_id , last_update | language : language_id , name , last_update | payment : payment_id , customer_id , staff_id , rental_id , amount , payment_date , last_update | rental : rental_id , rental_date , inventory_id , customer_id , return_date , staff_id , last_update | staff : staff_id , first_name , last_name , address_id , picture , email , store_id , active , username , password , last_update | store : store_id , manager_staff_id , address_id , last_update | address.city_id = city.city_id | city.country_id = country.country_id | customer.store_id = store.store_id | customer.address_id = address.address_id | film.original_language_id = language.language_id | film.language_id = language.language_id | film_actor.film_id = film.film_id | film_actor.actor_id = actor.actor_id | film_category.category_id = category.category_id | film_category.film_id = film.film_id | inventory.film_id = film.film_id | inventory.store_id = store.store_id | payment.staff_id = staff.staff_id | payment.customer_id = customer.customer_id | payment.rental_id = rental.rental_id | rental.customer_id = customer.customer_id | rental.inventory_id = inventory.inventory_id | rental.staff_id = staff.staff_id | staff.address_id = address.address_id | store.address_id = address.address_id | store.manager_staff_id = staff.staff_id | 

### Response:

select _ from _ where _ | select category.name from category join film_category on category.category_id = film_category.category_id join film on film_category.film_id = film.film_id where film.title = 'HUNGER ROOF'
### Instruction:

Convert text to sql: Return the name of the category to which the film 'HUNGER ROOF' belongs. | actor : actor_id , first_name , last_name , last_update | address : address_id , address , address2 , district , city_id , postal_code , phone , last_update | category : category_id , name , last_update | city : city_id , city , country_id , last_update | country : country_id , country , last_update | customer : customer_id , store_id , first_name , last_name , email , address_id , active , create_date , last_update | film : film_id , title , description , release_year , language_id , original_language_id , rental_duration , rental_rate , length , replacement_cost , rating , special_features , last_update | film_actor : actor_id , film_id , last_update | film_category : film_id , category_id , last_update | film_text : film_id , title , description | inventory : inventory_id , film_id , store_id , last_update | language : language_id , name , last_update | payment : payment_id , customer_id , staff_id , rental_id , amount , payment_date , last_update | rental : rental_id , rental_date , inventory_id , customer_id , return_date , staff_id , last_update | staff : staff_id , first_name , last_name , address_id , picture , email , store_id , active , username , password , last_update | store : store_id , manager_staff_id , address_id , last_update | address.city_id = city.city_id | city.country_id = country.country_id | customer.store_id = store.store_id | customer.address_id = address.address_id | film.original_language_id = language.language_id | film.language_id = language.language_id | film_actor.film_id = film.film_id | film_actor.actor_id = actor.actor_id | film_category.category_id = category.category_id | film_category.film_id = film.film_id | inventory.film_id = film.film_id | inventory.store_id = store.store_id | payment.staff_id = staff.staff_id | payment.customer_id = customer.customer_id | payment.rental_id = rental.rental_id | rental.customer_id = customer.customer_id | rental.inventory_id = inventory.inventory_id | rental.staff_id = staff.staff_id | staff.address_id = address.address_id | store.address_id = address.address_id | store.manager_staff_id = staff.staff_id | 

### Response:

select _ from _ where _ | select category.name from category join film_category on category.category_id = film_category.category_id join film on film_category.film_id = film.film_id where film.title = 'HUNGER ROOF'
### Instruction:

Convert text to sql: How many films are there in each category? List the genre name, genre id and the count. | actor : actor_id , first_name , last_name , last_update | address : address_id , address , address2 , district , city_id , postal_code , phone , last_update | category : category_id , name , last_update | city : city_id , city , country_id , last_update | country : country_id , country , last_update | customer : customer_id , store_id , first_name , last_name , email , address_id , active , create_date , last_update | film : film_id , title , description , release_year , language_id , original_language_id , rental_duration , rental_rate , length , replacement_cost , rating , special_features , last_update | film_actor : actor_id , film_id , last_update | film_category : film_id , category_id , last_update | film_text : film_id , title , description | inventory : inventory_id , film_id , store_id , last_update | language : language_id , name , last_update | payment : payment_id , customer_id , staff_id , rental_id , amount , payment_date , last_update | rental : rental_id , rental_date , inventory_id , customer_id , return_date , staff_id , last_update | staff : staff_id , first_name , last_name , address_id , picture , email , store_id , active , username , password , last_update | store : store_id , manager_staff_id , address_id , last_update | address.city_id = city.city_id | city.country_id = country.country_id | customer.store_id = store.store_id | customer.address_id = address.address_id | film.original_language_id = language.language_id | film.language_id = language.language_id | film_actor.film_id = film.film_id | film_actor.actor_id = actor.actor_id | film_category.category_id = category.category_id | film_category.film_id = film.film_id | inventory.film_id = film.film_id | inventory.store_id = store.store_id | payment.staff_id = staff.staff_id | payment.customer_id = customer.customer_id | payment.rental_id = rental.rental_id | rental.customer_id = customer.customer_id | rental.inventory_id = inventory.inventory_id | rental.staff_id = staff.staff_id | staff.address_id = address.address_id | store.address_id = address.address_id | store.manager_staff_id = staff.staff_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select category.name , film_category.category_id , count ( * ) from film_category join category on film_category.category_id = category.category_id group by film_category.category_id
### Instruction:

Convert text to sql: What are the names and ids of the different categories, and how many films are in each? | actor : actor_id , first_name , last_name , last_update | address : address_id , address , address2 , district , city_id , postal_code , phone , last_update | category : category_id , name , last_update | city : city_id , city , country_id , last_update | country : country_id , country , last_update | customer : customer_id , store_id , first_name , last_name , email , address_id , active , create_date , last_update | film : film_id , title , description , release_year , language_id , original_language_id , rental_duration , rental_rate , length , replacement_cost , rating , special_features , last_update | film_actor : actor_id , film_id , last_update | film_category : film_id , category_id , last_update | film_text : film_id , title , description | inventory : inventory_id , film_id , store_id , last_update | language : language_id , name , last_update | payment : payment_id , customer_id , staff_id , rental_id , amount , payment_date , last_update | rental : rental_id , rental_date , inventory_id , customer_id , return_date , staff_id , last_update | staff : staff_id , first_name , last_name , address_id , picture , email , store_id , active , username , password , last_update | store : store_id , manager_staff_id , address_id , last_update | address.city_id = city.city_id | city.country_id = country.country_id | customer.store_id = store.store_id | customer.address_id = address.address_id | film.original_language_id = language.language_id | film.language_id = language.language_id | film_actor.film_id = film.film_id | film_actor.actor_id = actor.actor_id | film_category.category_id = category.category_id | film_category.film_id = film.film_id | inventory.film_id = film.film_id | inventory.store_id = store.store_id | payment.staff_id = staff.staff_id | payment.customer_id = customer.customer_id | payment.rental_id = rental.rental_id | rental.customer_id = customer.customer_id | rental.inventory_id = inventory.inventory_id | rental.staff_id = staff.staff_id | staff.address_id = address.address_id | store.address_id = address.address_id | store.manager_staff_id = staff.staff_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select category.name , film_category.category_id , count ( * ) from film_category join category on film_category.category_id = category.category_id group by film_category.category_id
### Instruction:

Convert text to sql: Which film has the most copies in the inventory? List both title and id. | actor : actor_id , first_name , last_name , last_update | address : address_id , address , address2 , district , city_id , postal_code , phone , last_update | category : category_id , name , last_update | city : city_id , city , country_id , last_update | country : country_id , country , last_update | customer : customer_id , store_id , first_name , last_name , email , address_id , active , create_date , last_update | film : film_id , title , description , release_year , language_id , original_language_id , rental_duration , rental_rate , length , replacement_cost , rating , special_features , last_update | film_actor : actor_id , film_id , last_update | film_category : film_id , category_id , last_update | film_text : film_id , title , description | inventory : inventory_id , film_id , store_id , last_update | language : language_id , name , last_update | payment : payment_id , customer_id , staff_id , rental_id , amount , payment_date , last_update | rental : rental_id , rental_date , inventory_id , customer_id , return_date , staff_id , last_update | staff : staff_id , first_name , last_name , address_id , picture , email , store_id , active , username , password , last_update | store : store_id , manager_staff_id , address_id , last_update | address.city_id = city.city_id | city.country_id = country.country_id | customer.store_id = store.store_id | customer.address_id = address.address_id | film.original_language_id = language.language_id | film.language_id = language.language_id | film_actor.film_id = film.film_id | film_actor.actor_id = actor.actor_id | film_category.category_id = category.category_id | film_category.film_id = film.film_id | inventory.film_id = film.film_id | inventory.store_id = store.store_id | payment.staff_id = staff.staff_id | payment.customer_id = customer.customer_id | payment.rental_id = rental.rental_id | rental.customer_id = customer.customer_id | rental.inventory_id = inventory.inventory_id | rental.staff_id = staff.staff_id | staff.address_id = address.address_id | store.address_id = address.address_id | store.manager_staff_id = staff.staff_id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select film.title , film.film_id from film join inventory on film.film_id = inventory.film_id group by film.film_id order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: What is the title and id of the film that has the greatest number of copies in inventory? | actor : actor_id , first_name , last_name , last_update | address : address_id , address , address2 , district , city_id , postal_code , phone , last_update | category : category_id , name , last_update | city : city_id , city , country_id , last_update | country : country_id , country , last_update | customer : customer_id , store_id , first_name , last_name , email , address_id , active , create_date , last_update | film : film_id , title , description , release_year , language_id , original_language_id , rental_duration , rental_rate , length , replacement_cost , rating , special_features , last_update | film_actor : actor_id , film_id , last_update | film_category : film_id , category_id , last_update | film_text : film_id , title , description | inventory : inventory_id , film_id , store_id , last_update | language : language_id , name , last_update | payment : payment_id , customer_id , staff_id , rental_id , amount , payment_date , last_update | rental : rental_id , rental_date , inventory_id , customer_id , return_date , staff_id , last_update | staff : staff_id , first_name , last_name , address_id , picture , email , store_id , active , username , password , last_update | store : store_id , manager_staff_id , address_id , last_update | address.city_id = city.city_id | city.country_id = country.country_id | customer.store_id = store.store_id | customer.address_id = address.address_id | film.original_language_id = language.language_id | film.language_id = language.language_id | film_actor.film_id = film.film_id | film_actor.actor_id = actor.actor_id | film_category.category_id = category.category_id | film_category.film_id = film.film_id | inventory.film_id = film.film_id | inventory.store_id = store.store_id | payment.staff_id = staff.staff_id | payment.customer_id = customer.customer_id | payment.rental_id = rental.rental_id | rental.customer_id = customer.customer_id | rental.inventory_id = inventory.inventory_id | rental.staff_id = staff.staff_id | staff.address_id = address.address_id | store.address_id = address.address_id | store.manager_staff_id = staff.staff_id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select film.title , film.film_id from film join inventory on film.film_id = inventory.film_id group by film.film_id order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: What is the film title and inventory id of the item in the inventory which was rented most frequently? | actor : actor_id , first_name , last_name , last_update | address : address_id , address , address2 , district , city_id , postal_code , phone , last_update | category : category_id , name , last_update | city : city_id , city , country_id , last_update | country : country_id , country , last_update | customer : customer_id , store_id , first_name , last_name , email , address_id , active , create_date , last_update | film : film_id , title , description , release_year , language_id , original_language_id , rental_duration , rental_rate , length , replacement_cost , rating , special_features , last_update | film_actor : actor_id , film_id , last_update | film_category : film_id , category_id , last_update | film_text : film_id , title , description | inventory : inventory_id , film_id , store_id , last_update | language : language_id , name , last_update | payment : payment_id , customer_id , staff_id , rental_id , amount , payment_date , last_update | rental : rental_id , rental_date , inventory_id , customer_id , return_date , staff_id , last_update | staff : staff_id , first_name , last_name , address_id , picture , email , store_id , active , username , password , last_update | store : store_id , manager_staff_id , address_id , last_update | address.city_id = city.city_id | city.country_id = country.country_id | customer.store_id = store.store_id | customer.address_id = address.address_id | film.original_language_id = language.language_id | film.language_id = language.language_id | film_actor.film_id = film.film_id | film_actor.actor_id = actor.actor_id | film_category.category_id = category.category_id | film_category.film_id = film.film_id | inventory.film_id = film.film_id | inventory.store_id = store.store_id | payment.staff_id = staff.staff_id | payment.customer_id = customer.customer_id | payment.rental_id = rental.rental_id | rental.customer_id = customer.customer_id | rental.inventory_id = inventory.inventory_id | rental.staff_id = staff.staff_id | staff.address_id = address.address_id | store.address_id = address.address_id | store.manager_staff_id = staff.staff_id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select film.title , inventory.inventory_id from film join inventory on film.film_id = inventory.film_id join rental on inventory.inventory_id = rental.inventory_id group by inventory.inventory_id order by count ( * ) desc limit 1