human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Year, Oscars, Noms, Wins, Film, Leading Actor, Leading Actress, Supporting Actor, Supporting Actress
###Question: Who was the leading actress in a film with Warren Beatty as the leading actor and also at the 40th Oscars?
gpt
SELECT Leading Actress FROM table WHERE Leading Actor = Warren Beatty AND Oscars = 40th