Question: Who is shorter, Mona Lisa (the one that is a notable work of William S. Burroughs) or Gertrude Stein (the one whose country is United States of America)?
Choices:
Gertrude Stein
Christopher Nolan
The Big Lebowski
Mona Lisa
Hannah Montana: The Movie
Plymouth
Cobra
Melancholia
Roy Scheider
Summer of Sam
Program:
function: Find
inputs: William S. Burroughs
function: Relate
dependencies: 0
inputs: notable work
forward
function: Find
inputs: Mona Lisa
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: Relate
dependencies: 4
inputs: country
backward
function: Find
inputs: Gertrude Stein
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mona Lisa" . ?e_1 <notable_work> ?e . ?e_1 <pred:name> "William S. Burroughs" .   } UNION { ?e <pred:name> "Gertrude Stein" . ?e <country> ?e_2 . ?e_2 <pred:name> "United States of America" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Mona Lisa