@@ -89,8 +91,10 @@ function eu_nuts(conn_dict::Dict, selection::Dict)
dftemp=DataFrame()
# iterate over geo objects
foridingeo_id
# Extract the first two characters of id in Julia
id_short=id[1:2]
# prepare query
query="SELECT Pop_M+Pop_F as population FROM eu_nuts WHERE GeoID = '"*id*"' AND Year = "*string(year)*";"
query="SELECT Pop_M+Pop_F as population FROM eu_nuts WHERE eu_country = '"*id_short*"' AND AgeClass = 'TOTAL' AND GeoID = '"*id*"' AND Year = "*string(year)*";"