Question: How many ceremonial counties in England either have an area of less than 840 square miles or the capital of Mansfield (the one whose country is United Kingdom)?
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> "ceremonial county of England" .  { ?e <area> ?pv . ?pv <pred:unit> "square mile" . ?pv <pred:value> ?v . FILTER ( ?v < "840"^^xsd:double ) .  } UNION { ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Mansfield" . ?e_1 <country> ?e_2 . ?e_2 <pred:name> "United Kingdom" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: area
840 square mile
<
function: FilterConcept
dependencies: 1
inputs: ceremonial county of England
function: Find
inputs: United Kingdom
function: Relate
dependencies: 3
inputs: country
backward
function: Find
inputs: Mansfield
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: capital of
forward
function: FilterConcept
dependencies: 7
inputs: ceremonial county of England
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 0