working query displayed