Question: Who is taller, Rafael Nadal or Stephen Jackson (the one whose birth name is Stephen Jesse Jackson)?
Choices:
Max Fleischer
Sylvester Stallone
Stephen Jackson
Rafael Nadal
Simon Cowell
David Byrne
Paul Simon
James E. Reilly
Richard Gere
Rahul Dev Burman
Program:
function: Find
inputs: Rafael Nadal
function: Find
inputs: Stephen Jackson
function: FilterStr
dependencies: 1
inputs: birth name
Stephen Jesse Jackson
function: SelectBetween
dependencies: 0
2
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rafael Nadal" . } UNION { ?e <pred:name> "Stephen Jackson" . ?e <birth_name> ?pv_1 . ?pv_1 <pred:value> "Stephen Jesse Jackson" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Stephen Jackson