Query elements with "operator" that contains "Groupe E": (case insensitive does not work)
(node["operator"~"Groupe E"]["generator:source"="hydro"];
node["operator"~"Groupe E"]["plant:source"="hydro"];
way["operator"~"Groupe E"]["generator:source"="hydro"];
way["operator"~"Groupe E"]["plant:source"="hydro"];
relation["operator"~"Groupe E"]["generator:source"="hydro"];
relation["operator"~"Groupe E"]["plant:source"="hydro"];)
Query elements where "operator" contains "BKW":
(node["operator"~"BKW"]["generator:source"="hydro"];
node["operator"~"BKW"]["plant:source"="hydro"];
way["operator"~"BKW"]["generator:source"="hydro"];
way["operator"~"BKW"]["plant:source"="hydro"];
relation["operator"~"BKW"]["generator:source"="hydro"];
relation["operator"~"BKW"]["plant:source"="hydro"];)
N.B.: case insensitive does not work: node["operator"~"BKW",i]
Query hydro power plants operated by BKW:
(node["generator:source"="hydro"]["operator"="BKW"];
node["plant:source"="hydro"]["operator"="BKW"];
way["generator:source"="hydro"]["operator"="BKW"];
way["plant:source"="hydro"]["operator"="BKW"];
relation["generator:source"="hydro"]["operator"="BKW"];
relation["plant:source"="hydro"]["operator"="BKW"];)
N.B.: case insensitive search does not work: node["operator"~"^BKW$",i];
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.