using namespace std;
#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <iomanip>
#include <cmath>
#include <fstream>
#include <queue>
#include <deque>
#include <unordered_set>
#include <cstring>  
#include <set>  


int main() {
    ios::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    long long T;
    cin >> T;
    while (T--) {
        long long n, k;
        cin >> n >> k;
        if ((n / 2) - (n % 2 == 0) < k) {
            cout << -1 << endl;
        }
        else {
            for (long long j = 1, m = n, i = 1; i <= n; i++) {
                if (k > 0 and i % 2 == 0) {
                    cout << m << " ";
                    m--;
                    k--;
                    continue;
                }
                cout << j << " ";
                j++;

            }
            cout << endl;
        }

    }




    return 0;
}