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