Question: Which one, Pretoria or Antwerp (the one whose NUTS code is BE21), has greater population?
Choices:
San Juan County
Delaware County
Antwerp
African Union
Orange County
Greene County
Washoe County
Kent County
Lee County
Cass County
Program:
function: Find
inputs: Pretoria
function: Find
inputs: Antwerp
function: FilterStr
dependencies: 1
inputs: NUTS code
BE21
function: SelectBetween
dependencies: 0
2
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Pretoria" . } UNION { ?e <pred:name> "Antwerp" . ?e <NUTS_code> ?pv_1 . ?pv_1 <pred:value> "BE21" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Antwerp