Question: What number of occupations are abbreviated Prof. or whose IPTC Newscode is mediatopic/20000415?
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> "occupation" .  { ?e <IPTC_Newscode> ?pv . ?pv <pred:value> "mediatopic/20000415" .  } UNION { ?e <short_name> ?pv . ?pv <pred:value> "Prof." .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: IPTC Newscode
mediatopic/20000415
function: FilterConcept
dependencies: 1
inputs: occupation
function: FindAll
function: FilterStr
dependencies: 3
inputs: short name
Prof.
function: FilterConcept
dependencies: 4
inputs: occupation
function: Or
dependencies: 2
5
function: Count
dependencies: 6