Question: Which has more area, Salinas or Providence that is the capital of Rhode Island?
Choices:
Compton
Oakland
New Haven
Lansing
Salinas
Franklin
Providence
Waukegan
Boulder
Greenville
Program:
function: Find
inputs: Salinas
function: Find
inputs: Rhode Island
function: Relate
dependencies: 1
inputs: capital of
backward
function: Find
inputs: Providence
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Salinas" .  } UNION { ?e <pred:name> "Providence" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Rhode Island" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Salinas