#include <bits/stdc++.h>

#pragma GCC optimize("O3")

using namespace std;

int main(){
	cin.tie(0);
	ios::sync_with_stdio(0);
	int t;
	cin >> t;
	while(t--){
		int n, k;
		cin >> n >> k;
		if(k > (n-1)/2) cout << "-1\n";
		else{
			int l = 1, h = n, t = 1;
			cout << l++ << " ";
			while(k){
				if(t) cout << h-- << " ";
				else cout << l++ << " ";
				if(t) k--;
				t ^= 1;
			}
			if(t) for(int i = l; i <= h; i++) cout << i << " ";
			else for(int i = h; i >= l; i--) cout << i << " ";
			cout << "\n";
		}
	}
}
