Question: Who has more children, Laura Innes or Adam West (the one that is a cast member of The Big Bang Theory)?
Choices:
Sylvester Stallone
James E. Reilly
Max Fleischer
Rahul Dev Burman
Adam West
David Byrne
Richard Gere
William Henry Harrison
Laura Innes
Paul Simon
Program:
function: Find
inputs: Laura Innes
function: Find
inputs: The Big Bang Theory
function: Relate
dependencies: 1
inputs: cast member
forward
function: Find
inputs: Adam West
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Laura Innes" .  } UNION { ?e <pred:name> "Adam West" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "The Big Bang Theory" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Adam West