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: How many payments were made throughout the month of August 2005?
Evidence: payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'
SQL: SELECT SUM(amount) FROM payment WHERE payment_date LIKE '2005-08%'
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: To which country does the address '1386 Nakhon Sawan Boulevard' belong?
SQL: SELECT T1.country FROM country AS T1 INNER JOIN city AS T2 ON T1.country_id = T2.country_id INNER JOIN address AS T3 ON T2.city_id = T3.city_id WHERE T3.address = '1386 Nakhon Sawan Boulevard'
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 language was the most used in movies released in 2006?
Evidence: released in 2006 refers to release_year = 2006; the most used language refers to MAX(COUNT(language_id))
SQL: SELECT T.language_id FROM ( SELECT T1.language_id, COUNT(T1.language_id) AS num FROM film AS T1 INNER JOIN language AS T2 ON T1.language_id = T2.language_id WHERE STRFTIME('%Y',T1.release_year) = '2006' GROUP BY T1.language_id ) AS T ORDER BY T.num DESC LIMIT 1
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: Indicate the title of all the films that are in the Classics category.
Evidence: 'classics' is the name of category
SQL: SELECT T2.title FROM film_category AS T1 INNER JOIN film AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T1.category_id = T3.category_id WHERE T3.name = 'Classics'
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 rentals did Ella Oliver hire in June 2016?
Evidence: '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'
SQL: SELECT COUNT(T1.rental_id) FROM rental AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = 'ELLA' AND T2.last_name = 'ELLA' AND date(T1.rental_date) BETWEEN '2005-06-01' AND '2005-06-30'
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 different clients have rented materials from Jon Stephens?
Evidence: 'Jon Stephens' is a full name of a customer; full name refers to first_name, last_name;
SQL: SELECT COUNT(T1.customer_id) FROM rental AS T1 INNER JOIN staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = 'Jon' AND T2.last_name = 'Stephens'
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 total amount paid for rentals made on July 29, 2005?
Evidence: July 29, 2005 refers to rental_date like '2005-07-29'
SQL: SELECT SUM(T2.amount) FROM rental AS T1 INNER JOIN payment AS T2 ON T1.rental_id = T2.rental_id WHERE date(T1.rental_date) = '2005-07-29%'
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 first name of the customers whose address is in the postal code that begins with 76?
Evidence: postal code that begins with 76 refers to postal_code like '76%'
SQL: SELECT T1.first_name FROM customer AS T1 INNER JOIN address AS T2 ON T1.address_id = T2.address_id WHERE SUBSTR(T2.postal_code, 1, 2) = '76'
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: On what date was the rented material for the movie BLOOD ARGONAUTS returned?
Evidence: 'BLOOD ARGONAUTS' is a title of a film; date a movie was returned refers to return_date
SQL: SELECT T1.rental_date FROM rental AS T1 INNER JOIN inventory AS T2 ON T1.inventory_id = T2.inventory_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'BLOOD ARGONAUTS'
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 title of the films in which Cuba Allen acted?
Evidence: 'Cuba Allen' is a full name of an actor; full name refers to first_name, last_name
SQL: SELECT T3.title FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'Cuba' AND T1.last_name = 'Allen'
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 actors acted in movies in the Music category?
Evidence: Music' is a name of a category
SQL: SELECT COUNT(T1.actor_id) FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id INNER JOIN film_category AS T4 ON T3.film_id = T4.film_id INNER JOIN category AS T5 ON T4.category_id = T5.category_id WHERE T5.name = 'Music'
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 full name of the actor who has acted the most times in comedy films?
Evidence: full name refers to first_name, last_name; 'comedy' is a name of a category;
SQL: SELECT T.first_name, T.last_name FROM ( SELECT T4.first_name, T4.last_name, COUNT(T2.actor_id) AS num FROM film_category AS T1 INNER JOIN film_actor AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T1.category_id = T3.category_id INNER JOIN actor AS T4 ON T2.actor_id = T4.actor_id WHERE T3.name = 'Comedy' GROUP BY T4.first_name, T4.last_name ) AS T ORDER BY T.num DESC LIMIT 1