Question: How many Us liberal arts colleges employ University of Pittsburgh alumnus John Irving?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "liberal arts college in the United States" . ?e_1 <employer> ?e . ?e_1 <pred:name> "John Irving" . ?e_1 <educated_at> ?e_2 . ?e_2 <pred:name> "University of Pittsburgh" .   }
Program:
function: Find
inputs: University of Pittsburgh
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: John Irving
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: employer
forward
function: FilterConcept
dependencies: 4
inputs: liberal arts college in the United States
function: Count
dependencies: 5