Question: What is the name of the city with a population different to 8100000 in 2015, and that is the capital of Liguria?
Choices:
Trieste
Kingston
Mogadishu
Perth
New York City
Kyoto
Cork
City of London
Genoa
Kilkenny
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
8100000
!=
function: QFilterYear
dependencies: 1
inputs: point in time
2015
=
function: FilterConcept
dependencies: 2
inputs: city
function: Find
inputs: Liguria
function: Relate
dependencies: 4
inputs: capital of
backward
function: FilterConcept
dependencies: 5
inputs: city
function: And
dependencies: 3
6
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "8100000"^^xsd:double ) . [ <pred:fact_h> ?e ; <pred:fact_r> <population> ; <pred:fact_t> ?pv ] <point_in_time> ?qpv . ?qpv <pred:year> 2015 . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Liguria" .  }
Answer: Genoa