In the mol-ecule of the title compound, C(17)H(15)N(5)O(3)S, the planar central heterocylic ring system is oriented with respect to the benzene and pyridine rings at dihedral angles of 6.61 (3) and 19.22 (3)°, respectively. An intra-molecular C-H⋯N hydrogen bond results in the formation of a six-membered ring, adopting a flattened boat conformation. In the crystal structure, inter-molecular C-H⋯N hydrogen bonds link the mol-ecules.