Question: Is Beverly Hill resident Amy Adams taller, or is Cynthia Watros?
Choices:
Paul Simon
Rahul Dev Burman
Cynthia Watros
Richard Gere
Max Fleischer
Sylvester Stallone
James E. Reilly
Simon Cowell
William Henry Harrison
Amy Adams
Program:
function: Find
inputs: Beverly Hills
function: Relate
dependencies: 0
inputs: residence
backward
function: Find
inputs: Amy Adams
function: And
dependencies: 1
2
function: Find
inputs: Cynthia Watros
function: SelectBetween
dependencies: 3
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Amy Adams" . ?e <residence> ?e_1 . ?e_1 <pred:name> "Beverly Hills" .   } UNION { ?e <pred:name> "Cynthia Watros" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Cynthia Watros