#include<bits/stdc++.h>
#define pf printf
#define sc(x) scanf("%d", &x)
#define scs(x) scanf("%s", x)
#define scl(x) scanf("%lld", &x)
#define mst(a,x) memset(a, x, sizeof(a))
#define rep(i,s,e) for(int i=s; i<e; ++i)
#define dep(i,e,s) for(int i=e; i>=s; --i)
#define INF 0x3f3f3f3f
using namespace std;
typedef  long long ll;
typedef pair<ll,ll> pii;
const long long MOD = 1000000007;
int main()
{
	int t;sc(t);
	while(t--){
		int n,k;sc(n);sc(k);
		if((n % 2 == 1 && k > n / 2) || (n % 2 == 0 && k >= n / 2)){
			pf("-1\n");
			continue;
		}
		int l = 1;
		int r = n;
		rep(i,0,k){
			pf("%d %d ",l,r);
			l++;
			r--;
		}
		if(l == r){
			pf("%d\n",l);
			continue;
		}
		rep(i,l,r)pf("%d ",i);
		pf("%d\n",r);
	} 
}