In this tutorial we will look at templates, which are like pre-prepared queries you can easily re-use.
You can see the script here
You can try live here