Question: Which area is larger, Scott County (the one whose population is 141660) or Essex County (the one that shares border with Grafton County)?
Choices:
Essex County
Orange County
Cass County
Kent County
Delaware County
Lee County
African Union
Greene County
San Juan County
Scott County
Answer: Essex County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Scott County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "141660"^^xsd:double . } UNION { ?e <pred:name> "Essex County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Grafton County" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Scott County
function: FilterNum
dependencies: 0
inputs: population
141660
=
function: Find
inputs: Grafton County
function: Relate
dependencies: 2
inputs: shares border with
forward
function: Find
inputs: Essex County
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
greater