simplified quine-generating query