Question: Which county is larger in size, Shelby County (the one whose population is 200983) or Montgomery County (the one whose licence plate code is 3)?
Choices:
Shelby County
Jackson County
Jefferson County
Mobile County
Monroe County
Washington County
Baldwin County
Madison County
Dallas County
Montgomery County
Program:
function: Find
inputs: Shelby County
function: FilterNum
dependencies: 0
inputs: population
200983
=
function: Find
inputs: Montgomery County
function: FilterStr
dependencies: 2
inputs: licence plate code
3
function: SelectBetween
dependencies: 1
3
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Shelby County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "200983"^^xsd:double . } UNION { ?e <pred:name> "Montgomery County" . ?e <licence_plate_code> ?pv_2 . ?pv_2 <pred:value> "3" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Shelby County