Question: Which one has more kids, John Dingell, Jr. or Ted Levine ?
Choices:
Rahul Dev Burman
Max Fleischer
Ted Levine
James E. Reilly
Paul Simon
John Dingell, Jr.
Sylvester Stallone
Richard Gere
Simon Cowell
David Byrne
Program:
function: Find
inputs: John Dingell, Jr.
function: Find
inputs: Ted Levine
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "John Dingell, Jr." .  } UNION { ?e <pred:name> "Ted Levine" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: John Dingell, Jr.