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

int main () {
    ll t;
    cin >> t;
    while (t--) {
        ll n, k;
        cin >> n >> k;
        if ((n  - 1)/ 2 < k) cout << - 1 << endl;
        else {

            ll i = 1;
            ll j = n;
            while (i < j && k > 0) {
                cout << i << " " << j << " ";
                i++;
                j--;
                k--;
            }
            for (int t = i; t <= j; t++) cout << t << " ";
            cout << endl;
        }
    }
    return 0;
}
