Question: How many television stations were either founded before 1984 or own Viacom (the one that is the distributor of All in the Family)?
Choices:
10
11
12
13
14
15
16
17
18
19
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1984
<
function: FilterConcept
dependencies: 1
inputs: television station
function: Find
inputs: All in the Family
function: Relate
dependencies: 3
inputs: distributor
forward
function: Find
inputs: Viacom
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: owned by
forward
function: FilterConcept
dependencies: 7
inputs: television station
function: Or
dependencies: 2
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television station" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1984 ) .  } UNION { ?e_1 <owned_by> ?e . ?e_1 <pred:name> "Viacom" . ?e_2 <distributor> ?e_1 . ?e_2 <pred:name> "All in the Family" .  } }
Answer: 18