Question: Of Venice, capital of the Republic of Venice, or Verona, population 99579, which is larger in area?
Choices:
Cork
Santo Domingo
Dundee
Chihuahua
Kilkenny
Venice
Bergen
Trieste
Kingston
Abidjan
Program:
function: Find
inputs: Republic of Venice
function: Relate
dependencies: 0
inputs: capital
forward
function: Find
inputs: Venice
function: And
dependencies: 1
2
function: Find
inputs: Verona
function: FilterNum
dependencies: 4
inputs: population
99579
=
function: SelectBetween
dependencies: 3
5
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Venice" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Republic of Venice" . } UNION { ?e <pred:name> "Verona" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "99579"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Venice