Question: Who has fewer kids: James Caan, whose Twitter username is jamescaan, or Kelly Preston?
Choices: Rahul Dev Burman
Max Fleischer
Paul Simon
William Henry Harrison
Simon Cowell
James Caan
Richard Gere
David Byrne
Sylvester Stallone
Kelly Preston
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "James Caan" . ?e <Twitter_username> ?pv_1 . ?pv_1 <pred:value> "jamescaan" . } UNION { ?e <pred:name> "Kelly Preston" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: James Caan
function: FilterStr
dependencies: 0
inputs: Twitter username
jamescaan
function: Find
inputs: Kelly Preston
function: SelectBetween
dependencies: 1
2
inputs: number of children
less
Answer: James Caan