+---------------+---------+
| Column Name | Type |
+---------------+---------+
| student\_id | int |
| course\_id | int |
| grade | int |
+---------------+---------+
(student\_id, course\_id) is the primary key of this table.
Write a SQL query to find the highest grade with its corresponding course for each student. In case of a tie, you should find the course with the smallest course_id. The output must be sorted by increasing student_id.
The query result format is in the following example: