Question: What are the number of counties of Massachusetts whose area is less than 45 square versta or whose inception time is before 1793 ?
Choices:
4
5
6
7
8
9
10
11
12
13
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: area
45 square versta
<
function: FilterConcept
dependencies: 1
inputs: county of Massachusetts
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1793
<
function: FilterConcept
dependencies: 4
inputs: county of Massachusetts
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> "county of Massachusetts" .  { ?e <area> ?pv . ?pv <pred:unit> "square versta" . ?pv <pred:value> ?v . FILTER ( ?v < "45"^^xsd:double ) .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1793 ) .  } }
Answer: 9