Question: Does Rita Wilson or Robert Smith (the one that is related to sport American football) have greater height?
Choices:
James E. Reilly
Richard Gere
Simon Cowell
Paul Simon
Rahul Dev Burman
Sylvester Stallone
David Byrne
Rita Wilson
Max Fleischer
Robert Smith
Answer: Robert Smith
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rita Wilson" .  } UNION { ?e <pred:name> "Robert Smith" . ?e <sport> ?e_1 . ?e_1 <pred:name> "American football" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Rita Wilson
function: Find
inputs: American football
function: Relate
dependencies: 1
inputs: sport
backward
function: Find
inputs: Robert Smith
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
greater