Given 2 lists of data:
Students = [{"id": "1", "country": "UK", "hobbies": ["photography", "painting"]}, {"id": "2", "country": "India", "hobbies": ["reading", "painting", "gardening"]}, {"id": "3", "country": "France", "hobbies": ["photography", "gardening", "music"]}, {"id": "4", "country": "Greece", "hobbies": ["music", "painting"]}]
ChatGroups =[ {"id": "1", "student_ids": ["1", "2", "3"]}, {"id": "2", "student_ids": ["1", "4"]}, {"id": "3", "student_ids": ["2", "4"]}]
Write a function that filters chat groups based on the attributes of the participants in the chat group. For e.g, find all chat groups that have at least one student who is from country=France (or Hobbies=[painting, music] etc.)