fix relational keywords and json output