#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#ifdef APURBA
#include "DEBUG_TEMPLATE.h"
#else
#define HERE
#define debug(args...)
#endif
const int N = 2e5 +5;
const ll mod = 1e9+7;
typedef pair<int,int> pii;



void TEST_CASES(int cas)
{
    int n,k;
    cin>>n>>k;
//    if(k>n-2)
//    {
//        cout<<"-1\n";
//        return;
//    }
    vector<int>a;
    int now = 1 , last = n;
    a.push_back(now);
    now++;
    int cnt = k;
    while(a.size()<n)
    {
        if(cnt)
        {
            a.push_back(last);
            a.push_back(now);
            last--;
            now++;
            cnt--;
        }
        else{
            a.push_back(now);
            now++;
        }
    }
    if(cnt || a.size()!=n)
    {
        cout<<"-1\n";
        return;
    }
    for(int i:a)
    {
        cout<<i<<" ";
    }
    cout<<"\n";



}




/*
*/

int32_t main()
{
#ifndef APURBA
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
#endif
    //freopen("input.txt","r",stdin);
    //freopen("out1.txt","w",stdout);
    int t=1,cas=0;
    cin>>t;
    while(t--)
    {
        TEST_CASES(++cas);
    }
    return 0;
}

