Fix ID Graph query