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