Question: How many non-metro district are in the UK or contain Varanasi ?
Choices:
8
9
10
11
12
13
14
15
16
17
Answer: 17
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "non-metropolitan district" .  { ?e <country> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  } UNION { ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Varanasi" .  } }
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: non-metropolitan district
function: Find
inputs: Varanasi
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: non-metropolitan district
function: Or
dependencies: 2
5
function: Count
dependencies: 6