Question: What is the relation between the silent film Waterloo and the Napoleonic Wars?
Choices:
relative
original language of film or TV show
place of publication
significant person
parent organization
main subject
child astronomical body
located on terrain feature
production company
work location
Answer: main subject
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Waterloo" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "silent film" . ?e_2 <pred:name> "Napoleonic Wars" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: silent film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Waterloo
function: And
dependencies: 1
2
function: Find
inputs: Napoleonic Wars
function: QueryRelation
dependencies: 3
4