Question: Who is taller, Jennifer Lawrence or David Brown, who was born in St. Louis?
Choices:
William Henry Harrison
David Brown
Simon Cowell
Jennifer Lawrence
Sylvester Stallone
Max Fleischer
James E. Reilly
Paul Simon
David Byrne
Rahul Dev Burman
Program:
function: Find
inputs: Jennifer Lawrence
function: Find
inputs: St. Louis
function: Relate
dependencies: 1
inputs: place of birth
backward
function: Find
inputs: David Brown
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jennifer Lawrence" .  } UNION { ?e <pred:name> "David Brown" . ?e <place_of_birth> ?e_1 . ?e_1 <pred:name> "St. Louis" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: David Brown