Question: How many TV production companies were founded after 1847 or are situated in Angola ?
Choices:
3
4
5
6
7
8
9
10
11
12
Answer: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "TV production company" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1847 ) .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "Angola" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1847
>
function: FilterConcept
dependencies: 1
inputs: TV production company
function: Find
inputs: Angola
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: TV production company
function: Or
dependencies: 2
5
function: Count
dependencies: 6