Question: Which area is larger, Murfreesboro or Chicago (the one that is the capital of Cook County)?
Choices:
Oakland
Lansing
Chicago
Greenville
New Haven
Boulder
Waukegan
Murfreesboro
Franklin
Columbus
Program:
function: Find
inputs: Murfreesboro
function: Find
inputs: Cook County
function: Relate
dependencies: 1
inputs: capital
forward
function: Find
inputs: Chicago
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Murfreesboro" .  } UNION { ?e <pred:name> "Chicago" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Cook County" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chicago