display query in select page