update across study query