Question: How many Massachusetts counties have a population other than 4400000 or are the birthplace of Susan Hayward?
Choices:
11
12
13
14
15
16
17
18
19
20
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
4400000
!=
function: FilterConcept
dependencies: 1
inputs: county of Massachusetts
function: Find
inputs: Susan Hayward
function: Relate
dependencies: 3
inputs: place of birth
forward
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 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "4400000"^^xsd:double ) .  } UNION { ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Susan Hayward" .  } }
Answer: 12