Bug fix: sql compile method in Resources now uses queries to look for the certain query skeleton