Question: Which one, Mahatma Gandhi or David Brown (the one that belongs to United States of America), has greater height?
Choices: Richard Gere
Max Fleischer
Simon Cowell
William Henry Harrison
Rahul Dev Burman
James E. Reilly
Paul Simon
David Brown
Mahatma Gandhi
David Byrne
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mahatma Gandhi" .  } UNION { ?e <pred:name> "David Brown" . ?e <country_for_sport> ?e_1 . ?e_1 <pred:name> "United States of America" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Mahatma Gandhi
function: Find
inputs: United States of America
function: Relate
dependencies: 1
inputs: country for sport
backward
function: Find
inputs: David Brown
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
greater
Answer: David Brown