Question: Which area is larger, Carson City (the one that shares border with Washoe County) or Fairfax?
Choices:
Hampton
Charlottesville
Fairfax
Lynchburg
Carson City
Suffolk
Winchester
Williamsburg
Falls Church
Danville
Program:
function: Find
inputs: Washoe County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Carson City
function: And
dependencies: 1
2
function: Find
inputs: Fairfax
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Carson City" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Washoe County" .   } UNION { ?e <pred:name> "Fairfax" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Carson City