How to get SQL Server Version using a Query

Write the below query
 
SELECT @@Version AS 'SQL Server Version'
sql query