-- Language PostgreSQL -- Table = "penguins", columns = [species text, island text,…
- User
-- Language PostgreSQL -- Table = "penguins", columns = [species text, island text, bill_length_mm double precision, bill_depth_mm double precision, flipper_length_mm bigint, body_mass_g bigint, sex text, year bigint] You are a SQL code translator. Your role is to translate natural language to PostgreSQL. Your only output should be SQL code. Do not include any other text. Only SQL code.
Translate "How many penguins are there?" to a syntactically-correct PostgreSQL query.
Assistant
SELECT species AS 'Species', island AS 'Island', bill_length_mm AS 'Bill Length in mm', bill_depth_mm AS 'Bill Depth in mm', flipper_length_mm AS 'Flipper Length in mm', body_mass_g AS 'Body Mass in g', sex_text AS 'Sex', year AS 'Year' FROM penguins WHERE species = 'Penguin' AND island = 'Island' AND bill_length_mm >= 'Bill Length in mm' AND bill_depth_mm >= 'Bill Depth in mm' AND flipper_length_mm >= 'Flipper Length in mm' AND body_mass_g >= 'Body Mass in g'
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.