It first get the full list of tags and then compares each pair