diff --git a/minisqlquery-master/src/MiniSqlQuery/Templates/Sample - Advanced Looping.txt.mt b/minisqlquery-master/src/MiniSqlQuery/Templates/Sample - Advanced Looping.txt.mt
new file mode 100644
index 0000000..18ed558
--- /dev/null
+++ b/minisqlquery-master/src/MiniSqlQuery/Templates/Sample - Advanced Looping.txt.mt
@@ -0,0 +1,26 @@
+## The following script demonstraits the advanced looping abilities using foreach.
+
+#foreach ($row in ${Data.Get(null, "Categories").Rows})
+#beforeall
+
+ I am before everything
+
+#before
+ >>> (before each item)
+#each
+ "${Host.Data.ColumnValue($row, "Category Name")}"
+#after
+ <<< (after each item)
+#between
+ (i am between each line)
+#odd
+ [I am an odd row...]
+#even
+ [I am an even row]
+#nodata
+ (I appear if theres no data)
+#afterall
+
+ I am last.
+
+#end