Create query.m