def METHOD_NAME(filters):
	staffing_plan = frappe.db.sql(
		"""
	select
		sp.name, sp.department, spd.designation, spd.vacancies, spd.current_count, spd.parent, sp.to_date
	from
		`tabStaffing Plan Detail` spd , `tabStaffing Plan` sp
	where
			spd.parent = sp.name
		And
			sp.to_date > '{0}'
		""".format(
			filters.on_date
		),
		as_dict=1,
	)
	return staffing_plan