Question: Who has fewer kids, Joss Whedon or the Chuck Norris with 5 children?
Choices:
David Byrne
Rahul Dev Burman
Joss Whedon
Chuck Norris
James E. Reilly
William Henry Harrison
Richard Gere
Simon Cowell
Paul Simon
Max Fleischer
Answer: Chuck Norris
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Joss Whedon" . } UNION { ?e <pred:name> "Chuck Norris" . ?e <number_of_children> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "5"^^xsd:double . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Joss Whedon
function: Find
inputs: Chuck Norris
function: FilterNum
dependencies: 1
inputs: number of children
5
=
function: SelectBetween
dependencies: 0
2
inputs: number of children
greater