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