You need to produce the required output by querying the database without using system stored procedures