Question: How many non-metropolitan counties are located in England (the narrative location of The Remains of the Day) or are different from Derbyshire (whose official website is http://www.derbyshire.gov.uk/)?
Choices:
8
9
10
11
12
13
14
15
16
17
Program:
function: Find
inputs: The Remains of the Day
function: Relate
dependencies: 0
inputs: narrative location
forward
function: Find
inputs: England
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: non-metropolitan county
function: Find
inputs: Derbyshire
function: FilterStr
dependencies: 6
inputs: official website
http://www.derbyshire.gov.uk/
function: Relate
dependencies: 7
inputs: different from
forward
function: FilterConcept
dependencies: 8
inputs: non-metropolitan county
function: Or
dependencies: 5
9
function: Count
dependencies: 10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "non-metropolitan county" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "England" . ?e_2 <narrative_location> ?e_1 . ?e_2 <pred:name> "The Remains of the Day" .  } UNION { ?e_1 <different_from> ?e . ?e_1 <pred:name> "Derbyshire" . ?e_1 <official_website> ?pv . ?pv <pred:value> "http://www.derbyshire.gov.uk/" .  } }
Answer: 9