1sf/bird-sql-train-with-schema huggingface dataset:
Database: movie_3
Tables: film_text, actor, address, category, city, country, customer, film, film_actor, film_category, inventory, language, payment, rental, staff, store
Columns (table index, column name): -1, *, 0, film_id, 0, title, 0, description, 1, actor_id, 1, first_name, 1, last_name, 1, last_update, 2, address_id, 2, address, 2, address2, 2, district, 2, city_id, 2, postal_code, 2, phone, 2, last_update, 3, category_id, 3, name, 3, last_update, 4, city_id, 4, city, 4, country_id, 4, last_update, 5, country_id, 5, country, 5, last_update, 6, customer_id, 6, store_id, 6, first_name, 6, last_name, 6, email, 6, address_id, 6, active, 6, create_date, 6, last_update, 7, film_id, 7, title, 7, description, 7, release_year, 7, language_id, 7, original_language_id, 7, rental_duration, 7, rental_rate, 7, length, 7, replacement_cost, 7, rating, 7, special_features, 7, last_update, 8, actor_id, 8, film_id, 8, last_update, 9, film_id, 9, category_id, 9, last_update, 10, inventory_id, 10, film_id, 10, store_id, 10, last_update, 11, language_id, 11, name, 11, last_update, 12, payment_id, 12, customer_id, 12, staff_id, 12, rental_id, 12, amount, 12, payment_date, 12, last_update, 13, rental_id, 13, rental_date, 13, inventory_id, 13, customer_id, 13, return_date, 13, staff_id, 13, last_update, 14, staff_id, 14, first_name, 14, last_name, 14, address_id, 14, picture, 14, email, 14, store_id, 14, active, 14, username, 14, password, 14, last_update, 15, store_id, 15, manager_staff_id, 15, address_id, 15, last_update
Question: List down film titles from id 1 to 10.
Evidence: id 1 to 10 refers to film_id BETWEEN 1 and 10
SQL: SELECT title FROM film WHERE film_id BETWEEN 1 AND 10
Database: movie_3
Tables: film_text, actor, address, category, city, country, customer, film, film_actor, film_category, inventory, language, payment, rental, staff, store
Columns (table index, column name): -1, *, 0, film_id, 0, title, 0, description, 1, actor_id, 1, first_name, 1, last_name, 1, last_update, 2, address_id, 2, address, 2, address2, 2, district, 2, city_id, 2, postal_code, 2, phone, 2, last_update, 3, category_id, 3, name, 3, last_update, 4, city_id, 4, city, 4, country_id, 4, last_update, 5, country_id, 5, country, 5, last_update, 6, customer_id, 6, store_id, 6, first_name, 6, last_name, 6, email, 6, address_id, 6, active, 6, create_date, 6, last_update, 7, film_id, 7, title, 7, description, 7, release_year, 7, language_id, 7, original_language_id, 7, rental_duration, 7, rental_rate, 7, length, 7, replacement_cost, 7, rating, 7, special_features, 7, last_update, 8, actor_id, 8, film_id, 8, last_update, 9, film_id, 9, category_id, 9, last_update, 10, inventory_id, 10, film_id, 10, store_id, 10, last_update, 11, language_id, 11, name, 11, last_update, 12, payment_id, 12, customer_id, 12, staff_id, 12, rental_id, 12, amount, 12, payment_date, 12, last_update, 13, rental_id, 13, rental_date, 13, inventory_id, 13, customer_id, 13, return_date, 13, staff_id, 13, last_update, 14, staff_id, 14, first_name, 14, last_name, 14, address_id, 14, picture, 14, email, 14, store_id, 14, active, 14, username, 14, password, 14, last_update, 15, store_id, 15, manager_staff_id, 15, address_id, 15, last_update
Question: List down all of the film IDs with highest rental duration.
Evidence: highest rental duration refers to max(rental_duration)
SQL: SELECT film_id FROM film WHERE rental_duration = ( SELECT MAX(rental_duration) FROM film )
Database: movie_3
Tables: film_text, actor, address, category, city, country, customer, film, film_actor, film_category, inventory, language, payment, rental, staff, store
Columns (table index, column name): -1, *, 0, film_id, 0, title, 0, description, 1, actor_id, 1, first_name, 1, last_name, 1, last_update, 2, address_id, 2, address, 2, address2, 2, district, 2, city_id, 2, postal_code, 2, phone, 2, last_update, 3, category_id, 3, name, 3, last_update, 4, city_id, 4, city, 4, country_id, 4, last_update, 5, country_id, 5, country, 5, last_update, 6, customer_id, 6, store_id, 6, first_name, 6, last_name, 6, email, 6, address_id, 6, active, 6, create_date, 6, last_update, 7, film_id, 7, title, 7, description, 7, release_year, 7, language_id, 7, original_language_id, 7, rental_duration, 7, rental_rate, 7, length, 7, replacement_cost, 7, rating, 7, special_features, 7, last_update, 8, actor_id, 8, film_id, 8, last_update, 9, film_id, 9, category_id, 9, last_update, 10, inventory_id, 10, film_id, 10, store_id, 10, last_update, 11, language_id, 11, name, 11, last_update, 12, payment_id, 12, customer_id, 12, staff_id, 12, rental_id, 12, amount, 12, payment_date, 12, last_update, 13, rental_id, 13, rental_date, 13, inventory_id, 13, customer_id, 13, return_date, 13, staff_id, 13, last_update, 14, staff_id, 14, first_name, 14, last_name, 14, address_id, 14, picture, 14, email, 14, store_id, 14, active, 14, username, 14, password, 14, last_update, 15, store_id, 15, manager_staff_id, 15, address_id, 15, last_update
Question: Which film titles have the most expensive rental rate?
Evidence: the most expensive rental rate refers to max(rental_rate)
SQL: SELECT title FROM film WHERE rental_rate = ( SELECT MAX(rental_rate) FROM film )
Database: movie_3
Tables: film_text, actor, address, category, city, country, customer, film, film_actor, film_category, inventory, language, payment, rental, staff, store
Columns (table index, column name): -1, *, 0, film_id, 0, title, 0, description, 1, actor_id, 1, first_name, 1, last_name, 1, last_update, 2, address_id, 2, address, 2, address2, 2, district, 2, city_id, 2, postal_code, 2, phone, 2, last_update, 3, category_id, 3, name, 3, last_update, 4, city_id, 4, city, 4, country_id, 4, last_update, 5, country_id, 5, country, 5, last_update, 6, customer_id, 6, store_id, 6, first_name, 6, last_name, 6, email, 6, address_id, 6, active, 6, create_date, 6, last_update, 7, film_id, 7, title, 7, description, 7, release_year, 7, language_id, 7, original_language_id, 7, rental_duration, 7, rental_rate, 7, length, 7, replacement_cost, 7, rating, 7, special_features, 7, last_update, 8, actor_id, 8, film_id, 8, last_update, 9, film_id, 9, category_id, 9, last_update, 10, inventory_id, 10, film_id, 10, store_id, 10, last_update, 11, language_id, 11, name, 11, last_update, 12, payment_id, 12, customer_id, 12, staff_id, 12, rental_id, 12, amount, 12, payment_date, 12, last_update, 13, rental_id, 13, rental_date, 13, inventory_id, 13, customer_id, 13, return_date, 13, staff_id, 13, last_update, 14, staff_id, 14, first_name, 14, last_name, 14, address_id, 14, picture, 14, email, 14, store_id, 14, active, 14, username, 14, password, 14, last_update, 15, store_id, 15, manager_staff_id, 15, address_id, 15, last_update
Question: List down all of the film titles that are rated for general audiences.
Evidence: rated for general audiences means rating = 'G'
SQL: SELECT title FROM film WHERE rating = 'G'
Database: movie_3
Tables: film_text, actor, address, category, city, country, customer, film, film_actor, film_category, inventory, language, payment, rental, staff, store
Columns (table index, column name): -1, *, 0, film_id, 0, title, 0, description, 1, actor_id, 1, first_name, 1, last_name, 1, last_update, 2, address_id, 2, address, 2, address2, 2, district, 2, city_id, 2, postal_code, 2, phone, 2, last_update, 3, category_id, 3, name, 3, last_update, 4, city_id, 4, city, 4, country_id, 4, last_update, 5, country_id, 5, country, 5, last_update, 6, customer_id, 6, store_id, 6, first_name, 6, last_name, 6, email, 6, address_id, 6, active, 6, create_date, 6, last_update, 7, film_id, 7, title, 7, description, 7, release_year, 7, language_id, 7, original_language_id, 7, rental_duration, 7, rental_rate, 7, length, 7, replacement_cost, 7, rating, 7, special_features, 7, last_update, 8, actor_id, 8, film_id, 8, last_update, 9, film_id, 9, category_id, 9, last_update, 10, inventory_id, 10, film_id, 10, store_id, 10, last_update, 11, language_id, 11, name, 11, last_update, 12, payment_id, 12, customer_id, 12, staff_id, 12, rental_id, 12, amount, 12, payment_date, 12, last_update, 13, rental_id, 13, rental_date, 13, inventory_id, 13, customer_id, 13, return_date, 13, staff_id, 13, last_update, 14, staff_id, 14, first_name, 14, last_name, 14, address_id, 14, picture, 14, email, 14, store_id, 14, active, 14, username, 14, password, 14, last_update, 15, store_id, 15, manager_staff_id, 15, address_id, 15, last_update
Question: What is the language for film titled "CHILL LUCK"?
SQL: SELECT T2.`name` FROM film AS T1 INNER JOIN `language` AS T2 ON T1.language_id = T2.language_id WHERE T1.title = 'CHILL LUCK'
Database: movie_3
Tables: film_text, actor, address, category, city, country, customer, film, film_actor, film_category, inventory, language, payment, rental, staff, store
Columns (table index, column name): -1, *, 0, film_id, 0, title, 0, description, 1, actor_id, 1, first_name, 1, last_name, 1, last_update, 2, address_id, 2, address, 2, address2, 2, district, 2, city_id, 2, postal_code, 2, phone, 2, last_update, 3, category_id, 3, name, 3, last_update, 4, city_id, 4, city, 4, country_id, 4, last_update, 5, country_id, 5, country, 5, last_update, 6, customer_id, 6, store_id, 6, first_name, 6, last_name, 6, email, 6, address_id, 6, active, 6, create_date, 6, last_update, 7, film_id, 7, title, 7, description, 7, release_year, 7, language_id, 7, original_language_id, 7, rental_duration, 7, rental_rate, 7, length, 7, replacement_cost, 7, rating, 7, special_features, 7, last_update, 8, actor_id, 8, film_id, 8, last_update, 9, film_id, 9, category_id, 9, last_update, 10, inventory_id, 10, film_id, 10, store_id, 10, last_update, 11, language_id, 11, name, 11, last_update, 12, payment_id, 12, customer_id, 12, staff_id, 12, rental_id, 12, amount, 12, payment_date, 12, last_update, 13, rental_id, 13, rental_date, 13, inventory_id, 13, customer_id, 13, return_date, 13, staff_id, 13, last_update, 14, staff_id, 14, first_name, 14, last_name, 14, address_id, 14, picture, 14, email, 14, store_id, 14, active, 14, username, 14, password, 14, last_update, 15, store_id, 15, manager_staff_id, 15, address_id, 15, last_update
Question: What are the last updated date for English film titles that were released in 2006?
Evidence: the last updated date refers to last_update; English is name of language; released in 2006 refers to release_year = 2006


