restrain vs throw a spanner in the works

restrain

verb
  • To control or keep in check. 

  • To deprive of liberty. 

  • To strain again. 

  • To restrict or limit. 

throw a spanner in the works

verb
  • To introduce a problem, dilemma or obstacle, something unexpected or troublesome. 

How often have the words restrain and throw a spanner in the works occurred in a corpus of books? (source: Google Ngram Viewer )