How to write DtSearchConverter, NotSpanQuery in elastic?

I saw a topic in this community which is helpful for combining queries with Boolean Query:

Is there a way to see other examples like I mentioned above working as combining nested queries?

  • QueryA AND NOT QueryB
  • QueryA OR NOT QueryB
  • QueryA w/50 NOT QueryB

Thanks