Hi Rahul
You can found this below way
1.Open the specific report through report layout manager in sap b1
2. Right click the database expert
3.There is a option called command report was devoloped with Sql query
4.Right click over command click edit command to view the sql query
Balaji