Question: How many private universities belong to the organization whose membership includes Yale University?
Choices:
4
5
6
7
8
9
10
11
12
13
Answer: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "private university" . ?e <member_of> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "organization" . ?e_2 <member_of> ?e_1 . ?e_2 <pred:name> "Yale University" .   }
Program:
function: Find
inputs: Yale University
function: Relate
dependencies: 0
inputs: member of
forward
function: FilterConcept
dependencies: 1
inputs: organization
function: Relate
dependencies: 2
inputs: member of
backward
function: FilterConcept
dependencies: 3
inputs: private university
function: Count
dependencies: 4