Question: University of Michigan alumnus John Madden belongs to how many ice hockey clubs?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ice hockey team" . ?e_1 <member_of_sports_team> ?e . ?e_1 <pred:name> "John Madden" . ?e_1 <educated_at> ?e_2 . ?e_2 <pred:name> "University of Michigan" .   }
Program:
function: Find
inputs: University of Michigan
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: John Madden
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: member of sports team
forward
function: FilterConcept
dependencies: 4
inputs: ice hockey team
function: Count
dependencies: 5