InferenceAI

Enter at least two characters to search.

Start free

Slowest Model Endpoints

mediumSQL for AI20 min25 XP

From requests(endpoint, latency_ms, status), return endpoint and rounded integer avg_latency for successful rows only, ordered slowest first.

Examples

EXAMPLE WALKTHROUGHsuccessful latency

A guided view of the published example, not a trace of your code.

INPUT["CREATE TABLE requests(endpoint TEXT,latency_ms INT,status INT); INSERT INTO requests VALUES('embed',100,200),('embed',200,200),('chat',500,200),('chat',900,500);"]
TASKquery()
EXPECTED OUTPUT[["chat",500],["embed",150]]

Start with the input values shown in this example.

Input: CREATE TABLE requests(endpoint TEXT,latency_ms INT,status INT); INSERT INTO requests VALUES('embed',100,200),('embed',200,200),('chat',500,200),('chat',900,500);

Output: [["chat",500],["embed",150]]

Explanation: successful latency

Hint 1

Check column aliases and required ordering.

Topics

SQLAnalyticsAI Systems