added simple query detection based on ; separating