Question: Which has less area, Scotland whose majority age is 16 years old or Greenland that borders Nunavut?
Choices:
Robert E. Howard
F.C. Ashdod
Greenland
FC Twente
Jim Reardon
Wales
Faroe Islands
Netherlands
Cook Islands
Scotland
Program:
function: Find
inputs: Scotland
function: FilterNum
dependencies: 0
inputs: age of majority
16 years old
=
function: Find
inputs: Nunavut
function: Relate
dependencies: 2
inputs: shares border with
backward
function: Find
inputs: Greenland
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Scotland" . ?e <age_of_majority> ?pv_1 . ?pv_1 <pred:unit> "years old" . ?pv_1 <pred:value> "16"^^xsd:double . } UNION { ?e <pred:name> "Greenland" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Nunavut" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Scotland