INPUT 
    SQL SERVER tables, with their properties: 
    Patient_table(PatientID int, PatientName, BirthDate datetime, Gender) 
    Visit_table(VisitID int, PatientID int, Admit_Date_Time datetime, Facility) 
    Diagnosis_table(DiagnosisID int, VisitID, Diagnosis_Code, Diagnosis_Name, Is_Chronic) 
    Result_table(PatientDID, VisitID, Result_Name, abnormality_code) 
    Medication_table(MedicationID int, PatientID, Medication_Name, NAME_1 int, Frequency varchare (80)) 
    
	INSTRUCTIONS 
    1. Write a single SQL query for the below input, and end the qeury with ";" 
    2. Always specify table aliases and use as prefix for used columns. The same column name can exist in more than one table, so we need to specify from which table we are selecting the column.
     aliases: Patient_table AS pt, Visit_table AS vt, Diagnosis_table AS dt, Result_table as rt, Medication_table AS mt
    3. Print the tables names to be used to construct the query. 
     join only needed tables
    
	Input: 
How many visits there are for each patient that was diagnosed with Sinusitis? The words with all capital letters should appear at least 12 times.
user