Divide and conquer
Parse queries
Parse queries
Move query stuff out