Locate your element on : https://www.openstreetmap.org/
Right click "Interroger les objects"
Copie wikidata code : like "Q12782"
Going to http://overpass-turbo.eu/
Replace code into script bellow and click "Export" ;)
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“"wikidata"="" global”
*/
[out:json][timeout:25];
// gather results
(
// query part for: “wikidata=Q12782”
relation["wikidata"="Q12782"];
);
// print results
out body;
>;
out skel qt;