Which images have more than 20 object samples?
images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;
SELECT IMG_ID FROM IMG_OBJ GROUP BY IMG_ID HAVING COUNT(IMG_ID) > 20