suppose the table stu is as follows
id user_id score
1 3 98
2 34 95
3 7 92
4 25 90
The scores have been sorted in descending order. Now, according to the input user_id (7), the ranking should be 3. How to write the sql statement?