New query

done with new workflow for query table