Question: Does Mark Gordon or Mychael Danna have less children?
Choices:
Simon Cowell
Sylvester Stallone
Mychael Danna
William Henry Harrison
James E. Reilly
David Byrne
Rahul Dev Burman
Richard Gere
Mark Gordon
Paul Simon
Program:
function: Find
inputs: Mark Gordon
function: FilterNum
dependencies: 0
inputs: number of children
4
=
function: Find
inputs: Mychael Danna
function: SelectBetween
dependencies: 1
2
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mark Gordon" . ?e <number_of_children> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "4"^^xsd:double . } UNION { ?e <pred:name> "Mychael Danna" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Mychael Danna