Question: How many ceremonial counties of England are in the United Kingdom or are a filming location of War Horse?
Choices:
35
36
37
38
39
40
41
42
43
44
Answer: 40
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ceremonial county of England" .  { ?e <country> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  } UNION { ?e_1 <filming_location> ?e . ?e_1 <pred:name> "War Horse" .  } }
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: ceremonial county of England
function: Find
inputs: War Horse
function: Relate
dependencies: 3
inputs: filming location
forward
function: FilterConcept
dependencies: 4
inputs: ceremonial county of England
function: Or
dependencies: 2
5
function: Count
dependencies: 6