Rectified the mistake in the Query