Question: Who has more children, Hoda Kotb or William McKinley (the one that hold the position President of the United States)?
Choices: Paul Simon
William McKinley
Sylvester Stallone
David Byrne
Max Fleischer
Rahul Dev Burman
Hoda Kotb
Simon Cowell
Richard Gere
James E. Reilly
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hoda Kotb" .  } UNION { ?e <pred:name> "William McKinley" . ?e <position_held> ?e_1 . ?e_1 <pred:name> "President of the United States" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Hoda Kotb
function: Find
inputs: President of the United States
function: Relate
dependencies: 1
inputs: position held
backward
function: Find
inputs: William McKinley
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
greater
Answer: William McKinley