add queries and output. add tables to analysis