Question: Which has more people, Victoria (the one whose area is 20100000 square metre) or Medina (the one whose official website is http://www.amana-md.gov.sa/)?
Choices:
Kingston
Dundee
Chihuahua
Medina
Trieste
Santo Domingo
Abidjan
Cork
Kilkenny
Victoria
Answer: Medina
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Victoria" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square metre" . ?pv_1 <pred:value> "20100000"^^xsd:double . } UNION { ?e <pred:name> "Medina" . ?e <official_website> ?pv_2 . ?pv_2 <pred:value> "http://www.amana-md.gov.sa/" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Victoria
function: FilterNum
dependencies: 0
inputs: area
20100000 square metre
=
function: Find
inputs: Medina
function: FilterStr
dependencies: 2
inputs: official website
http://www.amana-md.gov.sa/
function: SelectBetween
dependencies: 1
3
inputs: population
greater