'Return a prepared query that checks for the existence of an item.
Args:
field: Field to match.'

def contains_query(self, field):

    return Query('SELECT    EXISTS(SELECT    *    FROM    {table}    WHERE    {field}    =    :val)'.format(table=self._name, field=field))
