Question: How is Taj Mahal (the one born in New York City) related to a guitar ?
Choices:
heritage designation
has contributing factor
from fictional universe
substitute/deputy/replacement of office/officeholder
instrument
basin country
connects with
conflict
afflicts
foundational text
Program:
function: Find
inputs: New York City
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: Taj Mahal
function: And
dependencies: 1
2
function: Find
inputs: guitar
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Taj Mahal" . ?e_1 <place_of_birth> ?e_3 . ?e_3 <pred:name> "New York City" . ?e_2 <pred:name> "guitar" . ?e_1 ?p ?e_2 .  }
Answer: instrument