Question: Does Moncton or the Newport with the website http://www.newport.gov.uk/ have a greater area?
Choices:
Santo Domingo
Newport
Moncton
Dundee
Chihuahua
Bergen
Abidjan
Trieste
Kingston
Cork
Program:
function: Find
inputs: Newport
function: FilterStr
dependencies: 0
inputs: official website
http://www.newport.gov.uk/
function: Find
inputs: Moncton
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Newport" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.newport.gov.uk/" . } UNION { ?e <pred:name> "Moncton" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Newport