Can Large Language Models Logically Predict Myocardial Infarction? Evaluation based on UK Biobank Cohort