Question: What's the connection between the Peter Frampton nominated for an Academy Award for Best Makeup and Hairstyling and the profession of make-up artist?
Choices: filmography
home venue
location of discovery
location of formation
languages spoken, written or signed
film editor
basic form of government
family name
occupation
has immediate cause
SPARQL: SELECT DISTINCT ?p 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> "make-up artist" . ?e_1 ?p ?e_2 .  }
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: make-up artist
function: QueryRelation
dependencies: 3
4
Answer: occupation