db_id stringlengths 4 31 | SQL stringlengths 18 1.45k | input_sequence stringlengths 148 11k | question stringlengths 16 325 |
|---|---|---|---|
movie_3 | select actor_id from actor where last_name = 'kilmer' | Question: list the actors' ids who have 'kilmer' as last name. | Tables: film_text -> film_id, title, description. 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... | list the actors' ids who have 'kilmer' as last name. |
movie_3 | select title from film where replacement_cost = ( select min(replacement_cost) from film ) | Question: list down the films titles with the lowest replacement cost under the general audiences rating. | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. category -> c... | list down the films titles with the lowest replacement cost under the general audiences rating. |
movie_3 | select title, description, special_features from film where length = ( select max(length) from film ) limit 5 | Question: among the films with the longest duration, list any five title with their descriptions and special features. | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. ... | among the films with the longest duration, list any five title with their descriptions and special features. |
movie_3 | select count(distinct rental_id) from rental where date(rental_date) between '2005-05-26' and '2005-05-30' | Question: how many films rented on 26th may, 2005 were returned on 30th may, 2005? | Tables: film_text -> film_id, title, description. 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_... | how many films rented on 26th may, 2005 were returned on 30th may, 2005? |
movie_3 | select avg(amount) from payment group by customer_id | Question: calculate the average payment amount per customer. | Tables: film_text -> film_id, title, description. 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_i... | calculate the average payment amount per customer. |
movie_3 | select first_name, last_name, email from staff where store_id = 2 | Question: what is the name and email of the staff in store id 2? | Tables: film_text -> film_id, title, description. 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 -> ci... | what is the name and email of the staff in store id 2? |
movie_3 | select cast(sum(iif(active = 0, 1, 0)) as real) * 100 / count(customer_id) from customer | Question: how many percent of customers were inactive? | Tables: film_text -> film_id, title, description. 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, cit... | how many percent of customers were inactive? |
movie_3 | select description, title from film_text where film_id = 996 | Question: what is the description and film title of id 996? | Tables: film_text -> film_id, title, description. 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... | what is the description and film title of id 996? |
movie_3 | select sum(amount) from payment where substr(payment_date, 1, 7) = '2005-08' | Question: calculate customers' total payment amount in august, 2005. | Tables: film_text -> film_id, title, description. 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 -... | calculate customers' total payment amount in august, 2005. |
movie_3 | select t3.title from actor as t1 inner join film_actor as t2 on t1.actor_id = t2.actor_id inner join film as t3 on t2.film_id = t3.film_id where t1.first_name = 'emily' and t1.last_name = 'dee' | Question: list down the film titles performed by emily dee. | Tables: film_text -> film_id, title, description. 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... | list down the film titles performed by emily dee. |
movie_3 | select t3.first_name, t3.last_name from film_actor as t1 inner join film as t2 on t1.film_id = t2.film_id inner join actor as t3 on t1.actor_id = t3.actor_id where t2.title = 'chocolate duck' | Question: list down the actors' full names who performed in 'chocolate duck' film. | Tables: film_text -> film_id, title, description. 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_... | list down the actors' full names who performed in 'chocolate duck' film. |
movie_3 | select count(t1.film_id) from film as t1 inner join film_category as t2 on t1.film_id = t2.film_id inner join category as t3 on t2.category_id = t3.category_id where t3.name = 'horror' and t1.rating = 'pg-13' | Question: how many films in the horror category were included in pg-13-rated? | Tables: film_text -> film_id, title, description. 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_updat... | how many films in the horror category were included in pg-13-rated? |
movie_3 | select t5.name from actor as t1 inner join film_actor as t2 on t1.actor_id = t2.actor_id inner join film as t3 on t2.film_id = t3.film_id inner join film_category as t4 on t2.film_id = t4.film_id inner join category as t5 on t4.category_id = t5.category_id where t1.first_name = 'judy' and t1.last_name = 'dean' | Question: distinguish the films performed by judy dean according to category. | Tables: film_text -> film_id, title, description. 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_updat... | distinguish the films performed by judy dean according to category. |
movie_3 | select t1.title from film as t1 inner join film_category as t2 on t1.film_id = t2.film_id inner join category as t3 on t2.category_id = t3.category_id where t3.name = 'documentary' limit 5 | Question: write down any five film names under the documentary category. | Tables: film_text -> film_id, title, description. 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. ci... | write down any five film names under the documentary category. |
movie_3 | select t2.name, t1.replacement_cost / t1.rental_duration as cost from film as t1 inner join language as t2 on t1.language_id = t2.language_id where t1.title = 'untouchables sunrise' | Question: mention the language of untouchables sunrise film and calculate its rental cost per day. | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. category -> category... | mention the language of untouchables sunrise film and calculate its rental cost per day. |
movie_3 | select t1.title from film as t1 inner join inventory as t2 on t1.film_id = t2.film_id inner join rental as t3 on t2.inventory_id = t3.inventory_id where substr(t3.rental_date, 1, 10) = '2005-05-24' | Question: list the films' titles which were rented on 24th may,2005. | Tables: film_text -> film_id, title, description. 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 -... | list the films' titles which were rented on 24th may,2005. |
movie_3 | select t4.title from customer as t1 inner join rental as t2 on t1.customer_id = t2.customer_id inner join inventory as t3 on t2.inventory_id = t3.inventory_id inner join film as t4 on t3.film_id = t4.film_id where t1.first_name = 'brian' and t1.last_name = 'wyman' and strftime('%y', t2.rental_date) = '2005' and strftim... | Question: list the films' titles which were rented by brian wyman in july, 2005. | Tables: film_text -> film_id, title, description. 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_up... | list the films' titles which were rented by brian wyman in july, 2005. |
movie_3 | select t4.inventory_id, t1.first_name, t1.last_name from actor as t1 inner join film_actor as t2 on t1.actor_id = t2.actor_id inner join film as t3 on t2.film_id = t3.film_id inner join inventory as t4 on t2.film_id = t4.film_id where t3.title = 'streetcar intentions' | Question: write down the inventories' ids and actors' names of 'streetcar intentions'. | Tables: film_text -> film_id, title, description. 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, l... | write down the inventories' ids and actors' names of 'streetcar intentions'. |
movie_3 | select t3.title, t2.name from film_category as t1 inner join category as t2 on t1.category_id = t2.category_id inner join film as t3 on t1.film_id = t3.film_id inner join inventory as t4 on t3.film_id = t4.film_id inner join customer as t5 on t4.store_id = t5.store_id inner join rental as t6 on t4.inventory_id = t6.inv... | Question: among the films rented by natalie meyer, describe the titles and categories of the films which were rented in february 2006. | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phon... | among the films rented by natalie meyer, describe the titles and categories of the films which were rented in february 2006. |
movie_3 | select count(t1.rental_id) from rental as t1 inner join customer as t2 on t1.customer_id = t2.customer_id where t2.first_name = 'eleanor' and t2.last_name = 'hunt' | Question: how many rental ids belong to eleanor hunt? | Tables: film_text -> film_id, title, description. 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... | how many rental ids belong to eleanor hunt? |
movie_3 | select t4.first_name, t4.last_name, t6.city from film as t1 inner join inventory as t2 on t1.film_id = t2.film_id inner join rental as t3 on t2.inventory_id = t3.inventory_id inner join customer as t4 on t3.customer_id = t4.customer_id inner join address as t5 on t4.address_id = t5.address_id inner join city as t6 on t... | Question: describe the full names and cities of the customers who rented 'dream pickup'. | Tables: film_text -> film_id, title, description. 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,... | describe the full names and cities of the customers who rented 'dream pickup'. |
movie_3 | select cast(sum(iif(t1.country = 'india', 1, 0)) as real) * 100 / count(t4.customer_id) from country as t1 inner join city as t2 on t1.country_id = t2.country_id inner join address as t3 on t2.city_id = t3.city_id inner join customer as t4 on t3.address_id = t4.address_id | Question: calculate how many percent of customers were located in india. | Tables: film_text -> film_id, title, description. 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. ci... | calculate how many percent of customers were located in india. |
movie_3 | select cast((sum(iif(t1.first_name = 'angela' and t1.last_name = 'witherspoon', 1, 0)) - sum(iif(t1.first_name = 'mary' and t1.last_name = 'keitel', 1, 0))) as real) * 100 / sum(iif(t1.first_name = 'mary' and t1.last_name = 'keitel', 1, 0)) from actor as t1 inner join film_actor as t2 on t1.actor_id = t2.actor_id | Question: how much percentage of the film did mary keitel perform more than angela witherspoon? | Tables: film_text -> film_id, title, description. 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... | how much percentage of the film did mary keitel perform more than angela witherspoon? |
movie_3 | select t1.email, t2.address, t3.city, t4.country from customer as t1 inner join address as t2 on t1.address_id = t2.address_id inner join city as t3 on t2.city_id = t3.city_id inner join country as t4 on t3.country_id = t4.country_id where t1.first_name = 'lillie' and t1.last_name = 'kim' | Question: provide the email, address, city, and country of the customer lillie kim. | Tables: film_text -> film_id, title, description. 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... | provide the email, address, city, and country of the customer lillie kim. |
movie_3 | select t3.first_name, t3.last_name from staff as t1 inner join address as t2 on t1.address_id = t2.address_id inner join customer as t3 on t2.address_id = t3.address_id where t1.first_name = 'mike' and t1.last_name = 'hillyer' limit 5 | Question: provide any 5 customers' full names who have rented from mike hillyer. | Tables: film_text -> film_id, title, description. 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_up... | provide any 5 customers' full names who have rented from mike hillyer. |
movie_3 | select sum(t2.amount) from customer as t1 inner join payment as t2 on t1.customer_id = t2.customer_id where t1.first_name = 'diane' and t1.last_name = 'collins' | Question: calculate the total payment amount by diane collins. | Tables: film_text -> film_id, title, description. 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... | calculate the total payment amount by diane collins. |
movie_3 | select distinct t2.first_name, t2.last_name, t2.email from payment as t1 inner join customer as t2 on t1.customer_id = t2.customer_id inner join address as t3 on t2.address_id = t3.address_id where t1.amount > ( select avg(amount) from payment ) * 0.7 | Question: provide the full names and emails of customers whose payments were greater than 70% of the average. | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. category ... | provide the full names and emails of customers whose payments were greater than 70% of the average. |
movie_3 | select count(film_id) from film where rental_rate = 0.99 | Question: how many films have a rental rate of 0.99? | Tables: film_text -> film_id, title, description. 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,... | how many films have a rental rate of 0.99? |
movie_3 | select count(customer_id) from customer where last_name = 'thomas' and customer_id < 100 | Question: among the customers with customer id of 100 and below, how many of them have thomas as their last name? | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. categ... | among the customers with customer id of 100 and below, how many of them have thomas as their last name? |
movie_3 | select t1.last_name from actor as t1 inner join film_actor as t2 on t1.actor_id = t2.actor_id inner join film as t3 on t2.film_id = t3.film_id where t3.description = 'a thoughtful drama of a composer and a feminist who must meet a secret agent in the canadian rockies' | Question: list the actor's last name that starred the film with the description of 'a thoughtful drama of a composer and a feminist who must meet a secret agent in the canadian rockies'. | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, add... | list the actor's last name that starred the film with the description of 'a thoughtful drama of a composer and a feminist who must meet a secret agent in the canadian rockies'. |
movie_3 | select t3.title from actor as t1 inner join film_actor as t2 on t1.actor_id = t2.actor_id inner join film as t3 on t2.film_id = t3.film_id where t1.first_name = 'liza' and t1.last_name = 'bergman' order by replacement_cost desc limit 1 | Question: give the title of the film starred by liza bergman with the highest replacement cost. | Tables: film_text -> film_id, title, description. 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... | give the title of the film starred by liza bergman with the highest replacement cost. |
movie_3 | select t1.title from film as t1 inner join inventory as t2 on t1.film_id = t2.film_id where t2.store_id = 2 order by rental_rate desc limit 1 | Question: among films with store id of 2, list the title of films with the highest rental rate. | Tables: film_text -> film_id, title, description. 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... | among films with store id of 2, list the title of films with the highest rental rate. |
movie_3 | select t3.title from actor as t1 inner join film_actor as t2 on t1.actor_id = t2.actor_id inner join film as t3 on t2.film_id = t3.film_id where t1.first_name = 'angelina' and t1.last_name = 'astaire' and t3.replacement_cost = 27.99 | Question: among the films starred by angelina astaire, what is the title of the film with a replacement cost of 27.99? | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. ... | among the films starred by angelina astaire, what is the title of the film with a replacement cost of 27.99? |
movie_3 | select t2.inventory_id from film as t1 inner join inventory as t2 on t1.film_id = t2.film_id where t1.title = 'african egg' | Question: list the inventory id of the film titled 'african egg'. | Tables: film_text -> film_id, title, description. 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 -> c... | list the inventory id of the film titled 'african egg'. |
movie_3 | select count(t1.actor_id) from actor as t1 inner join film_actor as t2 on t1.actor_id = t2.actor_id inner join film as t3 on t2.film_id = t3.film_id where t3.length = 113 and t1.first_name = 'kirk' and t1.last_name = 'jovovich' | Question: in films with a length duration of 113 minutes, how many of the films are starred by kirk jovovich? | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. category ... | in films with a length duration of 113 minutes, how many of the films are starred by kirk jovovich? |
movie_3 | select count(t1.film_id) from film as t1 inner join inventory as t2 on t1.film_id = t2.film_id where t2.inventory_id between 20 and 60 and t1.rating = 'g' | Question: in the film with an inventory id between 20 to 60, how many of the films have a g rating? | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. category -> categor... | in the film with an inventory id between 20 to 60, how many of the films have a g rating? |
movie_3 | select count(t1.actor_id) from actor as t1 inner join film_actor as t2 on t1.actor_id = t2.actor_id inner join film as t3 on t2.film_id = t3.film_id where t3.rental_rate = 4.99 and t1.first_name = 'bob' and t1.last_name = 'fawcett' | Question: among films with a rental rate of 4.99, what is the total number of films starred by bob fawcett? | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. category ->... | among films with a rental rate of 4.99, what is the total number of films starred by bob fawcett? |
movie_3 | select t4.inventory_id from actor as t1 inner join film_actor as t2 on t1.actor_id = t2.actor_id inner join film as t3 on t2.film_id = t3.film_id inner join inventory as t4 on t3.film_id = t4.film_id where t3.length between 110 and 150 and t1.first_name = 'russell' and t1.last_name = 'close' | Question: what is the inventory id of the films starred by russell close with a duration between 110 to 150 minutes? | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. ca... | what is the inventory id of the films starred by russell close with a duration between 110 to 150 minutes? |
movie_3 | select t2.store_id, t2.inventory_id from film as t1 inner join inventory as t2 on t1.film_id = t2.film_id order by t1.length desc limit 1 | Question: what is the store and inventory id of the film with the longest duration? | Tables: film_text -> film_id, title, description. 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... | what is the store and inventory id of the film with the longest duration? |
movie_3 | select t3.title from actor as t1 inner join film_actor as t2 on t1.actor_id = t2.actor_id inner join film as t3 on t2.film_id = t3.film_id where t3.length between 110 and 150 and t1.first_name = 'russell' and t1.last_name = 'close' | Question: list the titles of the films starred by elvis marx. | Tables: film_text -> film_id, title, description. 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_... | list the titles of the films starred by elvis marx. |
movie_3 | select t4.inventory_id from actor as t1 inner join film_actor as t2 on t1.actor_id = t2.actor_id inner join film as t3 on t2.film_id = t3.film_id inner join inventory as t4 on t3.film_id = t4.film_id where t1.first_name = 'lucille' and t1.last_name = 'dee' and t3.rental_rate = 4.99 | Question: in films with rental rate of 4.99, list down the inventory id of the films starred by lucille dee. | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. category -... | in films with rental rate of 4.99, list down the inventory id of the films starred by lucille dee. |
movie_3 | select t2.store_id from film as t1 inner join inventory as t2 on t1.film_id = t2.film_id where t1.rental_rate > ( select avg(t1.rental_rate) * 0.6 from film as t1 ) | Question: list the store id of the films with a rental rate greater than the 60% of average rental rate of all listed films. | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_up... | list the store id of the films with a rental rate greater than the 60% of average rental rate of all listed films. |
movie_3 | select cast(sum(iif(t3.rating = 'g', 1, 0)) as real) / count(t3.film_id) from actor as t1 inner join film_actor as t2 on t1.actor_id = t2.actor_id inner join film as t3 on t2.film_id = t3.film_id where t1.first_name = 'elvis' and t1.last_name = 'marx' | Question: among the films starred by nick wahlberg, what is the percentage of the films with g rating? | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. category -> cate... | among the films starred by nick wahlberg, what is the percentage of the films with g rating? |
movie_3 | select address from address where district = 'texas' and city_id = ( select min(city_id) from address where district = 'texas' ) | Question: list the address in texas in the ascending order of city id. | Tables: film_text -> film_id, title, description. 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... | list the address in texas in the ascending order of city id. |
movie_3 | select first_name, last_name, email from customer where strftime('%y',create_date) = '2006' and active = 0 | Question: find the full name and email address of inactive customers whose record was created in 2006. | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. category -> cate... | find the full name and email address of inactive customers whose record was created in 2006. |
movie_3 | select cast(sum(iif(rating = 'pg-13', 1, 0)) as real) * 100 / count(film_id) from film | Question: what percentage of the movies are pg-13? | Tables: film_text -> film_id, title, description. 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, c... | what percentage of the movies are pg-13? |
movie_3 | select title from film order by rental_rate / rental_duration desc limit 10 | Question: please list the top ten movies with the most price per day in descending order of price per day. | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. category -> ... | please list the top ten movies with the most price per day in descending order of price per day. |
movie_3 | select avg(amount) from payment where customer_id = 15 | Question: calculate the average rent amount paid by the customer with customer id 15. | Tables: film_text -> film_id, title, description. 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, la... | calculate the average rent amount paid by the customer with customer id 15. |
movie_3 | select count(customer_id) from rental where return_date - rental_date > ( select avg(return_date - rental_date) from rental ) | Question: how many customers rented for an above-average period? | Tables: film_text -> film_id, title, description. 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 -> ci... | how many customers rented for an above-average period? |
movie_3 | select cast(sum(iif(t2.name = 'horror', 1, 0)) as real) * 100 / count(t2.category_id) from film_category as t1 inner join category as t2 on t1.category_id = t2.category_id | Question: among the movies, what percentage are horror? | Tables: film_text -> film_id, title, description. 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, ci... | among the movies, what percentage are horror? |
movie_3 | select t.first_name, t.last_name from ( select t2.first_name, t2.last_name, count(t1.film_id) as num from film_actor as t1 inner join actor as t2 on t1.actor_id = t2.actor_id group by t2.first_name, t2.last_name ) as t order by t.num desc limit 1 | Question: give the full name of the actor who acted in the most number of movies? | Tables: film_text -> film_id, title, description. 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_u... | give the full name of the actor who acted in the most number of movies? |
movie_3 | select t.first_name, t.last_name from ( select t1.first_name, t1.last_name, count(t2.film_id) as num from actor as t1 inner join film_actor as t2 on t1.actor_id = t2.actor_id inner join film_category as t3 on t2.film_id = t3.film_id where t3.category_id = 7 group by t1.first_name, t1.last_name ) as t order by t.num des... | Question: give the full name of the actor who acted the most in drama movies? | Tables: film_text -> film_id, title, description. 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_updat... | give the full name of the actor who acted the most in drama movies? |
movie_3 | select avg(iif(t4.country = 'australia', 1, 0)) - avg(iif(t4.country = 'canada', 1, 0)) as diff from customer as t1 inner join address as t2 on t1.address_id = t2.address_id inner join city as t3 on t2.city_id = t3.city_id inner join country as t4 on t3.country_id = t4.country_id | Question: what is the difference in the average number of films rented each day in australia and canada? | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. category -> ca... | what is the difference in the average number of films rented each day in australia and canada? |
movie_3 | select cast(sum(iif(t4.name = 'action', 1, 0)) as real) * 100 / count(t1.actor_id) from actor as t1 inner join film_actor as t2 on t1.actor_id = t2.actor_id inner join film_category as t3 on t2.film_id = t3.film_id inner join category as t4 on t3.category_id = t4.category_id where t1.first_name = 'reese' and t1.last_na... | Question: of the movies in which reese kilmer acted, what percentage are action movies? | Tables: film_text -> film_id, title, description. 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, ... | of the movies in which reese kilmer acted, what percentage are action movies? |
movie_3 | select sum(t1.amount) from payment as t1 inner join rental as t2 on t1.rental_id = t2.rental_id inner join inventory as t3 on t2.inventory_id = t3.inventory_id inner join film as t4 on t3.film_id = t4.film_id where t4.title = 'clockwork paradice' | Question: give the total amount of rent for the movie clockwork paradice. | Tables: film_text -> film_id, title, description. 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. c... | give the total amount of rent for the movie clockwork paradice. |
movie_3 | select t.first_name, t.last_name from ( select t1.first_name, t1.last_name, count(t1.customer_id) as num from customer as t1 inner join rental as t2 on t1.customer_id = t2.customer_id inner join inventory as t3 on t2.inventory_id = t3.inventory_id inner join film as t4 on t3.film_id = t4.film_id inner join film_categor... | Question: find and list the full name of customers who rented more than five types of movies. | Tables: film_text -> film_id, title, description. 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, ... | find and list the full name of customers who rented more than five types of movies. |
movie_3 | select avg(t1.actor_id) from film_actor as t1 inner join film_category as t2 on t1.film_id = t2.film_id inner join category as t3 on t2.category_id = t3.category_id inner join actor as t4 on t4.actor_id = t1.actor_id where t3.name = 'comedy' | Question: what is the average number of actors acted in comedy movies? | Tables: film_text -> film_id, title, description. 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... | what is the average number of actors acted in comedy movies? |
movie_3 | select t.title from ( select t4.title, count(t4.title) as num from customer as t1 inner join rental as t2 on t1.customer_id = t2.customer_id inner join inventory as t3 on t2.inventory_id = t3.inventory_id inner join film as t4 on t3.film_id = t4.film_id inner join film_category as t5 on t4.film_id = t5.film_id inner jo... | Question: in children's movies, which was rented the most? | Tables: film_text -> film_id, title, description. 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,... | in children's movies, which was rented the most? |
movie_3 | select cast(( select count(t1.customer_id) from customer as t1 inner join payment as t2 on t1.customer_id = t2.customer_id where t2.amount > ( select avg(amount) from payment ) ) as real) * 100 / ( select count(customer_id) from customer ) | Question: calculate the percentage of customers who paid more than the average rent amount in store 1. | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. category -> cate... | calculate the percentage of customers who paid more than the average rent amount in store 1. |
movie_3 | select distinct iif(sum(iif(t5.name = 'family', 1, 0)) - sum(iif(t5.name = 'sci-fi', 1, 0)) > 0, t1.first_name, 0) from customer as t1 inner join rental as t2 on t1.customer_id = t2.customer_id inner join inventory as t3 on t2.inventory_id = t3.inventory_id inner join film_category as t4 on t4.film_id = t3.film_id inne... | Question: find and list the full name of customers who rented more family movies than sci-fi movies. | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. category -> catego... | find and list the full name of customers who rented more family movies than sci-fi movies. |
movie_3 | select title from film where rating = 'nc-17' | Question: indicate the title of all the films rated as 'adults only'. | Tables: film_text -> film_id, title, description. 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 ... | indicate the title of all the films rated as 'adults only'. |
movie_3 | select count(actor_id) from actor where last_name = 'kilmer' | Question: how many actors with the surname kilmer are there? | Tables: film_text -> film_id, title, description. 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_i... | how many actors with the surname kilmer are there? |
movie_3 | select count(film_id) from film where length > 100 | Question: how many movies have a length longer than 100? | Tables: film_text -> film_id, title, description. 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, c... | how many movies have a length longer than 100? |
movie_3 | select sum(amount) from payment where payment_date like '2005-08%' | Question: how many payments were made throughout the month of august 2005? | Tables: film_text -> film_id, title, description. 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. ... | how many payments were made throughout the month of august 2005? |
movie_3 | select t1.country from country as t1 inner join city as t2 on t1.country_id = t2.country_id inner join address as t3 on t2.city_id = t3.city_id where t3.address = '1386 nakhon sawan boulevard' | Question: to which country does the address '1386 nakhon sawan boulevard' belong? | Tables: film_text -> film_id, title, description. 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_u... | to which country does the address '1386 nakhon sawan boulevard' belong? |
movie_3 | select t.language_id from ( select t1.language_id, count(t1.language_id) as num from film as t1 inner join language as t2 on t1.language_id = t2.language_id where strftime('%y',t1.release_year) = '2006' group by t1.language_id ) as t order by t.num desc limit 1 | Question: what language was the most used in movies released in 2006? | Tables: film_text -> film_id, title, description. 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 ... | what language was the most used in movies released in 2006? |
movie_3 | select t2.title from film_category as t1 inner join film as t2 on t1.film_id = t2.film_id inner join category as t3 on t1.category_id = t3.category_id where t3.name = 'classics' | Question: indicate the title of all the films that are in the classics category. | Tables: film_text -> film_id, title, description. 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_up... | indicate the title of all the films that are in the classics category. |
movie_3 | select count(t1.rental_id) from rental as t1 inner join customer as t2 on t1.customer_id = t2.customer_id where t2.first_name = 'ella' and t2.last_name = 'ella' and date(t1.rental_date) between '2005-06-01' and '2005-06-30' | Question: how many rentals did ella oliver hire in june 2016? | Tables: film_text -> film_id, title, description. 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_... | how many rentals did ella oliver hire in june 2016? |
movie_3 | select count(t1.customer_id) from rental as t1 inner join staff as t2 on t1.staff_id = t2.staff_id where t2.first_name = 'jon' and t2.last_name = 'stephens' | Question: how many different clients have rented materials from jon stephens? | Tables: film_text -> film_id, title, description. 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_updat... | how many different clients have rented materials from jon stephens? |
movie_3 | select sum(t2.amount) from rental as t1 inner join payment as t2 on t1.rental_id = t2.rental_id where date(t1.rental_date) = '2005-07-29%' | Question: what is the total amount paid for rentals made on july 29, 2005? | Tables: film_text -> film_id, title, description. 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. ... | what is the total amount paid for rentals made on july 29, 2005? |
movie_3 | select t1.first_name from customer as t1 inner join address as t2 on t1.address_id = t2.address_id where substr(t2.postal_code, 1, 2) = '76' | Question: what is the first name of the customers whose address is in the postal code that begins with 76? | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. category -> ... | what is the first name of the customers whose address is in the postal code that begins with 76? |
movie_3 | select t1.rental_date from rental as t1 inner join inventory as t2 on t1.inventory_id = t2.inventory_id inner join film as t3 on t2.film_id = t3.film_id where t3.title = 'blood argonauts' | Question: on what date was the rented material for the movie blood argonauts returned? | Tables: film_text -> film_id, title, description. 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, l... | on what date was the rented material for the movie blood argonauts returned? |
movie_3 | select t3.title from actor as t1 inner join film_actor as t2 on t1.actor_id = t2.actor_id inner join film as t3 on t2.film_id = t3.film_id where t1.first_name = 'cuba' and t1.last_name = 'allen' | Question: what is the title of the films in which cuba allen acted? | Tables: film_text -> film_id, title, description. 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 ->... | what is the title of the films in which cuba allen acted? |
movie_3 | select count(t1.actor_id) from actor as t1 inner join film_actor as t2 on t1.actor_id = t2.actor_id inner join film as t3 on t2.film_id = t3.film_id inner join film_category as t4 on t3.film_id = t4.film_id inner join category as t5 on t4.category_id = t5.category_id where t5.name = 'music' | Question: how many actors acted in movies in the music category? | Tables: film_text -> film_id, title, description. 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 -> ci... | how many actors acted in movies in the music category? |
movie_3 | select t.first_name, t.last_name from ( select t4.first_name, t4.last_name, count(t2.actor_id) as num from film_category as t1 inner join film_actor as t2 on t1.film_id = t2.film_id inner join category as t3 on t1.category_id = t3.category_id inner join actor as t4 on t2.actor_id = t4.actor_id where t3.name = 'comedy' ... | Question: what is the full name of the actor who has acted the most times in comedy films? | Tables: film_text -> film_id, title, description. 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, nam... | what is the full name of the actor who has acted the most times in comedy films? |
movie_3 | select count(t1.customer_id) from customer as t1 inner join store as t2 on t1.store_id = t2.store_id inner join staff as t3 on t2.manager_staff_id = t3.staff_id where t3.first_name != 'mike' | Question: how many customers did not rent material at mike's store? | Tables: film_text -> film_id, title, description. 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 ->... | how many customers did not rent material at mike's store? |
movie_3 | select t1.first_name, t1.last_name from actor as t1 inner join film_actor as t2 on t1.actor_id = t2.actor_id inner join film as t3 on t2.film_id = t3.film_id where t3.rating = 'pg-13' order by t3.replacement_cost desc limit 1 | Question: indicate the name of the actors of the films rated as 'parents strongly precautioned' with the highest replacement cost. | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, l... | indicate the name of the actors of the films rated as 'parents strongly precautioned' with the highest replacement cost. |
movie_3 | select t.first_name from ( select t2.first_name, count(t1.rental_date) as num from rental as t1 inner join customer as t2 on t1.customer_id = t2.customer_id group by t2.first_name ) as t order by t.num desc limit 1 | Question: what is the name of the client who has the largest quantity of rented material without returning it? | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. category... | what is the name of the client who has the largest quantity of rented material without returning it? |
movie_3 | select count(t3.customer_id) from city as t1 inner join address as t2 on t1.city_id = t2.city_id inner join customer as t3 on t2.address_id = t3.address_id where t1.city = 'miyakonojo' | Question: how many customers live in the city of miyakonojo? | Tables: film_text -> film_id, title, description. 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_i... | how many customers live in the city of miyakonojo? |
movie_3 | select count(t2.customer_id) from rental as t1 inner join customer as t2 on t1.customer_id = t2.customer_id where t2.active = 0 | Question: how many non-active clients have not returned the rented material? | Tables: film_text -> film_id, title, description. 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... | how many non-active clients have not returned the rented material? |
movie_3 | select t1.title from film as t1 inner join film_category as t2 on t1.film_id = t2.film_id inner join category as t3 on t2.category_id = t3.category_id order by t1.length limit 1 | Question: what is the title of the animated films that have the shortest length? | Tables: film_text -> film_id, title, description. 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_up... | what is the title of the animated films that have the shortest length? |
movie_3 | select t5.country from customer as t1 inner join store as t2 on t1.store_id = t2.store_id inner join address as t3 on t2.address_id = t3.address_id inner join city as t4 on t3.city_id = t4.city_id inner join country as t5 on t4.country_id = t5.country_id where t1.first_name = 'hector' and t1.last_name = 'poindexter' | Question: in which country is the store where hector poinexter rents equipment located? | Tables: film_text -> film_id, title, description. 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, ... | in which country is the store where hector poinexter rents equipment located? |
movie_3 | select avg(t5.amount) from category as t1 inner join film_category as t2 on t1.category_id = t2.category_id inner join inventory as t3 on t2.film_id = t3.film_id inner join rental as t4 on t3.inventory_id = t4.inventory_id inner join payment as t5 on t4.rental_id = t5.rental_id where t1.name = 'horror' | Question: what is the average rental payment in horror movies? | Tables: film_text -> film_id, title, description. 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... | what is the average rental payment in horror movies? |
movie_3 | select avg(t2.amount) from customer as t1 inner join payment as t2 on t1.customer_id = t2.customer_id where t1.first_name = 'christy' and t1.last_name = 'vargas' | Question: what is the average amount of rent that christy vargas paid? | Tables: film_text -> film_id, title, description. 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... | what is the average amount of rent that christy vargas paid? |
movie_3 | select cast(sum(iif(t2.length < 100 and t3.name = 'drama', 1, 0)) as real) * 100 / count(t1.film_id) from film_category as t1 inner join film as t2 on t1.film_id = t2.film_id inner join category as t3 on t1.category_id = t3.category_id | Question: what percentage of films with a length of less than 100 belong to the drama category? | Tables: film_text -> film_id, title, description. 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... | what percentage of films with a length of less than 100 belong to the drama category? |
movie_3 | select first_name, last_name from actor where first_name = 'johnny' | Question: what are the actors that have the same forename as johnny? please include in your answer the full names of these actors. | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, l... | what are the actors that have the same forename as johnny? please include in your answer the full names of these actors. |
movie_3 | select address_id from address where district = 'gansu' | Question: what are the address numbers that are located in gansu district? | Tables: film_text -> film_id, title, description. 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. ... | what are the address numbers that are located in gansu district? |
movie_3 | select distinct name, category_id, last_update from category limit 3 | Question: please list three types of film along with their ids and the latest update. | Tables: film_text -> film_id, title, description. 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, la... | please list three types of film along with their ids and the latest update. |
movie_3 | select first_name, last_name from customer where active = 0 limit 3 | Question: please list the full names of any three inactive customers. | Tables: film_text -> film_id, title, description. 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 ... | please list the full names of any three inactive customers. |
movie_3 | select rental_rate / rental_duration as result from film where title = 'airplane sierra' | Question: what is the rental price per day for airplane sierra? | Tables: film_text -> film_id, title, description. 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 -> cit... | what is the rental price per day for airplane sierra? |
movie_3 | select t1.address, t1.address2, t1.district from address as t1 inner join store as t2 on t1.address_id = t2.address_id where t2.store_id = 2 | Question: where is store number 2 located? | Tables: film_text -> film_id, title, description. 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_i... | where is store number 2 located? |
movie_3 | select t1.city from city as t1 inner join address as t2 on t2.city_id = t1.city_id where t2.address = '1623 kingstown drive' | Question: which city does the address 1623 kingstown drive belong to? | Tables: film_text -> film_id, title, description. 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 ... | which city does the address 1623 kingstown drive belong to? |
movie_3 | select t2.city from country as t1 inner join city as t2 on t1.country_id = t2.country_id where t1.country = 'algeria' | Question: please name three cities that belong to algeria. | Tables: film_text -> film_id, title, description. 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,... | please name three cities that belong to algeria. |
movie_3 | select t3.name from film as t1 inner join film_category as t2 on t1.film_id = t2.film_id inner join category as t3 on t2.category_id = t3.category_id where t1.title = 'agent truman' | Question: what is the category of the film agent truman? | Tables: film_text -> film_id, title, description. 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, c... | what is the category of the film agent truman? |
movie_3 | select t1.title from film as t1 inner join film_category as t2 on t1.film_id = t2.film_id inner join category as t3 on t2.category_id = t3.category_id where t3.name = 'action' limit 3 | Question: please list the titles of any three action films. | Tables: film_text -> film_id, title, description. 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... | please list the titles of any three action films. |
movie_3 | select sum(iif(t2.name = 'children', 1, 0)) - sum(iif(t2.name = 'action', 1, 0)) as diff from film_category as t1 inner join category as t2 on t1.category_id = t2.category_id | Question: what is the difference between the number of children's films and action films? | Tables: film_text -> film_id, title, description. 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... | what is the difference between the number of children's films and action films? |
movie_3 | select t2.district from customer as t1 inner join address as t2 on t1.address_id = t2.address_id where t1.first_name = 'maria' and t1.last_name = 'miller' | Question: which district does maria miller live in? | Tables: film_text -> film_id, title, description. 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, ... | which district does maria miller live in? |
movie_3 | select t1.first_name, t1.last_name from customer as t1 inner join address as t2 on t1.address_id = t2.address_id where t2.address = '1795 santiago de compostela way' and t1.active = 1 | Question: who is the customer that is active and lives at 1795 santiago de compostela way, texas? | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. category -> category_... | who is the customer that is active and lives at 1795 santiago de compostela way, texas? |
movie_3 | select count(t1.film_id) from film as t1 inner join language as t2 on t1.language_id = t2.language_id where t2.name = 'english' and t1.length > 50 and t1.replacement_cost < 10.99 | Question: how many english films have a duration of over 50 minutes and the cost of replacement are under 10.99? | Tables: film_text -> film_id, title, description. actor -> actor_id, first_name, last_name, last_update. address -> address_id, address, address2, district, city_id, postal_code, phone, last_update. catego... | how many english films have a duration of over 50 minutes and the cost of replacement are under 10.99? |
movie_3 | select t1.first_name, t1.last_name from actor as t1 inner join film_actor as t2 on t1.actor_id = t2.actor_id inner join film as t3 on t2.film_id = t3.film_id where t3.title = 'academy dinosaur' | Question: who are the actors that act in the academy dinosaur film? | Tables: film_text -> film_id, title, description. 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 ->... | who are the actors that act in the academy dinosaur film? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.