Question: How many historical countries existed during the French Revolution or were established after 1861?
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> "historical country" .  { ?e <time_period> ?e_1 . ?e_1 <pred:name> "French Revolution" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1861 ) .  } }
Program:
function: Find
inputs: French Revolution
function: Relate
dependencies: 0
inputs: time period
backward
function: FilterConcept
dependencies: 1
inputs: historical country
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1861
>
function: FilterConcept
dependencies: 4
inputs: historical country
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 8