Question: How many Pennsylvania cities are led by the Governor of New York or are distinct from the Lawrence that occupies 19.242073 square km?
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> "city of Pennsylvania" .  { ?e <office_held_by_head_of_government> ?e_1 . ?e_1 <pred:name> "Governor of New York" .  } UNION { ?e <different_from> ?e_1 . ?e_1 <pred:name> "Lawrence" . ?e_1 <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> "19.242073"^^xsd:double .  } }
Program:
function: Find
inputs: Governor of New York
function: Relate
dependencies: 0
inputs: office held by head of government
backward
function: FilterConcept
dependencies: 1
inputs: city of Pennsylvania
function: Find
inputs: Lawrence
function: FilterNum
dependencies: 3
inputs: area
19.242073 square kilometre
=
function: Relate
dependencies: 4
inputs: different from
backward
function: FilterConcept
dependencies: 5
inputs: city of Pennsylvania
function: Or
dependencies: 2
6
function: Count
dependencies: 7
Answer: 0