query: #defaultView:Map
  SELECT ?s ?sLabel ?coor ?operator ?operatorLabel ?image ?layer WHERE {  
    
         ?s wdt:P31/wdt:P279* wd:Q28564 ;
            wdt:P17 wd:Q145 ;
            wdt:P625 ?coor ;
            wdt:P137 ?operator ;
            OPTIONAL {?s wdt:P18 ?image .}
    
    VALUES ?operator { wd:Q4923796 wd:Q4966533 wd:Q5016926 wd:Q5038400 wd:Q5043224 wd:Q5064127 wd:Q5166758 wd:Q5256629 wd:Q16837157
                     wd:Q5623821 wd:Q6083890 wd:Q16997658 wd:Q6901162 wd:Q6984500 wd:Q16998902 wd:Q7161994 wd:Q7236943 wd:Q7321391 
                                   wd:Q5123523 wd:Q7825688 wd:Q7909538 wd:Q8038115 }
  BIND( 
         IF(?operator = wd:Q4923796, "Blaenau Gwent", 
         IF(?operator = wd:Q4966533, "Bridgend", 
         IF(?operator = wd:Q5016926, "Caerphilly",  
         IF(?operator = wd:Q5038400, "Cardiff",   
         IF(?operator = wd:Q5043224, "Carmarthenshire", 
         IF(?operator = wd:Q5064127, "Ceredigion",   
         IF(?operator = wd:Q5166758, "Conwy",
         IF(?operator = wd:Q5256629, "Denbighshire",
         IF(?operator = wd:Q16837157, "Flintshire", 
         IF(?operator = wd:Q5623821, "Gwynedd",   
         IF(?operator = wd:Q6083890, "Isle of Anglesey",
         IF(?operator = wd:Q16997658, "Merthyr Tydfil",
         IF(?operator = wd:Q6901162, "Monmouthshire",
         IF(?operator = wd:Q6984500, "Neath Port Talbot",   
         IF(?operator = wd:Q16998902, "Newport",
         IF(?operator = wd:Q7161994, "Pembrokeshire", 
         IF(?operator = wd:Q7236943, "Powys",   
         IF(?operator = wd:Q7321391, "Rhondda Cynon Taf",
         IF(?operator = wd:Q5123523, "Swansea",
         IF(?operator = wd:Q7825688, "Torfaen",   
         IF(?operator = wd:Q7909538, "Vale of Glamorgan", 
         IF(?operator = wd:Q8038115, "Wrexham",
                     "")))))))))))))))))))))) AS ?layer).  
    
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
  }
  ORDER BY ?operatorLabel ?sLabel