Creating keyword records in a database This code is part of a data model used to create keyword records in a database.

if (_queue
    .OrderByDescending(record=&gt;record.Primary)
    .GroupBy(record=&gt;record.Term)
    .Select(record=&gt;record.First())
    .Select(Create)
    .Any(result=&gt;result &lt;= 0))
{
    throw new ModelException("Failed to create keyword record.");
}


While I can understand this, I was also thinking it was a little obfuscated.

Is the intent of this code clearly readable?
Definitely readable although I would just combine your two select statements and add some whitespace:

if (_queue.OrderByDescending(record =&gt; record.Primary)
          .GroupBy(record =&gt; record.Term)
          .Select(record =&gt; Create(record.First()))
          .Any(result =&gt; result &lt;= 0))
{
    throw new ModelException("Failed to create keyword record.");
}


As you see I also prefer to keep the first statement on the same line and indent the next statements to align with the linq statement.

One remark though: first you're ordering your records and then grouping them. Is this done deliberately? I would assume that you'd want to group first and then order, not in the least because you would have to order less elements. But then again: grouping might be more performant if you order it first so I'm not entirely sure.