/*****************************
      *   Mahfuz   *
   * Created: 12.04.2021 *
*****************************/

#include <bits/stdc++.h>
using namespace std;
#define PI 3.141592653589793238462
#define ll long long
#define ld long double
#define max3(a, b, c) max(c, max(a, b))
#define max4(a, b, c, d) max(d, max(c, max(a, b)))
#define min3(a, b, c) min(c, min(a, b))
#define min4(a, b, c, d) min(d, min(c, min(a, b)))
#define FIO ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(0);
#define nl '\n'
#define mod 1000000007

int gcd(int a, int b)
{
    if(b==0)return a;
    return gcd(b, a%b);
}


int main()
{
    FIO;
    int t, n, k, i, j, a, b, c;

    cin >> t;

    while(t--)
    {
        cin >> n >> k;
        a = n-1;

        int d = a/2;

        if(k == 0)
        {
            for(i=1; i<=n; i++)cout << i << " ";
            cout << nl;
            continue;
        }

        if(k > d)
        {
            cout << "-1\n";
            continue;
        }

        vector<int>test;
        c = 0;

        for(i=n; i>0; i--)
        {
            if(c == k)break;
            else
            {
                test.push_back(i);
            }
            c++;
        }

        j = -1;

        for(i=1; i<=n-k; i++)
        {
            if(j+1 < test.size())cout << i << " " << test[++j] << " ";
            else cout << i << " ";
        }

        cout << nl;
    }

    return 0;
}