Question: Is Kevin Smith who is a member of the Detroit Lions or Jennifer Aniston taller in height?
Choices:
Paul Simon
Richard Gere
Kevin Smith
Rahul Dev Burman
Max Fleischer
James E. Reilly
Simon Cowell
William Henry Harrison
Sylvester Stallone
Jennifer Aniston
Program:
function: Find
inputs: Detroit Lions
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Kevin Smith
function: And
dependencies: 1
2
function: Find
inputs: Jennifer Aniston
function: SelectBetween
dependencies: 3
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kevin Smith" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Detroit Lions" .   } UNION { ?e <pred:name> "Jennifer Aniston" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Kevin Smith