Question: How is Amazing Grace performed by Elvis Presley related to Ray Charles who is famous for blues?
Choices:
commissioned by
inspired by
costume designer
dissertation submitted to
software engine
named after
killed by
discoverer or inventor
performer
notable people with this condition
Answer: performer
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Amazing Grace" . ?e_1 <performer> ?e_3 . ?e_3 <pred:name> "Elvis Presley" . ?e_2 <pred:name> "Ray Charles" . ?e_4 <famous_people> ?e_2 . ?e_4 <pred:name> "blues" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Elvis Presley
function: Relate
dependencies: 0
inputs: performer
backward
function: Find
inputs: Amazing Grace
function: And
dependencies: 1
2
function: Find
inputs: blues
function: Relate
dependencies: 4
inputs: famous people
forward
function: Find
inputs: Ray Charles
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7