Question: Which area is smaller, Tbilisi or San Francisco (the one that contains Golden Gate Bridge)?
Choices: Trieste
Dundee
San Francisco
Cork
Chihuahua
Tbilisi
Kingston
Kilkenny
Abidjan
Bergen
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tbilisi" .  } UNION { ?e <pred:name> "San Francisco" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Golden Gate Bridge" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Tbilisi
function: Find
inputs: Golden Gate Bridge
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: Find
inputs: San Francisco
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
Answer: San Francisco