SQL: SELECT DISTINCT T1.last_update FROM film AS T1 INNER JOIN `language` AS T2 ON T1.language_id = T2.language_id WHERE T2.`name` = 'English' AND T1.release_year = 2006
Database: movie_3
Tables: film_text, actor, address, category, city, country, customer, film, film_actor, film_category, inventory, language, payment, rental, staff, store
Columns (table index, column name): -1, *, 0, film_id, 0, title, 0, description, 1, actor_id, 1, first_name, 1, last_name, 1, last_update, 2, address_id, 2, address, 2, address2, 2, district, 2, city_id, 2, postal_code, 2, phone, 2, last_update, 3, category_id, 3, name, 3, last_update, 4, city_id, 4, city, 4, country_id, 4, last_update, 5, country_id, 5, country, 5, last_update, 6, customer_id, 6, store_id, 6, first_name, 6, last_name, 6, email, 6, address_id, 6, active, 6, create_date, 6, last_update, 7, film_id, 7, title, 7, description, 7, release_year, 7, language_id, 7, original_language_id, 7, rental_duration, 7, rental_rate, 7, length, 7, replacement_cost, 7, rating, 7, special_features, 7, last_update, 8, actor_id, 8, film_id, 8, last_update, 9, film_id, 9, category_id, 9, last_update, 10, inventory_id, 10, film_id, 10, store_id, 10, last_update, 11, language_id, 11, name, 11, last_update, 12, payment_id, 12, customer_id, 12, staff_id, 12, rental_id, 12, amount, 12, payment_date, 12, last_update, 13, rental_id, 13, rental_date, 13, inventory_id, 13, customer_id, 13, return_date, 13, staff_id, 13, last_update, 14, staff_id, 14, first_name, 14, last_name, 14, address_id, 14, picture, 14, email, 14, store_id, 14, active, 14, username, 14, password, 14, last_update, 15, store_id, 15, manager_staff_id, 15, address_id, 15, last_update
Question: How many Italian film titles were special featured with deleted scenes?
Evidence: Italian is name of language; special featured with deleted scenes refers to special_features = 'deleted scenes'
SQL: SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN `language` AS T2 ON T1.language_id = T2.language_id WHERE T2.`name` = 'Italian' AND T1.special_features = 'deleted scenes'
Database: movie_3
Tables: film_text, actor, address, category, city, country, customer, film, film_actor, film_category, inventory, language, payment, rental, staff, store
Columns (table index, column name): -1, *, 0, film_id, 0, title, 0, description, 1, actor_id, 1, first_name, 1, last_name, 1, last_update, 2, address_id, 2, address, 2, address2, 2, district, 2, city_id, 2, postal_code, 2, phone, 2, last_update, 3, category_id, 3, name, 3, last_update, 4, city_id, 4, city, 4, country_id, 4, last_update, 5, country_id, 5, country, 5, last_update, 6, customer_id, 6, store_id, 6, first_name, 6, last_name, 6, email, 6, address_id, 6, active, 6, create_date, 6, last_update, 7, film_id, 7, title, 7, description, 7, release_year, 7, language_id, 7, original_language_id, 7, rental_duration, 7, rental_rate, 7, length, 7, replacement_cost, 7, rating, 7, special_features, 7, last_update, 8, actor_id, 8, film_id, 8, last_update, 9, film_id, 9, category_id, 9, last_update, 10, inventory_id, 10, film_id, 10, store_id, 10, last_update, 11, language_id, 11, name, 11, last_update, 12, payment_id, 12, customer_id, 12, staff_id, 12, rental_id, 12, amount, 12, payment_date, 12, last_update, 13, rental_id, 13, rental_date, 13, inventory_id, 13, customer_id, 13, return_date, 13, staff_id, 13, last_update, 14, staff_id, 14, first_name, 14, last_name, 14, address_id, 14, picture, 14, email, 14, store_id, 14, active, 14, username, 14, password, 14, last_update, 15, store_id, 15, manager_staff_id, 15, address_id, 15, last_update
Question: How many animation film titles are rated for adults only?
Evidence: animation film refers to category.name = 'animation'; for adults only means rating = 'NC-17'
SQL: SELECT COUNT(T1.title) FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'animation' AND T1.rating = 'NC-17'
Database: movie_3
Tables: film_text, actor, address, category, city, country, customer, film, film_actor, film_category, inventory, language, payment, rental, staff, store
Columns (table index, column name): -1, *, 0, film_id, 0, title, 0, description, 1, actor_id, 1, first_name, 1, last_name, 1, last_update, 2, address_id, 2, address, 2, address2, 2, district, 2, city_id, 2, postal_code, 2, phone, 2, last_update, 3, category_id, 3, name, 3, last_update, 4, city_id, 4, city, 4, country_id, 4, last_update, 5, country_id, 5, country, 5, last_update, 6, customer_id, 6, store_id, 6, first_name, 6, last_name, 6, email, 6, address_id, 6, active, 6, create_date, 6, last_update, 7, film_id, 7, title, 7, description, 7, release_year, 7, language_id, 7, original_language_id, 7, rental_duration, 7, rental_rate, 7, length, 7, replacement_cost, 7, rating, 7, special_features, 7, last_update, 8, actor_id, 8, film_id, 8, last_update, 9, film_id, 9, category_id, 9, last_update, 10, inventory_id, 10, film_id, 10, store_id, 10, last_update, 11, language_id, 11, name, 11, last_update, 12, payment_id, 12, customer_id, 12, staff_id, 12, rental_id, 12, amount, 12, payment_date, 12, last_update, 13, rental_id, 13, rental_date, 13, inventory_id, 13, customer_id, 13, return_date, 13, staff_id, 13, last_update, 14, staff_id, 14, first_name, 14, last_name, 14, address_id, 14, picture, 14, email, 14, store_id, 14, active, 14, username, 14, password, 14, last_update, 15, store_id, 15, manager_staff_id, 15, address_id, 15, last_update
Question: List down all ratings of action film titles.
Evidence: 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'
SQL: SELECT T1.description FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'action'
Database: movie_3
Tables: film_text, actor, address, category, city, country, customer, film, film_actor, film_category, inventory, language, payment, rental, staff, store
Columns (table index, column name): -1, *, 0, film_id, 0, title, 0, description, 1, actor_id, 1, first_name, 1, last_name, 1, last_update, 2, address_id, 2, address, 2, address2, 2, district, 2, city_id, 2, postal_code, 2, phone, 2, last_update, 3, category_id, 3, name, 3, last_update, 4, city_id, 4, city, 4, country_id, 4, last_update, 5, country_id, 5, country, 5, last_update, 6, customer_id, 6, store_id, 6, first_name, 6, last_name, 6, email, 6, address_id, 6, active, 6, create_date, 6, last_update, 7, film_id, 7, title, 7, description, 7, release_year, 7, language_id, 7, original_language_id, 7, rental_duration, 7, rental_rate, 7, length, 7, replacement_cost, 7, rating, 7, special_features, 7, last_update, 8, actor_id, 8, film_id, 8, last_update, 9, film_id, 9, category_id, 9, last_update, 10, inventory_id, 10, film_id, 10, store_id, 10, last_update, 11, language_id, 11, name, 11, last_update, 12, payment_id, 12, customer_id, 12, staff_id, 12, rental_id, 12, amount, 12, payment_date, 12, last_update, 13, rental_id, 13, rental_date, 13, inventory_id, 13, customer_id, 13, return_date, 13, staff_id, 13, last_update, 14, staff_id, 14, first_name, 14, last_name, 14, address_id, 14, picture, 14, email, 14, store_id, 14, active, 14, username, 14, password, 14, last_update, 15, store_id, 15, manager_staff_id, 15, address_id, 15, last_update
Question: List down all film IDs of comedy film titles.
Evidence: comedy is name of category
SQL: SELECT T1.film_id FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T3.name = 'comedy'
Database: movie_3
Tables: film_text, actor, address, category, city, country, customer, film, film_actor, film_category, inventory, language, payment, rental, staff, store
Columns (table index, column name): -1, *, 0, film_id, 0, title, 0, description, 1, actor_id, 1, first_name, 1, last_name, 1, last_update, 2, address_id, 2, address, 2, address2, 2, district, 2, city_id, 2, postal_code, 2, phone, 2, last_update, 3, category_id, 3, name, 3, last_update, 4, city_id, 4, city, 4, country_id, 4, last_update, 5, country_id, 5, country, 5, last_update, 6, customer_id, 6, store_id, 6, first_name, 6, last_name, 6, email, 6, address_id, 6, active, 6, create_date, 6, last_update, 7, film_id, 7, title, 7, description, 7, release_year, 7, language_id, 7, original_language_id, 7, rental_duration, 7, rental_rate, 7, length, 7, replacement_cost, 7, rating, 7, special_features, 7, last_update, 8, actor_id, 8, film_id, 8, last_update, 9, film_id, 9, category_id, 9, last_update, 10, inventory_id, 10, film_id, 10, store_id, 10, last_update, 11, language_id, 11, name, 11, last_update, 12, payment_id, 12, customer_id, 12, staff_id, 12, rental_id, 12, amount, 12, payment_date, 12, last_update, 13, rental_id, 13, rental_date, 13, inventory_id, 13, customer_id, 13, return_date, 13, staff_id, 13, last_update, 14, staff_id, 14, first_name, 14, last_name, 14, address_id, 14, picture, 14, email, 14, store_id, 14, active, 14, username, 14, password, 14, last_update, 15, store_id, 15, manager_staff_id, 15, address_id, 15, last_update
Question: State the documentary film titles with longest length.
Evidence: documentary film refers to name = 'documentary'; longest length refers to max(length)
SQL: SELECT T1.title FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T3.name = 'documentary' ORDER BY T1.length DESC LIMIT 1
Database: movie_3
Tables: film_text, actor, address, category, city, country, customer, film, film_actor, film_category, inventory, language, payment, rental, staff, store
Columns (table index, column name): -1, *, 0, film_id, 0, title, 0, description, 1, actor_id, 1, first_name, 1, last_name, 1, last_update, 2, address_id, 2, address, 2, address2, 2, district, 2, city_id, 2, postal_code, 2, phone, 2, last_update, 3, category_id, 3, name, 3, last_update, 4, city_id, 4, city, 4, country_id, 4, last_update, 5, country_id, 5, country, 5, last_update, 6, customer_id, 6, store_id, 6, first_name, 6, last_name, 6, email, 6, address_id, 6, active, 6, create_date, 6, last_update, 7, film_id, 7, title, 7, description, 7, release_year, 7, language_id, 7, original_language_id, 7, rental_duration, 7, rental_rate, 7, length, 7, replacement_cost, 7, rating, 7, special_features, 7, last_update, 8, actor_id, 8, film_id, 8, last_update, 9, film_id, 9, category_id, 9, last_update, 10, inventory_id, 10, film_id, 10, store_id, 10, last_update, 11, language_id, 11, name, 11, last_update, 12, payment_id, 12, customer_id, 12, staff_id, 12, rental_id, 12, amount, 12, payment_date, 12, last_update, 13, rental_id, 13, rental_date, 13, inventory_id, 13, customer_id, 13, return_date, 13, staff_id, 13, last_update, 14, staff_id, 14, first_name, 14, last_name, 14, address_id, 14, picture, 14, email, 14, store_id, 14, active, 14, username, 14, password, 14, last_update, 15, store_id, 15, manager_staff_id, 15, address_id, 15, last_update
Question: What is the category of film titled "BLADE POLISH"?
SQL: SELECT T3.name FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T1.title = 'BLADE POLISH'
Database: movie_3
Tables: film_text, actor, address, category, city, country, customer, film, film_actor, film_category, inventory, language, payment, rental, staff, store
Columns (table index, column name): -1, *, 0, film_id, 0, title, 0, description, 1, actor_id, 1, first_name, 1, last_name, 1, last_update, 2, address_id, 2, address, 2, address2, 2, district, 2, city_id, 2, postal_code, 2, phone, 2, last_update, 3, category_id, 3, name, 3, last_update, 4, city_id, 4, city, 4, country_id, 4, last_update, 5, country_id, 5, country, 5, last_update, 6, customer_id, 6, store_id, 6, first_name, 6, last_name, 6, email, 6, address_id, 6, active, 6, create_date, 6, last_update, 7, film_id, 7, title, 7, description, 7, release_year, 7, language_id, 7, original_language_id, 7, rental_duration, 7, rental_rate, 7, length, 7, replacement_cost, 7, rating, 7, special_features, 7, last_update, 8, actor_id, 8, film_id, 8, last_update, 9, film_id, 9, category_id, 9, last_update, 10, inventory_id, 10, film_id, 10, store_id, 10, last_update, 11, language_id, 11, name, 11, last_update, 12, payment_id, 12, customer_id, 12, staff_id, 12, rental_id, 12, amount, 12, payment_date, 12, last_update, 13, rental_id, 13, rental_date, 13, inventory_id, 13, customer_id, 13, return_date, 13, staff_id, 13, last_update, 14, staff_id, 14, first_name, 14, last_name, 14, address_id, 14, picture, 14, email, 14, store_id, 14, active, 14, username, 14, password, 14, last_update, 15, store_id, 15, manager_staff_id, 15, address_id, 15, last_update
Question: What is Mary Smith's rental ID?
SQL: SELECT T2.rental_id FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T1.first_name = 'MARY' AND T1.last_name = 'SMITH'