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