update cross study query implementation