i want to get the time conflict in a specific day
my table
| starttime | endtime | day | subject |
------------------------------------------
| 09:00:00 | 11:00:00 | M | math |
-----------------------------------------
| 09:00:00 | 11:00:00 | M | science |
-----------------------------------------
| 06:00:00 | 09:00:00 | M | History |
-----------------------------------------
| 06:00:00 | 09:00:00 | T | P.E. |
-----------------------------------------
| 10:00:00 | 12:00:00 | M | English |
-----------------------------------------
the output i want to get
| starttime | endtime | day | subject |
------------------------------------------
| 09:00:00 | 11:00:00 | M | math |
-----------------------------------------
| 09:00:00 | 11:00:00 | M | science |
-----------------------------------------
| 10:00:00 | 12:00:00 | M | English |
-----------------------------------------