SQ diagram