Question: How many New York cities were founded prior to 1864 or have the native label Buffalo?
Choices: 6
7
8
9
10
11
12
13
14
15
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of New York" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1864 ) .  } UNION { ?e <native_label> ?pv . ?pv <pred:value> "Buffalo" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1864
<
function: FilterConcept
dependencies: 1
inputs: city of New York
function: FindAll
function: FilterStr
dependencies: 3
inputs: native label
Buffalo
function: FilterConcept
dependencies: 4
inputs: city of New York
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 10