report retrieve query