How to make a querie from a plguin

Why are you specifying application:: in query?
Make a screenshot of the model that you are trying to query. With the folder structure