have an affair vs sleep together

have an affair

verb
  • To engage in a romantic or sexual relationship while being married. 

sleep together

verb
  • To have sex with each other. 

  • To be intimate with each other in the same bed. 

  • Used other than figuratively or idiomatically: see sleep, together. 

How often have the words have an affair and sleep together occurred in a corpus of books? (source: Google Ngram Viewer )