Question: How many counties in North Carolina are either located in Oregon (with the subreddit of Oregon) or is in the United States of America?
Choices:
5
6
7
8
9
10
11
12
13
14
Answer: 11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of North Carolina" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Oregon" . ?e_1 <subreddit> ?pv . ?pv <pred:value> "Oregon" .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .  } }
Program:
function: Find
inputs: Oregon
function: FilterStr
dependencies: 0
inputs: subreddit
Oregon
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: county of North Carolina
function: Find
inputs: United States of America
function: Relate
dependencies: 4
inputs: country
backward
function: FilterConcept
dependencies: 5
inputs: county of North Carolina
function: Or
dependencies: 3
6
function: Count
dependencies: 7