simplify query, shouldnt compile to topology for the simple case