Compare list of lists

Well, ok, it works for 1 list compared to multiple lists. But I have to compare multiple lists to multiple lists so what it would be list of lists as an output. How would I achieve it with this script?