Question: Which area is larger, Davidson County (the one whose population is 627957) or West Midlands (the one that contains the administrative division Staffordshire)?
Choices:
Lee County
West Midlands
African Union
Kent County
Cass County
Delaware County
Davidson County
Washoe County
Greene County
Orange County
Answer: West Midlands
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Davidson County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "627957"^^xsd:double . } UNION { ?e <pred:name> "West Midlands" . ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Staffordshire" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Davidson County
function: FilterNum
dependencies: 0
inputs: population
627957
=
function: Find
inputs: Staffordshire
function: Relate
dependencies: 2
inputs: contains administrative territorial entity
backward
function: Find
inputs: West Midlands
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
greater