#include <bits/stdc++.h>
#define pb push_back
#define ff first
#define ss second
#define ull unsigned long long
#define ll long long
#define int long long
#define pii pair <int, int>
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define rev(a) reverse(a.begin(), a.end())
#define endl '\n'
using namespace std;
const int inf = 1e18;
const int mod = 1e9 + 7;

void solve(){
	int n, k;
	cin >> n >> k;
	if (k > (n - 1) / 2){
		cout << -1;
		return;
	}
	set <int> s;
	for (int i = 1; i <= n; ++i) s.insert(i);
	vector <int> ans;
	int x = 1, y = n;
	for (int i = 0; i < k; ++i){
		ans.pb(x);
		s.erase(x++);
		if (s.size() > 0){
			ans.pb(y);
			s.erase(y--);
		}
	}
	for (auto i : s) ans.pb(i);
	for (auto i : ans) cout << i << " ";
}

signed main(){
	ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
	int tt = 1;
	cin >> tt;
	while (tt--){
		solve();
		cout << endl;
	}
}