reformat serql query for readability