Question: What is the number of United States cities that have a start time other than 1848 or that is a Dame notable work
Choices:
6
7
8
9
10
11
12
13
14
15
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: start time
1848
!=
function: FilterConcept
dependencies: 1
inputs: city of the United States
function: Find
inputs: Dame
function: Relate
dependencies: 3
inputs: notable work
forward
function: FilterConcept
dependencies: 4
inputs: city of the United States
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 of the United States" .  { ?e <start_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1848 ) .  } UNION { ?e_1 <notable_work> ?e . ?e_1 <pred:name> "Dame" .  } }
Answer: 8