Question: Which has the greater area, Santa Cruz County (which shares a border with Cochise County) or Yavapai County?
Choices: Navajo County
Gila County
Pima County
Mohave County
Santa Cruz County
Pinal County
Coconino County
Apache County
Yavapai County
Maricopa County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Santa Cruz County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Cochise County" .   } UNION { ?e <pred:name> "Yavapai County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Cochise County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Santa Cruz County
function: And
dependencies: 1
2
function: Find
inputs: Yavapai County
function: SelectBetween
dependencies: 3
4
inputs: area
greater
Answer: Yavapai County