Question: Which area is larger, Cupertino or Springfield (the one that is located in Hampden County)?
Choices:
Springfield
Cupertino
Lansing
Columbus
Greenville
Franklin
New Haven
Boulder
Compton
Oakland
Answer: Springfield
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cupertino" .  } UNION { ?e <pred:name> "Springfield" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Hampden County" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Cupertino
function: Find
inputs: Hampden County
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Springfield
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater