update great minds query