Question: Which island that is a component of the Hawaiian Islands has the longest length?
Choices:
Long Island
Cyprus
Guernsey
Ireland
Newfoundland
Maui
Puerto Rico
Oahu
Hawaii
Tasmania
Program:
function: Find
inputs: Hawaiian Islands
function: Relate
dependencies: 0
inputs: has part
forward
function: FilterConcept
dependencies: 1
inputs: island
function: SelectAmong
dependencies: 2
inputs: length
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "island" . ?e_1 <has_part> ?e . ?e_1 <pred:name> "Hawaiian Islands" .  ?e <length> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Hawaii