Question: What is the relationship between Romeo and Juliet (the one that derives Romeo + Juliet) and, Romeo and Juliet (the one whose publication date is 1954-01-01)?
Choices:
lowest point
operating area
Wikidata property
source of income
illustrator
located in or next to body of water
instrumentation
executive producer
derivative work
currency
Answer: derivative work
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Romeo and Juliet" . ?e_3 <based_on> ?e_1 . ?e_3 <pred:name> "Romeo + Juliet" . ?e_2 <pred:name> "Romeo and Juliet" . ?e_2 <publication_date> ?pv . ?pv <pred:date> "1954-01-01"^^xsd:date . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Romeo + Juliet
function: Relate
dependencies: 0
inputs: based on
forward
function: Find
inputs: Romeo and Juliet
function: And
dependencies: 1
2
function: Find
inputs: Romeo and Juliet
function: FilterDate
dependencies: 4
inputs: publication date
1954-01-01
=
function: QueryRelation
dependencies: 3
5