Question: How many crimes can we trace fromthe  time period of Roman Republic, disbanding on 30th September 1799, or, are different from attack?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "crime" .  { ?e_1 <time_period> ?e . ?e_1 <pred:name> "Roman Republic" . ?e_1 <dissolved,_abolished_or_demolished> ?pv . ?pv <pred:date> "1799-09-30"^^xsd:date .  } UNION { ?e <different_from> ?e_1 . ?e_1 <pred:name> "attack" .  } }
Program:
function: Find
inputs: Roman Republic
function: FilterDate
dependencies: 0
inputs: dissolved, abolished or demolished
1799-09-30
=
function: Relate
dependencies: 1
inputs: time period
forward
function: FilterConcept
dependencies: 2
inputs: crime
function: Find
inputs: attack
function: Relate
dependencies: 4
inputs: different from
backward
function: FilterConcept
dependencies: 5
inputs: crime
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 2