Question: How many islands have an area not equal to 360000 hectares or share a border with Brooklyn (the birthplace of Jessica Walter)?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "island" .  { ?e <area> ?pv . ?pv <pred:unit> "hectare" . ?pv <pred:value> ?v . FILTER ( ?v != "360000"^^xsd:double ) .  } UNION { ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Brooklyn" . ?e_2 <place_of_birth> ?e_1 . ?e_2 <pred:name> "Jessica Walter" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: area
360000 hectare
!=
function: FilterConcept
dependencies: 1
inputs: island
function: Find
inputs: Jessica Walter
function: Relate
dependencies: 3
inputs: place of birth
forward
function: Find
inputs: Brooklyn
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: shares border with
forward
function: FilterConcept
dependencies: 7
inputs: island
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 1