Prompt Details
Model
Completion - GPT-3.5 (text-davinci-003)
Token size
225 ($0.00450 / call)
Example input
Example Input
In my sql table named "film", there are columns named "film_id" , "title", "rating" and "length"
I would like to retrieve the film title with the shortest length
Example output
Example Output
'SQL Code:
SELECT title
FROM film
ORDER BY length ASC
LIMIT 1;
Explanation:
This code retrieves the film title with the shortest length from the film table.
The SELECT statement is used to retrieve the title from the film table.
The ORDER BY statement is used to order the results in ascending order by length.
The LIMIT statement is used to limit the results to the first row or top row, which will be the film with the shortest length.