Question: How is Harry Nilsson (the one that has the occupation of pianist) related to a singer-songwriter?
Choices: occupation
member of
has effect
film regional debut venue
set in period
language of work or name
collection
country
follows
currency
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Harry Nilsson" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "pianist" . ?e_2 <pred:name> "singer-songwriter" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: pianist
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Harry Nilsson
function: And
dependencies: 1
2
function: Find
inputs: singer-songwriter
function: QueryRelation
dependencies: 3
4
Answer: occupation