Question: What is the number of administrative territorial entities that have the capital Fargo (whose establishment date is in 1871) or are an administrative division of Greater London?
Choices: 4
5
6
7
8
9
10
11
12
13
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity" .  { ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Fargo" . ?e_1 <inception> ?pv . ?pv <pred:year> 1871 .  } UNION { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Greater London" .  } }
Program:
function: Find
inputs: Fargo
function: FilterYear
dependencies: 0
inputs: inception
1871
=
function: Relate
dependencies: 1
inputs: capital of
forward
function: FilterConcept
dependencies: 2
inputs: administrative territorial entity
function: Find
inputs: Greater London
function: Relate
dependencies: 4
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 5
inputs: administrative territorial entity
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 6