query: embed.html##Population of countries sharing a border with Germany
  SELECT ?year ?population ?countryLabel WHERE {
    {
      SELECT ?country ?year (AVG(?populations) AS ?population) WHERE {
        {
          SELECT ?country (YEAR(?date) AS ?year) ?populations WHERE {
            ?country wdt:P47 wd:Q183.
            ?country p:P1082 ?populationStatement.
            ?populationStatement ps:P1082 ?populations.
            ?populationStatement pq:P585 ?date.
          }
        }
      }
      GROUP BY ?country ?year
    }
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
  }