Structured motif scoring and positional joins