Question: How many Illinois counties are located in Illinois (the one whose subreddit is Illinois) or have the capital of Anaheim?
Choices: 18
19
20
21
22
23
24
25
26
27
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Illinois" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Illinois" . ?e_1 <subreddit> ?pv . ?pv <pred:value> "Illinois" .  } UNION { ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Anaheim" .  } }
Program:
function: Find
inputs: Illinois
function: FilterStr
dependencies: 0
inputs: subreddit
Illinois
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: county of Illinois
function: Find
inputs: Anaheim
function: Relate
dependencies: 4
inputs: capital of
forward
function: FilterConcept
dependencies: 5
inputs: county of Illinois
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 18