Question: How many keyboard instruments are famously associated with Kim Carnes or are wider than 120 mm?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "keyboard instrument" .  { ?e <famous_people> ?e_1 . ?e_1 <pred:name> "Kim Carnes" .  } UNION { ?e <width> ?pv . ?pv <pred:unit> "millimetre" . ?pv <pred:value> ?v . FILTER ( ?v > "120"^^xsd:double ) .  } }
Program:
function: Find
inputs: Kim Carnes
function: Relate
dependencies: 0
inputs: famous people
backward
function: FilterConcept
dependencies: 1
inputs: keyboard instrument
function: FindAll
function: FilterNum
dependencies: 3
inputs: width
120 millimetre
>
function: FilterConcept
dependencies: 4
inputs: keyboard instrument
function: Or
dependencies: 2
5
function: Count
dependencies: 6