magnex query