Added AllData query for query debug