Question: How many US states are affiliated with the University of the Witwatersrand or are the filming locale for War of the Worlds?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of the United States" .  { ?e_1 <affiliation> ?e . ?e_1 <pred:name> "University of the Witwatersrand" .  } UNION { ?e_1 <filming_location> ?e . ?e_1 <pred:name> "War of the Worlds" .  } }
Program:
function: Find
inputs: University of the Witwatersrand
function: Relate
dependencies: 0
inputs: affiliation
forward
function: FilterConcept
dependencies: 1
inputs: state of the United States
function: Find
inputs: War of the Worlds
function: Relate
dependencies: 3
inputs: filming location
forward
function: FilterConcept
dependencies: 4
inputs: state of the United States
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2