#include<bits/stdc++.h>
using namespace std;

const int N = 100010;
int ans[N];

int main()
{
    int q;
    cin >> q;
    while(q--){
        memset(ans, 0 ,sizeof ans);
        int n, k;
        cin >> n>> k;
        if(k > (n - 1) / 2)cout <<-1<<endl;
        else {
                int cnt = k;
                int tt =0;
            for(int i = n; cnt > 0 ; i--){
                ans[2 * (++tt)] = i;
                cnt --;
            }
            tt = 0;
            for(int i = 1; i <= n; i++)
            {
                if(ans[i])continue;
                else {
                    ans[i] = ++tt;
                }
            }
            for(int i = 1;i <=n; i++)cout <<ans[i]<<" ";
            cout <<endl;
        }

    }
}
