Question: Does Leipzig or Derby (whose TOID is 4000000074550123) have less area?
Choices:
Chihuahua
Abidjan
Kingston
Dundee
Derby
Bergen
Trieste
Kilkenny
Santo Domingo
Cork
Program:
function: Find
inputs: Leipzig
function: Find
inputs: Derby
function: FilterStr
dependencies: 1
inputs: TOID
4000000074550123
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Leipzig" . } UNION { ?e <pred:name> "Derby" . ?e <TOID> ?pv_1 . ?pv_1 <pred:value> "4000000074550123" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Derby