Question: Which area is smaller, Buenos Aires Province or Victoria (the one whose local dialing code is 02)?
Choices:
Minas Gerais
England
Upper Austria
Buenos Aires Province
Chiapas
Punjab
New South Wales
Lublin Voivodeship
Podlaskie Voivodeship
Victoria
Program:
function: Find
inputs: Buenos Aires Province
function: Find
inputs: Victoria
function: FilterStr
dependencies: 1
inputs: local dialing code
02
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Buenos Aires Province" . } UNION { ?e <pred:name> "Victoria" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "02" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Victoria