Where do I find the queries behind SCHEDULED AND DEADLINE?

I think the only way is to add a new query for scheduled and deadline.
You can check this post