Added diff_keys to query