query to shivalib