Question: Which one, Mike Myers (the one that is a cast member of The Love Guru) or Shakira (the one whose children number is 2), has fewer number of children?
Choices:
Max Fleischer
Mike Myers
Sylvester Stallone
James E. Reilly
William Henry Harrison
Shakira
Paul Simon
Richard Gere
Rahul Dev Burman
David Byrne
Answer: Shakira
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mike Myers" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "The Love Guru" . } UNION { ?e <pred:name> "Shakira" . ?e <number_of_children> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "2"^^xsd:double . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The Love Guru
function: Relate
dependencies: 0
inputs: cast member
forward
function: Find
inputs: Mike Myers
function: And
dependencies: 1
2
function: Find
inputs: Shakira
function: FilterNum
dependencies: 4
inputs: number of children
2
=
function: SelectBetween
dependencies: 3
5
inputs: number of children
less