Question: Which area has higher elevation above sea level, Richmond (the one that is the capital of Fort Bend County) or San Juan (the one whose area is 120.193947 square kilometre)?
Choices: Richmond
Greenville
Columbus
San Juan
Oakland
Franklin
Compton
Waukegan
Lansing
New Haven
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Richmond" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Fort Bend County" . } UNION { ?e <pred:name> "San Juan" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "120.193947"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Fort Bend County
function: Relate
dependencies: 0
inputs: capital of
backward
function: Find
inputs: Richmond
function: And
dependencies: 1
2
function: Find
inputs: San Juan
function: FilterNum
dependencies: 4
inputs: area
120.193947 square kilometre
=
function: SelectBetween
dependencies: 3
5
inputs: elevation above sea level
greater
Answer: Richmond