'Q' is an abbreviation for Quelle which is German for Source. It is a document (supposedly) where the writer of Luke and the writer of Matthew got their common material not in Mark. Not sure who first coined the term maybe Albert Schwitzer, someone correct me if I am wrong.