Combining Global and Local Merges in Logic-based Entity Resolution