Separate query builder.