set
dict
{ "query": "Calculate the percentage of movie titles with a screen length of more than 120 minutes that have a category of horror movies.", "pos": [ "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%" ], "neg": [ "77 min film refers to length = 77", "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))", "returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8", "number of address refers to address_id", "the total amount = sum(amount); in June 2005 refers to payment_date like '2005-06%'", "ID 996 refers to film_id = 996", "animated film means animation; animation is a name of a category", "highest replacement cost refers to Max (replacement_cost); full name refers to first_name, last_name", "\"WORKING MICROCOSMOS\" is the title of film; category refers to name", "more than 2 special features refers to Count(special_features) > 2" ] }
{ "query": "How many movies have a length longer than 100?", "pos": [ "length longer than 100 refers to length > 100" ], "neg": [ "Who refers to first_name, last_name; the largest payment for rental refers to MAX(SUM(amount))", "animated film means animation; animation is a name of a category", "\"Horror\" is the name of category", "non-active clients refers to active = 0; not returning a rented material refers to rental_date is null", "'classics' is the name of category", "most common category refers to MAX(COUNT(category.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'", "longest duration of film refers to Max(length)", "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)", "duration over 120 minutes refers to length > 120; action category refers to category.name = 'action'" ] }
{ "query": "Among the films with a rental duration of 7 days, how many are comedies?", "pos": [ "rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'" ], "neg": [ "\"India\" is the country; name refers to first_name, last_name", "length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'", "first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)", "children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))", "active refers to active = 1", "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))", "\"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'))", "staff manager refers to manager_staff_id", "full name refers to first_name, last_name; the biggest amount refers to max(amount)" ] }
{ "query": "Among the films starred by Reese West, what is the difference between the films that have store ID of 1 and store ID of 2?", "pos": [ "result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))" ], "neg": [ "PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100", "'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", "name refers to first_name, last_name", "postal code that begins with 76 refers to postal_code like '76%'", "active refers to active = 1", "full name refers to first_name, last_name; the biggest amount refers to max(amount)", "length longer than 100 refers to length > 100", "the total amount = sum(amount)", "full name refers to first_name, last_name", "film refers to title; most rented refers to MAX(inventory_id)" ] }
{ "query": "List the store ID of the films starred by Reese West with a duration of 100 minutes and below?", "pos": [ "a duration of 100 minutes and below refers to length < 100" ], "neg": [ "highest replacement cost refers to Max(replacement_cost)", "higher replacement cost refers to Max(replacement_cost); 'ACE GOLDFIINGER' and 'ACADEMY DINOSAUR' are both the title of film", "address numbers refers to address_id;", "ID 996 refers to film_id = 996", "full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)", "the most common first name refers to MAX(COUNT(first_name))", "store number 2 refers to store_id = 2; where is a store located refers to address, address2, district", "length longer than 100 refers to length > 100", "number of address refers to address_id", "category name refers to category.name; price per day is more than $30 refers to multiply(rental_duration, rental_rate) > 30" ] }
{ "query": "How many cities are there in the United States?", "pos": [ "\"United States\" is the country" ], "neg": [ "surname means last_name;", "average duration time = AVG(length)", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "duration over 120 minutes refers to length > 120; action category refers to category.name = 'action'", "\"Horror\" is the name of category", "full name refers to first_name, last_name; the biggest amount refers to max(amount)", "category refers to name; film \"Beach Heartbreakers\" refers to title = 'BEACH HEARTBREAKERS'", "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; \"Alabama Devil\" refers to title = 'ALABAMA DEVIL'", "restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99" ] }
{ "query": "What are the addresses of the inactive customers?", "pos": [ "inactive customers refers to active = 0;" ], "neg": [ "indian refers to country = 'India'; Italian refers to country = 'Italy'; times = Divide(Count(city where country = 'India), Count(city where country = 'Italy'))", "the total payment amount refers to sum(amount)", "category refers to name; BABY HALL film refers to title = 'BABY HALL'", "rented on 24th May 2005 refers to rental_date = '2005-05-24%'", "full name refers to first_name, last_name; 'comedy' is a name of a category;", "the total amount = sum(amount)", "payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'", "\"UPRISING UPTOWN\" is the title of film", "restricted refers to rating = 'R'; highest number of film refers to Max(Count(film_id)); full name refers to first_name, last_name", "\"WORKING MICROCOSMOS\" is the title of film; category refers to name" ] }
{ "query": "How many payments were made throughout the month of August 2005?", "pos": [ "payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'" ], "neg": [ "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", "restricted refers to rating = 'R'; highest number of film refers to Max(Count(film_id)); 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))", "animated film means animation; animation is a name of a category", "'Wyoming Storm' refers to title = 'WYOMING STORM'", "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'", "movies with the most price per day refers to MAX(rental_rate)", "'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", "classic movie refers to name = 'Classics'; rental rate of less than 1 refers to rental_rate < 1; movie refers to film_id" ] }
{ "query": "List the inventory ID of the film titled \"African Egg\".", "pos": [ "'African Egg' is a title of a film" ], "neg": [ "film refers to title; rent for more than 5 days refers to rental_duration > 5", "email address refers to email", "actor refers to first_name, last_name; ANONYMOUS HUMAN refers to title = 'ANONYMOUS HUMAN'", "total payment = 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", "ID 996 refers to film_id = 996", "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)", "the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'", "longest duration of film refers to Max(length)", "\"WORKING MICROCOSMOS\" is the title of film; category refers to name" ] }
{ "query": "How many times is the number of Indian cities than Italian cities?", "pos": [ "indian refers to country = 'India'; Italian refers to country = 'Italy'; times = Divide(Count(city where country = 'India), Count(city where country = 'Italy'))" ], "neg": [ "English is a name of a language; for adults only refers to rating = 'NC-17'", "\"[email protected]\" is the email; owner refers to customer; full name refers to first_name, last_name", "'classics' is the name of category", "the total payment amount refers to sum(amount)", "payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'", "active refers to active = 1", "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)", "documentary film refers to category.name = 'documentary'; rated PG-13 refers to rating = 'PG-13'", "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'" ] }
{ "query": "What is the title of the animated films that have the shortest length?", "pos": [ "animated film means animation; animation is a name of a category" ], "neg": [ "full name refers to first_name, last_name; actor who starred in the most movies refers to actor_id where Max(Count(film_id))", "full name refers to first_name, last_name; 'comedy' is a name of a category;", "'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'", "active refers to active = 1; '1795 Santiago de Compostela Way' is an address; Texas is a district; who refers to first_name, last_name", "Who refers to first_name, last_name; the largest payment for rental refers to MAX(SUM(amount))", "name refers to first_name, last_name", "total payment = sum(amount)", "forename means first_name; full name refers to first_name, last_name", "the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'", "\"Horror\" is the name of category" ] }
{ "query": "List the films' titles which were rented by Brian Wyman in July, 2005.", "pos": [ "rented in July 2005 refers to year (rental_date) = 2005 and month (rental_date) = 7" ], "neg": [ "United Arab Emirates refers to country = 'United Arab Emirates'", "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", "the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'", "film refers to title of the film; 'Penelope Guiness' is a full name of an actor; 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", "full name refers to first_name, last_name; 692 Joliet Street refers to address = '692 Joliet Street'", "inactive customers refers to active = 0;", "Algeria is a country", "R rating refers to rating = 'R'" ] }
{ "query": "How many documentary films are rated PG-13?", "pos": [ "documentary film refers to category.name = 'documentary'; rated PG-13 refers to rating = 'PG-13'" ], "neg": [ "customer ID of 100 and below refers to customer_id < 100", "adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4", "\"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", "classic movie refers to name = 'Classics'; rental rate of less than 1 refers to rental_rate < 1; movie refers to film_id", "animated film means animation; animation is a name of a category", "longest duration of film refers to Max(length)", "\"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'))", "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%", "77 min film refers to length = 77" ] }
{ "query": "Calculate the total rental rate for animation film titles.", "pos": [ "animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)" ], "neg": [ "restricted refers to rating = 'R'; highest number of film refers to Max(Count(film_id)); full name refers to first_name, last_name", "\"[email protected]\" is the email; owner refers to customer; full name refers to first_name, last_name", "active refers to active = 1", "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", "returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8", "store no. 1 refers to store_id = 1; address location refers to address, address2, district", "full name refers to first_name, last_name; types of movies means category of movies; \nrented more than five types of movies refers to COUNT(film_category) > 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)" ] }
{ "query": "Who are the top 5 actors with the highest number of films? List their full names and calculate the average number of films for each of the actors.", "pos": [ "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)" ], "neg": [ "'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", "times of rented refers to Count(rental_id)", "animated film means animation; animation is a name of a category", "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", "\"Clarksville\" is the city;", "film refers to title; most rented refers to MAX(inventory_id)", "full name refers to first_name, last_name; more than 10$ refers to amount > 10", "full name refers to first_name, last_name; 'comedy' is a name of a category;", "longest duration of film refers to Max(length)", "more than 2 special features refers to Count(special_features) > 2" ] }
{ "query": "Write down any five film names under the documentary category.", "pos": [ "\"Documentary\" is the name of category; film name refers to title" ], "neg": [ "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))" ] }
{ "query": "Which film has a higher replacement cost, ACE GOLDFINGER or ACADEMY DINOSAUR?", "pos": [ "higher replacement cost refers to Max(replacement_cost); 'ACE GOLDFIINGER' and 'ACADEMY DINOSAUR' are both the title of film" ], "neg": [ "'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))" ] }
{ "query": "What is the full name of the actor who starred in most movies?", "pos": [ "full name refers to first_name, last_name; actor who starred in the most movies refers to actor_id where Max(Count(film_id))" ], "neg": [ "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" ] }
{ "query": "In films with a length duration of 113 minutes, how many of the films are starred by Kirk Jovovich?", "pos": [ "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" ], "neg": [ "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" ] }
{ "query": "What is the inventory ID of the films starred by Russell Close with a duration between 110 to 150 minutes?", "pos": [ "'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" ], "neg": [ "\"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" ] }
{ "query": "What is the most common first name among the customers?", "pos": [ "the most common first name refers to MAX(COUNT(first_name))" ], "neg": [ "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" ] }
{ "query": "Please list the full names of all the actors that have starred in the film ACADEMY DINOSAUR.", "pos": [ "full name refers to first_name, last_name; \"ACADEMY DINOSAUR\" is the title of film" ], "neg": [ "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" ] }
{ "query": "What is the language of the film ACADEMY DINOSAUR?", "pos": [ "\"ACADEMY DINOSAUR\" is the title of film; language refers to language.name" ], "neg": [ "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" ] }
{ "query": "How many different clients have rented materials from Jon Stephens?", "pos": [ "'Jon Stephens' is a full name of a customer; full name refers to first_name, last_name;" ], "neg": [ "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'))" ] }
{ "query": "Among the films rented by Natalie Meyer, describe the titles and categories of the films which were rented in February 2006.", "pos": [ "category refers to name; rented in February 2006 refers to year(rental_date) = 2006 and month (rental_rate) = 2" ], "neg": [ "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)" ] }
{ "query": "Find the full name and email address of inactive customers whose record was created in 2006.", "pos": [ "full name refers to first_name, last_name; record created in 2006 refers to create_date = 2006; inactive customers refers to active = 0" ], "neg": [ "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" ] }
{ "query": "Which category is the film \"Beach Heartbreakers\" falls into?", "pos": [ "category refers to name; film \"Beach Heartbreakers\" refers to title = 'BEACH HEARTBREAKERS'" ], "neg": [ "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)" ] }
{ "query": "What is the full name of the customer who rented the highest number of movies of all time?", "pos": [ "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))" ], "neg": [ "'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" ] }
{ "query": "List all the films that Karl Berr starred in and rated as PG.", "pos": [ "film refers to title; rated as PG refers to rating = 'PG'" ], "neg": [ "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" ] }
{ "query": "Please list the titles of all the films that have more than 2 special features.", "pos": [ "more than 2 special features refers to Count(special_features) > 2" ], "neg": [ "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'" ] }
{ "query": "Among the classic movies, how many movies have a rental rate of less than 1?", "pos": [ "classic movie refers to name = 'Classics'; rental rate of less than 1 refers to rental_rate < 1; movie refers to film_id" ], "neg": [ "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" ] }
{ "query": "Calculate the percentage of customers who paid more than the average rent amount in store 1.", "pos": [ "store 1 refers to store_id = 1; average rent amount refers to AVG(amount); calculation = DIVIDE(amount > AVG(amount), COUNT(customer_id)) * 100" ], "neg": [ "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" ] }
{ "query": "Which movie title has the lowest movie rental in the horror category?", "pos": [ "the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'" ], "neg": [ "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" ] }
{ "query": "Identify the full name of the customer, who has the following email address: [email protected].", "pos": [ "full name refers to first_name, last_name" ], "neg": [ "\"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" ] }
{ "query": "How many Italian film titles were special featured with deleted scenes?", "pos": [ "Italian is name of language; special featured with deleted scenes refers to special_features = 'deleted scenes'" ], "neg": [ "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'" ] }
{ "query": "How many times was \"Blanket Beverly\" rented?", "pos": [ "\"BLANKET BEVERLY\" is the title of film; rented times refers to count(rental_id)" ], "neg": [ "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" ] }
{ "query": "Who is the customer that is active and lives at 1795 Santiago de Compostela Way, Texas?", "pos": [ "active refers to active = 1; '1795 Santiago de Compostela Way' is an address; Texas is a district; who refers to first_name, last_name" ], "neg": [ "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; \nrented 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'))" ] }
{ "query": "In which country is the store where Hector Poinexter rents equipment located?", "pos": [ "'Hector Poinexter' is a full name of a customer; full name refers to first_name, last_name;" ], "neg": [ "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)" ] }
{ "query": "Indicate the title of all the films that are in the Classics category.", "pos": [ "'classics' is the name of category" ], "neg": [ "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)" ] }
{ "query": "What is the title of the restricted film, whose length is 71 minutes and whose replacement cost is $29.99?", "pos": [ "restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99" ], "neg": [ "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" ] }
{ "query": "List down the actors' full names who performed in \"CHOCOLATE DUCK\" film.", "pos": [ "\"CHOCOLATE DUCK\" is the title of film; full name refers to first_name, last_name" ], "neg": [ "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'" ] }
{ "query": "What is the difference between the number of children's films and action films?", "pos": [ "'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))" ], "neg": [ "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" ] }
{ "query": "Who are the actors starred in the film \"Bound Cheaper\"?", "pos": [ "actor refers to first_name, last_name; film \"Bound Cheaper\" refers to title = 'BOUND CHEAPER'" ], "neg": [ "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)" ] }
{ "query": "How many films are categorized as horror?", "pos": [ "\"Horror\" is the name of category" ], "neg": [ "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'" ] }
{ "query": "How many non-active clients have not returned the rented material?", "pos": [ "non-active clients refers to active = 0; not returning a rented material refers to rental_date is null" ], "neg": [ "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; \nrented 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" ] }
{ "query": "What is the category of the film Agent Truman?", "pos": [ "'Agent Truman' is a title of a film; category refers to name" ], "neg": [ "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" ] }
{ "query": "Please provide the full name of the customer at 692 Joliet Street.", "pos": [ "full name refers to first_name, last_name; 692 Joliet Street refers to address = '692 Joliet Street'" ], "neg": [ "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)" ] }
{ "query": "List at least 10 films that the customers can rent for more than 5 days.", "pos": [ "film refers to title; rent for more than 5 days refers to rental_duration > 5" ], "neg": [ "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" ] }
{ "query": "List down email address of customers who were attended by staff with ID 2.", "pos": [ "email address refers to email" ], "neg": [ "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" ] }
{ "query": "What percentage of the movies are PG-13?", "pos": [ "PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100" ], "neg": [ "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'" ] }
{ "query": "Among the customers with customer ID of 100 and below, how many of them have Thomas as their last name?", "pos": [ "customer ID of 100 and below refers to customer_id < 100" ], "neg": [ "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" ] }
{ "query": "What is the city with the most customers?", "pos": [ "the most customers refers to MAX(COUNT(customer_id))" ], "neg": [ "\"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" ] }
{ "query": "For how long can you rent the movie 'Dirty Ace'?", "pos": [ "length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'" ], "neg": [ "\"[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; \nrented 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" ] }
{ "query": "What is the percentage of horror film titles in English film titles?", "pos": [ "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%" ], "neg": [ "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'))" ] }
{ "query": "What is the description and film title of ID 996?", "pos": [ "ID 996 refers to film_id = 996" ], "neg": [ "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" ] }
{ "query": "What is the difference in the average number of films rented each day in Australia and Canada?", "pos": [ "'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))" ], "neg": [ "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" ] }
{ "query": "What is the first name of the customers whose address is in the postal code that begins with 76?", "pos": [ "postal code that begins with 76 refers to postal_code like '76%'" ], "neg": [ "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" ] }
{ "query": "What is the largest number of films rented per customer?", "pos": [ "the largest number of films refers to MAX(rental_id)" ], "neg": [ "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'" ] }
{ "query": "How many actors with the surname Kilmer are there?", "pos": [ "surname means last_name;" ], "neg": [ "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)" ] }
{ "query": "List the address in Texas in the ascending order of city id.", "pos": [ "'Texas' is a district" ], "neg": [ "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" ] }
{ "query": "How many rentals did Ella Oliver hire in June 2016?", "pos": [ "'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'" ], "neg": [ "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" ] }
{ "query": "What is the name and email of the staff in store ID 2?", "pos": [ "name refers to first_name, last_name" ], "neg": [ "\"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" ] }
{ "query": "State the name of the category which has the most number of films.", "pos": [ "category refers to name; most number of films refers to Max(Count(film_id))" ], "neg": [ "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" ] }
{ "query": "Please list the titles of the top 3 films with the highest replacement cost.", "pos": [ "highest replacement_cost refers to Max (replacement_cost); film refers to title" ], "neg": [ "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" ] }
{ "query": "Who is the customer with the largest payment for rental films?", "pos": [ "Who refers to first_name, last_name; the largest payment for rental refers to MAX(SUM(amount))" ], "neg": [ "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" ] }
{ "query": "How many customers are still active?", "pos": [ "active refers to active = 1" ], "neg": [ "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'" ] }
{ "query": "What is the most common special features of science-fiction movies?", "pos": [ "\"science fiction\" is the name of category; most common special features refers to Max(frequency(special_features))" ], "neg": [ "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))" ] }
{ "query": "Give the full name of the actor with the highest rental rate.", "pos": [ "full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)" ], "neg": [ "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" ] }
{ "query": "What is the name of the most rented movie?", "pos": [ "most rented movie refers to title where Max(Count(rental_id))" ], "neg": [ "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))" ] }
{ "query": "Give the full name of the actor who acted the most in drama movies?", "pos": [ "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))" ], "neg": [ "'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" ] }
{ "query": "How many films are there under the category of \"Horror\"?", "pos": [ "\"Horror\" is the name of category" ], "neg": [ "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" ] }
{ "query": "How long did Austin Cintron take to return the movie 'Destiny Saturday'?", "pos": [ "'Destiny Saturday' refers to title = 'DESTINY SATURDAY'; length = subtract(return_date, rental_date)" ], "neg": [ "\"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" ] }
{ "query": "State the address location of store No.1.", "pos": [ "store no. 1 refers to store_id = 1; address location refers to address, address2, district" ], "neg": [ "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" ] }
{ "query": "Calculate the total payment amount of customers in Nagasaki district.", "pos": [ "the total payment amount refers to sum(amount)" ], "neg": [ "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" ] }
{ "query": "How many films have a duration between 100 to 110 minutes?", "pos": [ "duration between 100 to 110 minutes refers to length between 100 and 110" ], "neg": [ "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" ] }
{ "query": "What is the average duration time of the films starring PENELOPE GUINESS?", "pos": [ "average duration time = AVG(length)" ], "neg": [ "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; \nrented 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))" ] }
{ "query": "Who is the owner of email address \"[email protected]\"? Give the full name.", "pos": [ "\"[email protected]\" is the email; owner refers to customer; full name refers to first_name, last_name" ], "neg": [ "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" ] }
{ "query": "What is the percentage of documentary films?", "pos": [ "documentary' is a name of a category; calculation = DIVIDE(SUM(name = 'Documentary'), COUNT(film_id)) * 100" ], "neg": [ "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;" ] }
{ "query": "State the number of addresses in the Nordrhein-Westfalen district.", "pos": [ "number of address refers to address_id" ], "neg": [ "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'" ] }
{ "query": "What is the total amount of money Mary Smith has spent on film rentals?", "pos": [ "the total amount = sum(amount)" ], "neg": [ "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" ] }
{ "query": "What is the title of the film with the longest duration time and stars PENELOPE GUINESS?", "pos": [ "longest duration of film refers to Max(length)" ], "neg": [ "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'))" ] }
{ "query": "What is the rental price per day of the most expensive children's film?", "pos": [ "children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))" ], "neg": [ "\"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" ] }
{ "query": "How much percentage of the film did Mary Keitel perform more than Angela Witherspoon?", "pos": [ "'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" ], "neg": [ "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)" ] }
{ "query": "How many of the actors are named \"Dan\"?", "pos": [ "'Dan' is a first_name of an actor" ], "neg": [ "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)" ] }
{ "query": "How many films in English are for adults only?", "pos": [ "English is a name of a language; for adults only refers to rating = 'NC-17'" ], "neg": [ "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" ] }
{ "query": "How many films rented to the customer RUTH MARTINEZ were returned in August, 2005?", "pos": [ "returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8" ], "neg": [ "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'" ] }
{ "query": "Among the movies, what percentage are horror?", "pos": [ "horror is a name of film category; calculation = DIVIDE(COUNT('horror'), COUNT(category_id)) * 100" ], "neg": [ "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; \nrented 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" ] }
{ "query": "How many customers are active?", "pos": [ "active refers to active = 1" ], "neg": [ "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" ] }
{ "query": "Where is store number 2 located?", "pos": [ "store number 2 refers to store_id = 2; where is a store located refers to address, address2, district" ], "neg": [ "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;" ] }
{ "query": "List all the cities that belong to United Arab Emirates.", "pos": [ "United Arab Emirates refers to country = 'United Arab Emirates'" ], "neg": [ "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" ] }
{ "query": "What is the biggest amount of payment for a rental made by Mary Smith?", "pos": [ "the biggest amount refers to max(amount)" ], "neg": [ "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'))" ] }
{ "query": "Which category does BABY HALL film belong to?", "pos": [ "category refers to name; BABY HALL film refers to title = 'BABY HALL'" ], "neg": [ "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" ] }
{ "query": "List the films' titles which were rented on 24th May,2005.", "pos": [ "rented on 24th May 2005 refers to rental_date = '2005-05-24%'" ], "neg": [ "\"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)" ] }
{ "query": "Please name three cities that belong to Algeria.", "pos": [ "Algeria is a country" ], "neg": [ "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'" ] }
{ "query": "State the number of films that are 178 minutes long.", "pos": [ "178 min long refers to length = '178'" ], "neg": [ "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)" ] }
{ "query": "List movie titles with duration over 120 minutes that are in the action category.", "pos": [ "duration over 120 minutes refers to length > 120; action category refers to category.name = 'action'" ], "neg": [ "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'" ] }
{ "query": "List the store ID of the films with a rental rate greater than the 60% of average rental rate of all listed films.", "pos": [ "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" ], "neg": [ "'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" ] }
{ "query": "Among the active customers, how many of them have Nina as their first name?", "pos": [ "active refers to active = 1" ], "neg": [ "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)" ] }
{ "query": "Which category is the most common?", "pos": [ "most common category refers to MAX(COUNT(category.name))" ], "neg": [ "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" ] }
{ "query": "Among the films that are released in 2006, how many of them are rated Adults Only in the Motion Picture Association Film Rating?", "pos": [ "released in 2006 refers to release_year = 2006; rated Adults Only refers to rating = 'NC-17'" ], "neg": [ "\"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" ] }