system stringlengths 328 7.26k | conversations listlengths 2 8 |
|---|---|
You are very professional for database language writing. 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 narrative_info ( narrative character varying(512) NOT NULL, -- the id of na... | [
{
"role": "user",
"content": "What is the average ROI for smart money addresses on the Ethereum chain?"
},
{
"role": "assistant",
"content": "SELECT AVG(roi) FROM smart_money_token_performance WHERE chain = 'Ethereum';"
}
] |
You are very professional for database language writing. 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_addres... | [
{
"role": "user",
"content": "Show me each transaction ID along with the sender's public key, the receiver's balance, and the transaction amount."
},
{
"role": "assistant",
"content": "SELECT t.transaction_id, a_sender.public_key AS sender_public_key, a_receiver.balance AS receiver_balance, t.am... |
You are very professional for database language writing. 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 NUL... | [
{
"role": "user",
"content": "Find the total number of documents uploaded by each citizen along with their first and last names."
},
{
"role": "assistant",
"content": "SELECT c.citizen_id, c.first_name, c.last_name, COUNT(d.document_id) AS document_count\nFROM government_services.citizens c\nLEF... |
You are very professional for database language writing. 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.timestam... | [
{
"role": "user",
"content": "List all unread notifications received by users who have a private profile, showing all notification details."
},
{
"role": "assistant",
"content": "SELECT n.* FROM social_media.notifications n JOIN social_media.user_settings s ON n.recipient_user_id = s.user_id WHE... |
You are very professional for database language writing. 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.securities ( security_id text, ticker_symbol text, isin_... | [
{
"role": "user",
"content": "For each security, find any other security within the same sector that has a later last_updated timestamp. Return a.ticker_symbol, b.ticker_symbol, and b.last_updated."
},
{
"role": "assistant",
"content": "SELECT a.ticker_symbol AS symbol_a, b.ticker_symbol AS symb... |
You are very professional for database language writing. 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, first_na... | [
{
"role": "user",
"content": "Show me the first and last names of clients along with the first and last names of their lead lawyers for all open cases."
},
{
"role": "assistant",
"content": "SELECT c.first_name AS client_first, c.last_name AS client_last, l.first_name AS lawyer_first, l.last_nam... |
You are very professional for database language writing. 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, route_id text, vehicle_id text, driver... | [
{
"role": "user",
"content": "Show the number of trips operated by each driver along with the earliest and latest scheduled departure dates for them."
},
{
"role": "assistant",
"content": "SELECT driver_id, COUNT(*) AS trip_count, MIN(scheduled_departure) AS first_departure, MAX(scheduled_depart... |
You are very professional for database language writing. 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_i... | [
{
"role": "user",
"content": "Provide a list of order_id and notification_id for all orders and notifications that occurred on the same day for each user."
},
{
"role": "assistant",
"content": "SELECT o.order_id,\n n.notification_id\nFROM trading_platform.orders o\nJOIN trading_platform.no... |
You are very professional for database language writing. 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, project_id ... | [
{
"role": "user",
"content": "Find projects from project_fundraising_record that had fundraising rounds in the year 2023 and have a corresponding token in token_dexpool_info. Show the project name, the investment value, the fundraising round name, and the token symbol and current price from the DEX pool tab... |
You are very professional for database language writing. 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.... | [
{
"role": "user",
"content": "How many available rooms and available services are there for each property?"
},
{
"role": "assistant",
"content": "SELECT\n r.property_id,\n SUM(CASE WHEN r.status = 'Available' THEN 1 ELSE 0 END) AS available_rooms_count,\n SUM(CASE WHEN s.is_available = TRUE T... |
You are very professional for database language writing. 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.insurance_products ( product_id.text, product_name.text, product_... | [
{
"role": "user",
"content": "List all active products with a base premium exceeding 1500 that were created after January 1, 2023, including their product name, type, and base premium. Order the results by creation date ascending."
},
{
"role": "assistant",
"content": "SELECT product_name, produ... |
You are very professional for database language writing. 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, previous_block_id text, timestamp timest... | [
{
"role": "user",
"content": "Find all blocks where the difficulty is between 1000 and 2000."
},
{
"role": "assistant",
"content": "SELECT * FROM blockchain.blocks WHERE difficulty BETWEEN 1000 AND 2000;"
},
{
"role": "user",
"content": "Now filter these results to only show blocks m... |
You are very professional for database language writing. 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 PRIMARY KEY, agency_name text... | [
{
"role": "user",
"content": "Show the agency names and the number of active services they currently offer. List only those agencies with more than 2 active services."
},
{
"role": "assistant",
"content": "SELECT a.agency_name, COUNT(s.service_id) AS active_service_count\nFROM government_service... |
You are very professional for database language writing. 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, fi... | [
{
"role": "user",
"content": "List all pairs of citizens who registered on the same date. Include each citizen's full name and the shared registration date."
},
{
"role": "assistant",
"content": "SELECT c1.first_name || ' ' || c1.last_name AS full_name_1,\n c2.first_name || ' ' || c2.last_... |
You are very professional for database language writing. 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_h... | [
{
"role": "user",
"content": "List NFT collections deployed after block number 10000000 with more than 500 tokens, showing contract_address, name, and token_count."
},
{
"role": "assistant",
"content": "SELECT contract_address, name, token_count\nFROM nft_collections\nWHERE deploy_block_number >... |
You are very professional for database language writing. 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.wallets ( wallet_id text, user_id text, address text, private_key text... | [
{
"role": "user",
"content": "For each user, show the date of their earliest and latest wallet creation."
},
{
"role": "assistant",
"content": "SELECT user_id,\n MIN(created_at) AS first_created,\n MAX(created_at) AS last_created\nFROM web3.wallets\nGROUP BY user_id;"
},
{
"r... |
You are very professional for database language writing. 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, route_number.text, description.text,... | [
{
"role": "user",
"content": "Which routes have their origin and destination in the same city? Show the route number, description, and the origin and destination location IDs."
},
{
"role": "assistant",
"content": "SELECT r.route_number, r.description, r.origin_location_id, r.destination_locatio... |
You are very professional for database language writing. 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.users ( user_id text, username text, email text, password_hash text, c... | [
{
"role": "user",
"content": "Find all pairs of users who registered at exactly the same timestamp, showing both user IDs, usernames, and the shared registration timestamp."
},
{
"role": "assistant",
"content": "SELECT u1.user_id AS user_id_1, u1.username AS username_1, u2.user_id AS user_id_2, ... |
You are very professional for database language writing. 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.token_transfers ( transfer_id text PRIMARY KEY, token_id text, from_ad... | [
{
"role": "user",
"content": "Find token transfers within the same transaction where the recipient of an earlier transfer (based on log_index) becomes the sender of a later transfer. List the transaction ID, the earlier transfer ID, the later transfer ID, the shared address, and the value transferred in bot... |
You are very professional for database language writing. 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 text PRIMARY KEY, claim_id text, do... | [
{
"role": "user",
"content": "List the document ID, file name, document type, and upload date for all documents."
},
{
"role": "assistant",
"content": "SELECT document_id, file_name, document_type, uploaded_at FROM insurance.claim_documents;"
},
{
"role": "user",
"content": "From the... |
You are very professional for database language writing. 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 PRIMARY KEY, property_... | [
{
"role": "user",
"content": "Show me the list of all room numbers and their corresponding guest full names for current reservations (status is 'Occupied' or 'CheckedIn')."
},
{
"role": "assistant",
"content": "SELECT r.room_number, g.first_name || ' ' || g.last_name AS guest_full_name\nFROM hos... |
You are very professional for database language writing. 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.player_achievements (
player_achievement_id uuid NOT ... | [
{
"role": "user",
"content": "For each player, count the total number of achievements they've unlocked."
},
{
"role": "assistant",
"content": "SELECT player_id,\n COUNT(*) AS total_achievements\nFROM gaming_technology.player_achievements\nGROUP BY player_id;"
},
{
"role": "user",
... |
You are very professional for database language writing. 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, da... | [
{
"role": "user",
"content": "Show me a list of all customers from California along with their full names and phone numbers."
},
{
"role": "assistant",
"content": "SELECT customer_id, first_name || ' ' || last_name AS full_name, phone_number FROM insurance.customers WHERE state = 'CA';"
},
{... |
You are very professional for database language writing. 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_h... | [
{
"role": "user",
"content": "List all NFT holdings from the `nft_holders` table where the `contract_type` is 'ERC721'. Show the wallet address, contract address, token ID, and amount held."
},
{
"role": "assistant",
"content": "SELECT wallet_address, contract_address, token_id, CAST(amount AS D... |
You are very professional for database language writing. 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, emai... | [
{
"role": "user",
"content": "Show me the username and registration date for players who do not have a last login recorded."
},
{
"role": "assistant",
"content": "SELECT username, registration_date FROM gaming_technology.players WHERE last_login IS NULL;"
},
{
"role": "user",
"conten... |
You are very professional for database language writing. 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.trades ( trade_id character varying(64) NOT NULL, accoun... | [
{
"role": "user",
"content": "Show me all trades (trade_id, security_id, total_amount) where the trade_type is 'Buy' and the execution_venue is 'NYSE', along with the loan details (loan_type, principal_amount) for accounts that have both trades and loans."
},
{
"role": "assistant",
"content": "S... |
You are very professional for database language writing. 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 character varying(64) NOT NULL, previous_block... | [
{
"role": "user",
"content": "Show me the block with the earliest timestamp and its corresponding previous block's difficulty level."
},
{
"role": "assistant",
"content": "SELECT b1.block_id, b1.timestamp, b2.difficulty AS previous_block_difficulty FROM blockchain.blocks b1 LEFT JOIN blockchain.... |
You are very professional for database language writing. 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, p... | [
{
"role": "user",
"content": "Show all notifications of type 'comment' with the content of the corresponding comment and the author's username."
},
{
"role": "assistant",
"content": "SELECT n.notification_id,\n n.recipient_user_id,\n c.content AS comment_content,\n u.username\n... |
You are very professional for database language writing. 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.... | [
{
"role": "user",
"content": "List all rooms with their latest review comment and the date of that review, showing the room number and property id."
},
{
"role": "assistant",
"content": "SELECT r.room_number, r.property_id, rv.comment, rv.review_date\nFROM hospitality_technology.rooms r\nLEFT JO... |
You are very professional for database language writing. 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 ... | [
{
"role": "user",
"content": "Show reviews with an overall rating of 5, including the guest's full name and the property ID."
},
{
"role": "assistant",
"content": "SELECT T1.first_name, T1.last_name, T2.property_id FROM hospitality_technology.guests AS T1 JOIN hospitality_technology.reviews AS T... |
You are very professional for database language writing. 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_nu... | [
{
"role": "user",
"content": "For each employee who acts as a manager, please show the number of employees directly reporting to them."
},
{
"role": "assistant",
"content": "SELECT m.first_name || ' ' || m.last_name AS manager_name, COUNT(e.employee_id) AS direct_report_count FROM financial_serv... |
You are very professional for database language writing. 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 text, property_id text, ty... | [
{
"role": "user",
"content": "Get the count of service orders and total payment amount for each reservation."
},
{
"role": "assistant",
"content": "SELECT so.reservation_id,\n COUNT(*) AS order_count,\n SUM(p.amount) AS total_payment\nFROM hospitality_technology.service_orders so\nJO... |
You are very professional for database language writing. 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.payments ( payment_id text, reservation_id text, gue... | [
{
"role": "user",
"content": "For each payment, list its payment_id, guest_id, payment_timestamp, and the next payment_id and next payment_timestamp made by the same guest."
},
{
"role": "assistant",
"content": "SELECT p.payment_id,\n p.guest_id,\n p.payment_timestamp,\n n.paym... |
You are very professional for database language writing. 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.applications ( application_id character varying(64) NOT... | [
{
"role": "user",
"content": "List the reference number and status for all applications, including the registration date of the citizen who submitted it."
},
{
"role": "assistant",
"content": "SELECT a.reference_number, a.status, c.registration_date FROM government_services.applications AS a JOI... |
You are very professional for database language writing. 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.insurance_products ( product_id text PRIMARY KEY, product_name te... | [
{
"role": "user",
"content": "Give me the product name and description of all insurance products that have been updated in the last 30 days."
},
{
"role": "assistant",
"content": "SELECT product_name, description FROM insurance.insurance_products WHERE updated_at >= NOW() - INTERVAL '30 days';"
... |
You are very professional for database language writing. 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.assets ( asset_id text PRIMARY KEY, name text, symbol text... | [
{
"role": "user",
"content": "List all assets that have at least one associated metadata entry, showing the asset name, symbol, and the key and value of each metadata entry."
},
{
"role": "assistant",
"content": "SELECT a.name, a.symbol, m.key, m.value FROM trading_platform.assets a JOIN trading... |
You are very professional for database language writing. 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.medications ( medication_id text PRIMARY KEY, medication_name te... | [
{
"role": "user",
"content": "List the medication IDs and names for all entries where the description is missing or empty."
},
{
"role": "assistant",
"content": "SELECT medication_id, medication_name FROM healthcare.medications WHERE description IS NULL OR description = '';"
},
{
"role":... |
You are very professional for database language writing. 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... | [
{
"role": "user",
"content": "Count the number of users whose location is 'London'."
},
{
"role": "assistant",
"content": "SELECT count(*) FROM social_media.users WHERE location = 'London';"
}
] |
You are very professional for database language writing. 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, fi... | [
{
"role": "user",
"content": "Show the first and last name of each citizen and the count of their scheduled appointments."
},
{
"role": "assistant",
"content": "SELECT c.first_name, c.last_name, COUNT(a.appointment_id) AS scheduled_appointment_count FROM government_services.citizens AS c JOIN go... |
You are very professional for database language writing. 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 PRIMARY KEY, first_name text, last_n... | [
{
"role": "user",
"content": "List all policies where the premium_amount exceeds the base_premium of its insurance product. Display the policy_number, premium_amount, product_name, and base_premium. Sort the results by premium_amount descending."
},
{
"role": "assistant",
"content": "SELECT p.po... |
You are very professional for database language writing. 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.policy_beneficiaries ( beneficiary_id text, policy_id text, custo... | [
{
"role": "user",
"content": "Show the first name, last name, and contact information for beneficiaries added before 2023."
},
{
"role": "assistant",
"content": "SELECT first_name, last_name, contact_info FROM insurance.policy_beneficiaries WHERE added_at < '2023-01-01';"
},
{
"role": "u... |
You are very professional for database language writing. 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, fi... | [
{
"role": "user",
"content": "Find currently employed employees whose direct manager has been terminated. Display the employee's full name, hire date, manager's full name, and manager's termination date."
},
{
"role": "assistant",
"content": "SELECT e.employee_id,\n CONCAT(e.first_name, ' ... |
You are very professional for database language writing. 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.applications ( application_id.text, citizen_id.text, se... | [
{
"role": "user",
"content": "Show me a list of all appointment IDs, the name of the service associated with each appointment, and the location name where it is scheduled."
},
{
"role": "assistant",
"content": "SELECT appt.appointment_id, srv.service_id, loc.location_name\nFROM government_servic... |
You are very professional for database language writing. 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.text, license_plate.text, vin.text, ma... | [
{
"role": "user",
"content": "Find all vehicles that have at least one fuel log and at least one maintenance log. For each vehicle, show vehicle_id, make, model, the date of its most recent maintenance, and the timestamp of its earliest fuel log."
},
{
"role": "assistant",
"content": "SELECT v.v... |
You are very professional for database language writing. 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 PRIMARY KEY, invoice_number text ... | [
{
"role": "user",
"content": "Show the count of invoices for each case ID."
},
{
"role": "assistant",
"content": "SELECT case_id, COUNT(invoice_id) AS invoice_count FROM legal_services.invoices WHERE case_id IS NOT NULL GROUP BY case_id ORDER BY invoice_count DESC"
},
{
"role": "user",
... |
You are very professional for database language writing. 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 character varying(100) NOT NULL, rank INT, pro... | [
{
"role": "user",
"content": "How many smart money addresses are in the top 100 rank?"
},
{
"role": "assistant",
"content": "SELECT count(address) FROM smart_money_profit WHERE rank <= 100"
},
{
"role": "user",
"content": "Okay, can you break that down by `chain`? Show the count for ... |
You are very professional for database language writing. 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 train_station_management.train_cars (
car_id character varying(64) NOT ... | [
{
"role": "user",
"content": "Can you help me retrieve the details of all bookings for a specific route with route_id 'RT789', including the passenger names and the scheduled departure times?"
},
{
"role": "assistant",
"content": "SELECT b.booking_id, p.first_name, p.last_name, s.departure_datet... |
You are very professional for database language writing. 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_addres... | [
{
"role": "user",
"content": "I want to know how many times each smart contract has been invoked by transactions; also include the contract creator."
},
{
"role": "assistant",
"content": "SELECT sc.contract_id, sc.creator_address, COUNT(t.transaction_id) AS invocation_count\nFROM blockchain.smar... |
You are very professional for database language writing. 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.payments ( payment_id text, application_id text, citize... | [
{
"role": "user",
"content": "How many payments have been made using each payment_method, and what is the total amount for each method?"
},
{
"role": "assistant",
"content": "SELECT payment_method, COUNT(*) AS payment_count, SUM(amount) AS total_amount\nFROM government_services.payments\nGROUP B... |
You are very professional for database language writing. 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.reservations ( reservation_id text, property_id text... | [
{
"role": "user",
"content": "Find all pairs of overlapping reservations for the same room. Show the two reservation IDs, room_id, and both reservations' check-in and check-out dates."
},
{
"role": "assistant",
"content": "SELECT r1.reservation_id AS reservation1_id, r2.reservation_id AS reserva... |
You are very professional for database language writing. 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, dat... | [
{
"role": "user",
"content": "List all patients who have both primary and non-primary insurance plans, showing their full names and the count of each type of plan."
},
{
"role": "assistant",
"content": "SELECT p.first_name, p.last_name, SUM(CASE WHEN pi.is_primary = true THEN 1 ELSE 0 END) AS pr... |
You are very professional for database language writing. 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.contracts ( contract_id character varying(64) NOT NULL, address charac... | [
{
"role": "user",
"content": "Find the wallet address, user ID, and the contract address of any contract where that wallet is listed as the deployer."
},
{
"role": "assistant",
"content": "SELECT w.address AS wallet_address, w.user_id, c.address AS contract_address\nFROM web3.wallets w\nJOIN web... |
You are very professional for database language writing. 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.reservations (
reservation_id character varying(... | [
{
"role": "user",
"content": "List all reservations made in the last 6 months, showing the reservation ID, guest ID, and status."
},
{
"role": "assistant",
"content": "SELECT reservation_id, guest_id, status FROM hospitality_technology.reservations WHERE created_at >= current_date - interval '6 ... |
You are very professional for database language writing. 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 chara... | [
{
"role": "user",
"content": "Find users with push_notifications_enabled set to false who have unread notifications. Show their username and the count of unread notifications."
},
{
"role": "assistant",
"content": "SELECT u.username, COUNT(n.notification_id) AS unread_count FROM social_media.use... |
You are very professional for database language writing. 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, cla... | [
{
"role": "user",
"content": "Find the claim ID and the total number of documents associated with each claim ID that has more than 10 documents."
},
{
"role": "assistant",
"content": "SELECT claim_id, COUNT(*) FROM insurance.claim_documents GROUP BY claim_id HAVING COUNT(*) > 10;"
}
] |
You are very professional for database language writing. 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.doctors ( doctor_id text, first_name text, last_name text, speci... | [
{
"role": "user",
"content": "List the first name, last name, prescription ID, diagnosis code, and diagnosis description for patients who have both an ongoing prescription and an active chronic diagnosis."
},
{
"role": "assistant",
"content": "SELECT DISTINCT T1.first_name, T1.last_name, T2.pres... |
You are very professional for database language writing. 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_... | [
{
"role": "user",
"content": "I need a list of unique company names and the number of clients in each company."
},
{
"role": "assistant",
"content": "SELECT company_name, COUNT(*) AS client_count\nFROM legal_services.clients\nWHERE company_name IS NOT NULL\nGROUP BY company_name;"
},
{
"... |
You are very professional for database language writing. 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 character varying(64) NOT NULL, user_id ... | [
{
"role": "user",
"content": "I want the number of peers per port, but only ports with more than 5 peers. List port and peer_count."
},
{
"role": "assistant",
"content": "SELECT port, COUNT(*) AS peer_count\nFROM trading_platform.peers\nGROUP BY port\nHAVING COUNT(*) > 5;"
}
] |
You are very professional for database language writing. 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, -- uniq... | [
{
"role": "user",
"content": "Show me all in-progress trips with their current locations (origin_location_id) and destinations, along with the scheduled vs actual departure time difference in minutes."
},
{
"role": "assistant",
"content": "SELECT trip_id, origin_location_id, destination_location... |
You are very professional for database language writing. 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 character varying(64) NOT NULL, user_i... | [
{
"role": "user",
"content": "List all peers with their IP addresses who have not been seen in the last 7 days."
},
{
"role": "assistant",
"content": "SELECT peer_id, ip_address, port, last_seen\nFROM trading_platform.peers\nWHERE last_seen < NOW() - INTERVAL '7 days';"
}
] |
You are very professional for database language writing. 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 PRIMARY KEY, national_id_num... | [
{
"role": "user",
"content": "Show me the first and last names of citizens along with their dates of birth and contact emails for all citizens who registered after January 1, 2023."
},
{
"role": "assistant",
"content": "SELECT first_name, last_name, date_of_birth, contact_email FROM government_s... |
You are very professional for database language writing. 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.messages ( message_id text PRIMARY KEY, conversation_id text, ... | [
{
"role": "user",
"content": "How many messages in total have been sent that do not contain any media attachment?"
},
{
"role": "assistant",
"content": "SELECT COUNT(*) AS non_media_message_count\nFROM social_media.messages\nWHERE media_url IS NULL OR media_url = '';"
}
] |
You are very professional for database language writing. 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.doctors ( doctor_id character varying(64) NOT NULL, first_name c... | [
{
"role": "user",
"content": "Show a list of diagnoses along with the chief complaint noted in the corresponding medical record. Display diagnosis description, diagnosis date, and the chief complaint."
},
{
"role": "assistant",
"content": "SELECT T1.description, T1.diagnosis_date, T2.chief_compl... |
You are very professional for database language writing. 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.logs ( log_id character varying(64) NOT NULL, user_id char... | [
{
"role": "user",
"content": "Show the earliest and latest timestamp recorded in the logs table."
},
{
"role": "assistant",
"content": "SELECT MIN(logged_at), MAX(logged_at) FROM trading_platform.logs;"
}
] |
You are very professional for database language writing. 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.nodes ( node_id character varying(64) NOT NULL, ip_address chara... | [
{
"role": "user",
"content": "List each port along with the count of distinct IP addresses observed on that port."
},
{
"role": "assistant",
"content": "SELECT port, COUNT(DISTINCT ip_address) AS unique_ip_count FROM blockchain.nodes GROUP BY port;"
},
{
"role": "user",
"content": "O... |
You are very professional for database language writing. 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, fi... | [
{
"role": "user",
"content": "Give me a list of employees (first and last name) along with the count of appointments they have scheduled."
},
{
"role": "assistant",
"content": "SELECT e.first_name, e.last_name, COUNT(a.appointment_id) AS appointment_count\nFROM government_services.employees e\nL... |
You are very professional for database language writing. 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, token_name char... | [
{
"role": "user",
"content": "Show me the top 3 tokens by trend rank in the 'NFT' narrative, along with their price and 24-hour trading volume."
},
{
"role": "assistant",
"content": "SELECT token_name, token_symbol, price, total_volume FROM token_basic_info WHERE narrative = 'NFT' ORDER BY trend... |
You are very professional for database language writing. 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
// PUT /schedules
{
"mappings": {
"properties": {
"schedule_id": { "type": "... | [
{
"role": "user",
"content": "能否帮我查询特定路线(route_id 为 'RT001')的所有行程信息,并关联到乘客的联系方式?"
},
{
"role": "assistant",
"content": "SELECT s.schedule_id, s.train_id, s.route_id, s.departure_datetime, s.arrival_datetime, s.status, p.passenger_id, p.first_name, p.last_name, p.phone_number, p.email\nFROM sched... |
You are very professional for database language writing. 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.insurance_products (
product_id character varying(64) NOT NUL... | [
{
"role": "user",
"content": "List all insurance products with a base premium greater than 1000 and less than 5000. Show the product name, product type, and base premium."
},
{
"role": "assistant",
"content": "SELECT product_name, product_type, base_premium FROM insurance.insurance_products WHER... |
You are very professional for database language writing. 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.wallets ( wallet_id.text, user_id.text, address_id.text, private... | [
{
"role": "user",
"content": "List all users whose password hash contains the substring 'abc'."
},
{
"role": "assistant",
"content": "SELECT user_id, username, password_hash FROM blockchain.users WHERE password_hash LIKE '%abc%';"
},
{
"role": "user",
"content": "Also include their e... |
You are very professional for database language writing. 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, dat... | [
{
"role": "user",
"content": "How many patients have at least one medical record associated with them?"
},
{
"role": "assistant",
"content": "SELECT COUNT(DISTINCT patient_id) FROM healthcare.medical_records;"
},
{
"role": "user",
"content": "Now, can you show me the count of patient... |
You are very professional for database language writing. 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, ... | [
{
"role": "user",
"content": "Show me the review_id, review_date, and comment for all non-public reviews along with the guest's first and last name."
},
{
"role": "assistant",
"content": "SELECT r.review_id, r.review_date, r.comment, g.first_name, g.last_name\nFROM hospitality_technology.reviews... |
You are very professional for database language writing. 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 text, case_number text, case_name text, clie... | [
{
"role": "user",
"content": "List the appointment ID, start time, and the case number for all appointments that are linked to a case."
},
{
"role": "assistant",
"content": "SELECT T1.appointment_id, T1.start_time, T2.case_number FROM legal_services.appointments AS T1 JOIN legal_services.cases A... |
You are very professional for database language writing. 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, fi... | [
{
"role": "user",
"content": "For each employee, show their first and last name and the number of documents they have verified."
},
{
"role": "assistant",
"content": "SELECT e.first_name, e.last_name, COUNT(d.document_id) AS verified_documents_count\nFROM government_services.employees e\nJOIN go... |
You are very professional for database language writing. 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, descr... | [
{
"role": "user",
"content": "List the route number, description, and the name of both the origin and destination locations for all routes where the origin and destination are in different countries."
},
{
"role": "assistant",
"content": "SELECT r.route_number, r.description, l1.name AS origin_n... |
You are very professional for database language writing. 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.lawyers ( lawyer_id text, first_name text, last_name text, b... | [
{
"role": "user",
"content": "List all lawyers along with the full name of another lawyer from the same firm."
},
{
"role": "assistant",
"content": "SELECT a.lawyer_id,\n CONCAT(a.first_name, ' ', a.last_name) AS full_name,\n CONCAT(b.first_name, ' ', b.last_name) AS colleague_full_n... |
You are very professional for database language writing. 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, a... | [
{
"role": "user",
"content": "Show me staff members who were hired after the property they work at was created. List their first name, last name, hire date, the property name, and the property creation date."
},
{
"role": "assistant",
"content": "SELECT T1.first_name, T1.last_name, T1.hire_date,... |
You are very professional for database language writing. 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, licens... | [
{
"role": "user",
"content": "Show me all active electric vehicles along with their make, model, and license plate, ordered by acquisition date with the newest first."
},
{
"role": "assistant",
"content": "SELECT vehicle_id, make, model, license_plate, acquisition_date FROM transportation.vehicl... |
You are very professional for database language writing. 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.wallets ( wallet_id character varying(64) NOT NULL, user_id character ... | [
{
"role": "user",
"content": "For each user, can you list all their wallet addresses and the creation timestamps of those wallets?"
},
{
"role": "assistant",
"content": "SELECT user_id, address, created_at FROM web3.wallets ORDER BY user_id, created_at;"
}
] |
You are very professional for database language writing. 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 text PRIMARY KEY, customer_id text, product_... | [
{
"role": "user",
"content": "Show me all policies that expired in the last 60 days, along with their product IDs and premium amounts."
},
{
"role": "assistant",
"content": "SELECT policy_id, product_id, premium_amount FROM insurance.policies WHERE status = 'expired' AND end_date >= CURRENT_DATE... |
You are very professional for database language writing. 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 character varying(64) NOT NULL, first_nam... | [
{
"role": "user",
"content": "Show me all customers whose last name starts with 'M' and who were created in the system after July 1, 2022."
},
{
"role": "assistant",
"content": "SELECT customer_id, first_name, last_name, email, created_at\nFROM insurance.customers\nWHERE last_name LIKE 'M%' AND ... |
You are very professional for database language writing. 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.reservations ( reservation_id.text, property_id.text... | [
{
"role": "user",
"content": "Show me each guest's reservation count and average stay length in days."
},
{
"role": "assistant",
"content": "SELECT guest_id,\n COUNT(*) AS reservation_count,\n AVG(check_out_date - check_in_date) AS avg_stay_days\nFROM hospitality_technology.reservati... |
You are very professional for database language writing. 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.in_game_items ( item_id.uuid, game_id.uuid, item_name.tex... | [
{
"role": "user",
"content": "Find pairs of items from the same game, where one item is of type 'Weapon' and the other is of type 'Consumable'. List the game ID, the name of the weapon, and the name of the consumable."
},
{
"role": "assistant",
"content": "SELECT i1.game_id, i1.item_name AS weap... |
You are very professional for database language writing and you can refuse the user's question if the question is not related to the table structure. 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 Struc... | [
{
"role": "user",
"content": "What are the personal contact details of the staff member associated with staff_id 'STAFF789' who worked on a specific maintenance record?"
},
{
"role": "assistant",
"content": "I'm sorry, but I can't provide personal contact details of staff members as this informa... |
You are very professional for database language writing. 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 text, case_id text, document_name te... | [
{
"role": "user",
"content": "Show me the document name, upload timestamp, time entry date worked, and hours spent for all entries related to case 'CASE_XYZ'."
},
{
"role": "assistant",
"content": "SELECT T1.document_name , T1.upload_timestamp , T2.date_worked , T2.hours_spent FROM documents ... |
You are very professional for database language writing. 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.follows ( follow_id text, follower_user_id text, following_use... | [
{
"role": "user",
"content": "How many users does each user follow? Show the follower user ID and the count."
},
{
"role": "assistant",
"content": "SELECT follower_user_id, count(*) FROM social_media.follows GROUP BY follower_user_id;"
}
] |
You are very professional for database language writing. 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, pass... | [
{
"role": "user",
"content": "List all game titles and corresponding server names for servers that are located in the same region as 'us-central-1'."
},
{
"role": "assistant",
"content": "SELECT g.title, s.server_name\nFROM gaming_technology.servers s\nJOIN gaming_technology.games g ON s.game_id... |
You are very professional for database language writing. 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, emai... | [
{
"role": "user",
"content": "List the usernames and registration dates for all players from Germany ('DE') who are currently 'online'."
},
{
"role": "assistant",
"content": "SELECT username, registration_date FROM gaming_technology.players WHERE country_code = 'DE' AND status = 'online';"
},
... |
You are very professional for database language writing. 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 NUL... | [
{
"role": "user",
"content": "Show me the full names and contact emails of citizens who have received notifications via 'SMS'."
},
{
"role": "assistant",
"content": "SELECT DISTINCT c.first_name, c.last_name, c.contact_email\nFROM government_services.citizens c\nJOIN government_services.notifica... |
You are very professional for database language writing. 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.prescriptions ( prescription_id text PRIMARY KEY, record_id text... | [
{
"role": "user",
"content": "Find pairs of prescriptions issued to the same patient but for different medications, issued on the same date. Show the patient ID, the prescription IDs of the two prescriptions, and their medication IDs and prescription dates."
},
{
"role": "assistant",
"content": ... |
You are very professional for database language writing. 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, emai... | [
{
"role": "user",
"content": "I'd like to see, for each month, the total number of players who registered and how many of them are active versus inactive."
},
{
"role": "assistant",
"content": "SELECT DATE_TRUNC('month', registration_date) AS month,\n COUNT(*) AS total_registrations,\n ... |
You are very professional for database language writing. 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.post_hashtags ( post_hashtag_id.text, post_id.text, hashtag_id... | [
{
"role": "user",
"content": "How many distinct posts does each hashtag appear in?"
},
{
"role": "assistant",
"content": "SELECT hashtag_id, COUNT(DISTINCT post_id) AS post_count FROM social_media.post_hashtags GROUP BY hashtag_id;"
}
] |
You are very professional for database language writing and you can refuse the user's question if the question is not related to the table structure. 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 Struc... | [
{
"role": "user",
"content": "What is the maintenance schedule for the platforms at the station with ID 'ST234' for the next month?"
},
{
"role": "assistant",
"content": "I'm sorry, but I don't have access to the maintenance schedule for the platforms at any station. The data I have only include... |
You are very professional for database language writing. 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.in_game_items ( item_id uuid NOT NULL DEFAULT gen_random_... | [
{
"role": "user",
"content": "Can you list all item names along with their type, rarity, and cost amount for every item in the database?"
},
{
"role": "assistant",
"content": "SELECT item_name, item_type, rarity, cost_amount FROM gaming_technology.in_game_items;"
},
{
"role": "user",
... |
You are very professional for database language writing. 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... | [
{
"role": "user",
"content": "Show me the usernames and email addresses of all users who are participants in conversations where user 'U333' has sent at least one message."
},
{
"role": "assistant",
"content": "SELECT DISTINCT u.username, u.email\nFROM social_media.conversation_participants cp\n... |
You are very professional for database language writing. 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 N... | [
{
"role": "user",
"content": "List all guests currently checked in, showing their full name, room number, property name, and check-in date."
},
{
"role": "assistant",
"content": "SELECT g.first_name || ' ' || g.last_name AS guest_name,\n r.room_number,\n p.property_name,\n res.... |
You are very professional for database language writing. 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 character varying(64) NOT NULL, ag... | [
{
"role": "user",
"content": "Could you list all agencies along with the name of their parent agency?"
},
{
"role": "assistant",
"content": "SELECT child.agency_name AS agency_name, parent.agency_name AS parent_agency_name FROM government_services.agencies AS child LEFT JOIN government_services.... |
You are very professional for database language writing. 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 manufacturing.components (
component_id character varying(64) NOT NULL,... | [
{
"role": "user",
"content": "我想查询某个特定组件ID的详细信息,包括组件名称、材料名称、材料密度以及供应商ID,同时还需要知道该组件在哪个装配线上的飞机型号ID。"
},
{
"role": "assistant",
"content": "SELECT c.component_id, c.component_name, m.material_name, m.density_kg_m3, c.supplier_id, al.aircraft_model_id\nFROM manufacturing.components c\nJOIN manufactu... |
You are very professional for database language writing. 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... | [
{
"role": "user",
"content": "For each user, show their username and how many unique conversations they have sent at least one message in where the conversation is a group chat."
},
{
"role": "assistant",
"content": "SELECT u.username, COUNT(DISTINCT m.conversation_id) AS group_chats_messaged_in... |
You are very professional for database language writing. 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... | [
{
"role": "user",
"content": "List all employees hired in 2023 along with their job title and email."
},
{
"role": "assistant",
"content": "SELECT employee_id, first_name, last_name, job_title, email\nFROM financial_services.employees\nWHERE EXTRACT(YEAR FROM hire_date) = 2023;"
},
{
"ro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.