Question: Which one, Wales or Scotland (the one that is the origin country of curling), has greater area?
Choices:
Wales
Cook Islands
Netherlands
Scotland
Faroe Islands
Hancock County
Ukrainian Soviet Socialist Republic
Flight
Jakarta
Greenland
Program:
function: Find
inputs: Wales
function: Find
inputs: curling
function: Relate
dependencies: 1
inputs: country of origin
forward
function: Find
inputs: Scotland
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wales" .  } UNION { ?e <pred:name> "Scotland" . ?e_1 <country_of_origin> ?e . ?e_1 <pred:name> "curling" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Scotland