Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
12
12
prompt
stringlengths
100
335
format
stringclasses
5 values
schema_description
stringlengths
20
62
completion
stringlengths
134
1.27k
domain
stringclasses
17 values
difficulty
stringclasses
3 values
num_fields
int64
2
11
9bff5c5f81bb
Write a YAML config for a Kubernetes Deployment of an nginx container with 3 replicas, a CPU request of 100m and limit of 500m, memory request of 128Mi and limit of 256Mi, and a readiness probe on port 80 path /healthz.
yaml
Kubernetes Deployment with resource limits and readiness probe
apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment spec: replicas: 3 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.27 resources: requests: ...
software
hard
6
e1abcbd31005
Return a CSV table of 5 employees with columns: employee_id, first_name, last_name, department, title, salary_usd, hire_date.
csv
Employee table, 5 rows
employee_id,first_name,last_name,department,title,salary_usd,hire_date EMP-001,Alice,Tran,Engineering,Senior Software Engineer,125000,2021-03-15 EMP-002,David,Okoye,Marketing,Marketing Manager,95000,2019-07-22 EMP-003,Sofia,MΓΌller,Finance,Financial Analyst,88000,2022-01-10 EMP-004,James,Park,Engineering,DevOps Engineer...
hr
easy
7
197d6ba85167
Produce a Markdown table of Git commands. Columns: Command, Category, Description. Include at least 10 commands spanning init/clone, branching, staging, committing, remote, and history.
markdown_table
Git command reference, 10+ rows
| Command | Category | Description | |---|---|---| | `git init` | Setup | Initialize a new local repository | | `git clone <url>` | Setup | Clone a remote repository locally | | `git branch <name>` | Branching | Create a new branch | | `git checkout -b <name>` | Branching | Create and switch to a new branch | | `git me...
software
medium
3
0ce6bb5cf191
Produce an XML configuration for a Maven project (pom.xml). Include: groupId, artifactId, version, packaging, a Java 17 compiler plugin, and two dependencies: spring-boot-starter-web and spring-boot-starter-test.
xml
Maven pom.xml with dependencies and plugin
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>c...
software
hard
5
9f4eaa62944c
Return a JSON object for a fitness workout session. Include: session_id, user_id, date, workout_type, duration_min, calories_burned, heart_rate_avg_bpm, heart_rate_max_bpm, exercises (array of objects with name, sets, reps, weight_kg β€” use null for cardio), and notes.
json
Fitness workout session log
{ "session_id": "WRK-20241101-2241", "user_id": "usr_f8a2c341", "date": "2024-11-01", "workout_type": "strength_training", "duration_min": 55, "calories_burned": 410, "heart_rate_avg_bpm": 138, "heart_rate_max_bpm": 172, "exercises": [ {"name": "Barbell Squat", "sets": 4, "reps": 6, "weight_kg": 1...
health
hard
9
00cac3b4045d
Produce a CSV of 4 software products with columns: product_id, name, category, price_usd, rating_out_of_5, reviews_count, available.
csv
Software product listing, 4 rows
product_id,name,category,price_usd,rating_out_of_5,reviews_count,available PROD-101,DataSync Pro,Data Integration,299.00,4.7,1842,true PROD-102,SecureVault,Security,149.00,4.5,903,true PROD-103,ReportBuilder,Analytics,199.00,4.2,451,false PROD-104,CloudBackup X,Storage,79.00,4.8,3204,true
ecommerce
easy
7
b47d7ed18538
Generate a JSON configuration for a Postgres database connection pool. Include: host, port, database, user, password (masked), ssl_mode, pool_min_size, pool_max_size, connection_timeout_ms, and idle_timeout_ms.
json
Database connection pool config
{ "host": "db.internal.example.com", "port": 5432, "database": "orders_prod", "user": "svc_orders", "password": "***", "ssl_mode": "require", "pool_min_size": 5, "pool_max_size": 20, "connection_timeout_ms": 3000, "idle_timeout_ms": 60000 }
software
medium
10
96dcd4074dc2
Generate a JSON response for a geolocation API. Include: ip, city, region, country_name, country_code, latitude, longitude, timezone, isp, and is_vpn.
json
IP geolocation API response
{ "ip": "85.214.132.117", "city": "Berlin", "region": "Berlin", "country_name": "Germany", "country_code": "DE", "latitude": 52.5200, "longitude": 13.4050, "timezone": "Europe/Berlin", "isp": "Hetzner Online GmbH", "is_vpn": false }
software
easy
10
0dca6506b5e8
Generate a JSON object for a student grade record. Include: student_id, name, course_code, grade_letter, grade_points (GPA scale), semester, and year.
json
Student grade record
{ "student_id": "STU-204517", "name": "Amara Osei", "course_code": "CS301", "grade_letter": "A-", "grade_points": 3.7, "semester": "Fall", "year": 2024 }
education
easy
7
1b2bcfee5731
Produce a YAML configuration for a multi-environment deploy pipeline. Define three environments: development, staging, production. Each should have: cluster, namespace, image_tag_strategy (latest/semver/sha), autoscaling (min_replicas, max_replicas), and requires_approval (boolean).
yaml
Multi-environment deploy config
environments: development: cluster: dev-cluster namespace: dev image_tag_strategy: latest autoscaling: min_replicas: 1 max_replicas: 2 requires_approval: false staging: cluster: staging-cluster namespace: staging image_tag_strategy: sha autoscaling: min_replica...
software
medium
5
f5de677f749d
Create a JSON object for a social media post. Include: post_id, author (object with user_id and handle), content, created_at, likes_count, repost_count, reply_count, hashtags (array), and media_attachments (array of objects with type and url).
json
Social media post with nested author and media
{ "post_id": "post_93f2a8d1", "author": { "user_id": "usr_44812", "handle": "@tech_writer_kai" }, "content": "Just published a deep-dive into vector databases and semantic search. Link in bio! πŸ”", "created_at": "2024-11-01T16:05:00Z", "likes_count": 284, "repost_count": 61, "reply_count": 33, ...
social
hard
9
916ecb95425f
Return JSON for a weather observation. Include: station_id, location (city and country), observed_at (ISO 8601), temperature_c, humidity_pct, wind_speed_kmh, and condition.
json
Weather observation object with nested location
{ "station_id": "WS-EU-4421", "location": { "city": "Amsterdam", "country": "Netherlands" }, "observed_at": "2024-11-01T12:00:00Z", "temperature_c": 9.4, "humidity_pct": 78, "wind_speed_kmh": 22.5, "condition": "Partly Cloudy" }
iot
medium
7
846d0db654c1
Write an XML SVG element representing a simple bar chart with 3 bars for values 40, 70, and 55. Include a viewBox, rect elements for the bars, and text labels below each bar.
xml
SVG bar chart markup
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 120"> <!-- Bars --> <rect x="20" y="60" width="40" height="40" fill="#4A90D9"/> <rect x="80" y="20" width="40" height="80" fill="#4A90D9"/> <rect x="140" y="45" width="40" height="55" fill="#4A90D9"/> <!-- Labels --> <text x="40" y="115" text-a...
software
medium
4
09163478a46e
Return a CSV of 4 IoT sensor readings from a smart factory floor. Columns: sensor_id, sensor_type, machine_id, timestamp, value, unit, threshold, alert.
csv
IoT factory sensor readings, 4 rows
sensor_id,sensor_type,machine_id,timestamp,value,unit,threshold,alert SNS-A01,temperature,MCH-001,2024-11-01T08:00:00Z,72.4,celsius,80,false SNS-A02,vibration,MCH-001,2024-11-01T08:00:00Z,4.8,mm/s,5.0,false SNS-B01,pressure,MCH-002,2024-11-01T08:00:00Z,112.3,psi,100,true SNS-C01,humidity,MCH-003,2024-11-01T08:00:00Z,68...
iot
medium
8
3bd243f96149
Return JSON for a flight search result. Include: search_id, origin_iata, destination_iata, outbound_date, results (array of 3 flight options each with: flight_number, airline, departure_time, arrival_time, duration_min, stops, price_usd, cabin_class, seats_left).
json
Flight search results with 3 options
{ "search_id": "FLT-SEARCH-9921", "origin_iata": "JFK", "destination_iata": "LHR", "outbound_date": "2024-12-05", "results": [ { "flight_number": "BA 178", "airline": "British Airways", "departure_time": "2024-12-05T22:15:00", "arrival_time": "2024-12-06T10:05:00", "duration_...
logistics
hard
9
aa9964258ea8
Generate a Markdown table for a weekly employee schedule. Columns: Employee, Monday, Tuesday, Wednesday, Thursday, Friday. Include 5 employees with shifts like '09:00-17:00', 'Remote', 'Off', or 'Half-day'.
markdown_table
Weekly work schedule for 5 employees
| Employee | Monday | Tuesday | Wednesday | Thursday | Friday | |---|---|---|---|---|---| | Alice Tran | 09:00–17:00 | 09:00–17:00 | Remote | 09:00–17:00 | Half-day | | Bob Nkosi | Remote | 09:00–17:00 | 09:00–17:00 | Off | 09:00–17:00 | | Carmen LΓ³pez | 09:00–17:00 | Off | 09:00–17:00 | Remote | 09:00–17:00 | | David ...
hr
easy
6
f29bc622602c
Produce a Markdown table of HTTP status codes. Include: code, name, category, and a brief description. Cover 200, 201, 301, 400, 401, 403, 404, 409, 422, 429, 500, 503.
markdown_table
HTTP status code reference table, 12 rows
| Code | Name | Category | Description | |---|---|---|---| | 200 | OK | 2xx Success | Request succeeded | | 201 | Created | 2xx Success | Resource created successfully | | 301 | Moved Permanently | 3xx Redirection | Resource has a new permanent URL | | 400 | Bad Request | 4xx Client Error | Malformed request syntax | |...
software
easy
4
7a3084992e7a
Produce a Markdown changelog table for a software library v2.4.0 release. Columns: Type (Added/Changed/Fixed/Deprecated), Component, Description. Include at least 8 rows.
markdown_table
Software changelog for v2.4.0
| Type | Component | Description | |---|---|---| | Added | Auth | Support for PKCE flow in OAuth2 client | | Added | API Client | Retry middleware with exponential backoff | | Added | Logging | Structured JSON log output via `log_format=json` option | | Changed | HTTP | Default request timeout increased from 5s to 30s ...
software
hard
3
39cc0715f21e
Write a YAML representation of a podcast episode. Include: episode_id, podcast_name, episode_title, episode_number, season, host, guests (list with name and bio_url), published_date, duration_min, topics (list), and audio_url.
yaml
Podcast episode metadata
episode_id: "EP-S04E12" podcast_name: "The AI Practitioner" episode_title: "Fine-Tuning LLMs on a Budget: What Actually Works" episode_number: 12 season: 4 host: "Naomi Adeyemi" guests: - name: "Dr. Liang Wu" bio_url: "https://ailab.example.edu/people/liang-wu" - name: "Marco Ferretti" bio_url: "https://mar...
media
medium
10
00e45375c17e
Generate a JSON object representing a product in an e-commerce catalog. Include: product_id, name, price_usd, currency, in_stock, and a list of tags.
json
Product catalog item with tags array
{ "product_id": "SKU-7821", "name": "Wireless Noise-Cancelling Headphones", "price_usd": 149.99, "currency": "USD", "in_stock": true, "tags": ["electronics", "audio", "wireless", "noise-cancelling"] }
ecommerce
easy
6
0b8f78d3ec02
Create a JSON Web Token (JWT) payload (the claims object, not the encoded string) for a user session. Include: iss, sub, aud, iat, exp, jti, and custom claims: roles (array) and org_id.
json
JWT claims payload object
{ "iss": "https://auth.example.com", "sub": "usr_f8a2c341", "aud": "https://api.example.com", "iat": 1730462400, "exp": 1730466000, "jti": "jwt_9d3b8c1e-f7a2-4e51-b901-2c8d3f9a0e4b", "roles": ["editor", "viewer"], "org_id": "org_88120" }
software
medium
8
27c429c5a358
Generate a YAML config for a Celery task queue. Include: broker_url, result_backend, task_serializer, result_serializer, timezone, task_routes (map 2 task names to queues), and beat_schedule (one daily task named 'generate-report' running at 06:00 UTC).
yaml
Celery configuration with task routes and beat schedule
broker_url: "redis://redis:6379/0" result_backend: "redis://redis:6379/1" task_serializer: json result_serializer: json timezone: UTC task_routes: tasks.email.send_welcome: email_queue tasks.reports.generate: reports_queue beat_schedule: generate-report: task: tasks.reports.generate schedule: type...
software
hard
7
a66201847efd
Return a JSON object for a user profile with fields: id, username, email, created_at, and is_active.
json
User profile object with 5 fields
{ "id": 1042, "username": "jsmith", "email": "jsmith@example.com", "created_at": "2024-03-15T08:30:00Z", "is_active": true }
software
easy
5
bb6c052b13ba
Create a JSON object representing a music track in a streaming platform. Include: track_id, title, artist (name and id), album (title and id), duration_ms, genre, release_date, explicit, play_count, and audio_features (tempo_bpm, key, energy 0-1, danceability 0-1).
json
Music track with nested audio features
{ "track_id": "TRK-9921847", "title": "Neon Cascade", "artist": { "name": "Solaris Wave", "id": "ART-44120" }, "album": { "title": "Future Frequencies", "id": "ALB-7721" }, "duration_ms": 214800, "genre": "synthwave", "release_date": "2024-09-15", "explicit": false, "play_count": 4...
media
hard
10
f05b9cbfe284
Generate a CSV of server monitoring metrics for 4 servers. Columns: server_id, hostname, cpu_usage_pct, memory_usage_pct, disk_usage_pct, network_in_mbps, network_out_mbps, alert_level (ok/warn/critical), sampled_at.
csv
Server monitoring metrics, 4 rows
server_id,hostname,cpu_usage_pct,memory_usage_pct,disk_usage_pct,network_in_mbps,network_out_mbps,alert_level,sampled_at SRV-01,web-prod-01,24.5,62.1,45.3,120.4,88.2,ok,2024-11-01T14:00:00Z SRV-02,web-prod-02,81.3,87.6,47.1,145.2,110.8,critical,2024-11-01T14:00:00Z SRV-03,db-primary,55.7,78.4,68.9,45.0,12.3,warn,2024-1...
software
medium
9
e409e57162fe
Create a JSON response for a REST API health check endpoint. Include service name, status (healthy/degraded/down), version, uptime_seconds, and timestamp.
json
API health-check response
{ "service": "payment-gateway", "status": "healthy", "version": "2.4.1", "uptime_seconds": 863412, "timestamp": "2024-11-01T14:22:05Z" }
software
easy
5
36e62bd530ff
Produce a JSON object for a bank transaction record. Fields: transaction_id, account_from, account_to, amount, currency, type (debit/credit/transfer), and timestamp.
json
Bank transaction record
{ "transaction_id": "TXN-20241101-998812", "account_from": "ACC-001-882234", "account_to": "ACC-002-117765", "amount": 2500.00, "currency": "USD", "type": "transfer", "timestamp": "2024-11-01T09:15:33Z" }
finance
easy
7
270d10f5f616
Write a Markdown table comparing four sorting algorithms: Bubble Sort, Merge Sort, Quick Sort, and Heap Sort. Columns: Algorithm, Best Case, Average Case, Worst Case, Space Complexity, Stable.
markdown_table
Sorting algorithm complexity comparison
| Algorithm | Best Case | Average Case | Worst Case | Space Complexity | Stable | |---|---|---|---|---|---| | Bubble Sort | O(n) | O(nΒ²) | O(nΒ²) | O(1) | Yes | | Merge Sort | O(n log n) | O(n log n) | O(n log n) | O(n) | Yes | | Quick Sort | O(n log n) | O(n log n) | O(nΒ²) | O(log n) | No | | Heap Sort | O(n log n) | O...
education
medium
6
02f9aa08fb4d
Write a Markdown table comparing five SQL aggregate functions: COUNT, SUM, AVG, MIN, MAX. Columns: Function, Description, Ignores NULLs, Returns, Example.
markdown_table
SQL aggregate functions reference table
| Function | Description | Ignores NULLs | Returns | Example | |---|---|---|---|---| | `COUNT(*)` | Count all rows | No | Integer | `SELECT COUNT(*) FROM orders` | | `SUM(col)` | Sum of numeric column | Yes | Numeric | `SELECT SUM(amount) FROM sales` | | `AVG(col)` | Arithmetic mean | Yes | Numeric | `SELECT AVG(score)...
software
easy
5
2aeacdddf114
Write an XML document for an IoT device heartbeat message. Include: device_id, device_type, firmware_version, timestamp, battery_level_pct, signal_strength_dbm, sensors (list of sensor elements with id and status), and location (lat, lon).
xml
IoT device heartbeat XML message
<?xml version="1.0" encoding="UTF-8"?> <heartbeat> <device_id>DEV-IOT-8812</device_id> <device_type>environmental_monitor</device_type> <firmware_version>3.2.1</firmware_version> <timestamp>2024-11-01T14:00:00Z</timestamp> <battery_level_pct>74</battery_level_pct> <signal_strength_dbm>-62</signal_strength_d...
iot
medium
8
651a6471d312
Return JSON for a machine learning model card summary. Include: model_name, version, architecture, task, training_dataset, metrics (object with accuracy, f1, precision, recall), license, and limitations (array of strings).
json
ML model card summary with nested metrics
{ "model_name": "sentiment-classifier-v2", "version": "2.1.0", "architecture": "DistilBERT", "task": "text-classification", "training_dataset": "sst2", "metrics": { "accuracy": 0.927, "f1": 0.924, "precision": 0.921, "recall": 0.928 }, "license": "apache-2.0", "limitations": [ "Tra...
ai
medium
8
14b74f1a8592
Create a Markdown results table for a benchmark comparing three LLM inference backends (vLLM, TGI, LiteLLM) on: throughput (tokens/sec), latency P50 (ms), latency P99 (ms), GPU memory (GB), and max concurrent requests.
markdown_table
LLM inference backend benchmark table
| Backend | Throughput (tok/s) | Latency P50 (ms) | Latency P99 (ms) | GPU Memory (GB) | Max Concurrent | |---|---|---|---|---|---| | vLLM | 3,840 | 128 | 410 | 18.2 | 512 | | TGI | 2,970 | 165 | 520 | 16.8 | 256 | | LiteLLM | 1,820 | 243 | 780 | 14.1 | 128 |
ai
hard
6
8b0706e63257
Produce an XML representation of a university course enrollment. Include: enrollment_id, course (code, title, semester), student (id, name, email), enrollment_date, and status.
xml
Course enrollment XML record
<?xml version="1.0" encoding="UTF-8"?> <enrollment> <enrollment_id>ENR-20241101-44821</enrollment_id> <course> <code>CS401</code> <title>Distributed Systems</title> <semester>Fall 2024</semester> </course> <student> <id>STU-204517</id> <name>Amara Osei</name> <email>aosei@university.edu<...
education
medium
6
38a59641e577
Produce a YAML OpenAPI 3.0 info block and a single GET /users/{id} path definition with a 200 response returning a User schema object (id, name, email) and a 404 response.
yaml
OpenAPI path definition with response schemas
openapi: "3.0.3" info: title: User Service API version: "1.0.0" paths: /users/{id}: get: summary: Get user by ID parameters: - name: id in: path required: true schema: type: integer responses: "200": description: User found...
software
hard
4
2b9dc3797a06
Write an XML document for a news feed item following the RSS 2.0 channel item spec. Include: title, link, description, pubDate (RFC 822), author, category, guid (isPermaLink=true), and enclosure (audio file).
xml
RSS 2.0 channel item element
<item> <title>LLMs in Production: Lessons from 12 Months of Deployment</title> <link>https://blog.example.com/llms-in-production-lessons</link> <description>Real-world observations on latency, cost, and reliability when running large language models at scale.</description> <pubDate>Fri, 01 Nov 2024 08:00:00 +00...
media
hard
7
28848d0753b9
Create a YAML config for a Grafana dashboard panel: a time-series chart titled 'Request Rate' showing rate of HTTP requests over 5 minutes, y-axis labeled 'req/s', legend at bottom, with two PromQL targets: total requests and 5xx errors.
yaml
Grafana panel definition in YAML
title: "Request Rate" type: timeseries datasource: prometheus fieldConfig: defaults: unit: reqps options: legend: placement: bottom targets: - expr: "sum(rate(http_requests_total[5m]))" legendFormat: "Total Requests" refId: A - expr: "sum(rate(http_requests_total{status=~"5.."}[5m]))" le...
software
hard
5
92c6eb51e095
Generate a CSV of daily stock prices for a fictional company 'TechCo' for 5 business days. Columns: date, open, high, low, close, volume.
csv
OHLCV stock price table, 5 rows
date,open,high,low,close,volume 2024-10-28,142.30,145.80,141.50,144.60,8234500 2024-10-29,144.70,147.20,143.90,146.50,7891200 2024-10-30,146.40,148.10,145.20,147.80,9102300 2024-10-31,147.90,149.50,146.80,148.30,6754800 2024-11-01,148.20,151.00,147.60,150.75,10234100
finance
easy
6
983d572de65c
Return a CSV table of 5 patients' lab results with columns: patient_id, test_name, result_value, unit, reference_range, status (normal/abnormal), collected_at.
csv
Patient lab results table, 5 rows
patient_id,test_name,result_value,unit,reference_range,status,collected_at PAT-001,Hemoglobin,13.8,g/dL,12.0-17.5,normal,2024-11-01T08:30:00Z PAT-001,Blood Glucose,112,mg/dL,70-99,abnormal,2024-11-01T08:30:00Z PAT-002,Creatinine,1.1,mg/dL,0.6-1.2,normal,2024-11-01T09:15:00Z PAT-002,TSH,0.4,mIU/L,0.4-4.0,normal,2024-11-...
healthcare
medium
7
65e2afcb5f06
Create a Markdown table comparing Python, JavaScript, Go, and Rust across: typing system, primary use case, garbage collected (yes/no), compiled (yes/no), concurrency model, and package manager.
markdown_table
Programming language comparison across 6 attributes
| Attribute | Python | JavaScript | Go | Rust | |---|---|---|---|---| | Typing System | Dynamic | Dynamic | Static | Static | | Primary Use Case | Data science / scripting | Web / fullstack | Backend / cloud | Systems / performance | | Garbage Collected | Yes | Yes | Yes | No | | Compiled | No (interpreted) | No (JIT i...
software
medium
7
5cbc4fae2dfe
Return a CSV table of 5 recipes with columns: recipe_id, name, cuisine, prep_time_min, cook_time_min, servings, difficulty, calories_per_serving.
csv
Recipe index table, 5 rows
recipe_id,name,cuisine,prep_time_min,cook_time_min,servings,difficulty,calories_per_serving REC-001,Shakshuka,Middle Eastern,10,20,2,easy,340 REC-002,Beef Bulgogi,Korean,90,15,4,medium,420 REC-003,Risotto ai Funghi,Italian,10,35,4,medium,510 REC-004,Pad See Ew,Thai,15,10,2,easy,580 REC-005,Beef Wellington,British,45,45...
food
easy
8
ad264dc44fc0
Create a JSON object for a legal case filing. Include: case_id, court, jurisdiction, filing_date, case_type (civil/criminal/administrative), plaintiff (name and counsel_name), defendant (name and counsel_name), charges (array), status, and next_hearing_date.
json
Legal case filing record
{ "case_id": "2024-CV-00441", "court": "Superior Court of California", "jurisdiction": "San Francisco County", "filing_date": "2024-10-15", "case_type": "civil", "plaintiff": { "name": "TechNova Inc.", "counsel_name": "Miranda Vasquez, Esq." }, "defendant": { "name": "DataBridge LLC", "c...
legal
medium
10
ccd91e1595e1
Produce an XML document for an employee performance review. Include: review_id, review_period (year, quarter), employee (id, name, title, department), reviewer (id, name), ratings (array of category elements with name and score out of 5), overall_score, and comments.
xml
Employee performance review XML
<?xml version="1.0" encoding="UTF-8"?> <performance_review> <review_id>REV-20241101-0042</review_id> <review_period> <year>2024</year> <quarter>Q3</quarter> </review_period> <employee> <id>EMP-001</id> <name>Alice Tran</name> <title>Senior Software Engineer</title> <department>Engineerin...
hr
hard
8
cc07cafab6e5
Produce a CSV of 4 marathon race results. Columns: bib_number, runner_name, country, age_group, finish_time, pace_per_km, overall_rank, age_group_rank.
csv
Marathon race results, 4 rows
bib_number,runner_name,country,age_group,finish_time,pace_per_km,overall_rank,age_group_rank 1042,Amara Diallo,Kenya,M30-39,2:08:14,3:03,1,1 2281,Zhang Wei,China,M30-39,2:11:47,3:08,2,2 3312,Sofia Eriksson,Sweden,F25-29,2:29:33,3:33,3,1 4421,Carlos Herrera,Mexico,M40-49,2:35:18,3:41,4,1
sports
medium
8
5c9c2fc7e728
Create a JSON payload for a shipment tracking event. Include: tracking_number, carrier, origin and destination (each with city, state, country), current_status, estimated_delivery, events (array of at least 3 objects with timestamp, location, description).
json
Shipment tracking with nested events array
{ "tracking_number": "1Z999AA10123456784", "carrier": "UPS", "origin": {"city": "Louisville", "state": "KY", "country": "US"}, "destination": {"city": "Boston", "state": "MA", "country": "US"}, "current_status": "In Transit", "estimated_delivery": "2024-11-03", "events": [ { "timestamp": "2024-1...
logistics
hard
7
ab51b41f5a85
Return JSON for a Kubernetes pod spec summary. Include: pod_name, namespace, node, status, restart_count, containers (array with name, image, cpu_limit, memory_limit), and created_at.
json
Kubernetes pod with nested containers array
{ "pod_name": "api-server-7d9f8b-xkz4p", "namespace": "production", "node": "worker-node-03", "status": "Running", "restart_count": 2, "containers": [ { "name": "api-server", "image": "myorg/api-server:1.8.3", "cpu_limit": "500m", "memory_limit": "512Mi" } ], "created_at"...
software
medium
7
ae0f03646d31
Write a YAML representation of a school course. Include: course_code, title, instructor (name, email), credits, schedule (days as list, time, room), prerequisites (list of course codes), and learning_objectives (list of 3 strings).
yaml
School course definition with nested schedule
course_code: CS401 title: "Distributed Systems" instructor: name: "Prof. Lena Hartmann" email: lhartmann@university.edu credits: 4 schedule: days: - Monday - Wednesday time: "14:00-15:30" room: "Engineering Hall 302" prerequisites: - CS301 - CS220 learning_objectives: - Understand CAP theorem an...
education
medium
7
4aafcdd2331e
Write a YAML file for a Helm values override for a Redis deployment. Set the replica count to 3, enable password auth with a secret reference, set resource requests/limits (cpu and memory), and enable persistence with a 10Gi PVC.
yaml
Helm values override for Redis
replicaCount: 3 auth: enabled: true existingSecret: redis-password-secret existingSecretPasswordKey: redis-password resources: requests: cpu: "250m" memory: "256Mi" limits: cpu: "500m" memory: "512Mi" persistence: enabled: true size: 10Gi storageClass: standard
software
hard
6
3dcb9e7e9239
Generate a JSON configuration for an OAuth2 client registration. Include: client_id, client_secret (masked), grant_types (array), redirect_uris (array), scopes (array), and token_endpoint_auth_method.
json
OAuth2 client registration config
{ "client_id": "client_9f3a2e8b", "client_secret": "***REDACTED***", "grant_types": ["authorization_code", "refresh_token"], "redirect_uris": [ "https://app.example.com/callback", "https://app.example.com/silent-refresh" ], "scopes": ["openid", "profile", "email", "offline_access"], "token_endpoin...
software
medium
6
6f372b3e9f12
Return a JSON event object for a calendar application. Include: event_id, title, description, organizer (name, email), attendees (array with name, email, rsvp_status), start_time, end_time, timezone, location (address and optional meeting_url), recurrence (null for non-recurring), and reminders (array with method and m...
json
Calendar event with attendees, location, and reminders
{ "event_id": "evt_8f3c1a92", "title": "Q4 Planning Kickoff", "description": "Review OKRs and resource allocation for Q4 2024.", "organizer": { "name": "Alice Tran", "email": "alice.tran@example.com" }, "attendees": [ {"name": "Bob Nkosi", "email": "b.nkosi@example.com", "rsvp_status": "accepted...
software
hard
10
ab5fac242bc8
Return a JSON object for an employee payroll record. Include: employee_id, full_name, department, pay_period (start and end dates), gross_pay_usd, deductions (object with federal_tax, state_tax, social_security, medicare, health_insurance), and net_pay_usd.
json
Payroll record with nested deductions breakdown
{ "employee_id": "EMP-30047", "full_name": "Priya Chandrasekaran", "department": "Engineering", "pay_period": { "start": "2024-10-16", "end": "2024-10-31" }, "gross_pay_usd": 4166.67, "deductions": { "federal_tax": 625.00, "state_tax": 208.33, "social_security": 258.33, "medicare":...
hr
hard
7
311d02cd9df5
Produce a JSON schema for a paginated API response. The wrapper should include: page, per_page, total_items, total_pages, and a data array. Put two placeholder user objects in data (id, name, role).
json
Paginated API envelope with nested user records
{ "page": 1, "per_page": 2, "total_items": 87, "total_pages": 44, "data": [ {"id": 1, "name": "Alice Tran", "role": "admin"}, {"id": 2, "name": "Bob Nkosi", "role": "viewer"} ] }
software
medium
5
8c1835dc9b05
Write an XML Atom feed for a tech blog. Include the feed title, link, updated timestamp, and two entry elements each with title, link, id, updated, summary, and author.
xml
Atom syndication feed with two entries
<?xml version="1.0" encoding="UTF-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> <title>Tech Insights Blog</title> <link href="https://blog.example.com" rel="alternate"/> <updated>2024-11-01T16:00:00Z</updated> <id>urn:uuid:60a76c80-d399-11d9-b93c-0003939e0af6</id> <entry> <title>Understanding Vector Da...
software
hard
6
f6cf89aefb66
Generate a Markdown table for a product feature matrix. Rows are features; columns are plan tiers: Free, Starter, Pro, Enterprise. Features: API access, Seats, Storage, SLA uptime, SSO, Audit logs, Custom integrations, Dedicated support.
markdown_table
SaaS feature matrix across 4 tiers and 8 features
| Feature | Free | Starter | Pro | Enterprise | |---|---|---|---|---| | API Access | Read-only | Full | Full | Full | | Seats | 1 | 5 | 25 | Unlimited | | Storage | 1 GB | 20 GB | 100 GB | Unlimited | | SLA Uptime | None | 99.5% | 99.9% | 99.99% | | SSO | βœ— | βœ— | βœ“ | βœ“ | | Audit Logs | βœ— | 30 days | 1 year | Unlimited ...
ecommerce
hard
5
6c15068fe405
Create an XML invoice document. Include: invoice number, issue date, due date, seller info (name, address), buyer info (name, address), line items (at least 3, each with description, quantity, unit_price, total), subtotal, tax_rate, tax_amount, and grand_total.
xml
Structured invoice with line items
<?xml version="1.0" encoding="UTF-8"?> <invoice> <invoice_number>INV-2024-10042</invoice_number> <issue_date>2024-11-01</issue_date> <due_date>2024-11-15</due_date> <seller> <name>Acme Software Ltd.</name> <address>12 Tech Park, London, EC1A 1BB, UK</address> </seller> <buyer> <name>Buildcorp ...
finance
hard
10
c970feecfeeb
Create a Markdown table of time zones. Columns: Timezone Name, UTC Offset, DST Observed, Major Cities. Include 8 timezones spanning all regions.
markdown_table
World time zones reference table
| Timezone Name | UTC Offset | DST Observed | Major Cities | |---|---|---|---| | Pacific/Honolulu | UTC-10 | No | Honolulu | | America/Los_Angeles | UTC-8 / UTC-7 | Yes | Los Angeles, Seattle, Vancouver | | America/New_York | UTC-5 / UTC-4 | Yes | New York, Toronto, Miami | | Europe/London | UTC+0 / UTC+1 | Yes | Londo...
geography
easy
4
35ffaf3bca1f
Create a YAML representation of a product pricing tier. Include: tier_name, price_monthly_usd, price_annual_usd, max_users, max_projects, features (list of at least 5 strings), and support_level.
yaml
SaaS pricing tier definition
tier_name: Professional price_monthly_usd: 79.00 price_annual_usd: 790.00 max_users: 25 max_projects: 50 features: - Unlimited API calls - Advanced analytics dashboard - Custom domain support - Priority email support - SSO via SAML 2.0 - Audit log (90 days) support_level: priority_email
ecommerce
easy
7
d535f298452b
Write an XML configuration for a logging framework (like log4j2). Include a console appender with a pattern layout showing timestamp, level, logger, and message; and a rolling file appender with a daily rollover policy. Set the root logger level to INFO.
xml
Log4j2-style logging configuration XML
<?xml version="1.0" encoding="UTF-8"?> <Configuration status="WARN"> <Appenders> <Console name="Console" target="SYSTEM_OUT"> <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} %-5level %logger{36} - %msg%n"/> </Console> <RollingFile name="RollingFile" fileName="logs/app.log" ...
software
hard
4
9bce413797f8
Produce a JSON error response following RFC 7807 (Problem Details for HTTP APIs). Include: type (URI), title, status (HTTP code), detail, instance, and at minimum one extension field relevant to a rate-limit exceeded error.
json
RFC 7807 problem-details error envelope
{ "type": "https://api.example.com/errors/rate-limit-exceeded", "title": "Too Many Requests", "status": 429, "detail": "You have exceeded the limit of 100 requests per minute. Please wait before retrying.", "instance": "/api/v1/search?q=shoes", "retry_after_seconds": 47, "limit": 100, "remaining": 0 }
software
medium
8
1f0bd27339f0
Create a CSV of 5 e-commerce orders. Columns: order_id, customer_email, order_date, item_count, subtotal_usd, shipping_usd, tax_usd, total_usd, status.
csv
E-commerce orders table, 5 rows
order_id,customer_email,order_date,item_count,subtotal_usd,shipping_usd,tax_usd,total_usd,status ORD-10001,alice.chen@email.com,2024-10-29,2,89.98,5.99,7.65,103.62,delivered ORD-10002,bob.wilson@email.com,2024-10-30,1,24.99,0.00,2.12,27.11,shipped ORD-10003,diana.osei@email.com,2024-10-31,4,215.50,12.99,18.32,246.81,pr...
ecommerce
medium
9
e8e54ffa6e63
Produce a YAML front matter block for a Hugo blog post. Include: title, date, draft (boolean), tags (list), categories (list), description, and author.
yaml
Hugo blog post front matter
--- title: "Understanding Transformer Attention Mechanisms" date: 2024-11-01 draft: false tags: - deep-learning - transformers - attention categories: - tutorials description: "A step-by-step walkthrough of scaled dot-product attention and multi-head attention in modern transformer architectures." author: "Kai ...
education
easy
7
c79940031c92
Produce a CSV of machine learning experiment results. Columns: experiment_id, model_type, learning_rate, batch_size, epochs_trained, train_accuracy, val_accuracy, test_f1, training_time_min, notes.
csv
ML experiment results comparison table
experiment_id,model_type,learning_rate,batch_size,epochs_trained,train_accuracy,val_accuracy,test_f1,training_time_min,notes EXP-001,bert-base,2e-5,32,10,0.951,0.921,0.918,42,"Baseline run" EXP-002,bert-base,3e-5,32,10,0.963,0.919,0.915,42,"LR increase caused slight val drop" EXP-003,bert-base,2e-5,16,10,0.948,0.929,0....
ai
hard
10
c92c2556ce7b
Produce a JSON object for a news article. Include: article_id, headline, byline (author name and publication), published_at, section, word_count, summary, keywords (array), and canonical_url.
json
News article metadata object
{ "article_id": "ART-20241101-8841", "headline": "Global Chip Shortage Eases as TSMC Expands Arizona Fab", "byline": { "author": "Michelle Okonkwo", "publication": "Tech Dispatch" }, "published_at": "2024-11-01T07:30:00Z", "section": "Technology", "word_count": 1240, "summary": "TSMC's new Phoen...
media
medium
9
2a51a11bec4d
Write an XML document for a book entry in a library catalog. Include elements for isbn, title, author (first and last name sub-elements), publisher, year, genre, and available_copies.
xml
Library book catalog XML record
<?xml version="1.0" encoding="UTF-8"?> <book> <isbn>978-0-13-468599-1</isbn> <title>The Pragmatic Programmer: Your Journey to Mastery</title> <author> <first_name>David</first_name> <last_name>Thomas</last_name> </author> <publisher>Addison-Wesley</publisher> <year>2019</year> <genre>Software Engi...
education
easy
7
360e604db51e
Create a JSON object for a book in a library catalog. Fields: isbn, title, authors (array), publisher, year, edition, genres (array), page_count, language, and available_copies.
json
Library catalog book record
{ "isbn": "978-0-13-468599-1", "title": "The Pragmatic Programmer: Your Journey to Mastery", "authors": ["David Thomas", "Andrew Hunt"], "publisher": "Addison-Wesley", "year": 2019, "edition": 2, "genres": ["software-engineering", "professional-development"], "page_count": 352, "language": "en", "av...
education
easy
10
0d293dd7297f
Produce a Markdown table summarizing a quarterly budget vs. actuals report. Columns: Category, Q3 Budget USD, Q3 Actual USD, Variance USD, Variance Pct, Status. Include: Engineering, Marketing, Sales, Operations, HR. Compute realistic numbers.
markdown_table
Quarterly budget vs. actuals table, 5 categories
| Category | Q3 Budget (USD) | Q3 Actual (USD) | Variance (USD) | Variance (%) | Status | |---|---|---|---|---|---| | Engineering | 850,000 | 882,400 | +32,400 | +3.8% | Over | | Marketing | 320,000 | 298,750 | -21,250 | -6.6% | Under | | Sales | 210,000 | 215,600 | +5,600 | +2.7% | Over | | Operations | 180,000 | 176,...
finance
medium
6
b723dcbeb272
Return a CSV of climate data for 5 cities in 2023. Columns: city, country, avg_temp_c, max_temp_c, min_temp_c, annual_rainfall_mm, avg_humidity_pct, sunshine_hours.
csv
Annual climate statistics for 5 cities
city,country,avg_temp_c,max_temp_c,min_temp_c,annual_rainfall_mm,avg_humidity_pct,sunshine_hours Lagos,Nigeria,27.8,35.2,21.5,1750,82,2420 London,UK,12.4,29.8,1.2,603,72,1634 Singapore,Singapore,27.6,34.5,22.8,2340,84,2168 Denver,USA,10.4,36.2,-12.1,368,45,3110 SΓ£o Paulo,Brazil,19.5,32.0,11.4,1408,77,2083
geography
medium
8
265769db0957
Produce a Markdown table for a machine learning dataset card. Columns: Property, Value. Rows: Task type, Languages, Size, Source, License, Split (train/val/test), Avg sequence length, Duplicate rate, Class balance.
markdown_table
Dataset card properties table (label-value format)
| Property | Value | |---|---| | Task type | Text classification | | Languages | English | | Size | 12,500 examples | | Source | Web-scraped + LLM-augmented | | License | Apache 2.0 | | Train / Val / Test | 10,000 / 1,250 / 1,250 | | Avg sequence length | 87 tokens | | Duplicate rate | < 0.5% | | Class balance | 52% po...
ai
easy
2
8ff92e3cea71
Write a YAML config for a rate limiter. Include global limits (requests_per_minute, burst_size) and per-endpoint overrides for /api/v1/search (higher limit) and /api/v1/export (much lower limit). Each endpoint entry should have path, requests_per_minute, and burst_size.
yaml
Rate limiter configuration with per-endpoint overrides
global: requests_per_minute: 60 burst_size: 10 per_endpoint: - path: /api/v1/search requests_per_minute: 300 burst_size: 50 - path: /api/v1/export requests_per_minute: 10 burst_size: 2
software
medium
4
77c812e35c32
Generate a CSV of 6 financial transactions from a personal budget tracker. Columns: txn_id, date, category, merchant, amount_usd (positive for income, negative for expense), account, notes.
csv
Personal budget transaction log, 6 rows
txn_id,date,category,merchant,amount_usd,account,notes TXN-001,2024-11-01,Income,Acme Corp,3800.00,Checking,Bi-weekly paycheck TXN-002,2024-11-01,Housing,Landlord,-1400.00,Checking,November rent TXN-003,2024-11-01,Groceries,Whole Foods,-82.47,Checking,Weekly grocery run TXN-004,2024-11-02,Transportation,Shell,-55.20,Cr...
finance
easy
7
8f9f69368984
Create an XML SOAP envelope for a GetStockPrice request. The request should be in the SOAPAction 'GetStockPrice' namespace, include a StockName element set to 'AAPL', and follow SOAP 1.1 structure.
xml
SOAP envelope for GetStockPrice request
<?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:stk="http://www.example.com/stock"> <soap:Header/> <soap:Body> <stk:GetStockPrice> <stk:StockName>AAPL</stk:StockName> </stk:GetStockPrice> </soap:Body> </soap:Envelope>
finance
medium
3
67b425de7892
Return a JSON object for a support ticket. Include: ticket_id, created_at, updated_at, status (open/pending/resolved/closed), priority (low/medium/high/critical), subject, description, reporter (name, email), assignee (name, team), tags (array), and resolution_time_hours (null if unresolved).
json
Customer support ticket
{ "ticket_id": "TKT-20241101-7731", "created_at": "2024-11-01T10:15:00Z", "updated_at": "2024-11-01T11:30:00Z", "status": "pending", "priority": "high", "subject": "Payment processing fails for AMEX cards", "description": "Customers using American Express cards receive a generic error at checkout. Issue b...
software
hard
11
53ddef5c3927
Create a YAML front matter for a dataset card on Hugging Face. Include: language (list), license, task_categories (list), tags (list), pretty_name, and size_categories.
yaml
Hugging Face dataset card YAML front matter
--- language: - en license: apache-2.0 task_categories: - text-classification - text-generation tags: - synthetic - structured-output - fine-tuning pretty_name: Structured Output Generation size_categories: - 100<n<1K ---
ai
easy
6
1503e66a530d
Generate a CSV of 5 customer support metrics by agent for October 2024. Columns: agent_id, agent_name, tickets_resolved, avg_resolution_hours, csat_score, first_contact_resolution_pct, escalations.
csv
Customer support agent performance metrics, 5 rows
agent_id,agent_name,tickets_resolved,avg_resolution_hours,csat_score,first_contact_resolution_pct,escalations AGT-01,Lara Kovacs,312,3.2,4.7,82.1,8 AGT-02,Samuel Osei,287,4.1,4.5,78.4,14 AGT-03,Nina Petrova,341,2.9,4.8,85.3,5 AGT-04,Raj Patel,275,5.8,4.1,71.3,22 AGT-05,Yasmin Nkrumah,318,3.5,4.6,80.2,11
hr
medium
7
9f77812f7761
Create a YAML structure for a machine learning experiment config. Include: experiment_name, model (type, hidden_layers, dropout_rate), optimizer (name, learning_rate, weight_decay), training (epochs, batch_size, early_stopping_patience), and seed.
yaml
ML experiment hyperparameter config
experiment_name: "text-clf-v3-tuning" model: type: transformer_classifier hidden_layers: 6 dropout_rate: 0.15 optimizer: name: AdamW learning_rate: 2.0e-5 weight_decay: 0.01 training: epochs: 20 batch_size: 32 early_stopping_patience: 3 seed: 42
ai
medium
6
4ae581e4786c
Write a YAML file for an Ansible playbook that installs Nginx on Ubuntu hosts, enables and starts the service, and opens port 80 in the firewall using ufw.
yaml
Ansible playbook for Nginx installation
--- - name: Install and configure Nginx hosts: webservers become: true tasks: - name: Install Nginx apt: name: nginx state: present update_cache: true - name: Enable and start Nginx systemd: name: nginx enabled: true state: started - name:...
software
medium
3
7d2938e5be17
Create an XML document for a legal contract clause. Include: clause_id, clause_number (e.g. 8.2), title, effective_date, parties (list with name and role), body_text (the clause text), and subclauses (list of at least 2 subclause elements with id and text).
xml
Legal contract clause XML
<?xml version="1.0" encoding="UTF-8"?> <clause> <clause_id>CLS-82</clause_id> <clause_number>8.2</clause_number> <title>Limitation of Liability</title> <effective_date>2024-11-01</effective_date> <parties> <party role="vendor">Acme Software Ltd.</party> <party role="customer">Buildcorp Inc.</party> ...
legal
hard
7
99356c4a0726
Write a Markdown table comparing five NoSQL database types: Document, Key-Value, Column-Family, Graph, Time-Series. Columns: Type, Example DBs, Data Model, Best For, Query Language.
markdown_table
NoSQL database types comparison
| Type | Example DBs | Data Model | Best For | Query Language | |---|---|---|---|---| | Document | MongoDB, Firestore | JSON/BSON documents | Content management, catalogs | MQL, SQL-like | | Key-Value | Redis, DynamoDB | Hash map / dict | Sessions, caching, leaderboards | GET/SET API | | Column-Family | Cassandra, HBas...
software
medium
5
6f1285f7e118
Generate a CSV of 5 job postings with columns: job_id, title, department, location, salary_min_usd, salary_max_usd, remote_eligible, posted_date, closes_date.
csv
Job postings table, 5 rows
job_id,title,department,location,salary_min_usd,salary_max_usd,remote_eligible,posted_date,closes_date JOB-2001,Senior Backend Engineer,Engineering,New York NY,130000,165000,true,2024-10-28,2024-11-25 JOB-2002,Product Manager,Product,San Francisco CA,140000,175000,false,2024-10-30,2024-11-27 JOB-2003,Data Analyst,Analy...
hr
medium
9
f01de8b182fc
Produce an XML document for a product warranty claim. Include: claim_id, submission_date, product (sku, name, purchase_date, serial_number), customer (name, email, phone), issue_description, attachments (list of filename elements), and status.
xml
Warranty claim XML document
<?xml version="1.0" encoding="UTF-8"?> <warranty_claim> <claim_id>WC-20241101-3312</claim_id> <submission_date>2024-11-01</submission_date> <product> <sku>WH-NC900-BLK</sku> <name>ProSound Noise-Cancelling Headphones</name> <purchase_date>2024-08-15</purchase_date> <serial_number>PSNC-2024-884412...
ecommerce
medium
8
6273fa9b3ced
Generate JSON for a recipe. Include: recipe_id, title, description, prep_time_min, cook_time_min, servings, ingredients (array of objects with name, amount, unit), instructions (ordered list of strings), tags, and nutrition_per_serving (calories, protein_g, carbs_g, fat_g).
json
Recipe document with nested ingredients and nutrition
{ "recipe_id": "REC-4421", "title": "Lemon Herb Roasted Chicken", "description": "A simple weeknight roast chicken with crispy skin and bright citrus flavour.", "prep_time_min": 15, "cook_time_min": 75, "servings": 4, "ingredients": [ {"name": "whole chicken", "amount": 1.5, "unit": "kg"}, {"name"...
food
hard
9
3913dfd9945b
Write a Markdown table for a project risk register. Columns: Risk ID, Description, Likelihood (1-5), Impact (1-5), Risk Score, Owner, Mitigation. Include 5 risks for a cloud migration project.
markdown_table
Project risk register table, 5 risks
| Risk ID | Description | Likelihood (1-5) | Impact (1-5) | Risk Score | Owner | Mitigation | |---|---|---|---|---|---|---| | RISK-01 | Data loss during migration cutover | 2 | 5 | 10 | Lead Architect | Full backup + rollback plan tested in staging | | RISK-02 | Network latency increase for on-prem integrations | 3 | 4...
software
hard
7
df3f0d979108
Create a JSON object for a hospital patient record. Include: patient_id, name, date_of_birth, blood_type, allergies (array), primary_physician, and admission_date.
json
Hospital patient record with allergies array
{ "patient_id": "PAT-88210", "name": "Carmen RodrΓ­guez", "date_of_birth": "1978-06-12", "blood_type": "O+", "allergies": ["penicillin", "latex"], "primary_physician": "Dr. Samuel Yeboah", "admission_date": "2024-10-28" }
healthcare
medium
7
24fde342430f
Return a JSON object for a rental car booking. Include: booking_id, customer_name, pickup_location, dropoff_location, pickup_datetime, dropoff_datetime, vehicle_class, daily_rate_usd, total_days, total_usd, insurance_included.
json
Rental car booking record
{ "booking_id": "CAR-20241103-5521", "customer_name": "TomΓ‘s GarcΓ­a", "pickup_location": "Madrid Barajas Airport, Terminal 4", "dropoff_location": "Madrid Barajas Airport, Terminal 4", "pickup_datetime": "2024-11-10T09:00:00", "dropoff_datetime": "2024-11-17T09:00:00", "vehicle_class": "Intermediate SUV",...
logistics
easy
11
34fd9dc413ef
Create a CSV of 5 mobile app reviews. Columns: review_id, app_name, platform, rating_out_of_5, review_text, reviewer, date, helpful_votes.
csv
App store review table, 5 rows
review_id,app_name,platform,rating_out_of_5,review_text,reviewer,date,helpful_votes REV-001,BudgetBuddy,iOS,5,"Completely transformed how I manage my money. Clean UI and powerful reports.",Sarah_M,2024-10-30,48 REV-002,BudgetBuddy,Android,2,"Keeps crashing on Samsung Galaxy S24. Three uninstalls and reinstalls haven't ...
media
medium
8
e20bfb455389
Create a JSON object for a scientific experiment record. Include: experiment_id, title, principal_investigator (name, affiliation), hypothesis, method (type and brief description), sample_size, start_date, end_date, results (summary string and p_value), conclusion, and doi (null if unpublished).
json
Scientific experiment record
{ "experiment_id": "EXP-BIO-2024-0441", "title": "Effect of Sleep Deprivation on Working Memory in Adults 25-40", "principal_investigator": { "name": "Dr. Yuki Tanaka", "affiliation": "University of Tokyo" }, "hypothesis": "Reducing sleep to <6 hours for 5 consecutive nights significantly impairs work...
science
hard
10

Structured Output Generation

A hand-authored synthetic dataset of 107 natural-language prompts paired with ideal structured-format completions, spanning JSON, YAML, CSV, Markdown tables, and XML. Designed for fine-tuning and evaluating instruction-following models on structured output tasks.

Dataset at a Glance

Property Value
Total examples 107
Formats JSON (36), YAML (20), Markdown table (19), CSV (18), XML (14)
Difficulty levels Easy (26), Medium (46), Hard (35)
Domains software, finance, healthcare, AI, education, HR, ecommerce, logistics, IoT, media, sports, geography, food, legal, science
Train / Val / Test 85 / 10 / 12
License Apache 2.0
Generation method Hand-authored

Schema

Each example has 8 fields:

Field Type Description
id string MD5 hash of prompt+completion (12 chars)
prompt string Natural-language instruction requesting structured output
format string Target format: json, yaml, csv, markdown_table, xml
schema_description string One-line description of the expected output structure
completion string The ideal structured output
domain string Subject domain (software, finance, healthcare, …)
difficulty string easy, medium, or hard
num_fields int Approximate number of top-level fields / columns

Sample Records

JSON β€” Medium difficulty (finance)

Prompt:

Produce a JSON object for a bank transaction record. Fields: transaction_id, account_from, account_to, amount, currency, type (debit/credit/transfer), and timestamp.

Completion:

{
  "transaction_id": "TXN-20241101-998812",
  "account_from": "ACC-001-882234",
  "account_to": "ACC-002-117765",
  "amount": 2500.00,
  "currency": "USD",
  "type": "transfer",
  "timestamp": "2024-11-01T09:15:33Z"
}

YAML β€” Hard difficulty (software)

Prompt:

Write a YAML config for a Kubernetes Deployment of an nginx container with 3 replicas, a CPU request of 100m and limit of 500m, memory request of 128Mi and limit of 256Mi, and a readiness probe on port 80 path /healthz.

Completion:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
        - name: nginx
          image: nginx:1.27
          resources:
            requests:
              cpu: "100m"
              memory: "128Mi"
            limits:
              cpu: "500m"
              memory: "256Mi"
          readinessProbe:
            httpGet:
              path: /healthz
              port: 80
            initialDelaySeconds: 5
            periodSeconds: 10

CSV β€” Medium difficulty (ecommerce)

Prompt:

Create a CSV of 5 e-commerce orders. Columns: order_id, customer_email, order_date, item_count, subtotal_usd, shipping_usd, tax_usd, total_usd, status.

Completion:

order_id,customer_email,order_date,item_count,subtotal_usd,shipping_usd,tax_usd,total_usd,status
ORD-10001,alice.chen@email.com,2024-10-29,2,89.98,5.99,7.65,103.62,delivered
ORD-10002,bob.wilson@email.com,2024-10-30,1,24.99,0.00,2.12,27.11,shipped
ORD-10003,diana.osei@email.com,2024-10-31,4,215.50,12.99,18.32,246.81,processing
ORD-10004,ethan.ko@email.com,2024-11-01,1,149.99,9.99,12.75,172.73,pending
ORD-10005,fiona.ray@email.com,2024-11-01,3,67.47,5.99,5.73,79.19,confirmed

Markdown Table β€” Hard difficulty (ai)

Prompt:

Create a Markdown results table for a benchmark comparing three LLM inference backends (vLLM, TGI, LiteLLM) on: throughput (tokens/sec), latency P50 (ms), latency P99 (ms), GPU memory (GB), and max concurrent requests.

Completion:

| Backend | Throughput (tok/s) | Latency P50 (ms) | Latency P99 (ms) | GPU Memory (GB) | Max Concurrent |
|---|---|---|---|---|---|
| vLLM | 3,840 | 128 | 410 | 18.2 | 512 |
| TGI | 2,970 | 165 | 520 | 16.8 | 256 |
| LiteLLM | 1,820 | 243 | 780 | 14.1 | 128 |

XML β€” Medium difficulty (iot)

Prompt:

Write an XML document for an IoT device heartbeat message. Include: device_id, device_type, firmware_version, timestamp, battery_level_pct, signal_strength_dbm, sensors (list of sensor elements with id and status), and location (lat, lon).

Completion:

<?xml version="1.0" encoding="UTF-8"?>
<heartbeat>
  <device_id>DEV-IOT-8812</device_id>
  <device_type>environmental_monitor</device_type>
  <firmware_version>3.2.1</firmware_version>
  <timestamp>2024-11-01T14:00:00Z</timestamp>
  <battery_level_pct>74</battery_level_pct>
  <signal_strength_dbm>-62</signal_strength_dbm>
  <sensors>
    <sensor id="temp-01" status="ok"/>
    <sensor id="humidity-01" status="ok"/>
    <sensor id="co2-01" status="degraded"/>
  </sensors>
  <location>
    <lat>51.5074</lat>
    <lon>-0.1278</lon>
  </location>
</heartbeat>

Usage

from datasets import load_dataset

ds = load_dataset("SalutefaceAAC/structured-output-generation")
train = ds["train"]

# Filter by format
json_examples = train.filter(lambda x: x["format"] == "json")

# Filter by difficulty
hard_examples = train.filter(lambda x: x["difficulty"] == "hard")

Fine-tuning prompt template

def to_prompt(example):
    return (
        f"Generate the following structured output:\n\n"
        f"{example['prompt']}\n\n"
        f"Format: {example['format'].upper()}\n\n"
        f"Output:\n{example['completion']}"
    )

Generation Methodology

All examples were hand-authored to ensure:

  1. Prompt clarity β€” each prompt unambiguously specifies the desired output format and fields
  2. Completion correctness β€” all JSON/YAML/XML is syntactically valid; CSV headers match column descriptions; Markdown tables render correctly
  3. Domain diversity β€” 15+ domains including software, finance, healthcare, AI/ML, education, ecommerce, IoT, sports, legal, and science
  4. Realistic values β€” data uses plausible names, codes, prices, timestamps, and identifiers rather than placeholder values
  5. Format coverage β€” hard examples include nested structures, arrays of objects, references between fields, and format-specific idioms (SOAP envelopes, Atom feeds, Maven POMs, OpenAPI paths)

Difficulty Levels

  • Easy: Simple flat structures, 5-7 fields, no nesting required
  • Medium: Moderate nesting (1-2 levels), some arrays, domain-specific conventions
  • Hard: Deep nesting, arrays of objects, format-specific idioms, cross-field consistency (e.g. computed totals, RFC-compliant structures)

Limitations

  • English-only prompts and completions
  • ~107 examples β€” sufficient for evaluation and few-shot prompting; augmentation recommended for full SFT
  • Software domain is intentionally over-represented (~39%) reflecting real-world structured output demand
  • XML examples do not cover DTD/XSD validation patterns
  • Does not include adversarial or out-of-distribution prompts

Intended Uses

  • Supervised fine-tuning (SFT) of instruction-following models for structured output generation
  • Evaluation of model ability to produce format-valid and semantically correct structured data
  • Few-shot prompting baselines for structured generation tasks
  • Curriculum data for difficulty-staged training

License

Apache 2.0 β€” free to use, share, and modify with attribution.

Citation

@dataset{salutefaceaac2024structured,
  title  = {Structured Output Generation},
  author = {SalutefaceAAC},
  year   = {2024},
  url    = {https://huggingface.co/datasets/SalutefaceAAC/structured-output-generation}
}
Downloads last month
85