Fix sample query