adding tabelar output to reusulting query