Question: Is Bipasha Basu or the Napoleon who participated in the Napoleonic Wars the taller of the two?
Choices:
James E. Reilly
Max Fleischer
Sylvester Stallone
David Byrne
Napoleon
Bipasha Basu
Simon Cowell
Rahul Dev Burman
Paul Simon
Richard Gere
Program:
function: Find
inputs: Bipasha Basu
function: Find
inputs: Napoleonic Wars
function: Relate
dependencies: 1
inputs: conflict
backward
function: Find
inputs: Napoleon
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bipasha Basu" .  } UNION { ?e <pred:name> "Napoleon" . ?e <conflict> ?e_1 . ?e_1 <pred:name> "Napoleonic Wars" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bipasha Basu