Question: How many Arizona counties contain Glendale (whose official website is http://www.glendaleaz.com/) or claim its country is the United States of America?
Choices:
4
5
6
7
8
9
10
11
12
13
Answer: 11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Arizona" .  { ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Glendale" . ?e_1 <official_website> ?pv . ?pv <pred:value> "http://www.glendaleaz.com/" .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .  } }
Program:
function: Find
inputs: Glendale
function: FilterStr
dependencies: 0
inputs: official website
http://www.glendaleaz.com/
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 2
inputs: county of Arizona
function: Find
inputs: United States of America
function: Relate
dependencies: 4
inputs: country
backward
function: FilterConcept
dependencies: 5
inputs: county of Arizona
function: Or
dependencies: 3
6
function: Count
dependencies: 7