Question: Who has fewer children, Anthony Kiedis or Jim Cummings (the one whose children number is 4)?
Choices:
Simon Cowell
Rahul Dev Burman
Richard Gere
Max Fleischer
David Byrne
Anthony Kiedis
Jim Cummings
Sylvester Stallone
William Henry Harrison
James E. Reilly
Program:
function: Find
inputs: Anthony Kiedis
function: Find
inputs: Jim Cummings
function: FilterNum
dependencies: 1
inputs: number of children
4
=
function: SelectBetween
dependencies: 0
2
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Anthony Kiedis" . } UNION { ?e <pred:name> "Jim Cummings" . ?e <number_of_children> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "4"^^xsd:double . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Anthony Kiedis