Question: Which island has the largest population located in New Zealand
Choices:
South Island
Cyprus
Hawaii
Puerto Rico
Maui
Newfoundland
Long Island
Trinidad
North Island
Tasmania
Program:
function: Find
inputs: New Zealand
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 1
inputs: island
function: SelectAmong
dependencies: 2
inputs: population
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "island" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "New Zealand" .  ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: North Island