Question: Which has less children number, Charles Bronson (the member of political party Democratic Party) or John Goodman (the cast member of Red State)?
Choices:
Simon Cowell
Max Fleischer
John Goodman
James E. Reilly
William Henry Harrison
Paul Simon
Richard Gere
Charles Bronson
David Byrne
Rahul Dev Burman
Program:
function: Find
inputs: Democratic Party
function: Relate
dependencies: 0
inputs: member of political party
backward
function: Find
inputs: Charles Bronson
function: And
dependencies: 1
2
function: Find
inputs: Red State
function: Relate
dependencies: 4
inputs: cast member
forward
function: Find
inputs: John Goodman
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charles Bronson" . ?e <member_of_political_party> ?e_1 . ?e_1 <pred:name> "Democratic Party" .   } UNION { ?e <pred:name> "John Goodman" . ?e_2 <cast_member> ?e . ?e_2 <pred:name> "Red State" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: John Goodman