Relevant tags query written. Needs testing.