Question: Which has less children, George H. W. Bush or Charles Bronson whose birth name is Michael Gordon Peterson?
Choices:
James E. Reilly
Simon Cowell
William Henry Harrison
David Byrne
George H. W. Bush
Max Fleischer
Sylvester Stallone
Charles Bronson
Rahul Dev Burman
Richard Gere
Program:
function: Find
inputs: George H. W. Bush
function: Find
inputs: Charles Bronson
function: FilterStr
dependencies: 1
inputs: birth name
Michael Gordon Peterson
function: SelectBetween
dependencies: 0
2
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "George H. W. Bush" . } UNION { ?e <pred:name> "Charles Bronson" . ?e <birth_name> ?pv_1 . ?pv_1 <pred:value> "Michael Gordon Peterson" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Charles Bronson