Question: Which place has a greater area, Chihuahua which shares a border with Sonora, or Upper Austria?
Choices:
England
New South Wales
Minas Gerais
Upper Austria
Greater Poland Voivodeship
Punjab
Podlaskie Voivodeship
Chihuahua
Lublin Voivodeship
Tasmania
Answer: Chihuahua
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Upper Austria" .  } UNION { ?e <pred:name> "Chihuahua" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Sonora" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Upper Austria
function: Find
inputs: Sonora
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: Chihuahua
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater