Question: How many basketball teams has the Brooklyn Nets' Robert Smith been a member of?
Choices: 4
5
6
7
8
9
10
11
12
13
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "basketball team" . ?e_1 <member_of_sports_team> ?e . ?e_1 <pred:name> "Robert Smith" . ?e_1 <member_of_sports_team> ?e_2 . ?e_2 <pred:name> "Brooklyn Nets" .   }
Program:
function: Find
inputs: Brooklyn Nets
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Robert Smith
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: member of sports team
forward
function: FilterConcept
dependencies: 4
inputs: basketball team
function: Count
dependencies: 5
Answer: 7