Question: Which one s smaller in area, New York (the one whose short name is шт. Н.-Йорк) or Nebraska (the one that borders South Dakota) ?
Choices:
Illinois
Colorado
New Mexico
Massachusetts
California
New Jersey
New York
Florida
Nebraska
Iowa
Answer: New York
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "New York" . ?e <short_name> ?pv_1 . ?pv_1 <pred:value> "шт. Н.-Йорк" . } UNION { ?e <pred:name> "Nebraska" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "South Dakota" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: New York
function: FilterStr
dependencies: 0
inputs: short name
шт. Н.-Йорк
function: Find
inputs: South Dakota
function: Relate
dependencies: 2
inputs: shares border with
backward
function: Find
inputs: Nebraska
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
less