system stringlengths 376 5.88k | conversations listlengths 2 8 |
|---|---|
I think you have deep knowledge in database programming 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_ra... | [
{
"role": "user",
"content": "Show me the number of players who registered each year. List the registration year and the count."
},
{
"role": "assistant",
"content": "SELECT EXTRACT(YEAR FROM registration_date) AS registration_year, COUNT(*) AS player_count FROM gaming_technology.players GROUP B... |
I think you have deep knowledge in database programming 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.insurance_products ( product_id.text, product_name.text,... | [
{
"role": "user",
"content": "Find pairs of products that share the same product_type but have different is_active statuses. Return the product_type, active product_id, active product_name, inactive product_id, and inactive product_name."
},
{
"role": "assistant",
"content": "SELECT a.product_ty... |
I think you have deep knowledge in database programming 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) NO... | [
{
"role": "user",
"content": "List the sent notifications related to appointments, including notification ID, message subject, citizen full name, and scheduled start time of the appointment."
},
{
"role": "assistant",
"content": "SELECT\n n.notification_id,\n n.message_subject,\n c.first_name... |
I think you have deep knowledge in database programming 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, pass... | [
{
"role": "user",
"content": "List group conversation names created after 2024-01-01 with the count of verified participants in each group."
},
{
"role": "assistant",
"content": "SELECT c.group_name, COUNT(cp.user_id) AS verified_count\nFROM social_media.conversations c\nJOIN social_media.conver... |
I think you have deep knowledge in database programming 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, f... | [
{
"role": "user",
"content": "List prescription ID, medication ID, and the record ID for all prescriptions linked to medical records where the chief complaint contains 'cough'."
},
{
"role": "assistant",
"content": "SELECT T1.prescription_id, T1.medication_id, T1.record_id FROM healthcare.prescr... |
I think you have deep knowledge in database programming 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.text, license_plate.text, vin... | [
{
"role": "user",
"content": "Can you provide the total number of fuel refueling events and the sum of total_cost at each fueling location, including the location name and city?"
},
{
"role": "assistant",
"content": "SELECT l.location_id, l.name, l.city, COUNT(fl.fuel_log_id) AS num_refuels, SUM... |
I think you have deep knowledge in database programming 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.reservations ( reservation_id text, attribu... | [
{
"role": "user",
"content": "What is the total revenue (sum of total_amount) and total amount_paid for each booking_source?"
},
{
"role": "assistant",
"content": "SELECT booking_source,\n SUM(total_amount) AS total_revenue,\n SUM(amount_paid) AS total_paid\nFROM reservations\nGROUP ... |
I think you have deep knowledge in database programming 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.appointments ( appointment_id text, patient_id text, do... | [
{
"role": "user",
"content": "Find overlapping appointments for each doctor. Return doctor_id, appointment_id_1, appointment_id_2, and overlap duration in minutes."
},
{
"role": "assistant",
"content": "SELECT a.doctor_id,\n a.appointment_id AS appointment_id_1,\n b.appointment_id AS... |
I think you have deep knowledge in database programming 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... | [
{
"role": "user",
"content": "Show pairs of customers who live in the same state but different cities. Include their IDs, full names, and state."
},
{
"role": "assistant",
"content": "SELECT a.customer_id AS customer_a_id, a.first_name AS customer_a_first_name, a.last_name AS customer_a_last_nam... |
I think you have deep knowledge in database programming 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 character varying(64) NOT NULL, user_... | [
{
"role": "user",
"content": "I want to see each post along with the user's previous post and the time difference between them."
},
{
"role": "assistant",
"content": "SELECT p2.post_id AS up-to-date_post, p1.post_id AS previous_post, EXTRACT(EPOCH FROM (p2.created_at - p1.created_at))/60 AS diff... |
I think you have deep knowledge in database programming 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.text, policy_id.text, cust... | [
{
"role": "user",
"content": "List all pending premium payments made in March 2024, showing payment_id, customer_id, amount_paid, and due_date, ordered by payment_date ascending."
},
{
"role": "assistant",
"content": "SELECT payment_id,\n customer_id,\n amount_paid,\n due_date\... |
I think you have deep knowledge in database programming 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_... | [
{
"role": "user",
"content": "Show all diagnosis codes and descriptions for patients diagnosed by doctor 'doctor_789'."
},
{
"role": "assistant",
"content": "SELECT patient_id, diagnosis_code, description FROM healthcare.diagnoses WHERE doctor_id = 'doctor_789';"
},
{
"role": "user",
... |
I think you have deep knowledge in database programming 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, cus... | [
{
"role": "user",
"content": "List pairs of policies for the same customer that have the same premium amount but different coverage limits. Show customer ID, policy ID 1, policy ID 2, the premium amount, and the two coverage limits."
},
{
"role": "assistant",
"content": "SELECT T1.customer_id, T... |
I think you have deep knowledge in database programming 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_... | [
{
"role": "user",
"content": "How many active insurance policies are there for each plan_id? Show plan_id and active_count."
},
{
"role": "assistant",
"content": "SELECT plan_id,\n COUNT(*) AS active_count\nFROM healthcare.patient_insurance\nWHERE expiration_date IS NULL OR expiration_date... |
I think you have deep knowledge in database programming 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 character varying(64) N... | [
{
"role": "user",
"content": "List for each fuel_type and unit the average total_cost at each fueling location. Include fuel_type, unit, location name, city, and average_cost, and order the result by average_cost descending."
},
{
"role": "assistant",
"content": "SELECT\n f.fuel_type,\n f.... |
I think you have deep knowledge in database programming 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, -... | [
{
"role": "user",
"content": "Calculate the average 24-hour trading volume for all credentials listed in DEX pools on the 'BSC' chain."
},
{
"role": "assistant",
"content": "SELECT AVG(volume_24h) FROM credential_dexpool_info WHERE chain = 'BSC'"
}
] |
I think you have deep knowledge in database programming 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.text, transaction_id.text, output... | [
{
"role": "user",
"content": "Show me the distribution of UTXO amounts by creating buckets (0-10, 10-50, 50-100, 100-500, 500+), along with the count and total amount in each bucket."
},
{
"role": "assistant",
"content": "SELECT CASE WHEN amount <= 10 THEN '0-10' WHEN amount <= 50 THEN '10-50' W... |
I think you have deep knowledge in database programming language 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.
##Ta... | [
{
"role": "user",
"content": "What is the fuel efficiency of the train car with car_id 'TC456'?"
},
{
"role": "assistant",
"content": "I'm sorry, but I don't have access to information about the fuel efficiency of specific train cars. The data available in the train_cars table only includes deta... |
I think you have deep knowledge in database programming 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 NOT NULL DEFAULT... | [
{
"role": "user",
"content": "List the name and points of all hidden achievements."
},
{
"role": "assistant",
"content": "SELECT name, points\nFROM gaming_technology.achievements\nWHERE hidden = true;"
},
{
"role": "user",
"content": "Only include those with points greater than 50."
... |
I think you have deep knowledge in database programming 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.t... | [
{
"role": "user",
"content": "Show me all players who have more than 20 items in their inventory."
},
{
"role": "assistant",
"content": "SELECT p.player_id, p.username, SUM(pi.quantity) AS total_items\nFROM gaming_technology.players p\nJOIN gaming_technology.player_inventory pi ON p.player_id = ... |
I think you have deep knowledge in database programming 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 PRIMARY KEY, record_id te... | [
{
"role": "user",
"content": "List all prescriptions where the dosage text contains the word 'unit'. Show the prescription ID, medication ID, and dosage."
},
{
"role": "assistant",
"content": "SELECT prescription_id, medication_id, dosage FROM healthcare.prescriptions WHERE dosage LIKE '%unit%';... |
I think you have deep knowledge in database programming 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.reservations ( reservation_id text PRIMARY ... | [
{
"role": "user",
"content": "List all pairs of overlapping reservations at the same attribute, including both reservation IDs and the overlap duration in days."
},
{
"role": "assistant",
"content": "select r1.reservation_id as reservation1_id, r2.reservation_id as reservation2_id, least(r1.insp... |
I think you have deep knowledge in database programming 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.servers ( server_id.uuid, game_id.uuid, server_n... | [
{
"role": "user",
"content": "List every offline server alongside an online server in the same region. Show offline_server and online_server names."
},
{
"role": "assistant",
"content": "SELECT o.server_name AS online_server, f.server_name AS offline_server\nFROM gaming_technology.servers f\nJOI... |
I think you have deep knowledge in database programming 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 ... | [
{
"role": "user",
"content": "List all medical record IDs and the record date for records created by doctors specializing in 'Gastroenterology'."
},
{
"role": "assistant",
"content": "SELECT mr.record_id, mr.record_date FROM healthcare.medical_records mr JOIN healthcare.doctors d ON mr.doctor_id... |
I think you have deep knowledge in database programming 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 PRIMARY KEY, first_name tex... | [
{
"role": "user",
"content": "Retrieve the number of open claims each customer has filed. Return customer_id, first_name, last_name, and open_claim_count."
},
{
"role": "assistant",
"content": "SELECT cu.customer_id, cu.first_name, cu.last_name, COUNT(cl.claim_id) AS open_claim_count\nFROM insur... |
I think you have deep knowledge in database programming 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, cl... | [
{
"role": "user",
"content": "Show me invoices where the total amount is greater than 5000. Display the invoice number, total amount, and client ID."
},
{
"role": "assistant",
"content": "SELECT invoice_number, total_amount, client_id FROM invoices WHERE total_amount > 5000;"
},
{
"role"... |
I think you have deep knowledge in database programming 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 text, customer_id text, product_id ... | [
{
"role": "user",
"content": "List all cancelled policies along with any active policy for the same customer. Show cancelled policy number, cancellation_date, and active policy number."
},
{
"role": "assistant",
"content": "SELECT p_cancel.policy_number AS cancelled_policy_number, p_cancel.cance... |
I think you have deep knowledge in database programming 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.comments ( comment_id.text, post_id.text, user_id.tex... | [
{
"role": "user",
"content": "Show me all comments that are replies to other comments, along with the ID of the parent comment and the post ID."
},
{
"role": "assistant",
"content": "SELECT comment_id, parent_comment_id, post_id\nFROM social_media.comments\nWHERE parent_comment_id IS NOT NULL;"
... |
I think you have deep knowledge in database programming 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.notifications ( notification_id text PRIMARY K... | [
{
"role": "user",
"content": "List the IDs of citizens who have received notifications related to more than one distinct type of entity."
},
{
"role": "assistant",
"content": "SELECT citizen_id FROM government_services.notifications WHERE related_entity_type IS NOT NULL AND related_entity_type !... |
I think you have deep knowledge in database programming 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.service_locations ( location_id.text, agency_i... | [
{
"role": "user",
"content": "List the location name and contact phone number for all service locations situated in the city of 'New York'."
},
{
"role": "assistant",
"content": "SELECT location_name, contact_phone FROM government_services.service_locations WHERE city = 'New York';"
}
] |
I think you have deep knowledge in database programming 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 text, customer_id text, product_id ... | [
{
"role": "user",
"content": "Show all document types uploaded for claim ID 'CLM12345' and the time each was uploaded."
},
{
"role": "assistant",
"content": "SELECT document_type, uploaded_at\nFROM insurance.claim_documents\nWHERE claim_id = 'CLM12345';"
}
] |
I think you have deep knowledge in database programming 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, first_name.text, last_name.text,... | [
{
"role": "user",
"content": "Find managers who have at least one agent reporting to them whose status is 'inactive'. List the manager's full name and the full name of the inactive agent."
},
{
"role": "assistant",
"content": "SELECT T2.first_name AS manager_first_name, T2.last_name AS manager_l... |
I think you have deep knowledge in database programming 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.achievements ( achievement_id.uuid, game_id.uuid... | [
{
"role": "user",
"content": "Which players have unlocked any achievement?"
},
{
"role": "assistant",
"content": "SELECT DISTINCT player_id FROM player_achievements;"
},
{
"role": "user",
"content": "Show me the player ID and the total number of points they've accumulated from all un... |
I think you have deep knowledge in database programming 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... | [
{
"role": "user",
"content": "Retrieve the service name and the count of applications up-to-dately in 'Under Review' status for each service."
},
{
"role": "assistant",
"content": "SELECT s.service_name, COUNT(a.application_id) AS under_review_count\nFROM government_services.services s\nLEFT JOI... |
I think you have deep knowledge in database programming 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 PRIMARY KEY, pla... | [
{
"role": "user",
"content": "Show the total session duration in seconds and the average score for each game."
},
{
"role": "assistant",
"content": "SELECT game_id, SUM(duration_seconds), AVG(score) FROM gaming_technology.game_sessions GROUP BY game_id;"
},
{
"role": "user",
"content... |
I think you have deep knowledge in database programming 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 t... | [
{
"role": "user",
"content": "Provide the insurance_provider along with pairs of plan IDs and plan names for providers that offer multiple plans. Join the table to itself to find providers with at least two plans."
},
{
"role": "assistant",
"content": "SELECT p1.insurance_provider,\n p1.pl... |
I think you have deep knowledge in database programming 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.wallets ( wallet_id character varying(64) NOT NULL, use... | [
{
"role": "user",
"content": "Show each user_id along with the total number of wallets they own."
},
{
"role": "assistant",
"content": "SELECT user_id, COUNT(*) AS wallet_count\nFROM blockchain.wallets\nGROUP BY user_id;"
},
{
"role": "user",
"content": "Only include users who have m... |
I think you have deep knowledge in database programming 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, u... | [
{
"role": "user",
"content": "Which users have registered but never created a wallet? Show their user_id, username, and email."
},
{
"role": "assistant",
"content": "SELECT u.user_id, u.username, u.email\nFROM trading_platform.users u\nLEFT JOIN trading_platform.wallets w ON u.user_id = w.user_i... |
I think you have deep knowledge in database programming 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 text, agency_id text, ... | [
{
"role": "user",
"content": "List the full names of employees hired after January 1, 2022, and show the full name of their manager."
},
{
"role": "assistant",
"content": "SELECT e.first_name || ' ' || e.last_name AS employee_name, m.first_name || ' ' || m.last_name AS manager_name\nFROM governm... |
I think you have deep knowledge in database programming 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... | [
{
"role": "user",
"content": "Show me the total number of appointments grouped by status."
},
{
"role": "assistant",
"content": "SELECT status,\n COUNT(*) AS appointment_count\nFROM legal_services.appointments\nGROUP BY status;"
},
{
"role": "user",
"content": "Focus only on st... |
I think you have deep knowledge in database programming 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.text, claim_id.text, docum... | [
{
"role": "user",
"content": "What are the distinct MIME types of documents stored in the system?"
},
{
"role": "assistant",
"content": "SELECT DISTINCT mime_type FROM insurance.claim_documents;"
}
] |
I think you have deep knowledge in database programming 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, med... | [
{
"role": "user",
"content": "I want to get the list of users and their total number of public posts made in the last month, including user_id and post_count."
},
{
"role": "assistant",
"content": "SELECT user_id, COUNT(*) AS post_count\nFROM social_media.posts\nWHERE visibility = 'public'\n AN... |
I think you have deep knowledge in database programming 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.reservations ( reservation_id text PRIMARY ... | [
{
"role": "user",
"content": "Show the total payment amount per currency for payments that are either 'Pending' or 'Failed', grouped by currency_code."
},
{
"role": "assistant",
"content": "SELECT currency_code, SUM(amount) AS total_payment_amount\nFROM hospitality_technology.payments\nWHERE sta... |
I think you have deep knowledge in database programming 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, client_id.text,... | [
{
"role": "user",
"content": "Find appointments that are longer than 30 minutes."
},
{
"role": "assistant",
"content": "SELECT * FROM legal_services.appointments WHERE end_time IS NOT NULL AND start_time IS NOT NULL AND end_time > start_time + INTERVAL '30 minutes'"
}
] |
I think you have deep knowledge in database programming 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, firm_name text, address t... | [
{
"role": "user",
"content": "What is the total sum of amounts paid for all invoices?"
},
{
"role": "assistant",
"content": "SELECT SUM(amount_paid) FROM invoices;"
},
{
"role": "user",
"content": "Group this total by the status of the invoice."
},
{
"role": "assistant",
... |
I think you have deep knowledge in database programming 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, ... | [
{
"role": "user",
"content": "List all pairs of customers who have the same last name but live in different states. Show both customer ids, their full names, and their states."
},
{
"role": "assistant",
"content": "SELECT a.customer_id AS customer_id_a, a.first_name AS first_name_a, a.last_name ... |
I think you have deep knowledge in database programming 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.doctors ( doctor_id text, first_name text, last_name te... | [
{
"role": "user",
"content": "Get a list of all distinct specialties found among the doctors."
},
{
"role": "assistant",
"content": "SELECT DISTINCT specialty FROM healthcare.doctors;"
}
] |
I think you have deep knowledge in database programming 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 text, customer_id text, product_id ... | [
{
"role": "user",
"content": "Which policies have a premium amount greater than the base premium of their respective insurance product? Please show the policy_number, premium_amount, product_name, and base_premium."
},
{
"role": "assistant",
"content": "SELECT p.policy_number, p.premium_amount, ... |
I think you have deep knowledge in database programming 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_nam... | [
{
"role": "user",
"content": "Show me all open cases along with the case number, the client's full name, and the name and email of the lead lawyer."
},
{
"role": "assistant",
"content": "SELECT c.case_number, cl.first_name || ' ' || cl.last_name AS client_full_name, l.first_name || ' ' || l.last... |
I think you have deep knowledge in database programming 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.insurance_products ( product_id character varying(64) NO... | [
{
"role": "user",
"content": "List each product_type along with the most expensive active product in that type, showing product_type, product_id, product_name, and base_premium."
},
{
"role": "assistant",
"content": "SELECT product_type, product_id, product_name, base_premium\nFROM (\n SELECT p... |
I think you have deep knowledge in database programming 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.comments (
comment_id character varying(64) NOT N... | [
{
"role": "user",
"content": "Count the number of comments that have been updated since they were first created."
},
{
"role": "assistant",
"content": "SELECT COUNT(*) FROM social_media.comments WHERE updated_at > created_at;"
}
] |
I think you have deep knowledge in database programming 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, route_number text, descript... | [
{
"role": "user",
"content": "Which locations have received fuel logs greater than 300 liters in total? Please include the location name and city."
},
{
"role": "assistant",
"content": "SELECT l.name AS location_name, l.city, SUM(f.quantity) AS total_quantity\nFROM transportation.fuel_logs f\nJO... |
I think you have deep knowledge in database programming 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.policy_beneficiaries ( beneficiary_id character varying(... | [
{
"role": "user",
"content": "How many beneficiaries are there for each relationship type?"
},
{
"role": "assistant",
"content": "SELECT relationship,\n COUNT(*) AS beneficiary_count\nFROM insurance.policy_beneficiaries\nGROUP BY relationship;"
}
] |
I think you have deep knowledge in database programming 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 text, attribute_i... | [
{
"role": "user",
"content": "List all room types along with the name of the attribute they belong to. Show the room type name, attribute name, and base rate."
},
{
"role": "assistant",
"content": "SELECT t1.type_name, t2.attribute_name, t1.base_rate FROM hospitality_technology.room_types AS t1 ... |
I think you have deep knowledge in database programming 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 text, policy_id text, customer_id text... | [
{
"role": "user",
"content": "What is the total estimated_loss and average settlement_amount for all claims with status 'Approved'?"
},
{
"role": "assistant",
"content": "SELECT SUM(estimated_loss) AS total_estimated_loss,\n AVG(settlement_amount) AS average_settlement\nFROM insurance.clai... |
I think you have deep knowledge in database programming 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, client_id.text,... | [
{
"role": "user",
"content": "List the appointment ID, subject, location, and lawyer ID for all appointments where there is at least one other appointment with the same location and lawyer assigned."
},
{
"role": "assistant",
"content": "SELECT appointment_id, subject, location, lawyer_id FROM l... |
I think you have deep knowledge in database programming 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, ... | [
{
"role": "user",
"content": "Show me for each loan_type, the total number of loans and the average principal_amount, along with the average account balance for the accounts associated with those loans."
},
{
"role": "assistant",
"content": "SELECT l.loan_type, COUNT(l.loan_id) AS loan_count, AV... |
I think you have deep knowledge in database programming 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, ... | [
{
"role": "user",
"content": "How many distinct ports have been used by peers in the system?"
},
{
"role": "assistant",
"content": "SELECT COUNT(DISTINCT port) AS distinct_port_count\nFROM trading_platform.peers;"
}
] |
I think you have deep knowledge in database programming 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.contracts ( contract_id.text, address.text, abi.text, bytecod... | [
{
"role": "user",
"content": "Find the usernames of users who have deployed contracts and list the address of the contract they deployed."
},
{
"role": "assistant",
"content": "SELECT T1.username, T3.address FROM web3.users AS T1 JOIN web3.wallets AS T2 ON T1.user_id = T2.user_id JOIN web3.contr... |
I think you have deep knowledge in database programming 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, --... | [
{
"role": "user",
"content": "List each claim_handler_id along with the number of claims they've handled and the total settlement_amount they've paid out."
},
{
"role": "assistant",
"content": "SELECT claim_handler_id,\n COUNT(*) AS total_claims,\n SUM(settlement_amount) AS total_set... |
I think you have deep knowledge in database programming 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... | [
{
"role": "user",
"content": "List the first and last names, email, and phone number of all customers whose status is not 'Active'."
},
{
"role": "assistant",
"content": "SELECT first_name, last_name, email, phone_number\nFROM insurance.customers\nWHERE status <> 'Active';"
},
{
"role": ... |
I think you have deep knowledge in database programming 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.comments ( comment_id character varying(64) NOT NULL,... | [
{
"role": "user",
"content": "How many likes were given to comments in June 2024?"
},
{
"role": "assistant",
"content": "SELECT COUNT(*) AS comment_likes_count\nFROM social_media.likes\nWHERE comment_id IS NOT NULL \n AND DATE_TRUNC('month', created_at) = '2024-06-01';"
}
] |
I think you have deep knowledge in database programming 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 PRIMARY KEY, name... | [
{
"role": "user",
"content": "Show me the developer(s) who were founded in the most recent year."
},
{
"role": "assistant",
"content": "SELECT name, country, founded_year FROM gaming_technology.developers WHERE founded_year = (SELECT MAX(founded_year) FROM gaming_technology.developers);"
},
... |
I think you have deep knowledge in database programming 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... | [
{
"role": "user",
"content": "I want to see pairs of customers living in the same state but having different risk profiles. Show their customer_ids, states, and risk_profiles."
},
{
"role": "assistant",
"content": "SELECT a.customer_id AS customer_a, a.state, a.risk_profile AS risk_profile_a, b.... |
I think you have deep knowledge in database programming 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.trades ( trade_id character varying(64) NOT NUL... | [
{
"role": "user",
"content": "Show me the total number of trades and the sum of total_amount for each status in the trades table."
},
{
"role": "assistant",
"content": "SELECT\n t.status,\n COUNT(t.trade_id) AS trade_count,\n SUM(t.total_amount) AS total_amount_by_status\nFROM financial_servi... |
I think you have deep knowledge in database programming 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 te... | [
{
"role": "user",
"content": "For each vehicle that appears in both the maintenance logs and fuel logs tables, calculate the total maintenance cost and the total fuel cost. Display the vehicle ID and these two total costs."
},
{
"role": "assistant",
"content": "SELECT T1.vehicle_id , SUM(T1.cos... |
I think you have deep knowledge in database programming 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, route_number.text, descript... | [
{
"role": "user",
"content": "Retrieve the first_name, last_name, and email of all passengers who have never made a booking."
},
{
"role": "assistant",
"content": "SELECT\n p.first_name,\n p.last_name,\n p.email\nFROM transportation.passengers p\nLEFT JOIN transportation.bookings b\n ON p.pa... |
I think you have deep knowledge in database programming 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, cus... | [
{
"role": "user",
"content": "Which insurance products have had a policy issued in 2024, and what is the name and type of those products? Show the product_id, product_name, and product_type."
},
{
"role": "assistant",
"content": "SELECT DISTINCT ip.product_id, ip.product_name, ip.product_type\nF... |
I think you have deep knowledge in database programming 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... | [
{
"role": "user",
"content": "How many unique customers are there in the system?"
},
{
"role": "assistant",
"content": "SELECT COUNT(DISTINCT customer_id) AS unique_customer_count\nFROM insurance.customers;"
}
] |
I think you have deep knowledge in database programming 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, med... | [
{
"role": "user",
"content": "How many group chats have been created since January 1, 2024?"
},
{
"role": "assistant",
"content": "SELECT COUNT(*) AS group_chat_count\nFROM social_media.conversations\nWHERE is_group_chat = TRUE\n AND created_at >= '2024-01-01';"
}
] |
I think you have deep knowledge in database programming 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... | [
{
"role": "user",
"content": "List all policies sold by agents licensed in Texas. Include the policy number, policy start date, and the agent's first and last name."
},
{
"role": "assistant",
"content": "SELECT T1.policy_number, T1.start_date, T2.first_name, T2.last_name FROM insurance.policies ... |
I think you have deep knowledge in database programming 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, rou... | [
{
"role": "user",
"content": "For each trip, list the trip_id, the passenger_count from trips, the number of bookings for that trip, and the average fare of those bookings."
},
{
"role": "assistant",
"content": "SELECT t.trip_id, t.passenger_count, COUNT(b.booking_id) AS booking_count, AVG(b.far... |
I think you have deep knowledge in database programming 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, las... | [
{
"role": "user",
"content": "Find agents whose commission_rate is higher than their manager's commission_rate. Show agent_id, agent first_name, agent last_name, commission_rate, manager_id, and the manager's commission_rate."
},
{
"role": "assistant",
"content": "SELECT a.agent_id,\n a.fi... |
I think you have deep knowledge in database programming 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 character varying(64) N... | [
{
"role": "user",
"content": "List all visitors who placed a service order with a total price greater than 200, including their first name, last name, and the order ID."
},
{
"role": "assistant",
"content": "SELECT T1.first_name, T1.last_name, T2.order_id FROM hospitality_technology.visitors AS ... |
I think you have deep knowledge in database programming 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,... | [
{
"role": "user",
"content": "Find all invoices that are up-to-dately overdue. Include the invoice number, due date, total amount, and the client's name."
},
{
"role": "assistant",
"content": "SELECT i.invoice_number, i.due_date, i.total_amount, c.first_name, c.last_name FROM legal_services.invo... |
I think you have deep knowledge in database programming 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.player_achievements ( player_achievement_id.uuid... | [
{
"role": "user",
"content": "Show me all players who have unlocked achievements, and for each, also list the total number of achievements they've unlocked."
},
{
"role": "assistant",
"content": "SELECT player_id, COUNT(*) AS achievements_unlocked FROM gaming_technology.player_achievements GROUP... |
I think you have deep knowledge in database programming 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, user_id text, wallet_id t... | [
{
"role": "user",
"content": "I want to see the number of 'buy' and 'sell' orders for each asset, along with the asset_id."
},
{
"role": "assistant",
"content": "SELECT asset_id, order_type, COUNT(*) AS order_count FROM trading_platform.orders GROUP BY asset_id, order_type;"
},
{
"role":... |
I think you have deep knowledge in database programming 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 credential_basic_info ( coin_id character varying(100) NOT NULL, -... | [
{
"role": "user",
"content": "Show me the top 3 narratives by trend rank, along with their top 3 credentials and 7-day price change percentage."
},
{
"role": "assistant",
"content": "SELECT n.narrative, n.top_3_coins, n.price_change_percentage_7d FROM narrative_info n ORDER BY n.trend_rank ASC L... |
I think you have deep knowledge in database programming 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.... | [
{
"role": "user",
"content": "List the full names of patients who have ever been prescribed a medication manufactured by 'Novartis'."
},
{
"role": "assistant",
"content": "SELECT DISTINCT p.first_name, p.last_name\nFROM healthcare.patients p\nJOIN healthcare.prescriptions pr ON p.patient_id = pr... |
I think you have deep knowledge in database programming 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 (
attribute_id character var... | [
{
"role": "user",
"content": "List all room types that have at least one service in the 'Spa' category, including the room type name, attribute name, and service name."
},
{
"role": "assistant",
"content": "SELECT DISTINCT rt.type_name, p.attribute_name, s.service_name\nFROM hospitality_technolo... |
I think you have deep knowledge in database programming 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 erc20_balances ( block_number.bigint, contract_address.text, walle... | [
{
"role": "user",
"content": "For each NFT collection deployed on Ethereum, count the number of distinct wallets that have ever held any credential from that collection."
},
{
"role": "assistant",
"content": "SELECT\n nc.contract_address,\n nc.name,\n COUNT(DISTINCT nh.wallet_address) AS hold... |
I think you have deep knowledge in database programming 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, usern... | [
{
"role": "user",
"content": "List all users who commented on posts tagged with hashtag 'spring', showing user_id, comment_id, content, and tag_name."
},
{
"role": "assistant",
"content": "SELECT c.user_id, c.comment_id, c.content, h.tag_name\nFROM social_media.comments c\nJOIN social_media.post... |
I think you have deep knowledge in database programming 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,... | [
{
"role": "user",
"content": "Provide a count of transactions grouped by their status."
},
{
"role": "assistant",
"content": "SELECT status, COUNT(*) FROM web3.transactions GROUP BY status;"
},
{
"role": "user",
"content": "Now, only show the statuses that have more than 50 transacti... |
I think you have deep knowledge in database programming 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, user_id.tex... | [
{
"role": "user",
"content": "I want to find the average time it takes for a notification to be marked as read, calculated for each user. Please show the user ID and the average read time in seconds, considering only notifications that have been read."
},
{
"role": "assistant",
"content": "SELEC... |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 12