redefine comp_row in query for clarity and brevity