Question: Who has fewer children, Chris Brown (the one whose official website is http://www.chrisbrownworld.com/) or Humphrey Bogart?
Choices:
Max Fleischer
Paul Simon
David Byrne
Rahul Dev Burman
James E. Reilly
Richard Gere
William Henry Harrison
Sylvester Stallone
Simon Cowell
Chris Brown
Program:
function: Find
inputs: Chris Brown
function: FilterStr
dependencies: 0
inputs: official website
http://www.chrisbrownworld.com/
function: Find
inputs: Humphrey Bogart
function: SelectBetween
dependencies: 1
2
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chris Brown" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.chrisbrownworld.com/" . } UNION { ?e <pred:name> "Humphrey Bogart" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Chris Brown