more numpy-like query interface