Question: Who is taller, Amitabh Bachchan or Peter Capaldi?
Choices:
Max Fleischer
Amitabh Bachchan
William Henry Harrison
Rahul Dev Burman
David Byrne
Peter Capaldi
Sylvester Stallone
Simon Cowell
Paul Simon
Richard Gere
Program:
function: Find
inputs: Amitabh Bachchan
function: Find
inputs: Peter Capaldi
function: SelectBetween
dependencies: 0
1
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Amitabh Bachchan" .  } UNION { ?e <pred:name> "Peter Capaldi" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Amitabh Bachchan