Added more documentation to queries