Question: What is the number of ethnic communities whose native name is Cubanoamericanos or country is Virginia (that contains Fredericksburg)?
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> "ethnic community" .  { ?e <native_label> ?pv . ?pv <pred:value> "Cubanoamericanos" .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "Virginia" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Fredericksburg" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: native label
Cubanoamericanos
function: FilterConcept
dependencies: 1
inputs: ethnic community
function: Find
inputs: Fredericksburg
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Virginia
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: country
backward
function: FilterConcept
dependencies: 7
inputs: ethnic community
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 1