Question: Does Java, at 128297 square km, or Ireland, release region of Marley, have more inhabitants?
Choices:
Tasmania
Guernsey
Puerto Rico
Long Island
Trinidad
Java
Ireland
Newfoundland
Cyprus
Maui
Program:
function: Find
inputs: Java
function: FilterNum
dependencies: 0
inputs: area
128297 square kilometre
=
function: Find
inputs: Marley
function: Relate
dependencies: 2
inputs: film release region
forward
function: Find
inputs: Ireland
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Java" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "128297"^^xsd:double . } UNION { ?e <pred:name> "Ireland" . ?e_1 <film_release_region> ?e . ?e_1 <pred:name> "Marley" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Java