Question: Who is shorter, Robert Taylor, who has a singles record of 343-244, or Blake Lively?
Choices:
Roger Taylor
Paul Simon
Richard Gere
Rahul Dev Burman
Simon Cowell
David Byrne
William Henry Harrison
James E. Reilly
Sylvester Stallone
Blake Lively
Program:
function: Find
inputs: Roger Taylor
function: FilterStr
dependencies: 0
inputs: singles record
343–244
function: Find
inputs: Blake Lively
function: SelectBetween
dependencies: 1
2
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Roger Taylor" . ?e <singles_record> ?pv_1 . ?pv_1 <pred:value> "343–244" . } UNION { ?e <pred:name> "Blake Lively" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Blake Lively