Question: Which film is rented at a fee of 0.99 and has less than 3 in the inventory? List the film title and id.
Schema: create table film (title varchar, film_id varchar, rental_rate varchar, PRIMARY KEY (title)); create table inventory (film_id varchar, PRIMARY KEY (film_id)); create table film (title varchar, film_id varchar, PRIMARY KEY (title))
SQL: 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