About the data to be fetched on a custom page

Let say , i hav created a page where in i am saving four fields in an entity, now how can i generate a new page where in i can put a query to get only 2 fields on the basis of a clause, for example : "SELECT description from entity where MONTH(`date`)='05'"  
0 answers