Quale query per assegnare un badge per like o risposta a un topic specifico?

Is there a way to write a query to award a badge to all users who like a certain post/topic or reply to it?

1 Mi Piace

That should help:

3 Mi Piace