Builds optimized SQL queries from plain-language requirements with explanation.
Write an optimized SQL query for the following requirement.
Database engine: [db_engine] What the query should do: [query_goal]
Relevant table schemas:
[schema]
Additional constraints:
Output:
Send to AI
0 / 128
0 / 1024
0 / 4096
0 / 256
0 / 256