Question: What is the number of Alabama counties whose country is the United States of America or capital is San Antonio (whose population is 3488)?
Choices:
6
7
8
9
10
11
12
13
14
15
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: county of Alabama
function: Find
inputs: San Antonio
function: FilterNum
dependencies: 3
inputs: population
3488
=
function: Relate
dependencies: 4
inputs: capital of
forward
function: FilterConcept
dependencies: 5
inputs: county of Alabama
function: Or
dependencies: 2
6
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Alabama" .  { ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .  } UNION { ?e_1 <capital_of> ?e . ?e_1 <pred:name> "San Antonio" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "3488"^^xsd:double .  } }
Answer: 10