Write SQL query to solve given problem: List the ID of all images with objects that have multiple relations.. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT IMG_ID FROM IMG_REL GROUP BY PRED_CLASS_ID HAVING COUNT(DISTINCT OBJ1_SAMPLE_ID) != 0 AND COUNT(DISTINCT OBJ2_SAMPLE_ID) != 0