You can execute DQL queries in two ways : –