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