query-a37a127905d4fdf6053e1fd7778986b6

rq turtle/ttl

Merged people items with a Flanders Arts Institute identifier. Start of the query: (Q3569237)Wim Vandekeybus is merged with (and thus redirects to) ((Q52189692)Wim Vandekeybus 27736 people on Wikidata have a Flanders Arts Institue person ID. Some of these items have since been merged with previously existing items on Wikidata. I am looking for a query that shows not only the current Q-number, but (if applicable) also the Q-number that has been merged with it. e.g.: Wim Vandekeybus

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?Flanders_Arts_Institute_person_ID 
WHERE { ?item wdt:P5068 ?Flanders_Arts_Institute_person_ID. 
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nl". }
      }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?Flanders_Arts_Institute_person_ID"):::projected v1("?item"):::projected c3(["bd:serviceParam"]):::iri c5(["#91;AUTO_LANGUAGE#93;,nl"]):::literal v1 --"wdt:P5068"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end