Question: Which place covers a larger amount of area, the capital of New Hampshire, Concord or Pittsfield?
Choices:
Compton
Boulder
Pittsfield
Waukegan
Concord
Oakland
New Haven
Greenville
Franklin
Lansing
Program:
function: Find
inputs: New Hampshire
function: Relate
dependencies: 0
inputs: capital of
backward
function: Find
inputs: Concord
function: And
dependencies: 1
2
function: Find
inputs: Pittsfield
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Concord" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "New Hampshire" .   } UNION { ?e <pred:name> "Pittsfield" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Concord