ปีที่ Spirit Tom's Racing มีมากกว่า 3 แต้มคือปีใด?
What is the year when Spirit Tom's Racing had more than 3 points?
df = pd.DataFrame(columns=['year', 'entrant', 'points'])
df.loc[(df['entrant'] == "Spirit Tom's Racing") & (df['points'] > 3), 'year'].sum()