part2 matrix multiplication in SQL