#include <bits/stdc++.h>

#define BOOST ios_base::sync_with_stdio(false); cin.tie(NULL);
#define precision(x); cout<<fixed<<setprecision(x);
#define lli long long int
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define all(v) v.begin(),v.end()
#define desc greater<int>()
#define mod 1000000007

using namespace std;

int main()
{
    BOOST
    int t;
    cin>>t;
    while(t--){
    	int n,k;
    	cin>>n>>k;
    	int maxm=(n%2==0)?((n/2)-1):n/2;
    	if(k>maxm){
    		cout<<-1<<endl;
    		continue;
    	}
    	int arr[n];
    	int x=1,y=n;
    	for(int i=0; i<n; i++){
    		if(i%2==0){
    			arr[i]=x;
    			x++;
    		}else{
    			arr[i]=y;
    			y--;
    		}
    	}
    	int valK=n-k+1;
    	int indK=2*k-1;
    	valK--;
    	for(int i=indK+1; i<n; i++){
    		arr[i]=valK;
    		valK--;
    	}
    	for(int i=0; i<n; i++){
    		cout<<arr[i]<<" ";
    	}
    	cout<<endl;
    }
    return 0;
}