sample query input is functional