Question: Which city has less land area, Bloomington (the birthplace of Jeri Taylor) or Annapolis ( the capital of Anne Arundel County)?
Choices:
Bloomington
Annapolis
Franklin
Waukegan
Boulder
New Haven
Oakland
Lansing
Greenville
Compton
Program:
function: Find
inputs: Jeri Taylor
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Bloomington
function: And
dependencies: 1
2
function: Find
inputs: Anne Arundel County
function: Relate
dependencies: 4
inputs: capital of
backward
function: Find
inputs: Annapolis
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bloomington" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Jeri Taylor" .   } UNION { ?e <pred:name> "Annapolis" . ?e <capital_of> ?e_2 . ?e_2 <pred:name> "Anne Arundel County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Annapolis