Question: Which one has more children, Steve Blum, or Thomas Jefferson, the violin player?
Choices:
Max Fleischer
Rahul Dev Burman
Richard Gere
Thomas Jefferson
David Byrne
Steve Blum
Sylvester Stallone
William Henry Harrison
James E. Reilly
Paul Simon
Program:
function: Find
inputs: violin
function: Relate
dependencies: 0
inputs: instrument
backward
function: Find
inputs: Thomas Jefferson
function: And
dependencies: 1
2
function: Find
inputs: Steve Blum
function: SelectBetween
dependencies: 3
4
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Thomas Jefferson" . ?e <instrument> ?e_1 . ?e_1 <pred:name> "violin" .   } UNION { ?e <pred:name> "Steve Blum" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Thomas Jefferson