I tried to calculate this using Google Maps, but it would not give me directions ( and distance ) for RIyadh to Doha. You could try Google Maps or Google Earth.

The best I could get was from Qatar border to Doha is around 100kms. Don't know distance from Riyadh to Qatar Border though sorry.