Query to get raw code