Rename `query` parameters to `q`

For internal and external consistency (Lobid, general convention)