Question: What is the connection between Great Expectations (the one whose publication date is 1974-01-01) to Michael York (the one that is educated at University College)?
Choices:
cast member
programming language
film release region
field of this occupation
studied by
vehicle normally used
notable people with this condition
has part
appointed by
indigenous to
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Great Expectations" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "1974-01-01"^^xsd:date . ?e_2 <pred:name> "Michael York" . ?e_2 <educated_at> ?e_3 . ?e_3 <pred:name> "University College" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Great Expectations
function: FilterDate
dependencies: 0
inputs: publication date
1974-01-01
=
function: Find
inputs: University College
function: Relate
dependencies: 2
inputs: educated at
backward
function: Find
inputs: Michael York
function: And
dependencies: 3
4
function: QueryRelation
dependencies: 1
5