Question: What is the link between Hercules (that is a famous work by Alan Menken) and Wayne Knight?
Choices:
drug used for treatment
draft pick from school
set in period
voice actor
language of work or name
honorific suffix
original film format
time period
approved by
depicted by
Answer: voice actor
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hercules" . ?e_3 <notable_work> ?e_1 . ?e_3 <pred:name> "Alan Menken" . ?e_2 <pred:name> "Wayne Knight" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Alan Menken
function: Relate
dependencies: 0
inputs: notable work
forward
function: Find
inputs: Hercules
function: And
dependencies: 1
2
function: Find
inputs: Wayne Knight
function: QueryRelation
dependencies: 3
4