Prepare for query language