Question: Which area is smaller, Nevada (the one whose ISO 3166-2 code is US-NV) or Utah (the one that is the filming location of Butch Cassidy and the Sundance Kid)?
Choices:
Illinois
Florida
New Mexico
Iowa
Nevada
Utah
Massachusetts
Hawaii
California
New Jersey
Program:
function: Find
inputs: Nevada
function: FilterStr
dependencies: 0
inputs: ISO 3166-2 code
US-NV
function: Find
inputs: Butch Cassidy and the Sundance Kid
function: Relate
dependencies: 2
inputs: filming location
forward
function: Find
inputs: Utah
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nevada" . ?e <ISO_3166-2_code> ?pv_1 . ?pv_1 <pred:value> "US-NV" . } UNION { ?e <pred:name> "Utah" . ?e_1 <filming_location> ?e . ?e_1 <pred:name> "Butch Cassidy and the Sundance Kid" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Utah