Question: Which one, George Hamilton (the one that is a member of Aberdeen F.C.) or Takehito Koyasu, has greater height?
Choices:
William Henry Harrison
James E. Reilly
Simon Cowell
Paul Simon
Sylvester Stallone
Max Fleischer
David Byrne
George Hamilton
Richard Gere
Takehito Koyasu
Program:
function: Find
inputs: Aberdeen F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: George Hamilton
function: And
dependencies: 1
2
function: Find
inputs: Takehito Koyasu
function: SelectBetween
dependencies: 3
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "George Hamilton" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Aberdeen F.C." .   } UNION { ?e <pred:name> "Takehito Koyasu" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: George Hamilton