flintlib / python-flint

Python bindings for Flint and Arb
MIT License
132 stars 27 forks source link

Compartir vía #243

Closed Juan5212 closed 2 weeks ago

Juan5212 commented 2 weeks ago

{ "id": 39325, "domain": "public health", "domain_description": "Community health statistics, infectious disease tracking data, healthcare access metrics, and public health policy analysis.", "sql_complexity": "aggregation", "sql_complexity_description": "aggregation functions (COUNT, SUM, AVG, MIN, MAX, etc.), and HAVING clause", "sql_task_type": "analytics and reporting", "sql_task_type_description": "generating reports, dashboards, and analytical insights", "sql_prompt": "What is the total number of hospital beds in each state?", "sql_context": "CREATE TABLE Beds (State VARCHAR(50), Beds INT); INSERT INTO Beds (State, Beds) VALUES ('California', 100000), ('Texas', 85000), ('New York', 70000);", "sql": "SELECT State, SUM(Beds) FROM Beds GROUP BY State;", "sql_explanation": "This query calculates the total number of hospital beds in each state in the Beds table. It does this by using the SUM function on the Beds column and grouping the results by the State column." }