Question: what is the number of port cities that has the inception time prior to - 3,000 or that has the capital of Odessa (the one whose country is the Ukrainian Soviet Socialist Republic)
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> "port city" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < -3000 ) .  } UNION { ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Odessa" . ?e_1 <country> ?e_2 . ?e_2 <pred:name> "Ukrainian Soviet Socialist Republic" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
-3000
<
function: FilterConcept
dependencies: 1
inputs: port city
function: Find
inputs: Ukrainian Soviet Socialist Republic
function: Relate
dependencies: 3
inputs: country
backward
function: Find
inputs: Odessa
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: capital of
forward
function: FilterConcept
dependencies: 7
inputs: port city
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 0