human
Schema:
film (Film_ID, Title, Studio, Director, Gross_in_dollar)
market (Market_ID, Country, Number_cities)
film_market_estimation (Estimation_ID, Low_Estimate, High_Estimate, Film_ID, Type, Market_ID, Year)
Please answer with SQL.
assistant
Sure, I understand.
human
Which studio has the highest gross?
assistant
SELECT Studio FROM film ORDER by Gross_in_dollar DESC LIMIT 1;
human
How many studios have average gross higher than 4500000
assistant
SELECT Studio FROM film GROUP BY Studio HAVING AVG ( Gross_in_dollar ) > = 4500000 ;