Question: How many independent cities are the birthplace of Michael Jackson who was born on 1964-07-13 and whose population is not 190000000?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "independent city" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Michael Jackson" . ?e_1 <date_of_birth> ?pv . ?pv <pred:date> "1964-07-13"^^xsd:date .  ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> ?v . FILTER ( ?v != "190000000"^^xsd:double ) .  }
Program:
function: Find
inputs: Michael Jackson
function: FilterDate
dependencies: 0
inputs: date of birth
1964-07-13
=
function: Relate
dependencies: 1
inputs: place of birth
forward
function: FilterConcept
dependencies: 2
inputs: independent city
function: FindAll
function: FilterNum
dependencies: 4
inputs: population
190000000
!=
function: FilterConcept
dependencies: 5
inputs: independent city
function: And
dependencies: 3
6
function: Count
dependencies: 7
Answer: 1