Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.

### Instruction:

Convert text to sql: Find the claims that led to more than two settlements or have the maximum claim value. For each of them, return the date the claim was made and the id of the claim. | customers : customer_id , customer_details | customer_policies : policy_id , customer_id , policy_type_code , start_date , end_date | claims : claim_id , policy_id , date_claim_made , date_claim_settled , amount_claimed , amount_settled | settlements : settlement_id , claim_id , date_claim_made , date_claim_settled , amount_claimed , amount_settled , customer_policy_id | payments : payment_id , settlement_id , payment_method_code , date_payment_made , amount_payment | customer_policies.customer_id = customers.customer_id | claims.policy_id = customer_policies.policy_id | settlements.claim_id = claims.claim_id | payments.settlement_id = settlements.settlement_id | 

### Response:

select _ from _ group by _ having count ( _ ) > _ union select _ from _ where _ = ( select max ( _ ) from _ ) | select claims.date_claim_made , claims.claim_id from claims join settlements on claims.claim_id = settlements.claim_id group by claims.claim_id having count ( * ) > 2 union select claims.date_claim_made , claims.claim_id from claims join settlements on claims.claim_id = settlements.claim_id where claims.amount_claimed = ( select max ( amount_claimed ) from claims )