Question: Who has more children, Jennifer Hale (the one whose children number is 1) or Mike Myers (the one that is the screenwriter of Austin Powers: International Man of Mystery)?
Choices:
William Henry Harrison
James E. Reilly
Jennifer Hale
Richard Gere
David Byrne
Sylvester Stallone
Max Fleischer
Paul Simon
Rahul Dev Burman
Mike Myers
Program:
function: Find
inputs: Jennifer Hale
function: FilterNum
dependencies: 0
inputs: number of children
1
=
function: Find
inputs: Austin Powers: International Man of Mystery
function: Relate
dependencies: 2
inputs: screenwriter
forward
function: Find
inputs: Mike Myers
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jennifer Hale" . ?e <number_of_children> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1"^^xsd:double . } UNION { ?e <pred:name> "Mike Myers" . ?e_1 <screenwriter> ?e . ?e_1 <pred:name> "Austin Powers: International Man of Mystery" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Mike Myers