Question: Does an animated character, whose number of children is more than 0, have more than 2.1 daughters ?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: no
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "animated character" . ?e <number_of_children> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> ?v_1 . FILTER ( ?v_1 > "0"^^xsd:double ) . ?e <number_of_children> ?pv . ?pv <pred:unit> "daughter" . ?pv <pred:value> ?v . FILTER ( ?v > "2.1"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of children
0
>
function: FilterConcept
dependencies: 1
inputs: animated character
function: QueryAttr
dependencies: 2
inputs: number of children
function: VerifyNum
dependencies: 3
inputs: 2.1 daughter
>