Question: Which area is larger, Red Bank or Princeton?
Choices:
Princeton
Whanganui
Red Bank
Ridgewood
Belleville
Wexford
Verona
West Orange
Montclair
North Hollywood
Program:
function: Find
inputs: Red Bank
function: Find
inputs: Princeton
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Red Bank" .  } UNION { ?e <pred:name> "Princeton" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Princeton