Question: Was the person married to Andrew Lloyd Webber until 1990-01-03 born in a year other than 1962 ?
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> "Andrew Lloyd Webber" .  [ <pred:fact_h> ?e ; <pred:fact_r> <spouse> ; <pred:fact_t> ?e_1 ] <end_time> ?qpv . ?qpv <pred:date> "1990-01-03"^^xsd:date . ?e <date_of_birth> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1962 ) .  }
Program:
function: Find
inputs: Andrew Lloyd Webber
function: Relate
dependencies: 0
inputs: spouse
backward
function: QFilterDate
dependencies: 1
inputs: end time
1990-01-03
=
function: FilterConcept
dependencies: 2
inputs: human
function: QueryAttr
dependencies: 3
inputs: date of birth
function: VerifyYear
dependencies: 4
inputs: 1962
!=