simplify tiles query