Question: How many Alabama counties are located in Alabama (2,636,248 people) or in California (the narrative location of They Shoot Horses, Don't They?)?
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: Find
inputs: Alabama
function: FilterNum
dependencies: 0
inputs: population
2646248
=
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: county of Alabama
function: Find
inputs: They Shoot Horses, Don't They?
function: Relate
dependencies: 4
inputs: narrative location
forward
function: Find
inputs: California
function: And
dependencies: 5
6
function: Relate
dependencies: 7
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 8
inputs: county of Alabama
function: Or
dependencies: 3
9
function: Count
dependencies: 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 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "2646248"^^xsd:double .  } UNION { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "California" . ?e_2 <narrative_location> ?e_1 . ?e_2 <pred:name> "They Shoot Horses, Don't They?" .  } }
Answer: 10