Question: Which area is larger, Salem (the one whose population is 41340) or St. Augustine (the one whose country is United States of America)?
Choices: New Haven
Boulder
Greenville
Salem
Oakland
Franklin
St. Augustine
Columbus
Compton
Waukegan
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Salem" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "41340"^^xsd:double . } UNION { ?e <pred:name> "St. Augustine" . ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Salem
function: FilterNum
dependencies: 0
inputs: population
41340
=
function: Find
inputs: United States of America
function: Relate
dependencies: 2
inputs: country
backward
function: Find
inputs: St. Augustine
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
greater
Answer: Salem