Question: Is the date of birth of the spouse of Carly Simon (the end time of this statement is 1983-01-01) before 1978 ?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <spouse> ?e_1 . ?e_1 <pred:name> "Carly Simon" .  [ <pred:fact_h> ?e ; <pred:fact_r> <spouse> ; <pred:fact_t> ?e_1 ] <end_time> ?qpv . ?qpv <pred:date> "1983-01-01"^^xsd:date . ?e <date_of_birth> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1978 ) .  }
Program:
function: Find
inputs: Carly Simon
function: Relate
dependencies: 0
inputs: spouse
backward
function: QFilterDate
dependencies: 1
inputs: end time
1983-01-01
=
function: FilterConcept
dependencies: 2
inputs: human
function: QueryAttr
dependencies: 3
inputs: date of birth
function: VerifyYear
dependencies: 4
inputs: 1978
<