Who was the leading actress in a film with Warren Beatty as the leading actor and also at the 40th Oscars?
create table table_24225238_1 (leading_actress varchar, leading_actor varchar, oscars varchar, PRIMARY KEY (leading_actress))
select leading_actress from table_24225238_1 where leading_actor = "warren beatty" and oscars = "40th"