Question: For which work was Peter Frampton nominated for an Academy Award for Best Makeup and Hairstyling?
Choices:
The Towering Inferno
The Others
Stagecoach
Galápagos
Braveheart
Song of Kali
North
Burnt Offerings
The Home Song Stories
Two and a Half Men
Program:
function: Find
inputs: Academy Award for Best Makeup and Hairstyling
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Peter Frampton
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Makeup and Hairstyling
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
for work
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Peter Frampton" . ?e_1 <nominated_for> ?e_3 . ?e_3 <pred:name> "Academy Award for Best Makeup and Hairstyling" . ?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 ] <for_work> ?qpv .  }
Answer: Braveheart