Question: Which has more area, Dubuque or Detroit that is the headquarter location of Chevrolet?
Choices:
New Haven
Compton
Detroit
Columbus
Boulder
Greenville
Dubuque
Franklin
Waukegan
Lansing
Program:
function: Find
inputs: Dubuque
function: Find
inputs: Chevrolet
function: Relate
dependencies: 1
inputs: headquarters location
forward
function: Find
inputs: Detroit
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dubuque" .  } UNION { ?e <pred:name> "Detroit" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "Chevrolet" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Detroit