What is the store and inventory ID of the film with the longest duration?
the longest duration refers to MAX(length)
SELECT T2.store_id, T2.inventory_id FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id ORDER BY T1.length DESC LIMIT 1