Question: Which island has less population in New Zealand?
Choices:
Trinidad
Ireland
Tasmania
Maui
Hawaii
Newfoundland
North Island
Cyprus
South Island
Puerto Rico
Program:
function: Find
inputs: New Zealand
function: Relate
dependencies: 0
inputs: part of
backward
function: FilterConcept
dependencies: 1
inputs: island
function: SelectAmong
dependencies: 2
inputs: population
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "island" . ?e <part_of> ?e_1 . ?e_1 <pred:name> "New Zealand" .  ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: South Island