Question: For the sport that has Alan Ball's (the one whose height is 185 centimetre) sport team, how many American-football positions are related to its sport type?
Choices:
11
12
13
14
15
16
17
18
19
20
Answer: 15
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "American football position" . ?e <sport> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "type of sport" . ?e_2 <sport> ?e_1 . ?e_2 <pred:name> "Alan Ball" . ?e_2 <height> ?pv . ?pv <pred:unit> "centimetre" . ?pv <pred:value> "185"^^xsd:double .   }
Program:
function: Find
inputs: Alan Ball
function: FilterNum
dependencies: 0
inputs: height
185 centimetre
=
function: Relate
dependencies: 1
inputs: sport
forward
function: FilterConcept
dependencies: 2
inputs: type of sport
function: Relate
dependencies: 3
inputs: sport
backward
function: FilterConcept
dependencies: 4
inputs: American football position
function: Count
dependencies: 5