Question: Who is taller, Nana Patekar or Stephen Colbert (the one whose genre is theater)?
Choices:
Richard Gere
Simon Cowell
Paul Simon
Nana Patekar
William Henry Harrison
Sylvester Stallone
Rahul Dev Burman
Stephen Colbert
David Byrne
Max Fleischer
Program:
function: Find
inputs: Nana Patekar
function: Find
inputs: theater
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Stephen Colbert
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nana Patekar" .  } UNION { ?e <pred:name> "Stephen Colbert" . ?e <genre> ?e_1 . ?e_1 <pred:name> "theater" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Stephen Colbert