These queries demonstrate how to query additional properties, which are displayed in pop-ups you can open by clicking their corresponding marker.
Query showing all cities located in Germany or Belgium together with 'Located in' and 'Has location type' properties:
{{#ask: [[Category:Locations]] [[Has location type::City]] <q>[[Located in::Germany]]OR[[Located in::Belgium]]</q>
| ?Has coordinates
| ?Has location type
| ?Located in
| format=map
}}
Loading map...
{"format":"leaflet","minzoom":false,"maxzoom":false,"limit":50,"offset":0,"link":"all","sort":[""],"order":[],"headers":"show","mainlabel":"","intro":"","outro":"","searchlabel":"... further results","default":"","import-annotation":false,"width":"auto","height":"350px","centre":false,"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":false,"static":false,"zoom":false,"defzoom":14,"layers":["OpenStreetMap"],"image layers":[],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","showtitle":true,"hidenamespace":false,"template":"","userparam":"","activeicon":"","pagelabel":false,"ajaxcoordproperty":"","ajaxquery":"","locations":[{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Brussels\" title=\"Brussels\"\u003EBrussels\u003C/a\u003E\u003C/b\u003E\u003Chr /\u003E\u003Ca href=\"/wiki/Property:Has_location_type\" title=\"Property:Has location type\"\u003EHas location type\u003C/a\u003E: \u003Ca href=\"/wiki/City\" title=\"City\"\u003ECity\u003C/a\u003E\u003Cbr /\u003E\u003Ca href=\"/wiki/Property:Located_in\" title=\"Property:Located in\"\u003ELocated in\u003C/a\u003E: \u003Ca href=\"/wiki/Belgium\" title=\"Belgium\"\u003EBelgium\u003C/a\u003E","title":"Brussels","link":"","lat":50.8503396,"lon":4.3517103,"icon":""},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Gent\" title=\"Gent\"\u003EGent\u003C/a\u003E\u003C/b\u003E\u003Chr /\u003E\u003Ca href=\"/wiki/Property:Has_location_type\" title=\"Property:Has location type\"\u003EHas location type\u003C/a\u003E: \u003Ca href=\"/wiki/City\" title=\"City\"\u003ECity\u003C/a\u003E\u003Cbr /\u003E\u003Ca href=\"/wiki/Property:Located_in\" title=\"Property:Located in\"\u003ELocated in\u003C/a\u003E: \u003Ca href=\"/wiki/Belgium\" title=\"Belgium\"\u003EBelgium\u003C/a\u003E","title":"Gent","link":"","lat":51.053468,"lon":3.73038,"icon":""},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Hamburg\" title=\"Hamburg\"\u003EHamburg\u003C/a\u003E\u003C/b\u003E\u003Chr /\u003E\u003Ca href=\"/wiki/Property:Has_location_type\" title=\"Property:Has location type\"\u003EHas location type\u003C/a\u003E: \u003Ca href=\"/wiki/City\" title=\"City\"\u003ECity\u003C/a\u003E\u003Cbr /\u003E\u003Ca href=\"/wiki/Property:Located_in\" title=\"Property:Located in\"\u003ELocated in\u003C/a\u003E: \u003Ca href=\"/wiki/Demo:Germany\" title=\"Demo:Germany\"\u003EGermany\u003C/a\u003E","title":"Hamburg","link":"","lat":53.5510846,"lon":9.9936818,"icon":""}],"imageLayers":[]}
Query showing all cities located in a European country together with 'Located in' and 'Has location type' properties:
{{#ask: [[Category:Locations]] [[Has location type::City]] [[Located in.Located in::Europe]]
| ?Has coordinates
| ?Has location type
| ?Located in
| format=map
}}
Loading map...
{"format":"leaflet","minzoom":false,"maxzoom":false,"limit":50,"offset":0,"link":"all","sort":[""],"order":[],"headers":"show","mainlabel":"","intro":"","outro":"","searchlabel":"... further results","default":"","import-annotation":false,"width":"auto","height":"350px","centre":false,"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":false,"static":false,"zoom":false,"defzoom":14,"layers":["OpenStreetMap"],"image layers":[],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","showtitle":true,"hidenamespace":false,"template":"","userparam":"","activeicon":"","pagelabel":false,"ajaxcoordproperty":"","ajaxquery":"","locations":[{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Brussels\" title=\"Brussels\"\u003EBrussels\u003C/a\u003E\u003C/b\u003E\u003Chr /\u003E\u003Ca href=\"/wiki/Property:Has_location_type\" title=\"Property:Has location type\"\u003EHas location type\u003C/a\u003E: \u003Ca href=\"/wiki/City\" title=\"City\"\u003ECity\u003C/a\u003E\u003Cbr /\u003E\u003Ca href=\"/wiki/Property:Located_in\" title=\"Property:Located in\"\u003ELocated in\u003C/a\u003E: \u003Ca href=\"/wiki/Belgium\" title=\"Belgium\"\u003EBelgium\u003C/a\u003E","title":"Brussels","link":"","lat":50.8503396,"lon":4.3517103,"icon":""},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Gent\" title=\"Gent\"\u003EGent\u003C/a\u003E\u003C/b\u003E\u003Chr /\u003E\u003Ca href=\"/wiki/Property:Has_location_type\" title=\"Property:Has location type\"\u003EHas location type\u003C/a\u003E: \u003Ca href=\"/wiki/City\" title=\"City\"\u003ECity\u003C/a\u003E\u003Cbr /\u003E\u003Ca href=\"/wiki/Property:Located_in\" title=\"Property:Located in\"\u003ELocated in\u003C/a\u003E: \u003Ca href=\"/wiki/Belgium\" title=\"Belgium\"\u003EBelgium\u003C/a\u003E","title":"Gent","link":"","lat":51.053468,"lon":3.73038,"icon":""},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Hamburg\" title=\"Hamburg\"\u003EHamburg\u003C/a\u003E\u003C/b\u003E\u003Chr /\u003E\u003Ca href=\"/wiki/Property:Has_location_type\" title=\"Property:Has location type\"\u003EHas location type\u003C/a\u003E: \u003Ca href=\"/wiki/City\" title=\"City\"\u003ECity\u003C/a\u003E\u003Cbr /\u003E\u003Ca href=\"/wiki/Property:Located_in\" title=\"Property:Located in\"\u003ELocated in\u003C/a\u003E: \u003Ca href=\"/wiki/Demo:Germany\" title=\"Demo:Germany\"\u003EGermany\u003C/a\u003E","title":"Hamburg","link":"","lat":53.5510846,"lon":9.9936818,"icon":""}],"imageLayers":[]}