Nothing will work with your examples because they are invalid to begin with.
Try this untested:
(ssget "_X"
(list '(-4 . "<OR")
'(-4 . "<AND")
'(0 . "INSERT")
(cons 8 validlisttotal)
(cons 2 validlisttotalblocks)
'(-4 . "AND>")
'(-4 . "<AND")
'(0 . "LINE,ARC,LWPOLYLINE")
(cons 8 validlisttotal)
'(-4 . "AND>")
'(-4 . "OR>")
)
)