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
Show me all film studios in record.
assistant
SELECT distinct Studio FROM FILM;
human
What are the maximum gross for their films?
assistant
SELECT Studio , MAX( Gross_in_dollar ) FROM FILM GROUP BY studio;
human
What about the average?
assistant
SELECT Studio , MIN( Gross_in_dollar ) FROM FILM GROUP BY studio ;