Question: What is the number of historic England counties that have a demonym Yorkshireman or that have a border with Buckinghamshire
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "historic county of England" .  { ?e <demonym> ?pv . ?pv <pred:value> "Yorkshireman" .  } UNION { ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Buckinghamshire" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: demonym
Yorkshireman
function: FilterConcept
dependencies: 1
inputs: historic county of England
function: Find
inputs: Buckinghamshire
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: historic county of England
function: Or
dependencies: 2
5
function: Count
dependencies: 6