added some example queries + serializations
diff --git a/src/test/resources/queries/bsp10.json b/src/test/resources/queries/bsp10.json
new file mode 100644
index 0000000..c8a9b6f
--- /dev/null
+++ b/src/test/resources/queries/bsp10.json
@@ -0,0 +1,50 @@
+{
+    "@context": {
+        "@language": "de", 
+        "class": {
+            "@id": "korap:class", 
+            "@type": "xsd:integer"
+        }, 
+        "filter": "korap:filter", 
+        "korap": "http://korap.ids-mannheim.de/ns/query", 
+        "meta": "korap:meta", 
+        "operands": {
+            "@container": "@list", 
+            "@id": "korap:operands"
+        }, 
+        "query": "korap:query", 
+        "relation": {
+            "@id": "korap:relation", 
+            "@type": "korap:relation#types"
+        }
+    }, 
+    "query": {
+        "@type": "korap:sequence", 
+        "operands": [
+            {
+                "@type": "korap:token", 
+                "@value": {
+                    "@type": "korap:term", 
+                    "@value": "base:Katze", 
+                    "relation": "="
+                }
+            }, 
+            {
+                "@type": "korap:token", 
+                "@value": {
+                    "@type": "korap:term", 
+                    "@value": "orth:und", 
+                    "relation": "="
+                }
+            }, 
+            {
+                "@type": "korap:token", 
+                "@value": {
+                    "@type": "korap:term", 
+                    "@value": "orth:Hunde", 
+                    "relation": "="
+                }
+            }
+        ]
+    }
+}
diff --git a/src/test/resources/queries/bsp11.json b/src/test/resources/queries/bsp11.json
new file mode 100644
index 0000000..c486d67
--- /dev/null
+++ b/src/test/resources/queries/bsp11.json
@@ -0,0 +1,40 @@
+{
+    "@context": {
+        "@language": "de", 
+        "class": {
+            "@id": "korap:class", 
+            "@type": "xsd:integer"
+        }, 
+        "filter": "korap:filter", 
+        "korap": "http://korap.ids-mannheim.de/ns/query", 
+        "meta": "korap:meta", 
+        "operands": {
+            "@container": "@list", 
+            "@id": "korap:operands"
+        }, 
+        "query": "korap:query", 
+        "relation": {
+            "@id": "korap:relation", 
+            "@type": "korap:relation#types"
+        }
+    }, 
+    "query": {
+        "@type": "korap:token", 
+        "@value": {
+            "@type": "korap:group", 
+            "operands": [
+                {
+                    "@type": "korap:term", 
+                    "@value": "base:Katze", 
+                    "relation": "!="
+                }, 
+                {
+                    "@type": "korap:term", 
+                    "@value": "orth:Katzen", 
+                    "relation": "!="
+                }
+            ], 
+            "relation": "or"
+        }
+    }
+}
diff --git a/src/test/resources/queries/bsp12.json b/src/test/resources/queries/bsp12.json
new file mode 100644
index 0000000..e59258f
--- /dev/null
+++ b/src/test/resources/queries/bsp12.json
@@ -0,0 +1,40 @@
+{
+    "@context": {
+        "@language": "de", 
+        "class": {
+            "@id": "korap:class", 
+            "@type": "xsd:integer"
+        }, 
+        "filter": "korap:filter", 
+        "korap": "http://korap.ids-mannheim.de/ns/query", 
+        "meta": "korap:meta", 
+        "operands": {
+            "@container": "@list", 
+            "@id": "korap:operands"
+        }, 
+        "query": "korap:query", 
+        "relation": {
+            "@id": "korap:relation", 
+            "@type": "korap:relation#types"
+        }
+    }, 
+    "query": {
+        "@type": "korap:group", 
+        "operands": [
+            {
+                "@type": "korap:element", 
+                "@value": "np"
+            }, 
+            {
+                "@type": "korap:token", 
+                "@value": {
+                    "@type": "korap:term", 
+                    "@value": "base:Mann", 
+                    "relation": "="
+                }
+            }
+        ], 
+        "position": "contains", 
+        "relation": "position"
+    }
+}
diff --git a/src/test/resources/queries/bsp13.json b/src/test/resources/queries/bsp13.json
new file mode 100644
index 0000000..81a6255
--- /dev/null
+++ b/src/test/resources/queries/bsp13.json
@@ -0,0 +1,40 @@
+{
+    "@context": {
+        "@language": "de", 
+        "class": {
+            "@id": "korap:class", 
+            "@type": "xsd:integer"
+        }, 
+        "filter": "korap:filter", 
+        "korap": "http://korap.ids-mannheim.de/ns/query", 
+        "meta": "korap:meta", 
+        "operands": {
+            "@container": "@list", 
+            "@id": "korap:operands"
+        }, 
+        "query": "korap:query", 
+        "relation": {
+            "@id": "korap:relation", 
+            "@type": "korap:relation#types"
+        }
+    }, 
+    "query": {
+        "@type": "korap:group", 
+        "operands": [
+            {
+                "@type": "korap:element", 
+                "@value": "np"
+            }, 
+            {
+                "@type": "korap:token", 
+                "@value": {
+                    "@type": "korap:term", 
+                    "@value": "pos:Det", 
+                    "relation": "!="
+                }
+            }
+        ], 
+        "position": "startswith", 
+        "relation": "position"
+    }
+}
diff --git a/src/test/resources/queries/bsp14.json b/src/test/resources/queries/bsp14.json
new file mode 100644
index 0000000..6737c80
--- /dev/null
+++ b/src/test/resources/queries/bsp14.json
@@ -0,0 +1,30 @@
+{
+    "@context": {
+        "@language": "de", 
+        "class": {
+            "@id": "korap:class", 
+            "@type": "xsd:integer"
+        }, 
+        "filter": "korap:filter", 
+        "korap": "http://korap.ids-mannheim.de/ns/query", 
+        "meta": "korap:meta", 
+        "operands": {
+            "@container": "@list", 
+            "@id": "korap:operands"
+        }, 
+        "query": "korap:query", 
+        "relation": {
+            "@id": "korap:relation", 
+            "@type": "korap:relation#types"
+        }
+    }, 
+    "query": {
+        "@type": "korap:token", 
+        "@value": {
+            "@subtype": "korap:regex", 
+            "@value": "'vers{2,3}uch'", 
+            "relation": "=", 
+            "type": "korap:term"
+        }
+    }
+}
diff --git a/src/test/resources/queries/bsp15.json b/src/test/resources/queries/bsp15.json
new file mode 100644
index 0000000..371820c
--- /dev/null
+++ b/src/test/resources/queries/bsp15.json
@@ -0,0 +1,30 @@
+{
+    "@context": {
+        "@language": "de", 
+        "class": {
+            "@id": "korap:class", 
+            "@type": "xsd:integer"
+        }, 
+        "filter": "korap:filter", 
+        "korap": "http://korap.ids-mannheim.de/ns/query", 
+        "meta": "korap:meta", 
+        "operands": {
+            "@container": "@list", 
+            "@id": "korap:operands"
+        }, 
+        "query": "korap:query", 
+        "relation": {
+            "@id": "korap:relation", 
+            "@type": "korap:relation#types"
+        }
+    }, 
+    "query": {
+        "@type": "korap:token", 
+        "@value": {
+            "@subtype": "korap:value#regex", 
+            "@type": "korap:term", 
+            "@value": "orth:'vers.*ch'", 
+            "relation": "="
+        }
+    }
+}
diff --git a/src/test/resources/queries/bsp2.json b/src/test/resources/queries/bsp2.json
index f97a4fd..b6b1bff 100644
--- a/src/test/resources/queries/bsp2.json
+++ b/src/test/resources/queries/bsp2.json
@@ -1,56 +1,56 @@
 {
-   "@context":{
-      "korap":"http://korap.ids-mannheim.de/ns/query",
-      "@language":"de",
-      "operands":{
-         "@id":"korap:operands",
-         "@container":"@list"
-      },
-      "relation":{
-         "@id":"korap:relation",
-         "@type":"korap:relation#types"
-      },
-      "class":{
-         "@id":"korap:class",
-         "@type":"xsd:integer"
-      },
-      "query":"korap:query",
-      "filter":"korap:filter",
-      "meta":"korap:meta"
-   },
-   "query":{
-      "@type":"korap:sequence",
-      "operands":[
-         {
-            "@type":"korap:group",
-            "relation":"or",
-            "operands":[
-               {
-                  "@type":"korap:token",
-                  "@value":{
-                     "@type":"korap:term",
-                     "@value":"base:foo",
-                     "relation":"="
-                  }
-               },
-               {
-                  "@type":"korap:token",
-                  "@value":{
-                     "@type":"korap:term",
-                     "@value":"base:bar",
-                     "relation":"="
-                  }
-               }
-            ]
-         },
-         {
-            "@type":"korap:token",
-            "@value":{
-               "@type":"korap:term",
-               "@value":"base:foobar",
-               "relation":"="
+    "@context": {
+        "@language": "de", 
+        "class": {
+            "@id": "korap:class", 
+            "@type": "xsd:integer"
+        }, 
+        "filter": "korap:filter", 
+        "korap": "http://korap.ids-mannheim.de/ns/query", 
+        "meta": "korap:meta", 
+        "operands": {
+            "@container": "@list", 
+            "@id": "korap:operands"
+        }, 
+        "query": "korap:query", 
+        "relation": {
+            "@id": "korap:relation", 
+            "@type": "korap:relation#types"
+        }
+    }, 
+    "query": {
+        "@type": "korap:sequence", 
+        "operands": [
+            {
+                "@type": "korap:group", 
+                "operands": [
+                    {
+                        "@type": "korap:token", 
+                        "@value": {
+                            "@type": "korap:term", 
+                            "@value": "base:foo", 
+                            "relation": "="
+                        }
+                    }, 
+                    {
+                        "@type": "korap:token", 
+                        "@value": {
+                            "@type": "korap:term", 
+                            "@value": "base:bar", 
+                            "relation": "="
+                        }
+                    }
+                ], 
+                "relation": "or"
+            }, 
+            {
+                "@type": "korap:token", 
+                "@value": {
+                    "@type": "korap:term", 
+                    "@value": "base:foobar", 
+                    "relation": "="
+                }
             }
-         }
-      ]
-   }
+        ]
+    }
 }
diff --git a/src/test/resources/queries/bsp3.json b/src/test/resources/queries/bsp3.json
index 10a9f21..4381106 100644
--- a/src/test/resources/queries/bsp3.json
+++ b/src/test/resources/queries/bsp3.json
@@ -1,41 +1,42 @@
 {
-   "@context":{
-      "korap":"http://korap.ids-mannheim.de/ns/query",
-      "@language":"de",
-      "operands":{
-         "@id":"korap:operands",
-         "@container":"@list"
-      },
-      "relation":{
-         "@id":"korap:relation",
-         "@type":"korap:relation#types"
-      },
-      "class":{
-         "@id":"korap:class",
-         "@type":"xsd:integer"
-      },
-      "query":"korap:query",
-      "filter":"korap:filter",
-      "meta":"korap:meta"
-   },
-   "query":{
-      "@type":"korap:sequence",
-      "shrink":"0",
-      "operands":[
-         {
-            "@type":"korap:group",
-            "class":"0",
-            "operands":[
-               {
-                  "@type":"korap:token",
-                  "@value":{
-                     "@type":"korap:term",
-                     "@value":"base:foo",
-                     "relation":"="
-                  }
-               }
-            ]
-         }
-      ]
-   }
+    "@context": {
+        "@language": "de", 
+        "class": {
+            "@id": "korap:class", 
+            "@type": "xsd:integer"
+        }, 
+        "filter": "korap:filter", 
+        "korap": "http://korap.ids-mannheim.de/ns/query", 
+        "meta": "korap:meta", 
+        "operands": {
+            "@container": "@list", 
+            "@id": "korap:operands"
+        }, 
+        "query": "korap:query", 
+        "relation": {
+            "@id": "korap:relation", 
+            "@type": "korap:relation#types"
+        }
+    }, 
+    "query": {
+        "@type": "korap:group", 
+        "operands": [
+            {
+                "@type": "korap:group", 
+                "class": "0", 
+                "operands": [
+                    {
+                        "@type": "korap:token", 
+                        "@value": {
+                            "@type": "korap:term", 
+                            "@value": "base:Mann", 
+                            "relation": "="
+                        }
+                    }
+                ]
+            }
+        ], 
+        "relation": "shrink", 
+        "shrink": "0"
+    }
 }
diff --git a/src/test/resources/queries/bsp4.json b/src/test/resources/queries/bsp4.json
index e98afbd..c7ddb5b 100644
--- a/src/test/resources/queries/bsp4.json
+++ b/src/test/resources/queries/bsp4.json
@@ -1,49 +1,55 @@
 {
-   "@context":{
-      "korap":"http://korap.ids-mannheim.de/ns/query",
-      "@language":"de",
-      "operands":{
-         "@id":"korap:operands",
-         "@container":"@list"
-      },
-      "relation":{
-         "@id":"korap:relation",
-         "@type":"korap:relation#types"
-      },
-      "class":{
-         "@id":"korap:class",
-         "@type":"xsd:integer"
-      },
-      "query":"korap:query",
-      "filter":"korap:filter",
-      "meta":"korap:meta"
-   },
-   "query":{
-      "@type":"korap:sequence",
-      "shrink":"0",
-      "operands":[
-         {
-            "@type":"korap:group",
-            "class":"0",
-            "operands":[
-               {
-                  "@type":"korap:token",
-                  "@value":{
-                     "@type":"korap:term",
-                     "@value":"base:foo",
-                     "relation":"="
-                  }
-               }
-            ]
-         },
-         {
-            "@type":"korap:token",
-            "@value":{
-               "@type":"korap:term",
-               "@value":"orth:bar",
-               "relation":"="
+    "@context": {
+        "@language": "de", 
+        "class": {
+            "@id": "korap:class", 
+            "@type": "xsd:integer"
+        }, 
+        "filter": "korap:filter", 
+        "korap": "http://korap.ids-mannheim.de/ns/query", 
+        "meta": "korap:meta", 
+        "operands": {
+            "@container": "@list", 
+            "@id": "korap:operands"
+        }, 
+        "query": "korap:query", 
+        "relation": {
+            "@id": "korap:relation", 
+            "@type": "korap:relation#types"
+        }
+    }, 
+    "query": {
+        "@type": "korap:group", 
+        "operands": [
+            {
+                "@type": "korap:sequence", 
+                "operands": [
+                    {
+                        "@type": "korap:group", 
+                        "class": "0", 
+                        "operands": [
+                            {
+                                "@type": "korap:token", 
+                                "@value": {
+                                    "@type": "korap:term", 
+                                    "@value": "base:foo", 
+                                    "relation": "="
+                                }
+                            }
+                        ]
+                    }, 
+                    {
+                        "@type": "korap:token", 
+                        "@value": {
+                            "@type": "korap:term", 
+                            "@value": "orth:bar", 
+                            "relation": "="
+                        }
+                    }
+                ]
             }
-         }
-      ]
-   }
+        ], 
+        "relation": "shrink", 
+        "shrink": "0"
+    }
 }
diff --git a/src/test/resources/queries/bsp5.json b/src/test/resources/queries/bsp5.json
index 246df1e..68dfdad 100644
--- a/src/test/resources/queries/bsp5.json
+++ b/src/test/resources/queries/bsp5.json
@@ -1,49 +1,55 @@
 {
-   "@context":{
-      "korap":"http://korap.ids-mannheim.de/ns/query",
-      "@language":"de",
-      "operands":{
-         "@id":"korap:operands",
-         "@container":"@list"
-      },
-      "relation":{
-         "@id":"korap:relation",
-         "@type":"korap:relation#types"
-      },
-      "class":{
-         "@id":"korap:class",
-         "@type":"xsd:integer"
-      },
-      "query":"korap:query",
-      "filter":"korap:filter",
-      "meta":"korap:meta"
-   },
-   "query":{
-      "@type":"korap:sequence",
-      "shrink":"1",
-      "operands":[
-         {
-            "@type":"korap:token",
-            "@value":{
-               "@type":"korap:term",
-               "@value":"base:Der",
-               "relation":"="
+    "@context": {
+        "@language": "de", 
+        "class": {
+            "@id": "korap:class", 
+            "@type": "xsd:integer"
+        }, 
+        "filter": "korap:filter", 
+        "korap": "http://korap.ids-mannheim.de/ns/query", 
+        "meta": "korap:meta", 
+        "operands": {
+            "@container": "@list", 
+            "@id": "korap:operands"
+        }, 
+        "query": "korap:query", 
+        "relation": {
+            "@id": "korap:relation", 
+            "@type": "korap:relation#types"
+        }
+    }, 
+    "query": {
+        "@type": "korap:group", 
+        "operands": [
+            {
+                "@type": "korap:sequence", 
+                "operands": [
+                    {
+                        "@type": "korap:token", 
+                        "@value": {
+                            "@type": "korap:term", 
+                            "@value": "base:Der", 
+                            "relation": "="
+                        }
+                    }, 
+                    {
+                        "@type": "korap:group", 
+                        "class": "1", 
+                        "operands": [
+                            {
+                                "@type": "korap:token", 
+                                "@value": {
+                                    "@type": "korap:term", 
+                                    "@value": "base:Mann", 
+                                    "relation": "="
+                                }
+                            }
+                        ]
+                    }
+                ]
             }
-         },
-         {
-            "@type":"korap:group",
-            "class":"1",
-            "operands":[
-               {
-                  "@type":"korap:token",
-                  "@value":{
-                     "@type":"korap:term",
-                     "@value":"base:Mann",
-                     "relation":"="
-                  }
-               }
-            ]
-         }
-      ]
-   }
+        ], 
+        "relation": "shrink", 
+        "shrink": "1"
+    }
 }
diff --git a/src/test/resources/queries/bsp6.json b/src/test/resources/queries/bsp6.json
new file mode 100644
index 0000000..fb0ef65
--- /dev/null
+++ b/src/test/resources/queries/bsp6.json
@@ -0,0 +1,29 @@
+{
+    "@context": {
+        "@language": "de", 
+        "class": {
+            "@id": "korap:class", 
+            "@type": "xsd:integer"
+        }, 
+        "filter": "korap:filter", 
+        "korap": "http://korap.ids-mannheim.de/ns/query", 
+        "meta": "korap:meta", 
+        "operands": {
+            "@container": "@list", 
+            "@id": "korap:operands"
+        }, 
+        "query": "korap:query", 
+        "relation": {
+            "@id": "korap:relation", 
+            "@type": "korap:relation#types"
+        }
+    }, 
+    "query": {
+        "@type": "korap:token", 
+        "@value": {
+            "@type": "korap:term", 
+            "@value": "base:Katze", 
+            "relation": "="
+        }
+    }
+}
diff --git a/src/test/resources/queries/bsp7.json b/src/test/resources/queries/bsp7.json
new file mode 100644
index 0000000..2089a06
--- /dev/null
+++ b/src/test/resources/queries/bsp7.json
@@ -0,0 +1,29 @@
+{
+    "@context": {
+        "@language": "de", 
+        "class": {
+            "@id": "korap:class", 
+            "@type": "xsd:integer"
+        }, 
+        "filter": "korap:filter", 
+        "korap": "http://korap.ids-mannheim.de/ns/query", 
+        "meta": "korap:meta", 
+        "operands": {
+            "@container": "@list", 
+            "@id": "korap:operands"
+        }, 
+        "query": "korap:query", 
+        "relation": {
+            "@id": "korap:relation", 
+            "@type": "korap:relation#types"
+        }
+    }, 
+    "query": {
+        "@type": "korap:token", 
+        "@value": {
+            "@type": "korap:term", 
+            "@value": "base:Katze", 
+            "relation": "!="
+        }
+    }
+}
diff --git a/src/test/resources/queries/bsp8.json b/src/test/resources/queries/bsp8.json
new file mode 100644
index 0000000..2089a06
--- /dev/null
+++ b/src/test/resources/queries/bsp8.json
@@ -0,0 +1,29 @@
+{
+    "@context": {
+        "@language": "de", 
+        "class": {
+            "@id": "korap:class", 
+            "@type": "xsd:integer"
+        }, 
+        "filter": "korap:filter", 
+        "korap": "http://korap.ids-mannheim.de/ns/query", 
+        "meta": "korap:meta", 
+        "operands": {
+            "@container": "@list", 
+            "@id": "korap:operands"
+        }, 
+        "query": "korap:query", 
+        "relation": {
+            "@id": "korap:relation", 
+            "@type": "korap:relation#types"
+        }
+    }, 
+    "query": {
+        "@type": "korap:token", 
+        "@value": {
+            "@type": "korap:term", 
+            "@value": "base:Katze", 
+            "relation": "!="
+        }
+    }
+}
diff --git a/src/test/resources/queries/bsp9.json b/src/test/resources/queries/bsp9.json
new file mode 100644
index 0000000..d8e090a
--- /dev/null
+++ b/src/test/resources/queries/bsp9.json
@@ -0,0 +1,40 @@
+{
+    "@context": {
+        "@language": "de", 
+        "class": {
+            "@id": "korap:class", 
+            "@type": "xsd:integer"
+        }, 
+        "filter": "korap:filter", 
+        "korap": "http://korap.ids-mannheim.de/ns/query", 
+        "meta": "korap:meta", 
+        "operands": {
+            "@container": "@list", 
+            "@id": "korap:operands"
+        }, 
+        "query": "korap:query", 
+        "relation": {
+            "@id": "korap:relation", 
+            "@type": "korap:relation#types"
+        }
+    }, 
+    "query": {
+        "@type": "korap:token", 
+        "@value": {
+            "@type": "korap:group", 
+            "operands": [
+                {
+                    "@type": "korap:term", 
+                    "@value": "base:Katze", 
+                    "relation": "="
+                }, 
+                {
+                    "@type": "korap:term", 
+                    "@value": "orth:Katzen", 
+                    "relation": "="
+                }
+            ], 
+            "relation": "and"
+        }
+    }
+}
diff --git a/src/test/resources/queries/readme.txt b/src/test/resources/queries/readme.txt
index 71bbdd8..3624b0e 100644
--- a/src/test/resources/queries/readme.txt
+++ b/src/test/resources/queries/readme.txt
@@ -3,3 +3,13 @@
 bsp3.json: shrink({[base=Mann]})
 bsp4.json: shrink({[base=foo]}[orth=bar])
 bsp5.json: shrink(1:[base=Der]{1:[base=Mann]}) 
+bsp6.json: [base=Katze]
+bsp7.json: [base!=Katze]
+bsp8.json: [!base=Katze]
+bsp9.json: [base=Katze&orth=Katzen]
+bsp10.json:	[base=Katze][orth=und][orth=Hunde]
+bsp11.json:	[!(base=Katze&orth=Katzen)]
+bsp12.json:	contains(<np>,[base=Mann])
+bsp13.json:	startswith(<np>,[!pos=Det])
+bsp14.json:	'vers{2,3}uch'
+bsp15.json:	[orth='vers.*ch']
\ No newline at end of file