Question: Who has fewer children, Gillian Anderson or Freddie Prinze (the one that has the occupation of screenwriter)?
Choices: Max Fleischer
Gillian Anderson
David Byrne
Simon Cowell
James E. Reilly
Rahul Dev Burman
Richard Gere
Sylvester Stallone
Freddie Prinze
Paul Simon
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Gillian Anderson" .  } UNION { ?e <pred:name> "Freddie Prinze" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "screenwriter" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Gillian Anderson
function: Find
inputs: screenwriter
function: Relate
dependencies: 1
inputs: occupation
backward
function: Find
inputs: Freddie Prinze
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
less
Answer: Freddie Prinze