Question: Which has a greater GDP (PPP), Australia (which has a diplomatic relation with Samoa) or Ireland (which is the release region of Zoolander)?
Choices:
Cambodia
Benin
Switzerland
Weimar Republic
Australia
Ireland
Russian Soviet Federative Socialist Republic
Socialist Federal Republic of Yugoslavia
Kiribati
South Sudan
Program:
function: Find
inputs: Samoa
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: Find
inputs: Australia
function: And
dependencies: 1
2
function: Find
inputs: Zoolander
function: Relate
dependencies: 4
inputs: film release region
forward
function: Find
inputs: Ireland
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: GDP (PPP)
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Australia" . ?e_1 <diplomatic_relation> ?e . ?e_1 <pred:name> "Samoa" .   } UNION { ?e <pred:name> "Ireland" . ?e_2 <film_release_region> ?e . ?e_2 <pred:name> "Zoolander" .  } ?e <GDP_(PPP)> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Australia