Question: How many American football positions are either known as DE or are the position of Kevin Smith (the one whose mass is 190 pound)?
Choices: 1
2
3
4
5
6
7
8
9
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> "Kevin Smith" . ?e_1 <mass> ?pv . ?pv <pred:unit> "pound" . ?pv <pred:value> "190"^^xsd:double .  } UNION { ?e <short_name> ?pv . ?pv <pred:value> "DE" .  } }
Program:
function: Find
inputs: Kevin Smith
function: FilterNum
dependencies: 0
inputs: mass
190 pound
=
function: Relate
dependencies: 1
inputs: position played on team / speciality
forward
function: FilterConcept
dependencies: 2
inputs: American football position
function: FindAll
function: FilterStr
dependencies: 4
inputs: short name
DE
function: FilterConcept
dependencies: 5
inputs: American football position
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 2