Question: How many crimes have an end time not in 1799 or have a start time after 1941?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "crime" .  { ?e <end_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1799 ) .  } UNION { ?e <start_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1941 ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: end time
1799
!=
function: FilterConcept
dependencies: 1
inputs: crime
function: FindAll
function: FilterYear
dependencies: 3
inputs: start time
1941
>
function: FilterConcept
dependencies: 4
inputs: crime
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 1