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