add query section coding