Task: Text to Code
Input (English): SQL: SELECT Count ( * ) FROM Templates WHERE Template_Type_Code = "PPT"
Feedback: I want table of documents.
Output (English): SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID  =  T2.Template_ID WHERE T2.Template_Type_Code  =  'PPT'