What are the title and id of the film which has a rental rate of 0.99 and an inventory of below 3?
select title, film_id from film where rental_rate = 0.99 intersect select t1.title, t1.film_id from film as t1 join inventory as t2 on t1.film_id = t2.film_id group by t1.film_id having count(*) < 3