read finished to query