Question: For what was Legend (which has Tom Cruise as a cast member) nominated for an Academy Award for Best Makeup and Hairstyling?
Choices:
Australia–Philippines relations
Indonesia–Switzerland relations
Kosovo–Latvia relations
59th Academy Awards
Honduras–United States relations
Austria–Germany border
Bahrain–Saudi Arabia border
39th Tony Awards
Singapore–United Kingdom relations
Taiwan–Uzbekistan relations
Answer: 59th Academy Awards
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Legend" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Tom Cruise" . ?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: Tom Cruise
function: Relate
dependencies: 0
inputs: cast member
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