Question: Who is taller, Kim Basinger or Mel Gibson (the one that is a member of Los Angeles Lakers)?
Choices:
Simon Cowell
Richard Gere
Paul Simon
Mel Gibson
William Henry Harrison
Max Fleischer
Sylvester Stallone
Kim Basinger
Rahul Dev Burman
James E. Reilly
Program:
function: Find
inputs: Kim Basinger
function: Find
inputs: Los Angeles Lakers
function: Relate
dependencies: 1
inputs: member of sports team
backward
function: Find
inputs: Mel Gibson
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kim Basinger" .  } UNION { ?e <pred:name> "Mel Gibson" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Los Angeles Lakers" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Mel Gibson