Question: Who has more children, Ben Harper (the one that was born in Claremont) or John Leguizamo?
Choices:
Max Fleischer
Ben Harper
Richard Gere
David Byrne
John Leguizamo
Sylvester Stallone
Simon Cowell
Rahul Dev Burman
William Henry Harrison
James E. Reilly
Program:
function: Find
inputs: Claremont
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: Ben Harper
function: And
dependencies: 1
2
function: Find
inputs: John Leguizamo
function: SelectBetween
dependencies: 3
4
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ben Harper" . ?e <place_of_birth> ?e_1 . ?e_1 <pred:name> "Claremont" .   } UNION { ?e <pred:name> "John Leguizamo" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ben Harper