Question: Does Missouri State University alumnus John Goodman or Akkineni Nagarjuna have more kids?
Choices:
Max Fleischer
Paul Simon
Richard Gere
Simon Cowell
John Goodman
Rahul Dev Burman
David Byrne
James E. Reilly
Sylvester Stallone
Akkineni Nagarjuna
Program:
function: Find
inputs: Missouri State University
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: John Goodman
function: And
dependencies: 1
2
function: Find
inputs: Akkineni Nagarjuna
function: SelectBetween
dependencies: 3
4
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "John Goodman" . ?e <educated_at> ?e_1 . ?e_1 <pred:name> "Missouri State University" .   } UNION { ?e <pred:name> "Akkineni Nagarjuna" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Akkineni Nagarjuna