Write SQL query to solve given problem: List the full names, religions, and parties of legislators who have served in Maine.. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT T1.official_full_name, T2.relation, T2.party FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.state = 'ME' GROUP BY T1.official_full_name, T2.relation, T2.party