Question: How many independent cities in Germany have a population that is not 830000 or are a common property of the speaker of the United States House of Representatives?
Choices: 5
6
7
8
9
10
11
12
13
14
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "independent city of Germany" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "830000"^^xsd:double ) .  } UNION { ?e_1 <properties_for_this_type> ?e . ?e_1 <pred:name> "speaker of the United States House of Representatives" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
830000
!=
function: FilterConcept
dependencies: 1
inputs: independent city of Germany
function: Find
inputs: speaker of the United States House of Representatives
function: Relate
dependencies: 3
inputs: properties for this type
forward
function: FilterConcept
dependencies: 4
inputs: independent city of Germany
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 5