Question: How many American-football positions are the position of Alan Ball (the one whose mass is 195 pound) or the position of John Ford (the one that is related to sport American football)?
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: Find
inputs: Alan Ball
function: FilterNum
dependencies: 0
inputs: mass
195 pound
=
function: Relate
dependencies: 1
inputs: position played on team / speciality
forward
function: FilterConcept
dependencies: 2
inputs: American football position
function: Find
inputs: American football
function: Relate
dependencies: 4
inputs: sport
backward
function: Find
inputs: John Ford
function: And
dependencies: 5
6
function: Relate
dependencies: 7
inputs: position played on team / speciality
forward
function: FilterConcept
dependencies: 8
inputs: American football position
function: Or
dependencies: 3
9
function: Count
dependencies: 10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "American football position" .  { ?e_1 <position_played_on_team_/_speciality> ?e . ?e_1 <pred:name> "Alan Ball" . ?e_1 <mass> ?pv . ?pv <pred:unit> "pound" . ?pv <pred:value> "195"^^xsd:double .  } UNION { ?e_1 <position_played_on_team_/_speciality> ?e . ?e_1 <pred:name> "John Ford" . ?e_1 <sport> ?e_2 . ?e_2 <pred:name> "American football" .  } }
Answer: 2