Convert Numpy Array To Structured Query