Question: How many of the colleges are registered with the Rhode Island School of Design?
Choices:
15
16
17
18
19
20
21
22
23
24
Answer: 20
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "college" . ?e <registered_with> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "organization" . ?e_2 <registered_with> ?e_1 . ?e_2 <pred:name> "Rhode Island School of Design" .   }
Program:
function: Find
inputs: Rhode Island School of Design
function: Relate
dependencies: 0
inputs: registered with
forward
function: FilterConcept
dependencies: 1
inputs: organization
function: Relate
dependencies: 2
inputs: registered with
backward
function: FilterConcept
dependencies: 3
inputs: college
function: Count
dependencies: 4