Question: Which one is taller, Mauricio Pinilla (the one that is a member of Heart of Midlothian F.C.) or Walter Matthau?
Choices:
Mauricio Pinilla
Rahul Dev Burman
William Henry Harrison
Max Fleischer
Sylvester Stallone
Walter Matthau
Richard Gere
David Byrne
Paul Simon
Simon Cowell
Program:
function: Find
inputs: Heart of Midlothian F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Mauricio Pinilla
function: And
dependencies: 1
2
function: Find
inputs: Walter Matthau
function: SelectBetween
dependencies: 3
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mauricio Pinilla" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Heart of Midlothian F.C." .   } UNION { ?e <pred:name> "Walter Matthau" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Walter Matthau