Question: Does Sarah Lawrence College alumna Jane Alexander or Mila Kunis have fewer kids?
Choices:
Richard Gere
Jane Alexander
Sylvester Stallone
Mila Kunis
William Henry Harrison
Simon Cowell
Paul Simon
Max Fleischer
James E. Reilly
Rahul Dev Burman
Program:
function: Find
inputs: Sarah Lawrence College
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: Jane Alexander
function: And
dependencies: 1
2
function: Find
inputs: Mila Kunis
function: SelectBetween
dependencies: 3
4
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jane Alexander" . ?e <educated_at> ?e_1 . ?e_1 <pred:name> "Sarah Lawrence College" .   } UNION { ?e <pred:name> "Mila Kunis" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Jane Alexander