Question: What is the relationship between Morocco (the one that has Travis Banton as a costume designer) to Academy Award for Best Actress?
Choices:
permanent resident of
official language
patron saint
headquarters location
parent club
nominated for
head of state
publisher
influenced by
fabrication method
Answer: nominated for
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Morocco" . ?e_1 <costume_designer> ?e_3 . ?e_3 <pred:name> "Travis Banton" . ?e_2 <pred:name> "Academy Award for Best Actress" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Travis Banton
function: Relate
dependencies: 0
inputs: costume designer
backward
function: Find
inputs: Morocco
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Actress
function: QueryRelation
dependencies: 3
4