HF RL Explorer

Task: Return Results from a SELECT Query Inside a PostgreSQL Function

Task: Return Results from a SELECT Query Inside a PostgreSQL Function: a task in Terminal-Lego-15k (Harbor dataset). Create a PostgreSQL function that correctly returns the result of a SELECT query using RETURN QUERY . You must fix a broken PL/pgSQL function that calculates word frequency from a…

The task

Create a PostgreSQL function that correctly returns the result of a SELECT query using `RETURN QUERY`. You must fix a broken PL/pgSQL function that calculates word frequency from a token table, ensuring it properly returns a set of records.

Part of PrimeIntellect/Terminal-Lego-15k.