Question: How many New Jersey cities are headed by the Governor of Massachusetts or have a population less than 3700000?
Choices:
8
9
10
11
12
13
14
15
16
17
Program:
function: Find
inputs: Governor of Massachusetts
function: Relate
dependencies: 0
inputs: office held by head of government
backward
function: FilterConcept
dependencies: 1
inputs: city in New Jersey
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
3700000
<
function: FilterConcept
dependencies: 4
inputs: city in New Jersey
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> "city in New Jersey" .  { ?e <office_held_by_head_of_government> ?e_1 . ?e_1 <pred:name> "Governor of Massachusetts" .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "3700000"^^xsd:double ) .  } }
Answer: 15