query-e4a0d7fa2dd303ef627280c4f761989e

rq turtle/ttl

Propertieshashtag (P2572)instance of (P31)of (P642)

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT * WHERE {
  ?item p:P31 [ps:P31 wd:Q3241045; pq:P642 wd:Q84263196].
  ?item rdfs:label ?label.
  FILTER(LANG(?label)="en")
  ?item wdt:P2572 ?hashtag.
  }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?hashtag"):::projected v2("?item"):::projected v1("?label"):::projected a1((" ")) c5(["wd:Q84263196"]):::iri c3(["wd:Q3241045"]):::iri f0[["?label = 'en'"]] f0 --> v1 a1 --"p:statement/P31"--> c3 a1 --"p:qualifier/P642"--> c5 v2 --"p:P31"--> a1 v2 --"rdfs:label"--> v1 v2 --"p:direct/P2572"--> v3