Question: How many keyboard instruments either have a height of 85 mm or are associated with Richard Wright, who is known for jazz?
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> "keyboard instrument" .  { ?e <height> ?pv . ?pv <pred:unit> "millimetre" . ?pv <pred:value> "85"^^xsd:double .  } UNION { ?e <famous_people> ?e_1 . ?e_1 <pred:name> "Richard Wright" . ?e_2 <famous_people> ?e_1 . ?e_2 <pred:name> "jazz" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: height
85 millimetre
=
function: FilterConcept
dependencies: 1
inputs: keyboard instrument
function: Find
inputs: jazz
function: Relate
dependencies: 3
inputs: famous people
forward
function: Find
inputs: Richard Wright
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: famous people
backward
function: FilterConcept
dependencies: 7
inputs: keyboard instrument
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 2