Question: Did the war that started in 1296-01-01 (with Gregorian date earlier than 1584) end before 1813?
Choices: yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "war" . ?e <start_time> ?pv_1 . ?pv_1 <pred:date> "1296-01-01"^^xsd:date . [ <pred:fact_h> ?e ; <pred:fact_r> <start_time> ; <pred:fact_t> ?pv_1 ] <instance_of> ?qpv . ?qpv <pred:value> "statement with Gregorian date earlier than 1584" . ?e <end_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1813 ) .  }
Program:
function: FindAll
function: FilterDate
dependencies: 0
inputs: start time
1296-01-01
=
function: QFilterStr
dependencies: 1
inputs: instance of
statement with Gregorian date earlier than 1584
function: FilterConcept
dependencies: 2
inputs: war
function: QueryAttr
dependencies: 3
inputs: end time
function: VerifyYear
dependencies: 4
inputs: 1813
<
Answer: yes