Question: Who is shorter, Kevin Smith (the one whose birth name is Kevin Rey Smith) or Joely Richardson?
Choices:
Richard Gere
Simon Cowell
Paul Simon
Joely Richardson
Max Fleischer
William Henry Harrison
Rahul Dev Burman
Sylvester Stallone
James E. Reilly
David Byrne
Program:
function: Find
inputs: Kevin Smith
function: FilterStr
dependencies: 0
inputs: birth name
Kevin Rey Smith
function: Find
inputs: Joely Richardson
function: SelectBetween
dependencies: 1
2
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kevin Smith" . ?e <birth_name> ?pv_1 . ?pv_1 <pred:value> "Kevin Rey Smith" . } UNION { ?e <pred:name> "Joely Richardson" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Joely Richardson