title: Wikidata SPARQL : get subclasses but also return parent class
body: <p>I am writing SPARQL queries on Wikidata entities, and I would like to get all the entities matching &quot;is entity Q3 OR one of its subclasses&quot;.</p>
  <p>I know how to get the subclasses only with the following query :</p>
  <pre><code>SELECT DISTINCT ?item
  WHERE {
  { ?item wdt:P279 wd:Q3 . }
  SERVICE wikibase:label { bd:serviceParam wikibase:language &quot;en&quot;. }
  }
  </code></pre>
  <p>But I would like to also have the original parent entity (here <code>Q3</code>) in the response. How should I modify my query so that <code>Q3</code> is also returned ?</p>