replace a jack query using the new syntax