Find the arriving date and the departing date of the dogs that received a treatment.
SELECT DISTINCT T1.date_arrived ,  T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id  =  T2.dog_id
SELECT DISTINCT T1.date_arrived ,  T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id  =  T2.dog_id
[{'date_arrived': '2017-06-18 19:45:38', 'date_departed': '2018-03-24 23:48:59'}, {'date_arrived': '2017-04-20 00:58:55', 'date_departed': '2018-03-24 19:12:22'}, {'date_arrived': '2017-12-22 05:02:02', 'date_departed': '2018-03-25 02:11:32'}, {'date_arrived': '2017-10-24 04:45:13', 'date_departed': '2018-03-25 14:15:41'}, {'date_arrived': '2017-12-29 06:08:26', 'date_departed': '2018-03-25 04:42:14'}, {'date_arrived': '2017-12-29 23:24:13', 'date_departed': '2018-03-24 19:36:59'}, {'date_arrived': '2018-01-02 03:15:29', 'date_departed': '2018-03-25 05:07:47'}, {'date_arrived': '2017-05-06 08:03:52', 'date_departed': '2018-03-25 06:29:10'}, {'date_arrived': '2017-09-08 20:10:13', 'date_departed': '2018-03-25 06:58:44'}]