Question: What is the number of Texas counties whose capital is Waco (that has an area of 262.411283 square kilometers) or population is not 220000?
Choices: 8
9
10
11
12
13
14
15
16
17
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Texas" .  { ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Waco" . ?e_1 <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> "262.411283"^^xsd:double .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "220000"^^xsd:double ) .  } }
Program:
function: Find
inputs: Waco
function: FilterNum
dependencies: 0
inputs: area
262.411283 square kilometre
=
function: Relate
dependencies: 1
inputs: capital of
forward
function: FilterConcept
dependencies: 2
inputs: county of Texas
function: FindAll
function: FilterNum
dependencies: 4
inputs: population
220000
!=
function: FilterConcept
dependencies: 5
inputs: county of Texas
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 17