Split up queries file to distinct parts