add query sample