Question: How many capitals are there that include Jerusalem (the one whose demonym is Hierosolimitano) or that count 1,200,000,000 as the inhabitants ?
Choices:
45
46
47
48
49
50
51
52
53
54
Program:
function: Find
inputs: Jerusalem
function: FilterStr
dependencies: 0
inputs: demonym
Hierosolimitano
function: Relate
dependencies: 1
inputs: has part
backward
function: FilterConcept
dependencies: 2
inputs: capital
function: FindAll
function: FilterNum
dependencies: 4
inputs: population
1200000000
!=
function: FilterConcept
dependencies: 5
inputs: capital
function: Or
dependencies: 3
6
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "capital" .  { ?e <has_part> ?e_1 . ?e_1 <pred:name> "Jerusalem" . ?e_1 <demonym> ?pv . ?pv <pred:value> "Hierosolimitano" .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "1200000000"^^xsd:double ) .  } }
Answer: 46