Yes, 0 is a rational number.​0=10​0=−10​0=20​… etc ​ Hence, it can be written in qp​ from where q=0