fix wrong annotation for query static function