93 Downloads Updated 4 months ago
walphi-sql is a customized variant of the phi-4 model designed by Alwaleed Alduais.
It specializes in generating strict, secure, and clean SQL Server queries from natural language prompts in Arabic or English.
This model is optimized for enterprise data platforms that require: - Strict schema enforcement - Permission-aware SQL generation - Direct execution without explanation or formatting
The model is ideal for: - Business Intelligence platforms - Data query bots - Secure dashboards - Role-based access control (RBAC) systems
To get the best results, use this format:
View name: Employees
Allowed columns:
[
{"name": "EmployeeID", "type": "int", "description": "Employee unique ID"},
{"name": "Department", "type": "varchar", "description": "Department name"},
{"name": "JoinDate", "type": "varchar", "description": "Date of joining"}
]
User question: ูู
ุนุฏุฏ ุงูู
ูุธููู ูู ูุณู
ุงูู
ูุงุฑุฏ ุงูุจุดุฑูุฉุ
or this version for english users
View name: Employees
Allowed columns:
[
{"name": "EmployeeID", "type": "int", "description": "Employee unique ID"},
{"name": "Department", "type": "varchar", "description": "Department name"},
{"name": "JoinDate", "type": "varchar", "description": "Date of joining"}
]
User question: How many employees are there in the HR department?
The model will return ONLY the corresponding SQL Server query (no comments, explanations, or formatting).
SELECT *TOP N (not LIMIT)WHERE, ORDER BY, GROUP BY, AGGREGATETRY_CAST(... AS DATE) for date comparisonsCreated by Alwaleed Alduais
GitHub: @AlwaleedAlduies
Built and published using Ollama.