Query for getting Analysis index by date (ascending)