Question: Tell me the number of ethnic communities that have the religion Catholic church or that have a geographic distribution of Rhode Island.
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ethnic community" .  { ?e <religion> ?e_1 . ?e_1 <pred:name> "Catholic Church" .  } UNION { ?e <geographic_distribution> ?e_1 . ?e_1 <pred:name> "Rhode Island" .  } }
Program:
function: Find
inputs: Catholic Church
function: Relate
dependencies: 0
inputs: religion
backward
function: FilterConcept
dependencies: 1
inputs: ethnic community
function: Find
inputs: Rhode Island
function: Relate
dependencies: 3
inputs: geographic distribution
backward
function: FilterConcept
dependencies: 4
inputs: ethnic community
function: Or
dependencies: 2
5
function: Count
dependencies: 6