Question: What is the number of county towns whose headquarters is located in St. Edmund or country is the United Kingdom?
Choices:
11
12
13
14
15
16
17
18
19
20
Answer: 13
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county town" .  { ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "St Edmund Hall" .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  } }
Program:
function: Find
inputs: St Edmund Hall
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: FilterConcept
dependencies: 1
inputs: county town
function: Find
inputs: United Kingdom
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: county town
function: Or
dependencies: 2
5
function: Count
dependencies: 6