Question: How is The Devil Wears Prada (the one that has Emily Blunt as a cast member) related to Simon Baker (the one whose date of birth is 30th July 1969) ?
Choices:
located on terrain feature
sibling
airline alliance
depicts
developer
cast member
dialect of
make-up artist
architectural style
military conflicts
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Devil Wears Prada" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Emily Blunt" . ?e_2 <pred:name> "Simon Baker" . ?e_2 <date_of_birth> ?pv . ?pv <pred:date> "1969-07-30"^^xsd:date . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Emily Blunt
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Devil Wears Prada
function: And
dependencies: 1
2
function: Find
inputs: Simon Baker
function: FilterDate
dependencies: 4
inputs: date of birth
1969-07-30
=
function: QueryRelation
dependencies: 3
5