query
stringlengths
24
325
positive
stringlengths
1
580
negative_1
stringlengths
6
580
negative_2
stringlengths
1
576
negative_3
stringlengths
1
576
negative_4
stringlengths
1
580
negative_5
stringlengths
1
580
negative_6
stringlengths
1
580
negative_7
stringlengths
5
576
negative_8
stringlengths
1
576
negative_9
stringlengths
1
580
negative_10
stringlengths
1
580
Write down any five film names under the documentary category.
"Documentary" is the name of category; film name refers to title
for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'
rented at 12:27:27 on 2005/7/28 refers to rental_date = '2005-07-28 12:27:27'
PG-13 rated movie refers to rating = 'PG-13'; average rental rate = avg(rental_rate)
highest replacement cost refers to Max (replacement_cost)
rented on 26th May 2005 refers to rental_date = '2005-05-26'; return on 30th May, 2005 refers to return_date = '2005-05-30'; number of rented film refers to Count (rental_id)
category refers to name; most number of films refers to Max(Count(film_id))
full name refers to first_name, last_name; "ACADEMY DINOSAUR" is the title of film
documentary film refers to category.name = 'documentary'; rated PG-13 refers to rating = 'PG-13'
number of address refers to address_id
result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))
Which film has a higher replacement cost, ACE GOLDFINGER or ACADEMY DINOSAUR?
higher replacement cost refers to Max(replacement_cost); 'ACE GOLDFIINGER' and 'ACADEMY DINOSAUR' are both the title of film
'Jason trap' is a title of a film; cast means actor; actor refers to first_name, last_name
film refers to title; most rented refers to MAX(inventory_id)
"STREETCAR INTENTIONS" is the title of film; actor's names refers to first_name, last_name
'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'
customer ID of 100 and below refers to customer_id < 100
non-active clients refers to active = 0; not returning a rented material refers to rental_date is null
children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))
"Horror" is the name of category
"[email protected]" is the email; owner refers to customer; full name refers to first_name, last_name
film refers to title; least rented refers to count(min(customer_id))
What is the full name of the actor who starred in most movies?
full name refers to first_name, last_name; actor who starred in the most movies refers to actor_id where Max(Count(film_id))
lowest replacement cost refers to Min(replacement_cost); under general audience rating refers to rating = G
email address refers to email
full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))
full name refers to first_name, last_name; 'comedy' is a name of a category;
category refers to name; most number of films refers to Max(Count(film_id))
children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))
full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)
active refers to active = 1
longest duration of film refers to Max(length)
"Horror" is the name of category
In films with a length duration of 113 minutes, how many of the films are starred by Kirk Jovovich?
length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name
documentary' is a name of a category; calculation = DIVIDE(SUM(name = 'Documentary'), COUNT(film_id)) * 100
a duration of 100 minutes and below refers to length < 100
category name refers to category.name; price per day is more than $30 refers to multiply(rental_duration, rental_rate) > 30
length longer than 100 refers to length > 100
name refers to first_name, last_name
film refers to title; rated as PG-13 refers to rating = 'PG-13'
forename means first_name; full name refers to first_name, last_name
in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)
rental rate of $2.99 refers to rental_rate = 2.99; film refers to title
ID 996 refers to film_id = 996
What is the inventory ID of the films starred by Russell Close with a duration between 110 to 150 minutes?
'Russell Close' is a full name of an actor; full name refers to first_name, last_name; duration between 110 to 150 minutes refers to length BETWEEN 110 AND 150
"science fiction" is the name of category; most common special features refers to Max(frequency(special_features))
in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)
most rented movie refers to title where Max(Count(rental_id))
rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'
customer refers to customer_id
highest replacement cost refers to Max(replacement_cost)
active employee refers to active = 1; full name refers to first_name, last_name
category refers to name; rented in February 2006 refers to year(rental_date) = 2006 and month (rental_rate) = 2
highest rental price per day refers to Max(Divide(rental_rate, rental_duration))
name of movie refers to title
What is the most common first name among the customers?
the most common first name refers to MAX(COUNT(first_name))
PG-13 rated movie refers to rating = 'PG-13'; average rental rate = avg(rental_rate)
length longer than 100 refers to length > 100
active employee refers to active = 1; full name refers to first_name, last_name
non-active clients refers to active = 0; not returning a rented material refers to rental_date is null
Algeria is a country
'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100
store no. 1 refers to store_id = 1; name refers to first_name, last_name
length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name
documentary film refers to name = 'documentary'; longest length refers to max(length)
ID 996 refers to film_id = 996
Please list the full names of all the actors that have starred in the film ACADEMY DINOSAUR.
full name refers to first_name, last_name; "ACADEMY DINOSAUR" is the title of film
id movies refers to film_id
active refers to active = 1
address numbers refers to address_id;
actor refers to first_name, last_name; film "Bound Cheaper" refers to title = 'BOUND CHEAPER'
film refers to title of the film; 'Penelope Guiness' is a full name of an actor; full name refers to first_name, last_name
rental price per day refers to DIVIDE(rental_price, rental_duration); 'Airplane Sierra' is a title of a film
in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)
"India" is the country; name refers to first_name, last_name
result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))
'classics' is the name of category
What is the language of the film ACADEMY DINOSAUR?
"ACADEMY DINOSAUR" is the title of film; language refers to language.name
full name refers to first_name, last_name; 692 Joliet Street refers to address = '692 Joliet Street'
'Mary Keitel' AND 'Angela Witherspoon' are full name of actors; full name refers to FirstName, LastName; calculation = DIVIDE(SUBTRACT(SUM('Mary Keitel'), SUM('Angela Witherspoon')), SUM('Angela Witherspoon')) * 100
"1411 Lillydate Drive" is the address
'Dan' is a first_name of an actor
adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4
result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))
"ARTIST COLDBLOODED" is the title of film
"WORKING MICROCOSMOS" is the title of film; category refers to name
staff manager refers to manager_staff_id
film refers to title; rent for more than 5 days refers to rental_duration > 5
How many different clients have rented materials from Jon Stephens?
'Jon Stephens' is a full name of a customer; full name refers to first_name, last_name;
average duration time = AVG(length)
highest replacement cost refers to Max (replacement_cost)
English is a name of a language; for adults only refers to rating = 'NC-17'
number of address refers to address_id
77 min film refers to length = 77
payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'
"CHOCOLATE DUCK" is the title of film; full name refers to first_name, last_name
length longer than 100 refers to length > 100
full name refers to first_name, last_name; more than 10$ refers to amount > 10
"Gina DeGeneres" and "Penelope Guinness" are both full name of actor; times number of film = Divide (Count (film_id where first_name = 'GINA' and last_name = 'DEGENERES'), Count(film_id where first_name = 'PENELOPE' and last_name = 'GUINESS'))
Among the films rented by Natalie Meyer, describe the titles and categories of the films which were rented in February 2006.
category refers to name; rented in February 2006 refers to year(rental_date) = 2006 and month (rental_rate) = 2
action is a name of category
'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))
store no. 1 refers to store_id = 1; store no.2 refers to store_id = 2; rental payment refers to amount; percent more = Divide (Subtract(amount where store_id = 2, amount where store_id = 1), amount where store_id = 1) *100
the biggest amount refers to max(amount)
store number 2 refers to store_id = 2; where is a store located refers to address, address2, district
active refers to active = 1
times of rented refers to Count(rental_id)
longest duration of film refers to Max(length)
lowest replacement cost refers to Min(replacement_cost); under general audience rating refers to rating = G
longest duration of film refers to Max(length)
Find the full name and email address of inactive customers whose record was created in 2006.
full name refers to first_name, last_name; record created in 2006 refers to create_date = 2006; inactive customers refers to active = 0
id movies refers to film_id
children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))
'Hector Poinexter' is a full name of a customer; full name refers to first_name, last_name;
"Clarksville" is the city;
rented on 26th May 2005 refers to rental_date = '2005-05-26'; return on 30th May, 2005 refers to return_date = '2005-05-30'; number of rented film refers to Count (rental_id)
email address refers to email
store no. 1 refers to store_id = 1; store no.2 refers to store_id = 2; rental payment refers to amount; percent more = Divide (Subtract(amount where store_id = 2, amount where store_id = 1), amount where store_id = 1) *100
active refers to active = 1
'classics' is the name of category
store no. 1 refers to store_id = 1; address location refers to address, address2, district
Which category is the film "Beach Heartbreakers" falls into?
category refers to name; film "Beach Heartbreakers" refers to title = 'BEACH HEARTBREAKERS'
full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))
rented at 12:27:27 on 2005/7/28 refers to rental_date = '2005-07-28 12:27:27'
full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))
released in 2006 refers to release_year = 2006; rated Adults Only refers to rating = 'NC-17'
rental price per day refers to DIVIDE(rental_price, rental_duration); 'Airplane Sierra' is a title of a film
inactive customers refers to active = 0;
"Horror" is the name of category
more than 180 min long refers to length > 180; name of film refers to title
film refers to title; most rented refers to MAX(inventory_id)
first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)
What is the full name of the customer who rented the highest number of movies of all time?
full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))
'Mary Keitel' AND 'Angela Witherspoon' are full name of actors; full name refers to FirstName, LastName; calculation = DIVIDE(SUBTRACT(SUM('Mary Keitel'), SUM('Angela Witherspoon')), SUM('Angela Witherspoon')) * 100
film refers to title; least rented refers to count(min(customer_id))
"UPRISING UPTOWN" is the title of film
ID 996 refers to film_id = 996
'Diane Collins' is a full name of a customer; full name refers to first_name, last_name
"United States" is the country
longest duration of film refers to Max(length)
full name refers to first_name, last_name; 'comedy' is a name of a category;
actors with highest number of films refers to actor_id with Max(Count(film_id)); full name refers to first_name, last_name; average number of film = Divide (Count(film_id), 5)
store no. 1 refers to store_id = 1; name refers to first_name, last_name
List all the films that Karl Berr starred in and rated as PG.
film refers to title; rated as PG refers to rating = 'PG'
full name refers to first_name, last_name; more than 10$ refers to amount > 10
forename means first_name; full name refers to first_name, last_name
rental price per day refers to DIVIDE(rental_price, rental_duration); 'Airplane Sierra' is a title of a film
rented in July 2005 refers to year (rental_date) = 2005 and month (rental_date) = 7
from 5/30/2005 at 3:43:54 AM to 7/31/2005 at 10:08:29 PM refers to payment_date between '2005-05-30 03:43:54' and '2005-07-31 10:08:29'
store no. 1 refers to store_id = 1; name refers to first_name, last_name
'Eleanor Hunt' is the full name of a customer; full name refers to first_name, last_name
full name refers to first_name, last_name; acted in the most number of movies refers to MAX(COUNT(film_id))
"United States" is the country
full name refers to first_name, last_name; "ACADEMY DINOSAUR" is the title of film
Please list the titles of all the films that have more than 2 special features.
more than 2 special features refers to Count(special_features) > 2
first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)
average duration time = AVG(length)
restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99
'Destiny Saturday' refers to title = 'DESTINY SATURDAY'; length = subtract(return_date, rental_date)
film refers to title; rent for more than 5 days refers to rental_duration > 5
customer ID of 100 and below refers to customer_id < 100
full name refers to first_name, last_name; the biggest amount refers to max(amount)
category refers to name; BABY HALL film refers to title = 'BABY HALL'
rented at 12:27:27 on 2005/7/28 refers to rental_date = '2005-07-28 12:27:27'
rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'
Among the classic movies, how many movies have a rental rate of less than 1?
classic movie refers to name = 'Classics'; rental rate of less than 1 refers to rental_rate < 1; movie refers to film_id
duration over 120 minutes refers to length > 120; action category refers to category.name = 'action'
"Documentary" is the name of category; film name refers to title
duration between 100 to 110 minutes refers to length between 100 and 110
'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))
'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'
staff manager refers to manager_staff_id
rental price per day refers to DIVIDE(rental_price, rental_duration); 'Airplane Sierra' is a title of a film
address no. 72 refers to address_id = 72; phone number refers to phone
postal code that begins with 76 refers to postal_code like '76%'
non-active clients refers to active = 0; not returning a rented material refers to rental_date is null
Calculate the percentage of customers who paid more than the average rent amount in store 1.
store 1 refers to store_id = 1; average rent amount refers to AVG(amount); calculation = DIVIDE(amount > AVG(amount), COUNT(customer_id)) * 100
full name refers to first_name, last_name; actor who starred in the most movies refers to actor_id where Max(Count(film_id))
"Horror" is the name of category
forename means first_name; full name refers to first_name, last_name
'Dan' is a first_name of an actor
inactive customers refers to active = 0;
178 min long refers to length = '178'
'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100
"Clarksville" is the city;
most rented movie refers to title where Max(Count(rental_id))
store no. 1 refers to store_id = 1; address location refers to address, address2, district
Which movie title has the lowest movie rental in the horror category?
the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'
address no. 72 refers to address_id = 72; phone number refers to phone
full name refers to first_name, last_name; 'comedy' is a name of a category;
"WORKING MICROCOSMOS" is the title of film; category refers to name
178 min long refers to length = '178'
'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))
restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99
forename means first_name; full name refers to first_name, last_name
restricted refers to rating = 'R'; highest number of film refers to Max(Count(film_id)); full name refers to first_name, last_name
more than 2 special features refers to Count(special_features) > 2
category name refers to category.name; price per day is more than $30 refers to multiply(rental_duration, rental_rate) > 30
Identify the full name of the customer, who has the following email address: [email protected].
full name refers to first_name, last_name
"Documentary" is the name of category; film name refers to title
"WORKING MICROCOSMOS" is the title of film; category refers to name
active refers to active = 1
rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'
PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100
category refers to name; most number of films refers to Max(Count(film_id))
'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100
customer ID of 100 and below refers to customer_id < 100
actors with highest number of films refers to actor_id with Max(Count(film_id)); full name refers to first_name, last_name; average number of film = Divide (Count(film_id), 5)
highest replacement cost refers to Max (replacement_cost); full name refers to first_name, last_name
How many Italian film titles were special featured with deleted scenes?
Italian is name of language; special featured with deleted scenes refers to special_features = 'deleted scenes'
documentary film refers to name = 'documentary'; longest length refers to max(length)
length longer than 100 refers to length > 100
more than 180 min long refers to length > 180; name of film refers to title
film refers to title; most rented refers to MAX(inventory_id)
full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)
'Mary Keitel' AND 'Angela Witherspoon' are full name of actors; full name refers to FirstName, LastName; calculation = DIVIDE(SUBTRACT(SUM('Mary Keitel'), SUM('Angela Witherspoon')), SUM('Angela Witherspoon')) * 100
active refers to active = 1
id movies refers to film_id
rental duration of over 6 days refers to rental_duration > 6
full name refers to first_name, last_name; 692 Joliet Street refers to address = '692 Joliet Street'
How many times was "Blanket Beverly" rented?
"BLANKET BEVERLY" is the title of film; rented times refers to count(rental_id)
surname means last_name;
rental rate of $2.99 refers to rental_rate = 2.99; film refers to title
'African Egg' is a title of a film
returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8
active employee refers to active = 1; full name refers to first_name, last_name
screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%
"Documentary" is the name of category; number of film refers to Count(film_id)
film refers to title of the film; 'Penelope Guiness' is a full name of an actor; full name refers to first_name, last_name
English is a name of a language; for adults only refers to rating = 'NC-17'
name of movie refers to title
Who is the customer that is active and lives at 1795 Santiago de Compostela Way, Texas?
active refers to active = 1; '1795 Santiago de Compostela Way' is an address; Texas is a district; who refers to first_name, last_name
movie name refers to title; the most recent refers to max(rental_date)
'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100
full name refers to first_name, last_name; more than 10$ refers to amount > 10
full name refers to first_name, last_name; record created in 2006 refers to create_date = 2006; inactive customers refers to active = 0
classic movie refers to name = 'Classics'; rental rate of less than 1 refers to rental_rate < 1; movie refers to film_id
'Hector Poinexter' is a full name of a customer; full name refers to first_name, last_name;
full name refers to first_name, last_name; types of movies means category of movies; rented more than five types of movies refers to COUNT(film_category) > 5
the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'
more than 180 min long refers to length > 180; name of film refers to title
'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))
In which country is the store where Hector Poinexter rents equipment located?
'Hector Poinexter' is a full name of a customer; full name refers to first_name, last_name;
active refers to active = 1
address no. 72 refers to address_id = 72; phone number refers to phone
movies with the most price per day refers to MAX(rental_rate)
category refers to name; film "Beach Heartbreakers" refers to title = 'BEACH HEARTBREAKERS'
full name refers to first_name, last_name; average payment refers to AVG(amount); payments were greater than 70% of the average refers to amount > (AVG(amount) MULTIPLY 0.7)
adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4
length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name
full name refers to first_name, last_name; 'comedy' is a name of a category;
'Eleanor Hunt' is the full name of a customer; full name refers to first_name, last_name
average duration time = AVG(length)
Indicate the title of all the films that are in the Classics category.
'classics' is the name of category
active refers to active = 1
'Agent Truman' is a title of a film; category refers to name
full name refers to first_name, last_name; 692 Joliet Street refers to address = '692 Joliet Street'
Who refers to first_name, last_name; the largest payment for rental refers to MAX(SUM(amount))
name of movie refers to title
store number 2 refers to store_id = 2; where is a store located refers to address, address2, district
actor refers to first_name, last_name; film "Bound Cheaper" refers to title = 'BOUND CHEAPER'
highest replacement cost refers to Max (replacement_cost); full name refers to first_name, last_name
restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99
average payment refers to AVG(amount)
What is the title of the restricted film, whose length is 71 minutes and whose replacement cost is $29.99?
restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99
rental price per day refers to DIVIDE(rental_price, rental_duration); 'Airplane Sierra' is a title of a film
store no. 1 refers to store_id = 1; store no.2 refers to store_id = 2; rental payment refers to amount; percent more = Divide (Subtract(amount where store_id = 2, amount where store_id = 1), amount where store_id = 1) *100
film refers to title; most rented refers to MAX(inventory_id)
in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)
active refers to active = 1
name refers to first_name, last_name
documentary' is a name of a category; calculation = DIVIDE(SUM(name = 'Documentary'), COUNT(film_id)) * 100
Algeria is a country
active refers to active = 1
adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4
List down the actors' full names who performed in "CHOCOLATE DUCK" film.
"CHOCOLATE DUCK" is the title of film; full name refers to first_name, last_name
a duration of 100 minutes and below refers to length < 100
store number 2 refers to store_id = 2; where is a store located refers to address, address2, district
inactive customers refers to active = 0;
highest replacement_cost refers to Max (replacement_cost); film refers to title
77 min film refers to length = 77
actor refers to first_name, last_name; film "Bound Cheaper" refers to title = 'BOUND CHEAPER'
action is a name of category
category name refers to category.name; price per day is more than $30 refers to multiply(rental_duration, rental_rate) > 30
rental price per day refers to DIVIDE(rental_price, rental_duration); 'Airplane Sierra' is a title of a film
for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'
What is the difference between the number of children's films and action films?
'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))
restricted refers to rating = 'R'; highest number of film refers to Max(Count(film_id)); full name refers to first_name, last_name
address no. 72 refers to address_id = 72; phone number refers to phone
rented on 26th May 2005 refers to rental_date = '2005-05-26'; return on 30th May, 2005 refers to return_date = '2005-05-30'; number of rented film refers to Count (rental_id)
the largest number of films refers to MAX(rental_id)
ID 996 refers to film_id = 996
documentary film refers to name = 'documentary'; longest length refers to max(length)
returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8
longest duration of film refers to Max(length)
surname means last_name;
customer ID of 100 and below refers to customer_id < 100
Who are the actors starred in the film "Bound Cheaper"?
actor refers to first_name, last_name; film "Bound Cheaper" refers to title = 'BOUND CHEAPER'
movie name refers to title; the most recent refers to max(rental_date)
store no. 1 refers to store_id = 1; store no.2 refers to store_id = 2; rental payment refers to amount; percent more = Divide (Subtract(amount where store_id = 2, amount where store_id = 1), amount where store_id = 1) *100
forename means first_name; full name refers to first_name, last_name
"Horror" is the name of category
horror is a name of film category; calculation = DIVIDE(COUNT('horror'), COUNT(category_id)) * 100
non-active clients refers to active = 0; not returning a rented material refers to rental_date is null
the total amount = sum(amount)
active refers to active = 1
highest replacement cost refers to Max (replacement_cost); full name refers to first_name, last_name
first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)
How many films are categorized as horror?
"Horror" is the name of category
highest rental price per day refers to Max(Divide(rental_rate, rental_duration))
the total amount = sum(amount); in June 2005 refers to payment_date like '2005-06%'
percentage = divide(sum(amount where first_name = 'MARGARET' and last_name = 'MOORE'), sum(amount)) * 100%
name refers to first_name, last_name
'African Egg' is a title of a film
rented on 24th May 2005 refers to rental_date = '2005-05-24%'
highest replacement_cost refers to Max (replacement_cost); film refers to title
"ACADEMY DINOSAUR" is the title of film; language refers to language.name
length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'
178 min long refers to length = '178'
How many non-active clients have not returned the rented material?
non-active clients refers to active = 0; not returning a rented material refers to rental_date is null
active refers to active = 1; '1795 Santiago de Compostela Way' is an address; Texas is a district; who refers to first_name, last_name
length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'
documentary film refers to name = 'documentary'; longest length refers to max(length)
film refers to title; least rented refers to count(min(customer_id))
full name refers to first_name, last_name; types of movies means category of movies; rented more than five types of movies refers to COUNT(film_category) > 5
'Destiny Saturday' refers to title = 'DESTINY SATURDAY'; length = subtract(return_date, rental_date)
full name refers to first_name, last_name; average payment refers to AVG(amount); payments were greater than 70% of the average refers to amount > (AVG(amount) MULTIPLY 0.7)
the biggest amount refers to max(amount)
animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)
address no. 72 refers to address_id = 72; phone number refers to phone
What is the category of the film Agent Truman?
'Agent Truman' is a title of a film; category refers to name
longest duration of film refers to Max(length)
'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'
length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'
"Documentary" is the name of category; number of film refers to Count(film_id)
in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)
children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))
most common category refers to MAX(COUNT(category.name))
full name refers to first_name, last_name; acted in the most number of movies refers to MAX(COUNT(film_id))
'Dan' is a first_name of an actor
"Horror" is the name of category
Please provide the full name of the customer at 692 Joliet Street.
full name refers to first_name, last_name; 692 Joliet Street refers to address = '692 Joliet Street'
rented on 24th May 2005 refers to rental_date = '2005-05-24%'
film refers to title; least rented refers to count(min(customer_id))
payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'
average rental rate of all listed films refers to AVG(rental_rate); rental rate greater than the 60% of average rental rate refers to rental_rate > (AVG(rental_rate)) MULTIPLY 0.6
film refers to title; rated as PG-13 refers to rating = 'PG-13'
rental price per day refers to DIVIDE(rental_price, rental_duration); 'Airplane Sierra' is a title of a film
highest replacement cost refers to Max (replacement_cost); full name refers to first_name, last_name
full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)
full name refers to first_name, last_name; acted in the most number of movies refers to MAX(COUNT(film_id))
actors with highest number of films refers to actor_id with Max(Count(film_id)); full name refers to first_name, last_name; average number of film = Divide (Count(film_id), 5)
List at least 10 films that the customers can rent for more than 5 days.
film refers to title; rent for more than 5 days refers to rental_duration > 5
total payment = sum(amount)
number of address refers to address_id
adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4
higher replacement cost refers to Max(replacement_cost); 'ACE GOLDFIINGER' and 'ACADEMY DINOSAUR' are both the title of film
active employee refers to active = 1; full name refers to first_name, last_name
'classics' is the name of category
'Dan' is a first_name of an actor
address numbers refers to address_id;
film refers to title; most rented refers to MAX(inventory_id)
Drama' is a name of a category; calculation = DIVIDE(SUM(length < 100 AND name = 'Drama'), COUNT(film_id)) * 100
List down email address of customers who were attended by staff with ID 2.
email address refers to email
id 1 to 10 refers to film_id BETWEEN 1 and 10
'Russell Close' is a full name of an actor; full name refers to first_name, last_name; duration between 110 to 150 minutes refers to length BETWEEN 110 AND 150
most common category refers to MAX(COUNT(category.name))
PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100
active refers to active = 1
United Arab Emirates refers to country = 'United Arab Emirates'
store number 2 refers to store_id = 2; where is a store located refers to address, address2, district
highest rental price per day refers to Max(Divide(rental_rate, rental_duration))
rented on 24th May 2005 refers to rental_date = '2005-05-24%'
'Dan' is a first_name of an actor
What percentage of the movies are PG-13?
PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100
action is a name of category
'Mary Keitel' AND 'Angela Witherspoon' are full name of actors; full name refers to FirstName, LastName; calculation = DIVIDE(SUBTRACT(SUM('Mary Keitel'), SUM('Angela Witherspoon')), SUM('Angela Witherspoon')) * 100
movies with the most price per day refers to MAX(rental_rate)
horror film refers to category.name = 'Horror'; English film refers to language.name = 'English'; percentage = divide(count(film_id where category.name = 'Horror'), count(film_id)) where language.name = 'English' * 100%
full name refers to first_name, last_name; average payment refers to AVG(amount); payments were greater than 70% of the average refers to amount > (AVG(amount) MULTIPLY 0.7)
duration over 120 minutes refers to length > 120; action category refers to category.name = 'action'
store no. 1 refers to store_id = 1; address location refers to address, address2, district
ID 996 refers to film_id = 996
animated film means animation; animation is a name of a category
rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'
Among the customers with customer ID of 100 and below, how many of them have Thomas as their last name?
customer ID of 100 and below refers to customer_id < 100
email address refers to email
highest replacement cost refers to Max (replacement_cost)
"science fiction" is the name of category; most common special features refers to Max(frequency(special_features))
highest replacement_cost refers to Max (replacement_cost); film refers to title
full name refers to first_name, last_name; more than 10$ refers to amount > 10
full name refers to first_name, last_name; record created in 2006 refers to create_date = 2006; inactive customers refers to active = 0
children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))
the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'
R rating refers to rating = 'R'
'Agent Truman' is a title of a film; category refers to name
What is the city with the most customers?
the most customers refers to MAX(COUNT(customer_id))
"Clarksville" is the city;
store no. 1 refers to store_id = 1; store no.2 refers to store_id = 2; rental payment refers to amount; percent more = Divide (Subtract(amount where store_id = 2, amount where store_id = 1), amount where store_id = 1) *100
screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%
address no. 72 refers to address_id = 72; phone number refers to phone
animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)
classic movie refers to name = 'Classics'; rental rate of less than 1 refers to rental_rate < 1; movie refers to film_id
film refers to title; rent for more than 5 days refers to rental_duration > 5
full name refers to first_name, last_name; the biggest amount refers to max(amount)
rental rate of $2.99 refers to rental_rate = 2.99; film refers to title
"1411 Lillydate Drive" is the address
For how long can you rent the movie 'Dirty Ace'?
length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'
"[email protected]" is the email; owner refers to customer; full name refers to first_name, last_name
full name refers to first_name, last_name; more than 10$ refers to amount > 10
active employee refers to active = 1; full name refers to first_name, last_name
English is a name of a language; for adults only refers to rating = 'NC-17'
full name refers to first_name, last_name; types of movies means category of movies; rented more than five types of movies refers to COUNT(film_category) > 5
rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'
actor refers to first_name, last_name; ANONYMOUS HUMAN refers to title = 'ANONYMOUS HUMAN'
'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))
longest duration of film refers to Max(length)
email address refers to email
What is the percentage of horror film titles in English film titles?
horror film refers to category.name = 'Horror'; English film refers to language.name = 'English'; percentage = divide(count(film_id where category.name = 'Horror'), count(film_id)) where language.name = 'English' * 100%
address no. 72 refers to address_id = 72; phone number refers to phone
surname means last_name;
"ARTIST COLDBLOODED" is the title of film
longest duration of film refers to Max(length)
in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)
"BLANKET BEVERLY" is the title of film; rented times refers to count(rental_id)
documentary film refers to name = 'documentary'; longest length refers to max(length)
postal code that begins with 76 refers to postal_code like '76%'
store 1 refers to store_id = 1; average rent amount refers to AVG(amount); calculation = DIVIDE(amount > AVG(amount), COUNT(customer_id)) * 100
'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))
What is the description and film title of ID 996?
ID 996 refers to film_id = 996
Italian is name of language; special featured with deleted scenes refers to special_features = 'deleted scenes'
full name refers to first_name, last_name; drama is a category of a film; acted the most in a movies refers to MAX(COUNT(film_id))
average duration time = AVG(length)
postal code that begins with 76 refers to postal_code like '76%'
'Destiny Saturday' refers to title = 'DESTINY SATURDAY'; length = subtract(return_date, rental_date)
name of movie refers to title
store no. 1 refers to store_id = 1; store no.2 refers to store_id = 2; rental payment refers to amount; percent more = Divide (Subtract(amount where store_id = 2, amount where store_id = 1), amount where store_id = 1) *100
most common category refers to MAX(COUNT(category.name))
full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))
non-active clients refers to active = 0; not returning a rented material refers to rental_date is null
What is the difference in the average number of films rented each day in Australia and Canada?
'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))
the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'
full name refers to first_name, last_name; record created in 2006 refers to create_date = 2006; inactive customers refers to active = 0
more than 2 special features refers to Count(special_features) > 2
"STREETCAR INTENTIONS" is the title of film; actor's names refers to first_name, last_name
longest duration of film refers to Max(length)
Drama' is a name of a category; calculation = DIVIDE(SUM(length < 100 AND name = 'Drama'), COUNT(film_id)) * 100
name of movie refers to title
"Clarksville" is the city;
rental rate of $2.99 refers to rental_rate = 2.99; film refers to title
"Horror" is the name of category
What is the first name of the customers whose address is in the postal code that begins with 76?
postal code that begins with 76 refers to postal_code like '76%'
highest replacement cost refers to Max(replacement_cost)
active refers to active = 1; '1795 Santiago de Compostela Way' is an address; Texas is a district; who refers to first_name, last_name
"UPRISING UPTOWN" is the title of film
result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))
'Wyoming Storm' refers to title = 'WYOMING STORM'
in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)
"Clarksville" is the city;
"1411 Lillydate Drive" is the address
total payment = sum(amount)
full name refers to first_name, last_name; more than 10$ refers to amount > 10
What is the largest number of films rented per customer?
the largest number of films refers to MAX(rental_id)
length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'
"India" is the country; name refers to first_name, last_name
"Gina DeGeneres" and "Penelope Guinness" are both full name of actor; times number of film = Divide (Count (film_id where first_name = 'GINA' and last_name = 'DEGENERES'), Count(film_id where first_name = 'PENELOPE' and last_name = 'GUINESS'))
store no. 1 refers to store_id = 1; address location refers to address, address2, district
highest rental price per day refers to Max(Divide(rental_rate, rental_duration))
film refers to title of the film; 'Penelope Guiness' is a full name of an actor; full name refers to first_name, last_name
longest duration of film refers to Max(length)
film refers to title; rated as PG refers to rating = 'PG'
name of movie refers to title
rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'
How many actors with the surname Kilmer are there?
surname means last_name;
children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))
the total amount = sum(amount)
forename means first_name; full name refers to first_name, last_name
full name refers to first_name, last_name; 'comedy' is a name of a category;
number of address refers to address_id
"[email protected]" is the email; owner refers to customer; full name refers to first_name, last_name
postal code that begins with 76 refers to postal_code like '76%'
highest rental price per day refers to Max(Divide(rental_rate, rental_duration))
full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))
longest duration of film refers to Max(length)
List the address in Texas in the ascending order of city id.
'Texas' is a district
restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99
'Agent Truman' is a title of a film; category refers to name
the total amount = sum(amount)
'Jon Stephens' is a full name of a customer; full name refers to first_name, last_name;
children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))
movies with the most price per day refers to MAX(rental_rate)
staff manager refers to manager_staff_id
highest rental price per day refers to Max(Divide(rental_rate, rental_duration))
lowest replacement cost refers to Min(replacement_cost); under general audience rating refers to rating = G
"Horror" is the name of category
How many rentals did Ella Oliver hire in June 2016?
'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'
store no. 1 refers to store_id = 1; name refers to first_name, last_name
the largest number of films refers to MAX(rental_id)
surname means last_name;
result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))
email address refers to email
full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))
film refers to title; least rented refers to count(min(customer_id))
longest duration of film refers to Max(length)
"Horror" is the name of category
Algeria is a country
What is the name and email of the staff in store ID 2?
name refers to first_name, last_name
"ACADEMY DINOSAUR" is the title of film; language refers to language.name
the largest number of films refers to MAX(rental_id)
inactive customers refers to active = 0;
"Documentary" is the name of category; number of film refers to Count(film_id)
forename means first_name; full name refers to first_name, last_name
film refers to title; least rented refers to count(min(customer_id))
'African Egg' is a title of a film
"Documentary" is the name of category; film name refers to title
'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100
non-active clients refers to active = 0; not returning a rented material refers to rental_date is null
State the name of the category which has the most number of films.
category refers to name; most number of films refers to Max(Count(film_id))
length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'
film refers to title; rated as PG-13 refers to rating = 'PG-13'
rented on 24th May 2005 refers to rental_date = '2005-05-24%'
customer refers to customer_id
average duration time = AVG(length)
customer ID of 100 and below refers to customer_id < 100
surname means last_name;
the largest number of films refers to MAX(rental_id)
name of movie refers to title
ID 996 refers to film_id = 996
Please list the titles of the top 3 films with the highest replacement cost.
highest replacement_cost refers to Max (replacement_cost); film refers to title
R rating refers to rating = 'R'
the biggest amount refers to max(amount)
for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'
"WORKING MICROCOSMOS" is the title of film; category refers to name
store number 2 refers to store_id = 2; where is a store located refers to address, address2, district
United Arab Emirates refers to country = 'United Arab Emirates'
'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))
full name refers to first_name, last_name; acted in the most number of movies refers to MAX(COUNT(film_id))
store no. 1 refers to store_id = 1; name refers to first_name, last_name
"ACADEMY DINOSAUR" is the title of film; language refers to language.name
Who is the customer with the largest payment for rental films?
Who refers to first_name, last_name; the largest payment for rental refers to MAX(SUM(amount))
returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8
for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'
rented in July 2005 refers to year (rental_date) = 2005 and month (rental_date) = 7
active employee refers to active = 1; full name refers to first_name, last_name
highest rental price per day refers to Max(Divide(rental_rate, rental_duration))
highest replacement cost refers to Max (replacement_cost)
result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))
lowest replacement cost refers to Min(replacement_cost); under general audience rating refers to rating = G
Drama' is a name of a category; calculation = DIVIDE(SUM(length < 100 AND name = 'Drama'), COUNT(film_id)) * 100
staff manager refers to manager_staff_id
How many customers are still active?
active refers to active = 1
active refers to active = 1
"BLANKET BEVERLY" is the title of film; rented times refers to count(rental_id)
length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name
full name refers to first_name, last_name; record created in 2006 refers to create_date = 2006; inactive customers refers to active = 0
Algeria is a country
number of address refers to address_id
"Horror" is the name of category; PG-13 rated refers to rating = 'PG-13'
the total amount = sum(amount)
"United States" is the country
'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'
What is the most common special features of science-fiction movies?
"science fiction" is the name of category; most common special features refers to Max(frequency(special_features))
id 1 to 10 refers to film_id BETWEEN 1 and 10
average duration time = AVG(length)
total payment = sum(amount)
R rating refers to rating = 'R'
rental rate of $2.99 refers to rental_rate = 2.99; film refers to title
full name refers to first_name, last_name; "Alabama Devil" refers to title = 'ALABAMA DEVIL'
'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))
actors with highest number of films refers to actor_id with Max(Count(film_id)); full name refers to first_name, last_name; average number of film = Divide (Count(film_id), 5)
address numbers refers to address_id;
most rented movie refers to title where Max(Count(rental_id))
Give the full name of the actor with the highest rental rate.
full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)
actor refers to first_name, last_name; ANONYMOUS HUMAN refers to title = 'ANONYMOUS HUMAN'
rented at 12:27:27 on 2005/7/28 refers to rental_date = '2005-07-28 12:27:27'
forename means first_name; full name refers to first_name, last_name
number of address refers to address_id
'Diane Collins' is a full name of a customer; full name refers to first_name, last_name
full name refers to first_name, last_name; "ACADEMY DINOSAUR" is the title of film
inactive customers refers to active = 0;
film refers to title; rated as PG refers to rating = 'PG'
Drama' is a name of a category; calculation = DIVIDE(SUM(length < 100 AND name = 'Drama'), COUNT(film_id)) * 100
'Mary Keitel' AND 'Angela Witherspoon' are full name of actors; full name refers to FirstName, LastName; calculation = DIVIDE(SUBTRACT(SUM('Mary Keitel'), SUM('Angela Witherspoon')), SUM('Angela Witherspoon')) * 100
What is the name of the most rented movie?
most rented movie refers to title where Max(Count(rental_id))
the most customers refers to MAX(COUNT(customer_id))
active refers to active = 1
"Horror" is the name of category
screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%
a duration of 100 minutes and below refers to length < 100
length longer than 100 refers to length > 100
payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'
highest rental price per day refers to Max(Divide(rental_rate, rental_duration))
rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'
category refers to name; most number of films refers to Max(Count(film_id))
Give the full name of the actor who acted the most in drama movies?
full name refers to first_name, last_name; drama is a category of a film; acted the most in a movies refers to MAX(COUNT(film_id))
'Dan' is a first_name of an actor
'Diane Collins' is a full name of a customer; full name refers to first_name, last_name
film refers to title; rated as PG refers to rating = 'PG'
category name refers to category.name; price per day is more than $30 refers to multiply(rental_duration, rental_rate) > 30
"science fiction" is the name of category; most common special features refers to Max(frequency(special_features))
rented in July 2005 refers to year (rental_date) = 2005 and month (rental_date) = 7
full name refers to first_name, last_name; average payment refers to AVG(amount); payments were greater than 70% of the average refers to amount > (AVG(amount) MULTIPLY 0.7)
restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99
released in 2006 refers to release_year = 2006; rated Adults Only refers to rating = 'NC-17'
full name refers to first_name, last_name; record created in 2006 refers to create_date = 2006; inactive customers refers to active = 0
How many films are there under the category of "Horror"?
"Horror" is the name of category
active refers to active = 1
documentary film refers to category.name = 'documentary'; rated PG-13 refers to rating = 'PG-13'
horror is a name of film category; calculation = DIVIDE(COUNT('horror'), COUNT(category_id)) * 100
full name refers to first_name, last_name; "ACADEMY DINOSAUR" is the title of film
rental rate of $2.99 refers to rental_rate = 2.99; film refers to title
forename means first_name; full name refers to first_name, last_name
full name refers to first_name, last_name; "Alabama Devil" refers to title = 'ALABAMA DEVIL'
full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)
documentary film refers to name = 'documentary'; longest length refers to max(length)
"UPRISING UPTOWN" is the title of film
How long did Austin Cintron take to return the movie 'Destiny Saturday'?
'Destiny Saturday' refers to title = 'DESTINY SATURDAY'; length = subtract(return_date, rental_date)
"India" is the country; name refers to first_name, last_name
'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))
id 1 to 10 refers to film_id BETWEEN 1 and 10
178 min long refers to length = '178'
address numbers refers to address_id;
'Eleanor Hunt' is the full name of a customer; full name refers to first_name, last_name
movie name refers to title; the most recent refers to max(rental_date)
screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%
rented at 12:27:27 on 2005/7/28 refers to rental_date = '2005-07-28 12:27:27'
length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name
State the address location of store No.1.
store no. 1 refers to store_id = 1; address location refers to address, address2, district
store number 2 refers to store_id = 2; where is a store located refers to address, address2, district
first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)
'Destiny Saturday' refers to title = 'DESTINY SATURDAY'; length = subtract(return_date, rental_date)
'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100
returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8
higher replacement cost refers to Max(replacement_cost); 'ACE GOLDFIINGER' and 'ACADEMY DINOSAUR' are both the title of film
most rented movie refers to title where Max(Count(rental_id))
'Diane Collins' is a full name of a customer; full name refers to first_name, last_name
highest replacement cost refers to Max(replacement_cost)
duration between 100 to 110 minutes refers to length between 100 and 110
Calculate the total payment amount of customers in Nagasaki district.
the total payment amount refers to sum(amount)
rented on 26th May 2005 refers to rental_date = '2005-05-26'; return on 30th May, 2005 refers to return_date = '2005-05-30'; number of rented film refers to Count (rental_id)
animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)
active refers to active = 1; '1795 Santiago de Compostela Way' is an address; Texas is a district; who refers to first_name, last_name
more than 2 special features refers to Count(special_features) > 2
Algeria is a country
full name refers to first_name, last_name; acted in the most number of movies refers to MAX(COUNT(film_id))
actor refers to first_name, last_name; ANONYMOUS HUMAN refers to title = 'ANONYMOUS HUMAN'
PG-13 rated movie refers to rating = 'PG-13'; average rental rate = avg(rental_rate)
full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))
active refers to active = 1
How many films have a duration between 100 to 110 minutes?
duration between 100 to 110 minutes refers to length between 100 and 110
restricted refers to rating = 'R'; highest number of film refers to Max(Count(film_id)); full name refers to first_name, last_name
for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'
"Horror" is the name of category
full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))
PG-13 rated movie refers to rating = 'PG-13'; average rental rate = avg(rental_rate)
action is a name of category
ID 996 refers to film_id = 996
full name refers to first_name, last_name; "ACADEMY DINOSAUR" is the title of film
documentary film refers to category.name = 'documentary'; rated PG-13 refers to rating = 'PG-13'
highest replacement cost refers to Max (replacement_cost); full name refers to first_name, last_name
What is the average duration time of the films starring PENELOPE GUINESS?
average duration time = AVG(length)
customer ID of 100 and below refers to customer_id < 100
surname means last_name;
'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'
length longer than 100 refers to length > 100
active refers to active = 1
inactive refers to active = 0; percent = Divide (Count (customer_id where active = 0), Count(customer_id)) * 100
English is a name of a language; for adults only refers to rating = 'NC-17'
full name refers to first_name, last_name; the biggest amount refers to max(amount)
full name refers to first_name, last_name; types of movies means category of movies; rented more than five types of movies refers to COUNT(film_category) > 5
"science fiction" is the name of category; most common special features refers to Max(frequency(special_features))
Who is the owner of email address "[email protected]"? Give the full name.
"[email protected]" is the email; owner refers to customer; full name refers to first_name, last_name
length longer than 100 refers to length > 100
length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name
adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4
full name refers to first_name, last_name; average payment refers to AVG(amount); payments were greater than 70% of the average refers to amount > (AVG(amount) MULTIPLY 0.7)
horror is a name of film category; calculation = DIVIDE(COUNT('horror'), COUNT(category_id)) * 100
"Horror" is the name of category
the total payment amount refers to sum(amount)
documentary film refers to category.name = 'documentary'; rated PG-13 refers to rating = 'PG-13'
active refers to active = 1
"Documentary" is the name of category; film name refers to title
What is the percentage of documentary films?
documentary' is a name of a category; calculation = DIVIDE(SUM(name = 'Documentary'), COUNT(film_id)) * 100
staff manager refers to manager_staff_id
"UPRISING UPTOWN" is the title of film
children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))
id 1 to 10 refers to film_id BETWEEN 1 and 10
"Horror" is the name of category
screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%
surname means last_name;
the most common first name refers to MAX(COUNT(first_name))
category refers to name; rented in February 2006 refers to year(rental_date) = 2006 and month (rental_rate) = 2
full name refers to first_name, last_name; 'comedy' is a name of a category;
State the number of addresses in the Nordrhein-Westfalen district.
number of address refers to address_id
full name refers to first_name, last_name; the biggest amount refers to max(amount)
movie name refers to title; the most recent refers to max(rental_date)
film refers to title; rated as PG-13 refers to rating = 'PG-13'
'Hector Poinexter' is a full name of a customer; full name refers to first_name, last_name;
name of movie refers to title
full name refers to first_name, last_name; drama is a category of a film; acted the most in a movies refers to MAX(COUNT(film_id))
animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)
'classics' is the name of category
in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)
from 5/30/2005 at 3:43:54 AM to 7/31/2005 at 10:08:29 PM refers to payment_date between '2005-05-30 03:43:54' and '2005-07-31 10:08:29'
What is the total amount of money Mary Smith has spent on film rentals?
the total amount = sum(amount)
the total amount = sum(amount); in June 2005 refers to payment_date like '2005-06%'
full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))
average rental rate of all listed films refers to AVG(rental_rate); rental rate greater than the 60% of average rental rate refers to rental_rate > (AVG(rental_rate)) MULTIPLY 0.6
ID 996 refers to film_id = 996
"Horror" is the name of category
first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)
'African Egg' is a title of a film
"UPRISING UPTOWN" is the title of film
name of movie refers to title
rented in July 2005 refers to year (rental_date) = 2005 and month (rental_date) = 7
What is the title of the film with the longest duration time and stars PENELOPE GUINESS?
longest duration of film refers to Max(length)
documentary film refers to category.name = 'documentary'; rated PG-13 refers to rating = 'PG-13'
'Eleanor Hunt' is the full name of a customer; full name refers to first_name, last_name
full name refers to first_name, last_name; drama is a category of a film; acted the most in a movies refers to MAX(COUNT(film_id))
address no. 72 refers to address_id = 72; phone number refers to phone
Algeria is a country
total payment = sum(amount)
'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100
film refers to title; most rented refers to MAX(inventory_id)
returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8
'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))
What is the rental price per day of the most expensive children's film?
children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))
"Documentary" is the name of category; number of film refers to Count(film_id)
classic movie refers to name = 'Classics'; rental rate of less than 1 refers to rental_rate < 1; movie refers to film_id
inactive customers refers to active = 0;
"UPRISING UPTOWN" is the title of film
'Eleanor Hunt' is the full name of a customer; full name refers to first_name, last_name
actor refers to first_name, last_name; film "Bound Cheaper" refers to title = 'BOUND CHEAPER'
'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))
'Jon Stephens' is a full name of a customer; full name refers to first_name, last_name;
highest rental price per day refers to Max(Divide(rental_rate, rental_duration))
full name refers to first_name, last_name; more than 10$ refers to amount > 10
How much percentage of the film did Mary Keitel perform more than Angela Witherspoon?
'Mary Keitel' AND 'Angela Witherspoon' are full name of actors; full name refers to FirstName, LastName; calculation = DIVIDE(SUBTRACT(SUM('Mary Keitel'), SUM('Angela Witherspoon')), SUM('Angela Witherspoon')) * 100
full name refers to first_name, last_name; more than 10$ refers to amount > 10
higher replacement cost refers to Max(replacement_cost); 'ACE GOLDFIINGER' and 'ACADEMY DINOSAUR' are both the title of film
rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'
rental duration of over 6 days refers to rental_duration > 6
rented at 12:27:27 on 2005/7/28 refers to rental_date = '2005-07-28 12:27:27'
most common category refers to MAX(COUNT(category.name))
"Horror" is the name of category; PG-13 rated refers to rating = 'PG-13'
documentary film refers to name = 'documentary'; longest length refers to max(length)
film refers to title; rent for more than 5 days refers to rental_duration > 5
full name refers to first_name, last_name; the biggest amount refers to max(amount)
How many of the actors are named "Dan"?
'Dan' is a first_name of an actor
category refers to name; film "Beach Heartbreakers" refers to title = 'BEACH HEARTBREAKERS'
film refers to title; rent for more than 5 days refers to rental_duration > 5
in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)
"Horror" is the name of category; PG-13 rated refers to rating = 'PG-13'
movie name refers to title; the most recent refers to max(rental_date)
restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99
length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name
full name refers to first_name, last_name
full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))
average duration time = AVG(length)
How many films in English are for adults only?
English is a name of a language; for adults only refers to rating = 'NC-17'
most rented movie refers to title where Max(Count(rental_id))
'African Egg' is a title of a film
'Dan' is a first_name of an actor
address numbers refers to address_id;
inactive refers to active = 0; percent = Divide (Count (customer_id where active = 0), Count(customer_id)) * 100
classic movie refers to name = 'Classics'; rental rate of less than 1 refers to rental_rate < 1; movie refers to film_id
rental rate of $2.99 refers to rental_rate = 2.99; film refers to title
action is a name of category
customer ID of 100 and below refers to customer_id < 100
active refers to active = 1
How many films rented to the customer RUTH MARTINEZ were returned in August, 2005?
returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8
highest replacement cost refers to Max (replacement_cost)
email address refers to email
result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))
the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'
"India" is the country; name refers to first_name, last_name
"Horror" is the name of category
id 1 to 10 refers to film_id BETWEEN 1 and 10
category refers to name; rented in February 2006 refers to year(rental_date) = 2006 and month (rental_rate) = 2
lowest replacement cost refers to Min(replacement_cost); under general audience rating refers to rating = G
178 min long refers to length = '178'
Among the movies, what percentage are horror?
horror is a name of film category; calculation = DIVIDE(COUNT('horror'), COUNT(category_id)) * 100
actor refers to first_name, last_name; film "Bound Cheaper" refers to title = 'BOUND CHEAPER'
times of rented refers to Count(rental_id)
actors with highest number of films refers to actor_id with Max(Count(film_id)); full name refers to first_name, last_name; average number of film = Divide (Count(film_id), 5)
category name refers to category.name; price per day is more than $30 refers to multiply(rental_duration, rental_rate) > 30
full name refers to first_name, last_name; 'comedy' is a name of a category;
full name refers to first_name, last_name; types of movies means category of movies; rented more than five types of movies refers to COUNT(film_category) > 5
full name refers to first_name, last_name; average payment refers to AVG(amount); payments were greater than 70% of the average refers to amount > (AVG(amount) MULTIPLY 0.7)
first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)
full name refers to first_name, last_name; acted in the most number of movies refers to MAX(COUNT(film_id))
full name refers to first_name, last_name; record created in 2006 refers to create_date = 2006; inactive customers refers to active = 0
How many customers are active?
active refers to active = 1
animated film means animation; animation is a name of a category
returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8
"[email protected]" is the email; owner refers to customer; full name refers to first_name, last_name
Who refers to first_name, last_name; the largest payment for rental refers to MAX(SUM(amount))
full name refers to first_name, last_name; "ACADEMY DINOSAUR" is the title of film
documentary' is a name of a category; calculation = DIVIDE(SUM(name = 'Documentary'), COUNT(film_id)) * 100
length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name
highest replacement cost refers to Max (replacement_cost); full name refers to first_name, last_name
77 min film refers to length = 77
store 1 refers to store_id = 1; average rent amount refers to AVG(amount); calculation = DIVIDE(amount > AVG(amount), COUNT(customer_id)) * 100
Where is store number 2 located?
store number 2 refers to store_id = 2; where is a store located refers to address, address2, district
returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8
total payment = sum(amount)
full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))
a duration of 100 minutes and below refers to length < 100
id 1 to 10 refers to film_id BETWEEN 1 and 10
name of movie refers to title
film refers to title; least rented refers to count(min(customer_id))
Who refers to first_name, last_name; the largest payment for rental refers to MAX(SUM(amount))
active refers to active = 1; '1795 Santiago de Compostela Way' is an address; Texas is a district; who refers to first_name, last_name
surname means last_name;
List all the cities that belong to United Arab Emirates.
United Arab Emirates refers to country = 'United Arab Emirates'
category refers to name; film "Beach Heartbreakers" refers to title = 'BEACH HEARTBREAKERS'
'Hector Poinexter' is a full name of a customer; full name refers to first_name, last_name;
PG-13 rated movie refers to rating = 'PG-13'; average rental rate = avg(rental_rate)
"[email protected]" is the email; owner refers to customer; full name refers to first_name, last_name
'Diane Collins' is a full name of a customer; full name refers to first_name, last_name
inactive refers to active = 0; percent = Divide (Count (customer_id where active = 0), Count(customer_id)) * 100
film refers to title; least rented refers to count(min(customer_id))
first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)
"CHOCOLATE DUCK" is the title of film; full name refers to first_name, last_name
"United States" is the country
What is the biggest amount of payment for a rental made by Mary Smith?
the biggest amount refers to max(amount)
full name refers to first_name, last_name; acted in the most number of movies refers to MAX(COUNT(film_id))
percentage = divide(sum(amount where first_name = 'MARGARET' and last_name = 'MOORE'), sum(amount)) * 100%
documentary' is a name of a category; calculation = DIVIDE(SUM(name = 'Documentary'), COUNT(film_id)) * 100
"Horror" is the name of category
film refers to title; rated as PG refers to rating = 'PG'
inactive customers refers to active = 0;
film refers to title of the film; 'Penelope Guiness' is a full name of an actor; full name refers to first_name, last_name
"BLANKET BEVERLY" is the title of film; rented times refers to count(rental_id)
store no. 1 refers to store_id = 1; address location refers to address, address2, district
'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))
Which category does BABY HALL film belong to?
category refers to name; BABY HALL film refers to title = 'BABY HALL'
customer ID of 100 and below refers to customer_id < 100
name of movie refers to title
id 1 to 10 refers to film_id BETWEEN 1 and 10
average rental rate of all listed films refers to AVG(rental_rate); rental rate greater than the 60% of average rental rate refers to rental_rate > (AVG(rental_rate)) MULTIPLY 0.6
full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))
full name refers to first_name, last_name; 692 Joliet Street refers to address = '692 Joliet Street'
"ACADEMY DINOSAUR" is the title of film; language refers to language.name
for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'
"UPRISING UPTOWN" is the title of film
more than 2 special features refers to Count(special_features) > 2
List the films' titles which were rented on 24th May,2005.
rented on 24th May 2005 refers to rental_date = '2005-05-24%'
"Horror" is the name of category; PG-13 rated refers to rating = 'PG-13'
active employee refers to active = 1; full name refers to first_name, last_name
PG-13 rated movie refers to rating = 'PG-13'; average rental rate = avg(rental_rate)
full name refers to first_name, last_name; 'comedy' is a name of a category;
'African Egg' is a title of a film
horror film refers to category.name = 'Horror'; English film refers to language.name = 'English'; percentage = divide(count(film_id where category.name = 'Horror'), count(film_id)) where language.name = 'English' * 100%
category refers to name; rented in February 2006 refers to year(rental_date) = 2006 and month (rental_rate) = 2
full name refers to first_name, last_name; average payment refers to AVG(amount); payments were greater than 70% of the average refers to amount > (AVG(amount) MULTIPLY 0.7)
'Dan' is a first_name of an actor
animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)
Please name three cities that belong to Algeria.
Algeria is a country
name of movie refers to title
'Eleanor Hunt' is the full name of a customer; full name refers to first_name, last_name
action is a name of category
customer refers to customer_id
English is a name of a language; for adults only refers to rating = 'NC-17'
film refers to title; least rented refers to count(min(customer_id))
"CHOCOLATE DUCK" is the title of film; full name refers to first_name, last_name
released in 2006 refers to release_year = 2006; rated Adults Only refers to rating = 'NC-17'
total payment = sum(amount)
178 min long refers to length = '178'
State the number of films that are 178 minutes long.
178 min long refers to length = '178'
active refers to active = 1
active employee refers to active = 1; full name refers to first_name, last_name
payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'
English is a name of a language; for adults only refers to rating = 'NC-17'
'African Egg' is a title of a film
category name refers to category.name; price per day is more than $30 refers to multiply(rental_duration, rental_rate) > 30
"Gina DeGeneres" and "Penelope Guinness" are both full name of actor; times number of film = Divide (Count (film_id where first_name = 'GINA' and last_name = 'DEGENERES'), Count(film_id where first_name = 'PENELOPE' and last_name = 'GUINESS'))
'Diane Collins' is a full name of a customer; full name refers to first_name, last_name
full name refers to first_name, last_name; 'comedy' is a name of a category;
actors with highest number of films refers to actor_id with Max(Count(film_id)); full name refers to first_name, last_name; average number of film = Divide (Count(film_id), 5)
List movie titles with duration over 120 minutes that are in the action category.
duration over 120 minutes refers to length > 120; action category refers to category.name = 'action'
length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'
rented on 24th May 2005 refers to rental_date = '2005-05-24%'
rental rate of $2.99 refers to rental_rate = 2.99; film refers to title
Who refers to first_name, last_name; the largest payment for rental refers to MAX(SUM(amount))
most common category refers to MAX(COUNT(category.name))
store number 2 refers to store_id = 2; where is a store located refers to address, address2, district
rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'
"Horror" is the name of category
store no. 1 refers to store_id = 1; store no.2 refers to store_id = 2; rental payment refers to amount; percent more = Divide (Subtract(amount where store_id = 2, amount where store_id = 1), amount where store_id = 1) *100
Italian is name of language; special featured with deleted scenes refers to special_features = 'deleted scenes'
List the store ID of the films with a rental rate greater than the 60% of average rental rate of all listed films.
average rental rate of all listed films refers to AVG(rental_rate); rental rate greater than the 60% of average rental rate refers to rental_rate > (AVG(rental_rate)) MULTIPLY 0.6
'Hector Poinexter' is a full name of a customer; full name refers to first_name, last_name;
PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100
most common category refers to MAX(COUNT(category.name))
the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'
result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))
"Gina DeGeneres" and "Penelope Guinness" are both full name of actor; times number of film = Divide (Count (film_id where first_name = 'GINA' and last_name = 'DEGENERES'), Count(film_id where first_name = 'PENELOPE' and last_name = 'GUINESS'))
'classics' is the name of category
from 5/30/2005 at 3:43:54 AM to 7/31/2005 at 10:08:29 PM refers to payment_date between '2005-05-30 03:43:54' and '2005-07-31 10:08:29'
category refers to name; film "Beach Heartbreakers" refers to title = 'BEACH HEARTBREAKERS'
'Agent Truman' is a title of a film; category refers to name
Among the active customers, how many of them have Nina as their first name?
active refers to active = 1
movies with the most price per day refers to MAX(rental_rate)
highest replacement cost refers to Max (replacement_cost); full name refers to first_name, last_name
postal code that begins with 76 refers to postal_code like '76%'
highest replacement cost refers to Max (replacement_cost)
longest duration of film refers to Max(length)
PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100
action is a name of category
Italian is name of language; special featured with deleted scenes refers to special_features = 'deleted scenes'
inactive refers to active = 0; percent = Divide (Count (customer_id where active = 0), Count(customer_id)) * 100
full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)
Which category is the most common?
most common category refers to MAX(COUNT(category.name))
duration between 100 to 110 minutes refers to length between 100 and 110
"STREETCAR INTENTIONS" is the title of film; actor's names refers to first_name, last_name
"Horror" is the name of category
"Horror" is the name of category
store no. 1 refers to store_id = 1; store no.2 refers to store_id = 2; rental payment refers to amount; percent more = Divide (Subtract(amount where store_id = 2, amount where store_id = 1), amount where store_id = 1) *100
percentage = divide(sum(amount where first_name = 'MARGARET' and last_name = 'MOORE'), sum(amount)) * 100%
a duration of 100 minutes and below refers to length < 100
times of rented refers to Count(rental_id)
restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99
forename means first_name; full name refers to first_name, last_name
Among the films that are released in 2006, how many of them are rated Adults Only in the Motion Picture Association Film Rating?
released in 2006 refers to release_year = 2006; rated Adults Only refers to rating = 'NC-17'
"1411 Lillydate Drive" is the address
times of rented refers to Count(rental_id)
'Wyoming Storm' refers to title = 'WYOMING STORM'
"Documentary" is the name of category; film name refers to title
surname means last_name;
full name refers to first_name, last_name; record created in 2006 refers to create_date = 2006; inactive customers refers to active = 0
active refers to active = 1
restricted refers to rating = 'R'; highest number of film refers to Max(Count(film_id)); full name refers to first_name, last_name
'Russell Close' is a full name of an actor; full name refers to first_name, last_name; duration between 110 to 150 minutes refers to length BETWEEN 110 AND 150
full name refers to first_name, last_name
Give the full name of the actor who acted in the most number of movies?
full name refers to first_name, last_name; acted in the most number of movies refers to MAX(COUNT(film_id))
full name refers to first_name, last_name; the biggest amount refers to max(amount)
screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%
'Mary Keitel' AND 'Angela Witherspoon' are full name of actors; full name refers to FirstName, LastName; calculation = DIVIDE(SUBTRACT(SUM('Mary Keitel'), SUM('Angela Witherspoon')), SUM('Angela Witherspoon')) * 100
full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))
the largest number of films refers to MAX(rental_id)
"Clarksville" is the city;
name of movie refers to title
animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)
category refers to name; film "Beach Heartbreakers" refers to title = 'BEACH HEARTBREAKERS'
active refers to active = 1
Who is the staff manager in store id 2?
staff manager refers to manager_staff_id
rented at 12:27:27 on 2005/7/28 refers to rental_date = '2005-07-28 12:27:27'
full name refers to first_name, last_name; "ACADEMY DINOSAUR" is the title of film
highest rental price per day refers to Max(Divide(rental_rate, rental_duration))
full name refers to first_name, last_name; actor who starred in the most movies refers to actor_id where Max(Count(film_id))
highest replacement_cost refers to Max (replacement_cost); film refers to title
category refers to name; film "Beach Heartbreakers" refers to title = 'BEACH HEARTBREAKERS'
average payment refers to AVG(amount)
rented in July 2005 refers to year (rental_date) = 2005 and month (rental_date) = 7
for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'
the largest number of films refers to MAX(rental_id)
What are the films that are least rented by the customers?
film refers to title; least rented refers to count(min(customer_id))
film refers to title; most rented refers to MAX(inventory_id)
'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))
the total amount = sum(amount)
store number 2 refers to store_id = 2; where is a store located refers to address, address2, district
total payment = sum(amount)
horror is a name of film category; calculation = DIVIDE(COUNT('horror'), COUNT(category_id)) * 100
PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100
the total amount = sum(amount); in June 2005 refers to payment_date like '2005-06%'
active refers to active = 1
full name refers to first_name, last_name; the biggest amount refers to max(amount)
Provide the full names and emails of customers whose payments were greater than 70% of the average.
full name refers to first_name, last_name; average payment refers to AVG(amount); payments were greater than 70% of the average refers to amount > (AVG(amount) MULTIPLY 0.7)
surname means last_name;
'Dan' is a first_name of an actor
'Diane Collins' is a full name of a customer; full name refers to first_name, last_name
actors with highest number of films refers to actor_id with Max(Count(film_id)); full name refers to first_name, last_name; average number of film = Divide (Count(film_id), 5)
staff manager refers to manager_staff_id
"BLANKET BEVERLY" is the title of film; rented times refers to count(rental_id)
'Destiny Saturday' refers to title = 'DESTINY SATURDAY'; length = subtract(return_date, rental_date)
'African Egg' is a title of a film
times of rented refers to Count(rental_id)
animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)
What is the rental price per day for Airplane Sierra?
rental price per day refers to DIVIDE(rental_price, rental_duration); 'Airplane Sierra' is a title of a film
full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))
id 1 to 10 refers to film_id BETWEEN 1 and 10
action is a name of category
full name refers to first_name, last_name; more than 10$ refers to amount > 10
non-active clients refers to active = 0; not returning a rented material refers to rental_date is null
'Diane Collins' is a full name of a customer; full name refers to first_name, last_name
"ACADEMY DINOSAUR" is the title of film; language refers to language.name
film refers to title; most rented refers to MAX(inventory_id)
classic movie refers to name = 'Classics'; rental rate of less than 1 refers to rental_rate < 1; movie refers to film_id
English is a name of a language; for adults only refers to rating = 'NC-17'
How many times is the number of films Gina DeGeneres acted in than Penelope Guinness?
"Gina DeGeneres" and "Penelope Guinness" are both full name of actor; times number of film = Divide (Count (film_id where first_name = 'GINA' and last_name = 'DEGENERES'), Count(film_id where first_name = 'PENELOPE' and last_name = 'GUINESS'))
the most customers refers to MAX(COUNT(customer_id))
length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'
average rental rate of all listed films refers to AVG(rental_rate); rental rate greater than the 60% of average rental rate refers to rental_rate > (AVG(rental_rate)) MULTIPLY 0.6
adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4
animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)
"ARTIST COLDBLOODED" is the title of film
the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'
"Clarksville" is the city;
active refers to active = 1
"science fiction" is the name of category; most common special features refers to Max(frequency(special_features))
What are the actors that have the same forename as Johnny? Please include in your answer the full names of these actors.
forename means first_name; full name refers to first_name, last_name
rented on 24th May 2005 refers to rental_date = '2005-05-24%'
full name refers to first_name, last_name; record created in 2006 refers to create_date = 2006; inactive customers refers to active = 0
store no. 1 refers to store_id = 1; name refers to first_name, last_name
ID 996 refers to film_id = 996
'classics' is the name of category
percentage = divide(sum(amount where first_name = 'MARGARET' and last_name = 'MOORE'), sum(amount)) * 100%
staff manager refers to manager_staff_id
'Jason trap' is a title of a film; cast means actor; actor refers to first_name, last_name
rental duration of over 6 days refers to rental_duration > 6
horror is a name of film category; calculation = DIVIDE(COUNT('horror'), COUNT(category_id)) * 100
Among the films that the customer RUTH MARTINEZ has rented, what is the title of the one with the highest replacement cost?
highest replacement cost refers to Max(replacement_cost)
active refers to active = 1
full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))
"STREETCAR INTENTIONS" is the title of film; actor's names refers to first_name, last_name
"1411 Lillydate Drive" is the address
film refers to title; rated as PG refers to rating = 'PG'
"Horror" is the name of category
movie name refers to title; the most recent refers to max(rental_date)
'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))
inactive customers refers to active = 0;
lowest replacement cost refers to Min(replacement_cost); under general audience rating refers to rating = G
Where can you rent the movie 'Wyoming Storm'? Identify the address of the rental store and the rental rate.
'Wyoming Storm' refers to title = 'WYOMING STORM'
United Arab Emirates refers to country = 'United Arab Emirates'
full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)
active refers to active = 1; '1795 Santiago de Compostela Way' is an address; Texas is a district; who refers to first_name, last_name
customer ID of 100 and below refers to customer_id < 100
id 1 to 10 refers to film_id BETWEEN 1 and 10
PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100
more than 2 special features refers to Count(special_features) > 2
category refers to name; rented in February 2006 refers to year(rental_date) = 2006 and month (rental_rate) = 2
customer refers to customer_id
category refers to name; most number of films refers to Max(Count(film_id))
Which continent is the mother country of Clarksville city in?
"Clarksville" is the city;
Drama' is a name of a category; calculation = DIVIDE(SUM(length < 100 AND name = 'Drama'), COUNT(film_id)) * 100
rental duration of over 6 days refers to rental_duration > 6
customer refers to customer_id
longest duration of film refers to Max(length)
full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))
the total payment amount refers to sum(amount)
'Russell Close' is a full name of an actor; full name refers to first_name, last_name; duration between 110 to 150 minutes refers to length BETWEEN 110 AND 150
documentary film refers to name = 'documentary'; longest length refers to max(length)
the most customers refers to MAX(COUNT(customer_id))
rental rate of $2.99 refers to rental_rate = 2.99; film refers to title
List down all ratings of action film titles.
for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'
indian refers to country = 'India'; Italian refers to country = 'Italy'; times = Divide(Count(city where country = 'India), Count(city where country = 'Italy'))
full name refers to first_name, last_name; 'comedy' is a name of a category;
"UPRISING UPTOWN" is the title of film
'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))
"India" is the country; name refers to first_name, last_name
'Agent Truman' is a title of a film; category refers to name
length longer than 100 refers to length > 100
from 5/30/2005 at 3:43:54 AM to 7/31/2005 at 10:08:29 PM refers to payment_date between '2005-05-30 03:43:54' and '2005-07-31 10:08:29'
'Texas' is a district
a duration of 100 minutes and below refers to length < 100
Among all the films starring PENELOPE GUINESS, what is the title of the one with the highest rental price per day?
highest rental price per day refers to Max(Divide(rental_rate, rental_duration))
the largest number of films refers to MAX(rental_id)
"CHOCOLATE DUCK" is the title of film; full name refers to first_name, last_name
result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))
highest replacement_cost refers to Max (replacement_cost); film refers to title
store no. 1 refers to store_id = 1; store no.2 refers to store_id = 2; rental payment refers to amount; percent more = Divide (Subtract(amount where store_id = 2, amount where store_id = 1), amount where store_id = 1) *100
'Jon Stephens' is a full name of a customer; full name refers to first_name, last_name;
store no. 1 refers to store_id = 1; address location refers to address, address2, district
most rented movie refers to title where Max(Count(rental_id))
id 1 to 10 refers to film_id BETWEEN 1 and 10
rented on 26th May 2005 refers to rental_date = '2005-05-26'; return on 30th May, 2005 refers to return_date = '2005-05-30'; number of rented film refers to Count (rental_id)
Please give the title of the film starring PENELOPE GUINESS and has the highest replacement cost.
highest replacement cost refers to Max (replacement_cost)
highest replacement cost refers to Max(replacement_cost)
store no. 1 refers to store_id = 1; address location refers to address, address2, district
rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'
'Hector Poinexter' is a full name of a customer; full name refers to first_name, last_name;
non-active clients refers to active = 0; not returning a rented material refers to rental_date is null
'Jon Stephens' is a full name of a customer; full name refers to first_name, last_name;
"ARTIST COLDBLOODED" is the title of film
"CHOCOLATE DUCK" is the title of film; full name refers to first_name, last_name
"United States" is the country
result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))
How many film titles were released in 2006?
released in 2006 refers to release_year = 2006
action is a name of category
actor refers to first_name, last_name; ANONYMOUS HUMAN refers to title = 'ANONYMOUS HUMAN'
movie name refers to title; the most recent refers to max(rental_date)
result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))
77 min film refers to length = 77
percentage = divide(sum(amount where first_name = 'MARGARET' and last_name = 'MOORE'), sum(amount)) * 100%
duration over 120 minutes refers to length > 120; action category refers to category.name = 'action'
178 min long refers to length = '178'
'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'
name of movie refers to title
List the names of the customers from India.
"India" is the country; name refers to first_name, last_name
active refers to active = 1
"UPRISING UPTOWN" is the title of film
non-active clients refers to active = 0; not returning a rented material refers to rental_date is null
'Mary Keitel' AND 'Angela Witherspoon' are full name of actors; full name refers to FirstName, LastName; calculation = DIVIDE(SUBTRACT(SUM('Mary Keitel'), SUM('Angela Witherspoon')), SUM('Angela Witherspoon')) * 100
full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))
the biggest amount refers to max(amount)
active refers to active = 1
'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))
rented on 26th May 2005 refers to rental_date = '2005-05-26'; return on 30th May, 2005 refers to return_date = '2005-05-30'; number of rented film refers to Count (rental_id)
inactive customers refers to active = 0;