Custom SWQL query for VLAN Identification of an interface

Hi, I have a script on my system that moves two interfaces into a different VLAN and another that moves them back. I'd like to write a custom query that provides an indication on a dashboard as to which VLAN the interfaces are in and display a colour indicating this. I'm very new to SWQL. Is this possible and could anyone please get me started? Thank you very much in advance