Question: Melancholia, in the Louvre collection, is related in what way to Mantua?
Choices:
located on terrain feature
has cause
conferred by
published in
location of formation
license
capital
winner
quotes work
employer
Answer: location of formation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Melancholia" . ?e_1 <owned_by> ?e_3 . ?e_3 <pred:name> "Louvre Museum" . ?e_2 <pred:name> "Mantua" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Louvre Museum
function: Relate
dependencies: 0
inputs: owned by
backward
function: Find
inputs: Melancholia
function: And
dependencies: 1
2
function: Find
inputs: Mantua
function: QueryRelation
dependencies: 3
4