Query changes to get columns