Question: How many colleges of the University of Oxford employ John Williams, who works in Raleigh area, or, are a part of University of Oxford ?
Choices: 17
18
19
20
21
22
23
24
25
26
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "college of the University of Oxford" .  { ?e_1 <employer> ?e . ?e_1 <pred:name> "John Williams" . ?e_1 <work_location> ?e_2 . ?e_2 <pred:name> "Raleigh" .  } UNION { ?e <part_of> ?e_1 . ?e_1 <pred:name> "University of Oxford" .  } }
Program:
function: Find
inputs: Raleigh
function: Relate
dependencies: 0
inputs: work location
backward
function: Find
inputs: John Williams
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: employer
forward
function: FilterConcept
dependencies: 4
inputs: college of the University of Oxford
function: Find
inputs: University of Oxford
function: Relate
dependencies: 6
inputs: part of
backward
function: FilterConcept
dependencies: 7
inputs: college of the University of Oxford
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 23