system
stringlengths
315
8.44k
conversations
listlengths
2
8
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE token_metas ( block_timestamp.timestamp, block_number.bigint, transaction_hash.text,...
[ { "role": "user", "content": "List all NFTs minted in the last 30 days, including their contract address, token id, and minter address.", "sql": null }, { "role": "assistant", "content": "SELECT contract_address, token_id, minter FROM nft_metadata WHERE mint_time >= (strftime('%s', 'now') - ...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE government_services.citizens ( citizen_id.text, national_id_number.text, first_name....
[ { "role": "user", "content": "Can you show me the document types submitted by citizens whose accounts are verified, and for each, the email of the citizen who uploaded it?", "sql": null }, { "role": "assistant", "content": "SELECT d.document_type, c.contact_email\nFROM government_services.do...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE legal_services.time_entries ( entry_id character varying(64) NOT NULL, -- uniqu...
[ { "role": "user", "content": "Show me the total hours spent by each lawyer on billable time entries in 2024.", "sql": null }, { "role": "assistant", "content": "SELECT\n lawyer_id,\n SUM(hours_spent) AS total_hours\nFROM legal_services.time_entries\nWHERE is_billable = TRUE\n AND EXTRACT(...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE gaming_technology.developers ( developer_id uuid, name text, country text, founded_y...
[ { "role": "user", "content": "Show each player's ID along with the name and quantity of every item they have in their inventory. Join the player inventory with item details.", "sql": null }, { "role": "assistant", "content": "SELECT pi.player_id, igi.item_name, pi.quantity FROM gaming_techno...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE gaming_technology.players ( player_id uuid PRIMARY KEY, username text, email text, p...
[ { "role": "user", "content": "Could you list each player's username and the total number of sessions they have played?", "sql": null }, { "role": "assistant", "content": "SELECT p.username, COUNT(gs.session_id) AS total_sessions\nFROM gaming_technology.players p\nLEFT JOIN gaming_technology....
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE insurance.agents ( agent_id character varying(64) NOT NULL, first_name character var...
[ { "role": "user", "content": "List all agents licensed in Texas ('TX') and their manager's full name.", "sql": null }, { "role": "assistant", "content": "SELECT a.agent_id, a.first_name AS agent_first_name, a.last_name AS agent_last_name, CONCAT(m.first_name, ' ', m.last_name) AS manager_ful...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE trading_platform.users ( user_id text PRIMARY KEY, username text, email text, passwo...
[ { "role": "user", "content": "What is the total sum of all amounts for all UTXOs in the system, regardless of whether they are spent or unspent?", "sql": null }, { "role": "assistant", "content": "SELECT SUM(amount) FROM trading_platform.utxos", "sql": null } ]
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE transportation.drivers ( driver_id character varying(64) NOT NULL, -- unique id...
[ { "role": "user", "content": "Show each maintenance log with the vehicle ID, make, model, service date, and the cost, including the city where the maintenance was performed.", "sql": null }, { "role": "assistant", "content": "SELECT ml.log_id, ml.vehicle_id, v.make, v.model, ml.service_date,...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE blockchain.users ( user_id character varying(64) NOT NULL, username character varyin...
[ { "role": "user", "content": "Can you provide a count of users for each unique email domain?", "sql": null }, { "role": "assistant", "content": "SELECT SUBSTRING(email FROM POSITION('@' IN email) + 1), COUNT(*) FROM blockchain.users GROUP BY SUBSTRING(email FROM POSITION('@' IN email) + 1);"...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE trading_platform.orders ( order_id text PRIMARY KEY, user_id text, wallet_id text, a...
[ { "role": "user", "content": "Show me all users who have both placed orders and have KYC status approved, along with their order count and most recent KYC review date.", "sql": null }, { "role": "assistant", "content": "SELECT o.user_id, COUNT(o.order_id) as order_count, MAX(k.reviewed_at) a...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE transportation.trips ( trip_id text PRIMARY KEY, route_id text, vehicle_id text, dri...
[ { "role": "user", "content": "List all trips where the origin location is different from the destination location and show the trip ID, origin location ID, destination location ID, and route ID.", "sql": null }, { "role": "assistant", "content": "SELECT trip_id, origin_location_id, destinati...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE social_media.users ( user_id character varying(64) NOT NULL, username character vary...
[ { "role": "user", "content": "Show the post ID and hashtags for all posts containing the word 'conference' in their content.", "sql": null }, { "role": "assistant", "content": "SELECT p.post_id, h.hashtag_id, h.tag_name\nFROM social_media.posts p\nJOIN social_media.post_hashtags ph ON p.post...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE token_metas ( block_timestamp timestamp(6) NOT NULL, block_number bigint NOT NULL, t...
[ { "role": "user", "content": "Show me all ERC20 tokens (from token_metas) with a total supply over 1,000,000, including their contract address and symbol.", "sql": null }, { "role": "assistant", "content": "SELECT contract_address, symbol FROM token_metas WHERE is_erc20 = 1 AND CAST(total_su...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE transportation.locations ( location_id text, name text, type text, address_line1 tex...
[ { "role": "user", "content": "Show all maintenance logs including the vehicle ID, service date, service type, and cost.", "sql": null }, { "role": "assistant", "content": "SELECT vehicle_id, service_date, service_type, cost FROM transportation.maintenance_logs;", "sql": null }, { ...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE gaming_technology.game_sessions ( session_id uuid, player_id uuid, game_id uuid, ser...
[ { "role": "user", "content": "For each game, which server has hosted the most sessions?", "sql": null }, { "role": "assistant", "content": "SELECT game_id, server_id, COUNT(*) AS session_count FROM gaming_technology.game_sessions GROUP BY game_id, server_id;", "sql": null }, { "r...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE government_services.citizens ( citizen_id text, national_id_number text, first_name ...
[ { "role": "user", "content": "Find pairs of citizens who share the same gender but registered in different years. Show each citizen's first and last name along with their registration year.", "sql": null }, { "role": "assistant", "content": "SELECT c1.first_name AS first_name_1,\n c1.l...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE transportation.passengers ( passenger_id character varying(64) NOT NULL, -- uni...
[ { "role": "user", "content": "List the number of bookings made by each loyalty program member. Show the loyalty_program_id and the booking count.", "sql": null }, { "role": "assistant", "content": "SELECT p.loyalty_program_id, COUNT(b.booking_id) AS booking_count\nFROM transportation.passeng...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE social_media.hashtags ( hashtag_id character varying(64) NOT NULL, -- unique ide...
[ { "role": "user", "content": "Show me all hashtags that were created in June 2024, and for each, display the hashtag ID, tag name, and when it was created.", "sql": null }, { "role": "assistant", "content": "SELECT hashtag_id, tag_name, created_at FROM social_media.hashtags WHERE created_at ...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE hospitality_technology.properties ( property_id character varying(64) NOT NULL, prop...
[ { "role": "user", "content": "Get the count of room types and the average area_sqft per property.", "sql": null }, { "role": "assistant", "content": "SELECT property_id,\n COUNT(room_type_id) AS room_type_count,\n AVG(area_sqft) AS avg_area\nFROM hospitality_technology.room_...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE hospitality_technology.reviews ( review_id character varying(64) NOT NULL, -- u...
[ { "role": "user", "content": "Show all review IDs, property IDs, and the rating for service given for each review.", "sql": null }, { "role": "assistant", "content": "SELECT review_id, property_id, rating_service\nFROM hospitality_technology.reviews;", "sql": null }, { "role": "u...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE social_media.users ( user_id text, username text, email text, password_hash text, fu...
[ { "role": "user", "content": "Show the content of all comments made on posts that are tagged with hashtag 'H456'.", "sql": null }, { "role": "assistant", "content": "SELECT T1.content FROM social_media.comments AS T1 JOIN social_media.post_hashtags AS T2 ON T1.post_id = T2.post_id WHERE T2.h...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE social_media.users ( user_id character varying(64) NOT NULL, username character vary...
[ { "role": "user", "content": "I need the count of messages each user has sent per conversation, along with the conversation's group_name when it's a group chat.", "sql": null }, { "role": "assistant", "content": "SELECT m.sender_user_id,\n u.username,\n m.conversation_id,\n ...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE trading_platform.wallets ( wallet_id.text, user_id.text, address.text, private_key.t...
[ { "role": "user", "content": "List all wallet addresses and the amount of any unspent UTXOs linked to that address.", "sql": null }, { "role": "assistant", "content": "SELECT T1.address, T2.amount FROM wallets AS T1 JOIN utxos AS T2 ON T1.address = T2.address WHERE T2.spent = false;", "s...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE social_media.users ( user_id text, username text, email text, password_hash text, fu...
[ { "role": "user", "content": "Show all users whose full name starts with 'A' and who have updated their profile in June 2024. Please include their usernames and updated_at timestamps.", "sql": null }, { "role": "assistant", "content": "SELECT username, updated_at FROM social_media.users WHER...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE insurance.agents ( agent_id text PRIMARY KEY, first_name text, last_name text, agenc...
[ { "role": "user", "content": "List agents who were hired after 2020 and have a commission rate greater than 0.07.", "sql": null }, { "role": "assistant", "content": "SELECT agent_id, first_name, last_name, hire_date, commission_rate FROM insurance.agents WHERE hire_date > '2020-12-31' AND co...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE insurance.premium_payments ( payment_id character varying(64) NOT NULL, policy_id ch...
[ { "role": "user", "content": "For each payment status, how many payments were made and what was the total amount paid? Order the results by the total amount paid in descending order.", "sql": null }, { "role": "assistant", "content": "SELECT status, COUNT(*) AS payment_count, SUM(amount_paid...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE gaming_technology.players ( player_id uuid PRIMARY KEY, username text, email text, p...
[ { "role": "user", "content": "List each server's name and region along with the total number of sessions hosted on that server.", "sql": null }, { "role": "assistant", "content": "SELECT s.server_name,\n s.region,\n COUNT(gs.session_id) AS session_count\nFROM gaming_technology.se...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE blockchain.transactions ( transaction_id.text, block_id.text, sender_address.text, r...
[ { "role": "user", "content": "Which nodes have not been seen in the last 24 hours?", "sql": null }, { "role": "assistant", "content": "SELECT node_id, ip_address, port, last_seen\nFROM blockchain.nodes\nWHERE last_seen < now() - INTERVAL '24 hours';", "sql": null }, { "role": "us...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE web3.transactions ( transaction_id character varying(64) NOT NULL, from_address char...
[ { "role": "user", "content": "Find the top 5 transactions with the highest gas prices that were successful, including the from_address, to_address, and block_number.", "sql": null }, { "role": "assistant", "content": "SELECT from_address, to_address, block_number, gas_price FROM web3.transac...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE social_media.posts ( post_id.text, user_id.text, content.text, media_url.text, media...
[ { "role": "user", "content": "For each user, show their user ID and the count of unread notifications they have received.", "sql": null }, { "role": "assistant", "content": "SELECT recipient_user_id, COUNT(*) AS unread_notification_count\nFROM social_media.notifications\nWHERE read_at IS NUL...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE legal_services.clients ( client_id text PRIMARY KEY, first_name text, last_name text...
[ { "role": "user", "content": "For each appointment, show the appointment subject, start time, the client's name, and the lawyer's email.", "sql": null }, { "role": "assistant", "content": "SELECT a.appointment_id, a.subject, a.start_time, c.first_name || ' ' || c.last_name AS client_name, l....
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE trading_platform.users ( user_id character varying(64) NOT NULL, username character ...
[ { "role": "user", "content": "List all users who have had their KYC status changed from 'approved' to 'rejected', along with the timestamps of both audits.", "sql": null }, { "role": "assistant", "content": "SELECT a.user_id, a.reviewed_at AS approved_time, r.reviewed_at AS rejected_time FRO...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE hospitality_technology.room_types ( room_type_id character varying(64) NOT NULL,...
[ { "role": "user", "content": "Show me all room types that accommodate exactly 2 guests, including type name and the associated property ID.", "sql": null }, { "role": "assistant", "content": "SELECT room_type_id, type_name, property_id\nFROM hospitality_technology.room_types\nWHERE max_occup...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE gaming_technology.games ( game_id uuid NOT NULL DEFAULT gen_random_uuid(), title cha...
[ { "role": "user", "content": "List the total number of sessions and total score per server, showing both the server name and the associated game title.", "sql": null }, { "role": "assistant", "content": "SELECT s.server_name, g.title AS game_title, COUNT(gs.session_id) AS total_sessions, SUM...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE government_services.citizens ( citizen_id character varying(64) NOT NULL, -- un...
[ { "role": "user", "content": "List the agency name, location name, address, and contact phone for all accessible service locations in the city of 'Seattle'.", "sql": null }, { "role": "assistant", "content": "SELECT t1.agency_name, t2.location_name, t2.address, t2.contact_phone FROM governme...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure "CREATE TABLE project_fundraising_record (", "id character varying(32) NOT NULL, -- fundrai...
[ { "role": "user", "content": "Which projects had fundraising rounds in the first quarter of 2022, and what were their investment values and round names?", "sql": null }, { "role": "assistant", "content": "SELECT project_name, rounds_name, investment_value, investment_date FROM project_fundra...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE gaming_technology.developers ( developer_id uuid, name text, country text, founded_y...
[ { "role": "user", "content": "Show the total number of game sessions played on each server that is currently 'online'. Include the server name, region, and the count of sessions.", "sql": null }, { "role": "assistant", "content": "SELECT s.server_name, s.region, COUNT(gs.session_id) AS total...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE healthcare.patient_insurance ( patient_insurance_id character varying(64) NOT NU...
[ { "role": "user", "content": "List the full name of patients whose primary insurance plan is provided by 'BlueCross BlueShield', along with the plan name.", "sql": null }, { "role": "assistant", "content": "SELECT T1.first_name, T1.last_name, T3.plan_name FROM healthcare.patients AS T1 JOIN ...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE transportation.trips ( trip_id character varying(64) NOT NULL, -- unique identi...
[ { "role": "user", "content": "List all trips that were completed and experienced a significant delay in actual arrival compared to the scheduled arrival (more than 45 minutes).", "sql": null }, { "role": "assistant", "content": "SELECT\n trip_id,\n vehicle_id,\n driver_id,\n scheduled_ar...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE transportation.routes ( route_id text PRIMARY KEY, route_number text, description te...
[ { "role": "user", "content": "Show me the trip_id, route_number, and scheduled_departure for all trips where the associated vehicle has a maintenance log indicating the next service is due before 2024-05-01.", "sql": null }, { "role": "assistant", "content": "SELECT t.trip_id, r.route_number...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE government_services.agencies ( agency_id.text, agency_name.text, jurisdiction_level....
[ { "role": "user", "content": "List each child agency ID and name along with its parent agency ID and name.", "sql": null }, { "role": "assistant", "content": "SELECT c.agency_id AS child_id,\n c.agency_name AS child_name,\n p.agency_id AS parent_id,\n p.agency_name AS paren...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE healthcare.patient_insurance ( patient_insurance_id character varying(64) NOT NU...
[ { "role": "user", "content": "Which patients have insurance policies that are effective between May 1st, 2023 and October 1st, 2023? Show their patient_id, policy_number, and effective_date, and also include the related plan_id.", "sql": null }, { "role": "assistant", "content": "SELECT pati...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE social_media.users ( user_id text, username text, email text, password_hash text, fu...
[ { "role": "user", "content": "List the usernames and emails of users who have set a location in their profile.", "sql": null }, { "role": "assistant", "content": "SELECT username, email\nFROM social_media.users\nWHERE location IS NOT NULL AND location != '';", "sql": null } ]
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE insurance.policies ( policy_id character varying(64) NOT NULL, customer_id character...
[ { "role": "user", "content": "For each customer, find pairs of policies where one policy’s premium is at least $5000 higher than the other. Show customer_id, lower_premium_policy_id, higher_premium_policy_id, and the premium_difference.", "sql": null }, { "role": "assistant", "content": "SEL...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE healthcare.insurance_plans ( plan_id text PRIMARY KEY, plan_name text, insurance_pro...
[ { "role": "user", "content": "Provide each pair of plans that share the same plan_type but are offered by different providers.", "sql": null }, { "role": "assistant", "content": "SELECT p1.plan_type,\n p1.plan_id AS plan1_id,\n p1.plan_name AS plan1_name,\n p1.insurance_pro...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE government_services.citizens ( citizen_id character varying(64) NOT NULL, national_i...
[ { "role": "user", "content": "Retrieve each citizen's first_name, last_name, and their most recent notification's message_subject and sent_at, only for notifications sent via 'Email'.", "sql": null }, { "role": "assistant", "content": "SELECT c.first_name,\n c.last_name,\n n.mess...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE financial_services.accounts ( account_id text, customer_id text, account_number text...
[ { "role": "user", "content": "Show the total and average balance for each account_type.", "sql": null }, { "role": "assistant", "content": "SELECT account_type, SUM(balance) AS total_balance, AVG(balance) AS avg_balance FROM financial_services.accounts GROUP BY account_type;", "sql": nul...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE healthcare.patient_insurance ( patient_insurance_id.text, patient_id.text, plan_id.t...
[ { "role": "user", "content": "List all unique combinations of plan_id and group_number, and show the number of policies for each combination.", "sql": null }, { "role": "assistant", "content": "SELECT plan_id, group_number, COUNT(*) AS policy_count FROM healthcare.patient_insurance GROUP BY ...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE insurance.claim_documents ( document_id character varying(64) NOT NULL, -- uniqu...
[ { "role": "user", "content": "Find the earliest uploaded document for each claim. Show the claim_id, document_id, file_name, and uploaded_at.", "sql": null }, { "role": "assistant", "content": "SELECT cd.claim_id, cd.document_id, cd.file_name, cd.uploaded_at\nFROM insurance.claim_documents c...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE token_metas ( block_timestamp.timestamp, block_number.bigint, transaction_hash.text,...
[ { "role": "user", "content": "I need to know how many distinct wallets hold each ERC20 token. Please show the token contract_address, symbol, and holder_count, sorted by holder_count descending.", "sql": null }, { "role": "assistant", "content": "SELECT eb.contract_address, tm.symbol, COUNT(...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE social_media.users ( user_id.text, username.text, email.text, password_hash.text, fu...
[ { "role": "user", "content": "Show me the usernames and group names for users who have joined group chats and also created at least one post.", "sql": null }, { "role": "assistant", "content": "SELECT u.username, c.group_name\nFROM social_media.conversation_participants cp\nJOIN social_media...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE trading_platform.trades ( trade_id character varying(64) NOT NULL, -- unique id...
[ { "role": "user", "content": "What is the average trade price for each asset for trades executed between '2024-05-01' and '2024-05-31'?", "sql": null }, { "role": "assistant", "content": "SELECT\n asset_id,\n AVG(price) AS avg_price\nFROM trading_platform.trades\nWHERE traded_at >= '2024-0...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE trading_platform.notifications ( notification_id text PRIMARY KEY, user_id text, mes...
[ { "role": "user", "content": "For each user, list their user_id along with their first and last notification messages and the sent_at timestamps.", "sql": null }, { "role": "assistant", "content": "WITH firsts AS (\n SELECT user_id, notification_id AS first_id, message AS first_message, sen...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE hospitality_technology.rooms ( room_id.text, property_id.text, room_number.text, roo...
[ { "role": "user", "content": "Give me the average cleanliness rating from reviews for each property.", "sql": null }, { "role": "assistant", "content": "SELECT property_id, AVG(rating_cleanliness) AS avg_cleanliness_rating\nFROM hospitality_technology.reviews\nGROUP BY property_id;", "sq...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE legal_services.law_firms ( firm_id text PRIMARY KEY, firm_name text, address text, p...
[ { "role": "user", "content": "Show each law firm's name and the number of cases where its managing partner is the lead attorney.", "sql": null }, { "role": "assistant", "content": "SELECT T1.firm_name, COUNT(T2.case_id) AS case_count_as_managing_partner FROM law_firms AS T1 JOIN cases AS T2 ...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE legal_services.invoices ( invoice_id character varying(64) NOT NULL, invoice_number ...
[ { "role": "user", "content": "What is the average number of days by which paid invoices were paid late? Calculate the average of (payment_date - due_date) for invoices with status 'Paid'.", "sql": null }, { "role": "assistant", "content": "SELECT AVG((payment_date::date - due_date)) AS avera...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE social_media.users ( user_id character varying(64) NOT NULL, username character vary...
[ { "role": "user", "content": "Which hashtags have never been used in any post? Show their tag_name and creation date.", "sql": null }, { "role": "assistant", "content": "SELECT h.tag_name, h.created_at\nFROM social_media.hashtags h\nLEFT JOIN social_media.post_hashtags ph ON h.hashtag_id = p...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure "CREATE TABLE cex_token_balance (", "snapshot_time character varying(32) NOT NULL, -- the ...
[ { "role": "user", "content": "For the latest snapshot time, list the total `usd_value` held by CEXes for each distinct `token_symbol` across all chains. Order the results by total value descending.", "sql": null }, { "role": "assistant", "content": "WITH latest_snapshot AS (\n SELECT max(sn...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE token_dexpool_info ( pair_address character varying(512) NOT NULL, token_name charac...
[ { "role": "user", "content": "Show me the top 5 tokens by 24-hour trading volume on the Ethereum chain, along with their price and 24-hour price change percentage.", "sql": null }, { "role": "assistant", "content": "SELECT token_name, token_symbol, price, price_change_percentage_24h, volume_...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure Node Label ':Component'. Properties: { component_id: String (Constraint: UNIQUE), part_number: St...
[ { "role": "user", "content": "Can you help me retrieve the details of all components supplied by suppliers from a specific country, along with the supplier's contact information?", "sql": null }, { "role": "assistant", "content": "MATCH (c:Component)-[:SUPPLIED_BY]->(s:Supplier)\nWHERE s.cou...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE social_media.users ( user_id text PRIMARY KEY, username text, email text, password_h...
[ { "role": "user", "content": "List all pairs of users who follow each other, including their usernames.", "sql": null }, { "role": "assistant", "content": "SELECT\n u1.username AS user_a,\n u2.username AS user_b\nFROM\n social_media.follows f1\n JOIN social_media.follows f2\n ON f1.fo...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE transportation.drivers ( driver_id character varying(64) NOT NULL, employee_id chara...
[ { "role": "user", "content": "Show the full name and email of all drivers who have an expired license (license_expiry_date before today).", "sql": null }, { "role": "assistant", "content": "SELECT first_name, last_name, email\nFROM transportation.drivers\nWHERE license_expiry_date < CURRENT_...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE hospitality_technology.properties ( property_id character varying(64) NOT NULL, ...
[ { "role": "user", "content": "Retrieve all active staff members who processed payments in USD within the last 30 days. Return staff first_name, last_name, property_name, and the count of payments processed.", "sql": null }, { "role": "assistant", "content": "SELECT s.first_name, s.last_name,...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE erc1155_approval_for_all ( block_number bigint, block_timestamp timestamp, transacti...
[ { "role": "user", "content": "Can you list all SUI coins with 'active' status and their owner addresses and balances?", "sql": null }, { "role": "assistant", "content": "SELECT object_id, coin_type, owner, balance\nFROM sui_coins\nWHERE status = 'active';", "sql": null }, { "role...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE legal_services.cases ( case_id character varying(64) NOT NULL, case_number character...
[ { "role": "user", "content": "Show me a list of all cases and include the case number, case name, and the court jurisdiction for each case, as well as the lead lawyer's ID and the case status.", "sql": null }, { "role": "assistant", "content": "SELECT case_number, case_name, court_jurisdicti...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE gaming_technology.players ( player_id uuid NOT NULL DEFAULT gen_random_uuid(), usern...
[ { "role": "user", "content": "List all in-game items of type 'Consumable', showing for each item the item name, cost amount, and the total number of players who have that item in their inventory.", "sql": null }, { "role": "assistant", "content": "SELECT i.item_name, i.cost_amount, COUNT(DIS...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE financial_services.accounts ( account_id text, customer_id text, account_number text...
[ { "role": "user", "content": "For each trade in the past 14 days, show the trade_id, account_id, security_id, and the latest close_price for that security from market_data.", "sql": null }, { "role": "assistant", "content": "SELECT tr.trade_id, tr.account_id, tr.security_id, md.close_price A...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE legal_services.clients ( client_id.text, first_name.text, last_name.text, company_na...
[ { "role": "user", "content": "Can you give me a list of all invoices issued in 2024, along with the invoice number, client full name, case number, and total amount?", "sql": null }, { "role": "assistant", "content": "SELECT i.invoice_number, cl.first_name || ' ' || cl.last_name AS client_ful...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE hospitality_technology.properties ( property_id.text, property_name.text, address_li...
[ { "role": "user", "content": "List each property along with the number of service orders placed by its manager in the last 30 days.", "sql": null }, { "role": "assistant", "content": "SELECT p.property_name, COUNT(so.order_id) AS order_count\nFROM hospitality_technology.properties p\nJOIN ho...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE government_services.employees ( employee_id character varying(64) NOT NULL, -- u...
[ { "role": "user", "content": "Could you show me each employee's full name along with their manager's full name?", "sql": null }, { "role": "assistant", "content": "SELECT e.employee_id,\n e.first_name || ' ' || e.last_name AS employee_name,\n m.employee_id AS manager_id,\n ...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE smart_money_profit ( address text, rank numeric, profit numeric, roi numeric, realiz...
[ { "role": "user", "content": "What is the average profit and average ROI for smart money addresses ranked in the top 500?", "sql": null }, { "role": "assistant", "content": "SELECT AVG(profit), AVG(roi) FROM smart_money_profit WHERE rank <= 500", "sql": null } ]
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE social_media.hashtags ( hashtag_id.text, tag_name.text, created_at.timestamp ) CREAT...
[ { "role": "user", "content": "List conversation IDs and their creation times for all conversations that have not had any new messages in 2024.", "sql": null }, { "role": "assistant", "content": "SELECT conversation_id, created_at\nFROM social_media.conversations\nWHERE last_message_at < '202...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE government_services.services ( service_id text, agency_id text, service_name text, d...
[ { "role": "user", "content": "How many active services currently provide an online application URL?", "sql": null }, { "role": "assistant", "content": "SELECT COUNT(*)\nFROM government_services.services\nWHERE is_active = TRUE\n AND online_application_url IS NOT NULL;", "sql": null } ...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE financial_services.accounts ( account_id text PRIMARY KEY, customer_id text, account...
[ { "role": "user", "content": "Summarize the trades by trade type, showing the total quantity and the total amount for each type.", "sql": null }, { "role": "assistant", "content": "SELECT trade_type, SUM(quantity) AS total_quantity, SUM(total_amount) AS total_amount FROM financial_services.t...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE hospitality_technology.properties ( property_id character varying(64) NOT NULL, prop...
[ { "role": "user", "content": "Show the reservation ID, property name, and room type name for all reservations with a status of 'Confirmed'.", "sql": null }, { "role": "assistant", "content": "SELECT T1.reservation_id, T2.property_name, T3.type_name FROM hospitality_technology.reservations AS...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE token_metas ( block_timestamp timestamp, block_number bigint, transaction_hash varch...
[ { "role": "user", "content": "List all SUI coins with status 'exists', showing their object_id, coin_type, and owner.", "sql": null }, { "role": "assistant", "content": "SELECT object_id, coin_type, owner FROM sui_coins WHERE status = 'exists'", "sql": null }, { "role": "user", ...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE financial_services.customers ( customer_id text PRIMARY KEY, first_name text, last_n...
[ { "role": "user", "content": "Which customers have traded securities with the highest average trading amount per trade across all their accounts? Show me the customer full name, email, and the average trade amount for each customer.", "sql": null }, { "role": "assistant", "content": "SELECT ...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE healthcare.medical_records ( record_id.text, patient_id.text, appointment_id.text, d...
[ { "role": "user", "content": "List all primary insurance policies that will expire within the next 30 days. Return patient_insurance_id, patient_id, policy_number, and expiration_date.", "sql": null }, { "role": "assistant", "content": "SELECT patient_insurance_id,\n patient_id,\n ...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE government_services.citizens ( citizen_id character varying(64) NOT NULL, -- un...
[ { "role": "user", "content": "Count applications per service category.", "sql": null }, { "role": "assistant", "content": "SELECT T2.category, COUNT(T1.application_id) FROM government_services.applications AS T1 JOIN government_services.services AS T2 ON T1.service_id = T2.service_id GROUP B...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE token_basic_info ( coin_id character varying(100) NOT NULL, -- the id of the token t...
[ { "role": "user", "content": "For each narrative in smart_money_token_inflow, calculate the total usd_value and avg_price from buy transactions (type=1) and include the narrative's token count from narrative_info. Show narrative, chain, total_usd_value, avg_price, and token_num, ordered by total_usd_value d...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE legal_services.invoices ( invoice_id.text, invoice_number.text, client_id.text, case...
[ { "role": "user", "content": "Which clients have appointments scheduled for a case that also has at least one invoice issued? Please show the client_id, appointment_id, appointment start_time, related case_id, and invoice_number.", "sql": null }, { "role": "assistant", "content": "SELECT a.c...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE legal_services.clients ( client_id text PRIMARY KEY, first_name text, last_name text...
[ { "role": "user", "content": "Show me a list of all appointments with the subject and full name of the assigned lawyer.", "sql": null }, { "role": "assistant", "content": "SELECT a.appointment_id, a.subject, l.first_name || ' ' || l.last_name AS lawyer_full_name\nFROM legal_services.appointm...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE trading_platform.utxos ( utxo_id character varying(64) NOT NULL, -- unique iden...
[ { "role": "user", "content": "For each address, show the total amount contained in UTXOs that have been spent.", "sql": null }, { "role": "assistant", "content": "SELECT address, SUM(amount) FROM utxos WHERE spent = TRUE GROUP BY address;", "sql": null }, { "role": "user", "c...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE transportation.drivers ( driver_id text PRIMARY KEY, employee_id text, first_name te...
[ { "role": "user", "content": "List the first and last names of all drivers along with the names of locations where they have completed trips as the origin.", "sql": null }, { "role": "assistant", "content": "SELECT d.first_name, d.last_name, l.name AS origin_location_name\nFROM transportatio...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE trading_platform.users ( user_id character varying(64) NOT NULL, username character ...
[ { "role": "user", "content": "Count how many assets have metadata entries for each metadata key, and list the metadata key and asset_count ordered by asset_count descending.", "sql": null }, { "role": "assistant", "content": "SELECT key,\n COUNT(DISTINCT asset_id) AS asset_count\nFROM ...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE legal_services.clients ( client_id character varying(64) NOT NULL, -- unique id...
[ { "role": "user", "content": "Show me the full name of all partner lawyers and the total hours they have spent on all time entries.", "sql": null }, { "role": "assistant", "content": "SELECT l.first_name, l.last_name, SUM(te.hours_spent) AS total_hours FROM legal_services.lawyers l JOIN lega...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE transportation.vehicles ( vehicle_id character varying(64) NOT NULL, license_plate c...
[ { "role": "user", "content": "Give me the number of vehicles grouped by fuel_type.", "sql": null }, { "role": "assistant", "content": "SELECT fuel_type, COUNT(*) AS vehicle_count\nFROM transportation.vehicles\nGROUP BY fuel_type;", "sql": null }, { "role": "user", "content": ...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE trading_platform.users ( user_id.text, username.text, email.text, password_hash.text...
[ { "role": "user", "content": "I want to find the number of orders each user has placed along with their username and email.", "sql": null }, { "role": "assistant", "content": "SELECT u.user_id, u.username, u.email, COUNT(o.order_id) AS order_count\nFROM trading_platform.users u\nLEFT JOIN tr...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE healthcare.patients ( patient_id text PRIMARY KEY, first_name text, last_name text, ...
[ { "role": "user", "content": "Show me all insurance plans that have the word 'Managed' in their plan_name, including the plan_id, plan_name, and insurance_provider.", "sql": null }, { "role": "assistant", "content": "SELECT plan_id, plan_name, insurance_provider\nFROM healthcare.insurance_pl...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE blockchain.blocks ( block_id text PRIMARY KEY, previous_block_id text, timestamp tim...
[ { "role": "user", "content": "Show me all addresses that have created smart contracts, along with their balance and the count of contracts they've created.", "sql": null }, { "role": "assistant", "content": "SELECT a.address_id, a.balance, COUNT(sc.contract_id) AS contract_count FROM blockch...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE legal_services.appointments ( appointment_id text PRIMARY KEY, client_id text, lawye...
[ { "role": "user", "content": "List each appointment along with the start_time of the next appointment for the same lawyer. Include appointment_id and next_start_time.", "sql": null }, { "role": "assistant", "content": "SELECT appointment_id,\n LEAD(start_time) OVER (PARTITION BY lawyer...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE healthcare.patients ( patient_id text, first_name text, last_name text, date_of_birt...
[ { "role": "user", "content": "List the contact phone and website for all insurance plans provided by 'Continental Health'.", "sql": null }, { "role": "assistant", "content": "SELECT plan_name, contact_phone, website\nFROM healthcare.insurance_plans\nWHERE insurance_provider = 'Continental He...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE gaming_technology.players ( player_id.uuid, username.text, email.text, password_hash...
[ { "role": "user", "content": "List the usernames and registration dates for all players from 'Canada'.", "sql": null }, { "role": "assistant", "content": "SELECT username, registration_date FROM gaming_technology.players WHERE country_code = 'Canada';", "sql": null }, { "role": "...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE financial_services.customers ( customer_id text, first_name text, last_name text, da...
[ { "role": "user", "content": "Show me the total number of customers and their average age grouped by city.", "sql": null }, { "role": "assistant", "content": "SELECT city, COUNT(customer_id) AS total_customers, AVG(EXTRACT(YEAR FROM NOW()) - EXTRACT(YEAR FROM date_of_birth)) AS average_age F...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE insurance.claims ( claim_id character varying(64) NOT NULL, policy_id character vary...
[ { "role": "user", "content": "Show all claims along with the total percentage share of beneficiaries for the related policy. Include claim_id, policy_id, incident_date, and total_share.", "sql": null }, { "role": "assistant", "content": "SELECT c.claim_id, c.policy_id, c.incident_date, SUM(p...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE government_services.services ( service_id text PRIMARY KEY, agency_id text, service_...
[ { "role": "user", "content": "Which services have the longest average processing times? List the top 5 services by average processing time.", "sql": null }, { "role": "assistant", "content": "SELECT\n service_name,\n average_processing_time_days\nFROM\n government_services.services\nORDER...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE healthcare.diagnoses ( diagnosis_id text, record_id text, patient_id text, doctor_id...
[ { "role": "user", "content": "List all chronic and active diagnoses for patient 'patient_456', including diagnosis_code, description, and diagnosis_date.", "sql": null }, { "role": "assistant", "content": "SELECT diagnosis_code, description, diagnosis_date FROM healthcare.diagnoses WHERE pat...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE healthcare.patients ( patient_id character varying(64) NOT NULL, -- unique iden...
[ { "role": "user", "content": "List all patient insurance entries where the subscriber name is different from the patient's last name. Include patient ID, subscriber name, and patient last name.", "sql": null }, { "role": "assistant", "content": "SELECT T1.patient_id, T1.subscriber_name, T2.l...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE legal_services.documents ( document_id character varying(64) NOT NULL, -- uniqu...
[ { "role": "user", "content": "List the document name, type, version, and description for all documents.", "sql": null }, { "role": "assistant", "content": "SELECT document_name, document_type, version, description FROM documents;", "sql": null }, { "role": "user", "content": ...
You are an expert in writing database language. You can write a corresponding database language query to answer the user's question based on the table structure described by the table creation statement. ##Table Structure CREATE TABLE insurance.customers ( customer_id.text, first_name.text, last_name.text, date_of_bir...
[ { "role": "user", "content": "Find the total number of unique document types stored in the claim_documents table.", "sql": null }, { "role": "assistant", "content": "SELECT COUNT(DISTINCT document_type) FROM insurance.claim_documents;", "sql": null } ]