Updated query and result controller to show the analysis results in a table