Question: What is the connection between Hamlet (the one whose director is Franco Zeffirelli) to drama film?
Choices:
honorific prefix
genre
donated by
significant event
main food source
sidekick of
allegiance
musical conductor
parent astronomical body
home port
Answer: genre
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hamlet" . ?e_1 <director> ?e_3 . ?e_3 <pred:name> "Franco Zeffirelli" . ?e_2 <pred:name> "drama film" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Franco Zeffirelli
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: Hamlet
function: And
dependencies: 1
2
function: Find
inputs: drama film
function: QueryRelation
dependencies: 3
4