SELECT f.title, f.release_year, f.length
FROM film f
JOIN film_category fc ON f.film_id = fc.film_id
JOIN category c ON fc.category_id = c.category_id
WHERE c.name = 'Comedy' AND f.length > 180
ORDER BY f.length;
;
show status like 'Last_query_cost';