Since Service Desk is an add-on, this query should get you (at least mostly) there:
SELECT * FROM public.propertyentry pe JOIN public.propertytext pt on pe.id=pt.id WHERE pe.property_key like 'com.atlassian.upm.license%';
And here's some light reading that may help as well!
Hello Atlassian Community! I'm Tania, a Senior Product Marketing Manager for Jira Service Desk Cloud! I'm excited to announce some exciting improvements coming up for those who work with queues and...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events