Added support for SELECT EXISTS queries for fast checking for row existence.