Question: Which has more population, Limburg that has the capital Maastricht or Utrecht whose detail map is Prov-Utrecht-OpenTopo.jpg?
Choices:
Utrecht
Drenthe
Friesland
North Brabant
Limburg
Overijssel
Zeeland
Groningen
North Holland
South Holland
Program:
function: Find
inputs: Maastricht
function: Relate
dependencies: 0
inputs: capital of
forward
function: Find
inputs: Limburg
function: And
dependencies: 1
2
function: Find
inputs: Utrecht
function: FilterStr
dependencies: 4
inputs: detail map
Prov-Utrecht-OpenTopo.jpg
function: SelectBetween
dependencies: 3
5
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Limburg" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Maastricht" . } UNION { ?e <pred:name> "Utrecht" . ?e <detail_map> ?pv_1 . ?pv_1 <pred:value> "Prov-Utrecht-OpenTopo.jpg" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Utrecht