Adds custom query by the user