Question: How is the United Kingdom citizen John Carter related to the profession of songwriter?
Choices:
replaces
located in or next to body of water
position played on team / speciality
place of publication
series spin-off
occupation
talk show guest
family
model item
territory overlaps
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Carter" . ?e_1 <country_of_citizenship> ?e_3 . ?e_3 <pred:name> "United Kingdom" . ?e_2 <pred:name> "songwriter" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: John Carter
function: And
dependencies: 1
2
function: Find
inputs: songwriter
function: QueryRelation
dependencies: 3
4