query beginning