Numpy Array Indexing With Sql