period query