show query in the form