Is that possible to get License usage by DQL?

I want to get license usage by DQL query.

You should be able to, If you have enabled your Dynatrace Davis copilot, you can ask the system to build that DQL Statement for you!

@LuisnaviaTE , there is a good dashboard in the playground that you can use as a reference to start with, its built on DQL

https://{environmentid}.apps.dynatrace.com/ui/apps/dynatrace.dashboards/dashboard/0d2f4b19-f062-4aaf-baac-a44b4911cc23#from=now%28%29-2h&to=now%28%29&tileIds=64