Question: How many counties of Indiana contain the administrative division Anderson (the one whose official website is http://www.cityofanderson.com/) or are located in Indiana?
Choices:
12
13
14
15
16
17
18
19
20
21
Answer: 13
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Indiana" .  { ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Anderson" . ?e_1 <official_website> ?pv . ?pv <pred:value> "http://www.cityofanderson.com/" .  } UNION { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Indiana" .  } }
Program:
function: Find
inputs: Anderson
function: FilterStr
dependencies: 0
inputs: official website
http://www.cityofanderson.com/
function: Relate
dependencies: 1
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: county of Indiana
function: Find
inputs: Indiana
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 5
inputs: county of Indiana
function: Or
dependencies: 3
6
function: Count
dependencies: 7