Question: How many American football teams have a member named Mike Henry (who is connected to the sport American football)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "American football team" . ?e_1 <member_of_sports_team> ?e . ?e_1 <pred:name> "Mike Henry" . ?e_1 <sport> ?e_2 . ?e_2 <pred:name> "American football" .   }
Program:
function: Find
inputs: American football
function: Relate
dependencies: 0
inputs: sport
backward
function: Find
inputs: Mike Henry
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: member of sports team
forward
function: FilterConcept
dependencies: 4
inputs: American football team
function: Count
dependencies: 5