Question: Who has more children, Fergie or Freddie Prinze (of Irish American ethnicity)?
Choices:
Sylvester Stallone
William Henry Harrison
James E. Reilly
Max Fleischer
Simon Cowell
David Byrne
Richard Gere
Fergie
Freddie Prinze
Paul Simon
Program:
function: Find
inputs: Fergie
function: Find
inputs: Irish Americans
function: Relate
dependencies: 1
inputs: ethnic group
backward
function: Find
inputs: Freddie Prinze
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fergie" .  } UNION { ?e <pred:name> "Freddie Prinze" . ?e <ethnic_group> ?e_1 . ?e_1 <pred:name> "Irish Americans" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Freddie Prinze