Question: Who was nominated for an Academy Award for Best Makeup and Hairstyling for 'Legend' (which has its origins in United States of America)?
Choices: Pakistan–United Kingdom relations
Indonesia–European Union relations
Afghanistan–Uzbekistan border
Bangladesh–China relations
Mozambique–Portugal relations
42nd Academy Awards
59th Academy Awards
Argentina–Ukraine relations
Philippines–Turkey relations
Grenada–United States relations
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Legend" . ?e_1 <country_of_origin> ?e_3 . ?e_3 <pred:name> "United States of America" . ?e_2 <pred:name> "Academy Award for Best Makeup and Hairstyling" . ?e_1 <nominated_for> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <nominated_for> ; <pred:fact_t> ?e_2 ] <statement_is_subject_of> ?qpv .  }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Legend
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Makeup and Hairstyling
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
statement is subject of
Answer: 59th Academy Awards