Question: How many baseball positions are the position of Chris Carter (whose position is designated hitter)?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "baseball position" . ?e_1 <position_played_on_team_/_speciality> ?e . ?e_1 <pred:name> "Chris Carter" . ?e_1 <position_played_on_team_/_speciality> ?e_2 . ?e_2 <pred:name> "designated hitter" .   }
Program:
function: Find
inputs: designated hitter
function: Relate
dependencies: 0
inputs: position played on team / speciality
backward
function: Find
inputs: Chris Carter
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: position played on team / speciality
forward
function: FilterConcept
dependencies: 4
inputs: baseball position
function: Count
dependencies: 5
Answer: 2