Question: Who is shorter, Sarah Jessica Parker or Stan Lee (the one whose motto text is Excelsior)?
Choices:
Stan Lee
Sarah Jessica Parker
Sylvester Stallone
Simon Cowell
Paul Simon
David Byrne
William Henry Harrison
Richard Gere
Rahul Dev Burman
Max Fleischer
Program:
function: Find
inputs: Sarah Jessica Parker
function: Find
inputs: Stan Lee
function: FilterStr
dependencies: 1
inputs: motto text
Excelsior
function: SelectBetween
dependencies: 0
2
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sarah Jessica Parker" . } UNION { ?e <pred:name> "Stan Lee" . ?e <motto_text> ?pv_1 . ?pv_1 <pred:value> "Excelsior" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Sarah Jessica Parker