```
import pandas as pd
df = pd.DataFrame({'A': [1, 5, 3, 8, 7], 'B': [6, 2, 9, 4, 0]})
value = 4
# Get the indices that would sort column A in descending order
sorted_indices = df['A'].argsort()[::-1]
print("Sorted indices")
print(sorted_indices)
# Select the indices that correspond to the values that are greater than the given value
selected_indices = sorted_indices[df['A'][sorted_indices] > value]
print("Selected indices")
print(selected_indices)
```