Spaces:
Sleeping
Sleeping
root
fix: correct SQL input hint functionality and enhance interactive mode instructions in playground.html
5638dcf |
Download sql.md from root404onion/sql-agent: direct link, hf CLI and curl.
- Browser
- Download file 488 Bytes
-
https://huggingface.co/spaces/root404onion/sql-agent/resolve/main/sql.md
- Command line
-
hf download hf://spaces/root404onion/sql-agent/sql.md
-
curl -L -o sql.md https://huggingface.co/spaces/root404onion/sql-agent/resolve/main/sql.md
488 Bytes
RL - Answer
SELECT NAME, SALARY
FROM EMPLOYEES
ORDER BY SALARY DESC;
SELECT
d.NAME AS DEPARTMENT_NAME,
AVG(e.SALARY) AS AVG_SALARY
FROM
DEPARTMENTS d
JOIN
EMPLOYEES e ON d.ID = e.DEPARTMENT_ID
GROUP BY
d.NAME;
SELECT
e.NAME,
r.TITLE
FROM
EMPLOYEES e
JOIN
DEPARTMENTS d ON e.DEPARTMENT_ID = d.ID
JOIN
ROLES r ON r.TITLE = 'Senior'
WHERE
d.NAME = 'Engineering'
AND e.SALARY >= r.MIN_SALARY;