Question: Who has more kids: Michael Moore, with 1 child, or Robert De Niro from the cast of Little Fockers?
Choices:
Paul Simon
David Byrne
Robert De Niro
Rahul Dev Burman
James E. Reilly
Max Fleischer
Richard Gere
Sylvester Stallone
Simon Cowell
William Henry Harrison
Program:
function: Find
inputs: Michael Moore
function: FilterNum
dependencies: 0
inputs: number of children
1
=
function: Find
inputs: Little Fockers
function: Relate
dependencies: 2
inputs: cast member
forward
function: Find
inputs: Robert De Niro
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Michael Moore" . ?e <number_of_children> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1"^^xsd:double . } UNION { ?e <pred:name> "Robert De Niro" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "Little Fockers" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Robert De Niro