Question: How is Beetlejuice, which mostly depicts death, related to ghosts?
Choices:
basic form of government
tributary
country
allegiance
award received
main subject
archives at
Wikidata property
located in time zone
used by
Program:
function: Find
inputs: death
function: Relate
dependencies: 0
inputs: main subject
backward
function: Find
inputs: Beetlejuice
function: And
dependencies: 1
2
function: Find
inputs: ghost
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Beetlejuice" . ?e_1 <main_subject> ?e_3 . ?e_3 <pred:name> "death" . ?e_2 <pred:name> "ghost" . ?e_1 ?p ?e_2 .  }
Answer: main subject