I am creating the logic app when I want to send an email when there are duplicate entries created in my database, and until those are not removed email should be triggered after some interval
As per Logic App, we can create a trigger on SQL when data is inserted or modified as bellow

So I selected the first option then I am adding another action which will run my SQL script to check the logic of duplicate entries

and last I have added another action to send an email.
Now I want my last action of sending email to be executed only when my query comes up with some result

