Implements rawQuery option