Question: Whose net worth is lower: the Bradley Cooper of Italian descent, or Mel Gibson from the cast of Gallipoli?
Choices:
Simon Cowell
Mel Gibson
Richard Gere
Max Fleischer
Sylvester Stallone
William Henry Harrison
Bradley Cooper
Paul Simon
James E. Reilly
David Byrne
Answer: Bradley Cooper
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bradley Cooper" . ?e <ethnic_group> ?e_1 . ?e_1 <pred:name> "Italians" .   } UNION { ?e <pred:name> "Mel Gibson" . ?e_2 <cast_member> ?e . ?e_2 <pred:name> "Gallipoli" .  } ?e <net_worth> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Italians
function: Relate
dependencies: 0
inputs: ethnic group
backward
function: Find
inputs: Bradley Cooper
function: And
dependencies: 1
2
function: Find
inputs: Gallipoli
function: Relate
dependencies: 4
inputs: cast member
forward
function: Find
inputs: Mel Gibson
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: net worth
less