Revert "Revert "Support PRAGMA for QueryN()""