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