By using F22, the picture will lose a lot of sharpness due to diffraction...
You should read up on these articles...
Diffraction: When Smaller Apertures No Longer Mean Sharper Pictures - Photo Tips @ Earthbound Light
Understanding Lens Diffraction
Beside the diffraction, where have you focused at? The hotel in the right appears sharper than the cathedral.
I was focusing at the cathedral, I was using S mode all the while..so when i bump up the anything above 10" the aperture too will go up. Above 20" i've got f22. Should have used M mode after reading all these advises. OK, i think i have some idea now..will keep tryout soon.