Question: What are the number of counties of Alabama that is located in Alabama (the one whose official website is https://www.alabama.gov) or whose population is less than 8.4 ?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Alabama" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Alabama" . ?e_1 <official_website> ?pv . ?pv <pred:value> "https://www.alabama.gov" .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "8.4"^^xsd:double ) .  } }
Program:
function: Find
inputs: Alabama
function: FilterStr
dependencies: 0
inputs: official website
https://www.alabama.gov
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: county of Alabama
function: FindAll
function: FilterNum
dependencies: 4
inputs: population
8.4
<
function: FilterConcept
dependencies: 5
inputs: county of Alabama
function: Or
dependencies: 3
6
function: Count
dependencies: 7