working query page