solved multiply

core sql query:
SELECT * FROM(SELECT a.row_num, b.col_num, sum(a.value * b.value) FROM a, b WHERE a.col_num = b.row_num GROUP BY a.row_num, b.col_num) WHERE row_num=2 and col_num=3