import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; import java.lang.*; class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); int Q = in.nextInt(); for(int q = 0 ; q < Q ; q++) { int len = in.nextInt(); long c = in.nextLong(); LinkedList al = new LinkedList(); if(len%2==0) { for(int i = 0 ; i < len ; i++) { al.addFirst(i+1); } } else { al.add(1); for(int i = 1 ; i < len ; ) { al.addFirst(i+1); i++; al.addLast(i+1); i++; } } if(c>=len*len) { System.out.println("-1"); System.exit(0); } else { for(int i = 0 ; i < al.size() ; i++) { System.out.print(al.get(i)+" "); } } System.out.println(); } } }