Question: How many organizations are a parent of Universal Music Group or do not have 5800000 patrons?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 8
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "organization" .  { ?e <subsidiary> ?e_1 . ?e_1 <pred:name> "Universal Music Group" .  } UNION { ?e <patronage> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "5800000"^^xsd:double ) .  } }
Program:
function: Find
inputs: Universal Music Group
function: Relate
dependencies: 0
inputs: subsidiary
backward
function: FilterConcept
dependencies: 1
inputs: organization
function: FindAll
function: FilterNum
dependencies: 3
inputs: patronage
5800000
!=
function: FilterConcept
dependencies: 4
inputs: organization
function: Or
dependencies: 2
5
function: Count
dependencies: 6