Fix external constraint application on complex query with description
and code