Question: Who is shorter, Ben Sahar or Stephen Jackson (the one whose official website is http://www.stephenjackson1.com)?
Choices:
James E. Reilly
Simon Cowell
Paul Simon
Stephen Jackson
Sylvester Stallone
William Henry Harrison
Ben Sahar
David Byrne
Richard Gere
Rahul Dev Burman
Program:
function: Find
inputs: Ben Sahar
function: Find
inputs: Stephen Jackson
function: FilterStr
dependencies: 1
inputs: official website
http://www.stephenjackson1.com
function: SelectBetween
dependencies: 0
2
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ben Sahar" . } UNION { ?e <pred:name> "Stephen Jackson" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.stephenjackson1.com" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Ben Sahar