CORAL-130: fixed attribute glue query for generic model