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