I am wondering if my sentence is grammatically correct. When Maria came home, her mother asked her with whom had she gone to the concert.