Question: How many film production companies are founders of Seoul Broadcasting System or originate in London (that is the filming location of Hellboy II: The Golden Army)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film production company" .  { ?e <found> ?e_1 . ?e_1 <pred:name> "Seoul Broadcasting System" .  } UNION { ?e <location_of_formation> ?e_1 . ?e_1 <pred:name> "London" . ?e_2 <filming_location> ?e_1 . ?e_2 <pred:name> "Hellboy II: The Golden Army" .  } }
Program:
function: Find
inputs: Seoul Broadcasting System
function: Relate
dependencies: 0
inputs: found
backward
function: FilterConcept
dependencies: 1
inputs: film production company
function: Find
inputs: Hellboy II: The Golden Army
function: Relate
dependencies: 3
inputs: filming location
forward
function: Find
inputs: London
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: location of formation
backward
function: FilterConcept
dependencies: 7
inputs: film production company
function: Or
dependencies: 2
8
function: Count
dependencies: 9