I have moved from Sense to writing queries in C#. The problem I have is joining two queries or filters together.

In sense I used

```
"and":[

```

Any ideas on how to do this?

Here is one of the queries I am trying to do

```
{
    "filtered" : {
        "query" : {
            "term" : { "name.first" : "shay" }
        },
        "filter" : {
            "and" : [
                {
                    "range" : {
                        "postDate" : {
                            "from" : "2010-03-01",
                            "to" : "2010-04-01"
                        }
                    }
                },
                {
                    "prefix" : { "name.second" : "ba" }
                }
            ]
        }
    }
}

```

**//attempt//**

```
filtered = new
{
    query = new
    {
        term = new
        {
            name.first = "shay"
        }
    },
    filter = new
    {
        and =   ? 
        [        ?
         {        ?
            range = new
            {
                postDate = new
                {
                    from = "2010-03-01",
                    to ="2010-04-01"
                }
            }

          },
          prefix = new
          {
            name.second = "ba"
          }
        ]
    }
};

```