Question: Who has more children, James Madison (the one that is educated at Princeton University) or William Henry Harrison?
Choices:
Simon Cowell
William Henry Harrison
James Madison
Sylvester Stallone
James E. Reilly
Rahul Dev Burman
David Byrne
Richard Gere
Babyface
Paul Simon
Answer: William Henry Harrison
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "James Madison" . ?e <educated_at> ?e_1 . ?e_1 <pred:name> "Princeton University" .   } UNION { ?e <pred:name> "William Henry Harrison" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Princeton University
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: James Madison
function: And
dependencies: 1
2
function: Find
inputs: William Henry Harrison
function: SelectBetween
dependencies: 3
4
inputs: number of children
greater