Google Sheets Template 3 Tier Query