Question: Who is taller, Tom Brady who attended the University of Michigan or Kate Flannery?
Choices:
Sylvester Stallone
James E. Reilly
Richard Gere
David Byrne
Paul Simon
Simon Cowell
Kate Flannery
William Henry Harrison
Tom Brady
Max Fleischer
Program:
function: Find
inputs: University of Michigan
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: Tom Brady
function: And
dependencies: 1
2
function: Find
inputs: Kate Flannery
function: SelectBetween
dependencies: 3
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tom Brady" . ?e <educated_at> ?e_1 . ?e_1 <pred:name> "University of Michigan" .   } UNION { ?e <pred:name> "Kate Flannery" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Tom Brady