Question: What is the number of belief systems that are the official religion of Holy Roman Empire or have the IPTC Newscode mediatopic/20000667?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "belief system" .  { ?e_1 <official_religion> ?e . ?e_1 <pred:name> "Holy Roman Empire" .  } UNION { ?e <IPTC_Newscode> ?pv . ?pv <pred:value> "mediatopic/20000667" .  } }
Program:
function: Find
inputs: Holy Roman Empire
function: Relate
dependencies: 0
inputs: official religion
forward
function: FilterConcept
dependencies: 1
inputs: belief system
function: FindAll
function: FilterStr
dependencies: 3
inputs: IPTC Newscode
mediatopic/20000667
function: FilterConcept
dependencies: 4
inputs: belief system
function: Or
dependencies: 2
5
function: Count
dependencies: 6