Question: What is the connection between Amazing Grace (the one that has Whitney Houston as a performer) to Mariah Carey?
Choices:
performer
religious order
located on terrain feature
location of final assembly
next higher rank
sidekick of
home world
appears in the form of
geography of topic
student of
Answer: performer
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Amazing Grace" . ?e_1 <performer> ?e_3 . ?e_3 <pred:name> "Whitney Houston" . ?e_2 <pred:name> "Mariah Carey" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Whitney Houston
function: Relate
dependencies: 0
inputs: performer
backward
function: Find
inputs: Amazing Grace
function: And
dependencies: 1
2
function: Find
inputs: Mariah Carey
function: QueryRelation
dependencies: 3
4