Question: What republic has the capital Venice whose population is 264579?
Choices:
Mozambique
Republic of Venice
Veneto
Namibia
Sierra Leone
Zimbabwe
Germany
Latvia
Serbia
Tunisia
Program:
function: Find
inputs: Venice
function: FilterNum
dependencies: 0
inputs: population
264579
=
function: Relate
dependencies: 1
inputs: capital
backward
function: FilterConcept
dependencies: 2
inputs: republic
function: What
dependencies: 3
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "republic" . ?e <capital> ?e_1 . ?e_1 <pred:name> "Venice" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "264579"^^xsd:double .   }
Answer: Republic of Venice