Question: Does the French speaking James Monroe or Christina Applegate have more children?
Choices:
David Byrne
Christina Applegate
William Henry Harrison
James E. Reilly
Max Fleischer
Sylvester Stallone
James Monroe
Simon Cowell
Rahul Dev Burman
Richard Gere
Program:
function: Find
inputs: French
function: Relate
dependencies: 0
inputs: languages spoken, written or signed
backward
function: Find
inputs: James Monroe
function: And
dependencies: 1
2
function: Find
inputs: Christina Applegate
function: SelectBetween
dependencies: 3
4
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "James Monroe" . ?e <languages_spoken,_written_or_signed> ?e_1 . ?e_1 <pred:name> "French" .   } UNION { ?e <pred:name> "Christina Applegate" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: James Monroe