Question: Which area is larger in size, Rapid City or Lexington (the one whose official name is Lexington)?
Choices:
Compton
New Haven
Oakland
Boulder
Waukegan
Greenville
Rapid City
Lexington
Franklin
Lansing
Program:
function: Find
inputs: Rapid City
function: Find
inputs: Lexington
function: FilterStr
dependencies: 1
inputs: official name
Lexington
function: SelectBetween
dependencies: 0
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rapid City" . } UNION { ?e <pred:name> "Lexington" . ?e <official_name> ?pv_1 . ?pv_1 <pred:value> "Lexington" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lexington