add query of table head