Question: What is the number of rivers that include the country of Ukraine or are the tributary of the Pacific Ocean?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Ukraine
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: river
function: Find
inputs: Pacific Ocean
function: Relate
dependencies: 3
inputs: tributary
forward
function: FilterConcept
dependencies: 4
inputs: river
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "river" .  { ?e <country> ?e_1 . ?e_1 <pred:name> "Ukraine" .  } UNION { ?e_1 <tributary> ?e . ?e_1 <pred:name> "Pacific Ocean" .  } }
Answer: 2