Question: Which area is larger, Orange County (the one that shares border with San Diego County) or Plumas County?
Choices:
Butte County
Mariposa County
San Mateo County
Orange County
Tulare County
Contra Costa County
Alameda County
Tuolumne County
Plumas County
Solano County
Answer: Plumas County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Orange County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "San Diego County" .   } UNION { ?e <pred:name> "Plumas County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: San Diego County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Orange County
function: And
dependencies: 1
2
function: Find
inputs: Plumas County
function: SelectBetween
dependencies: 3
4
inputs: area
greater