Removed array flattening in QuerySpecification