Question: What is the connection between John Carter (the one whose works are collected in Museo del Prado) to architect?
Choices: studies
heritage designation
talk show guest
captain
occupation
hair color
sexual orientation
followed by
director of photography
interests
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Carter" . ?e_1 <works_in_collection> ?e_3 . ?e_3 <pred:name> "Museo del Prado" . ?e_2 <pred:name> "architect" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Museo del Prado
function: Relate
dependencies: 0
inputs: works in collection
backward
function: Find
inputs: John Carter
function: And
dependencies: 1
2
function: Find
inputs: architect
function: QueryRelation
dependencies: 3
4
Answer: occupation