Question: Is the area of a peninsula that includes Gibraltar, the one sharing borders with Spain, other than 50 square versta?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: no
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "peninsula" . ?e <has_part> ?e_1 . ?e_1 <pred:name> "Gibraltar" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "Spain" .  ?e <area> ?pv . ?pv <pred:unit> "square versta" . ?pv <pred:value> ?v . FILTER ( ?v != "50"^^xsd:double ) .  }
Program:
function: Find
inputs: Spain
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Gibraltar
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: has part
backward
function: FilterConcept
dependencies: 4
inputs: peninsula
function: QueryAttr
dependencies: 5
inputs: area
function: VerifyNum
dependencies: 6
inputs: 50 square versta
!=