query function

Create a traktok query