Question: How many University of Cambridge colleges are different from Trinity Hall or own Albany (beginning in 1776)?
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 <different_from> ?e_1 . ?e_1 <pred:name> "Trinity Hall" .  } UNION { ?e_1 <owned_by> ?e . ?e_1 <pred:name> "Albany" . ?e_1 <inception> ?pv . ?pv <pred:year> 1776 .  } }
Program:
function: Find
inputs: Trinity Hall
function: Relate
dependencies: 0
inputs: different from
backward
function: FilterConcept
dependencies: 1
inputs: college of the University of Cambridge
function: Find
inputs: Albany
function: FilterYear
dependencies: 3
inputs: inception
1776
=
function: Relate
dependencies: 4
inputs: owned by
forward
function: FilterConcept
dependencies: 5
inputs: college of the University of Cambridge
function: Or
dependencies: 2
6
function: Count
dependencies: 7