Question: How many of the University of Cambridge's colleges employ Stephen Hawking or are different from Trinity College (child organization of the University of Cambridge)?
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> "college of the University of Cambridge" .  { ?e_1 <employer> ?e . ?e_1 <pred:name> "Stephen Hawking" .  } UNION { ?e <different_from> ?e_1 . ?e_1 <pred:name> "Trinity College" . ?e_1 <parent_organization> ?e_2 . ?e_2 <pred:name> "University of Cambridge" .  } }
Program:
function: Find
inputs: Stephen Hawking
function: Relate
dependencies: 0
inputs: employer
forward
function: FilterConcept
dependencies: 1
inputs: college of the University of Cambridge
function: Find
inputs: University of Cambridge
function: Relate
dependencies: 3
inputs: parent organization
backward
function: Find
inputs: Trinity College
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: different from
backward
function: FilterConcept
dependencies: 7
inputs: college of the University of Cambridge
function: Or
dependencies: 2
8
function: Count
dependencies: 9