Question: Who is taller, Vince Grella or Ron Carter (the one whose position is point guard)?
Choices:
Vince Grella
David Byrne
Simon Cowell
Sylvester Stallone
Rahul Dev Burman
James E. Reilly
Richard Gere
Max Fleischer
Ron Carter
Paul Simon
Program:
function: Find
inputs: Vince Grella
function: Find
inputs: point guard
function: Relate
dependencies: 1
inputs: position played on team / speciality
backward
function: Find
inputs: Ron Carter
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Vince Grella" .  } UNION { ?e <pred:name> "Ron Carter" . ?e <position_played_on_team_/_speciality> ?e_1 . ?e_1 <pred:name> "point guard" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ron Carter