Create Queries and Custom Policies Using LQL