Filter out FOR SHARE queries