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

void solve(){
    int n,k;
    cin >> n >> k;
    
    vector<int> v(n);
    
    if(k>=(n+1)/2){
        cout << -1 << endl;
        return;
    }
    
    int a1=1;
    int a2=n;
    
    for(int i=0;i<n;i++){
        if(k!=0 && i!=0 && i%2!=0){
                v[i] = a2;
                a2--;
                k--;
        }
        else{
            v[i] = a1;
            a1++;
        }
    }
    
    for(int i=0;i<n;i++){
        cout << v[i] << " ";
    }
    cout << endl;
}

int main(){
    int t;
    cin >> t;
    while(t--){
        solve();
    }
}
