Question: Who is taller, Roger Taylor (the one whose singles record is 343–244) or Magic Johnson?
Choices: William Henry Harrison
Sylvester Stallone
Richard Gere
David Byrne
Roger Taylor
James E. Reilly
Rahul Dev Burman
Max Fleischer
Magic Johnson
Simon Cowell
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Roger Taylor" . ?e <singles_record> ?pv_1 . ?pv_1 <pred:value> "343–244" . } UNION { ?e <pred:name> "Magic Johnson" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Roger Taylor
function: FilterStr
dependencies: 0
inputs: singles record
343–244
function: Find
inputs: Magic Johnson
function: SelectBetween
dependencies: 1
2
inputs: height
greater
Answer: Magic Johnson