from paws.TweetsFactsAndQueries.embedWDQS import wdqsWidget, WDQSView
query="""
SELECT DISTINCT ?countryLabel ?population
{
  ?country wdt:P31 wd:Q6256 ;
           wdt:P1082 ?population .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
GROUP BY ?population ?countryLabel
ORDER BY DESC(?population)
"""
wdqsWidget(query, view=WDQSView.BarChart)