Question: How is Beetlejuice published on 1988-03-29 related to ghost?
Choices:
musical conductor
newspaper format
inspired by
director
chief executive officer
has immediate cause
main subject
participant
patron saint
theme music
Answer: main subject
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Beetlejuice" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "1988-03-29"^^xsd:date . ?e_2 <pred:name> "ghost" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Beetlejuice
function: FilterDate
dependencies: 0
inputs: publication date
1988-03-29
=
function: Find
inputs: ghost
function: QueryRelation
dependencies: 1
2