Question: How many non-metro counties belong to the United Kingdom or are distinct from East Riding of Yorkshire?
Choices:
7
8
9
10
11
12
13
14
15
16
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: non-metropolitan county
function: Find
inputs: East Riding of Yorkshire
function: Relate
dependencies: 3
inputs: different from
backward
function: FilterConcept
dependencies: 4
inputs: non-metropolitan county
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> "non-metropolitan county" .  { ?e <country> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  } UNION { ?e <different_from> ?e_1 . ?e_1 <pred:name> "East Riding of Yorkshire" .  } }
Answer: 9