import urllib.parse
from IPython.display import IFrame
baseurl='https://query.wikidata.org/embed.html#'

def wdq(query='',width=800,height=500):
  """Runs Wikidata query in an iFrame and shows the results."""
  return IFrame(baseurl+urllib.parse.quote(query), width=width, height=height)