Question: How is Robert Smith (the one whose date of death is 1768-02-02) related to mathematician ?
Choices:
practiced by
allegiance
occupation
used by
notable people with this condition
member of political party
chief executive officer
architectural style
followed by
drafted by
Program:
function: Find
inputs: Robert Smith
function: FilterDate
dependencies: 0
inputs: date of death
1768-02-02
=
function: Find
inputs: mathematician
function: QueryRelation
dependencies: 1
2
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Robert Smith" . ?e_1 <date_of_death> ?pv . ?pv <pred:date> "1768-02-02"^^xsd:date . ?e_2 <pred:name> "mathematician" . ?e_1 ?p ?e_2 .  }
Answer: occupation