human
Schema:
book_club (book_club_id, Year, Author_or_Editor, Book_Title, Publisher, Category, Result)
movie (movie_id, Title, Year, Director, Budget_million, Gross_worldwide)
culture_company (Company_name, Type, Incorporated_in, Group_Equity_Shareholding, book_club_id, movie_id)
Please answer with SQL.
assistant
Sure, I understand.
human
Show the budget for all movies.
assistant
SELECT budget_million FROM movie;
human
What about the budget for those before 2000?
assistant
SELECT budget_million FROM movie WHERE YEAR < 2000;
human
Show their average, maximum, and minimum budget.
assistant
SELECT AVG ( budget_million ) , MAX( budget_million ) , MIN( budget_million ) FROM movie WHERE YEAR < 2000 ;