Done: Reference lines for queries in custom groups