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