handling ecql queries with the attribute on the right side.