build query

build query