Student Report
3284076193@qq.com
//1. Create a “student” entity and attributes
CREATE
(zhangsan: Student {id:2024001, name: “Zhang San”, grade: “sophomore”}),
(lisi:Student {id:2024002, name: “Li Si”, grade: “freshman"}),
//2. Create a “course” entity and attributes
(ai:Course {code: “AI101", name: “AI General Knowledge”, credit: 2}),
(math: Course {code: “Math202", name: “Advanced Mathematics”, credit: 3}),
//3. Create a “teacher” entity and attributes
(Wang: Teacher {workID: 1001, name: “Teacher Wang”, title: “Associate Professor"}),
(li:teacher {workID: 1002, name: “teacher Li”, title: “teacher"}),
//4. Create an “elective” relationship (student → course)
zhangsan- [:takes] ->ai,
lisi- [:takes] ->math,
//5. Create a “teaching” relationship (teacher → course)
wang- [:] ->ai,
li- [:] ->math;