Possible solution for the problem of construct the query for searches and the query builder.