Query "node", "way" and "relation" elements with "generator:source" and "power:source" equal to "hydro" value:
(node["generator:source"="hydro"];
way["generator:source"="hydro"];
relation["generator:source"="hydro"];
node["plant:source"="hydro"];
way["plant:source"="hydro"];
relation["plant:source"="hydro"];)
Query "node", "way" and "relation" elements with "generator:source" and "plant:source" keys equal to "solar" value:
(node["generator:source"="solar"];
way["generator:source"="solar"];
relation["generator:source"="solar"];
node["plant:source"="solar"];
way["plant:source"="solar"];
relation["plant:source"="solar"];)
Query "node", "way" and "relation" elements with "power:source" and "generator:source" keys equal to "wind" value:
(node["generator:source"="wind"];
way["generator:source"="wind"];
relation["generator:source"="wind"];
node["plant:source"="wind"];
way["plant:source"="wind"];
relation["plant:source"="wind"];)
Query "node", "way" and "relation" elements with "generator:source" key and "nuclear" value:
(node["generator:source"="nuclear"];
way["generator:source"="nuclear"];
relation["generator:source"="nuclear"];
node["plant:source"="nuclear"];
way["plant:source"="nuclear"];
relation["plant:source"="nuclear"];)
Query 'relation' elements with 'power' key and 'plant' tag or 'station' tag:
(node[power=plant];
node[power=station];
way[power=plant];
way[power=station];
relation[power=plant];
relation[power=station];)
Example:
Relation: Centrale hydroélectrique de Veytaux 1 (7251087).
See https://www.openstreetmap.org/relation/7251087#map=13/46.4175/6.9874.