"content":"<p>Table: <code>Patients</code></p>\n\n<pre>\n+--------------+---------+\n| Column Name | Type |\n+--------------+---------+\n| patient_id | int |\n| patient_name | varchar |\n| conditions | varchar |\n+--------------+---------+\npatient_id is the primary key for this table.\n'conditions' contains 0 or more code separated by spaces. \nThis table contains information of the patients in the hospital.\n</pre>\n\n<p> </p>\n\n<p>Write an SQL query to report the patient_id, patient_name all conditions of patients who have Type I Diabetes. Type I Diabetes always starts with <code>DIAB1</code> prefix</p>\n\n<p>Return the result table in <strong>any order</strong>.</p>\n\n<p>The query result format is in the following example.</p>\n\n<p> </p>\n<p><strong>Example 1:</strong></p>\n\n<pre>\n<strong>Input:</strong> \nPatients table:\n+------------+--------------+--------------+\n| patient_id | patient_name | conditions |\n+------------+--------------+--------------+\n| 1 | Daniel | YFEV COUGH |\n| 2 | Alice | |\n| 3 | Bob | DIAB100 MYOP |\n| 4 | George | ACNE DIAB100 |\n| 5 | Alain | DIAB201 |\n+------------+--------------+--------------+\n<strong>Output:</strong> \n+------------+--------------+--------------+\n| patient_id | patient_name | conditions |\n+------------+--------------+--------------+\n| 3 | Bob | DIAB100 MYOP |\n| 4 | George | ACNE DIAB100 | \n+------------+--------------+--------------+\n<strong>Explanation:</strong> Bob and George both have a condition that starts with DIAB1.\n</pre>\n",
"translatedTitle":"患某种疾病的患者",
"translatedContent":"<p>患者信息表: <code>Patients</code></p>\n\n<pre>\n+--------------+---------+\n| Column Name | Type |\n+--------------+---------+\n| patient_id | int |\n| patient_name | varchar |\n| conditions | varchar |\n+--------------+---------+\npatient_id (患者 ID)是该表的主键。\n'conditions' (疾病)包含 0 个或以上的疾病代码,以空格分隔。\n这个表包含医院中患者的信息。</pre>\n\n<p> </p>\n\n<p>写一条 SQL 语句,查询患有 I 类糖尿病的患者 ID (patient_id)、患者姓名(patient_name)以及其患有的所有疾病代码(conditions)。I 类糖尿病的代码总是包含前缀 <code>DIAB1</code> 。</p>\n\n<p>按 <strong>任意顺序</strong> 返回结果表。</p>\n\n<p>查询结果格式如下示例所示。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n<code><strong>输入:\n</strong>Patients表:</code>\n+------------+--------------+--------------+\n| patient_id | patient_name | conditions |\n+------------+--------------+--------------+\n| 1 | Daniel | YFEV COUGH |\n| 2 | Alice | |\n| 3 | Bob | DIAB100 MYOP |\n| 4 | George | ACNE DIAB100 |\n| 5 | Alain | DIAB201 |\n+------------+--------------+--------------+\n<strong>输出:</strong>\n+------------+--------------+--------------+\n| patient_id | patient_name | conditions |\n+------------+--------------+--------------+\n| 3 | Bob | DIAB100 MYOP |\n| 4 | George | ACNE DIAB100 | \n+------------+--------------+--------------+\n<strong>解释:</strong>Bob 和 George 都患有代码以 DIAB1 开头的疾病。</pre>\n",