Question: How many independent cities are the home of John Grisham or occupy under 4500 square kilometers?
Choices:
18
19
20
21
22
23
24
25
26
27
Program:
function: Find
inputs: John Grisham
function: Relate
dependencies: 0
inputs: residence
forward
function: FilterConcept
dependencies: 1
inputs: independent city
function: FindAll
function: FilterNum
dependencies: 3
inputs: area
4500 square kilometre
<
function: FilterConcept
dependencies: 4
inputs: independent city
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "independent city" .  { ?e_1 <residence> ?e . ?e_1 <pred:name> "John Grisham" .  } UNION { ?e <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> ?v . FILTER ( ?v < "4500"^^xsd:double ) .  } }
Answer: 22