Sample SOQL:
SELECT ValidationName, Active, EntityDefinition.DeveloperName FROM ValidationRule
Note:
When you use Developer Console, use Tooling API to query.
For more fields, check the below link