Question: How many colleges in the University of Cambridge are located in Cambridge, which contains the King's College, or has the ARCHON code of 1934?
Choices: 8
9
10
11
12
13
14
15
16
17
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "college of the University of Cambridge" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Cambridge" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "King's College" .  } UNION { ?e <ARCHON_code> ?pv . ?pv <pred:value> "1934" .  } }
Program:
function: Find
inputs: King's College
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Cambridge
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: college of the University of Cambridge
function: FindAll
function: FilterStr
dependencies: 6
inputs: ARCHON code
1934
function: FilterConcept
dependencies: 7
inputs: college of the University of Cambridge
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 17