Query cluster or sql endpoint