Question: How many facilities are the employer of Spider-Man (which was created by Steve Ditko) or have a visitor count per year greater than 2200000?
Choices: 4
5
6
7
8
9
10
11
12
13
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "facility" .  { ?e_1 <employer> ?e . ?e_1 <pred:name> "Spider-Man" . ?e_1 <creator> ?e_2 . ?e_2 <pred:name> "Steve Ditko" .  } UNION { ?e <visitors_per_year> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "2200000"^^xsd:double ) .  } }
Program:
function: Find
inputs: Steve Ditko
function: Relate
dependencies: 0
inputs: creator
backward
function: Find
inputs: Spider-Man
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: employer
forward
function: FilterConcept
dependencies: 4
inputs: facility
function: FindAll
function: FilterNum
dependencies: 6
inputs: visitors per year
2200000
>
function: FilterConcept
dependencies: 7
inputs: facility
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 7