Added query for solution revision table