Question: Which area is smaller, Kansas (the one whose nickname is The Free State) or Delaware?
Choices:
Kansas
Massachusetts
Iowa
Florida
New Mexico
New Jersey
Illinois
California
Hawaii
Delaware
Program:
function: Find
inputs: Kansas
function: FilterStr
dependencies: 0
inputs: nickname
The Free State
function: Find
inputs: Delaware
function: SelectBetween
dependencies: 1
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kansas" . ?e <nickname> ?pv_1 . ?pv_1 <pred:value> "The Free State" . } UNION { ?e <pred:name> "Delaware" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Delaware