Question: How many research universities are located in Edmonton (the one whose Statistics Canada Geographic code is 4811061), or are Josh Charles' school?
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> "research university" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Edmonton" . ?e_1 <Statistics_Canada_Geographic_code> ?pv . ?pv <pred:value> "4811061" .  } UNION { ?e_1 <educated_at> ?e . ?e_1 <pred:name> "Josh Charles" .  } }
Program:
function: Find
inputs: Edmonton
function: FilterStr
dependencies: 0
inputs: Statistics Canada Geographic code
4811061
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: research university
function: Find
inputs: Josh Charles
function: Relate
dependencies: 4
inputs: educated at
forward
function: FilterConcept
dependencies: 5
inputs: research university
function: Or
dependencies: 3
6
function: Count
dependencies: 7