Dataset Viewer
Auto-converted to Parquet Duplicate
system
stringlengths
327
4.98k
conversations
listlengths
2
8
You possess expertise in crafting database queries. You can generate a suitable database language query to respond to a user's inquiry by utilizing the table structure outlined in the table creation statement. ### Table Structure ```sql CREATE TABLE web3.contracts ( contract_id VARCHAR(64) NOT NULL, address V...
[ { "role": "user", "content": "Identify the deployer address responsible for deploying the most contracts, then provide both the address and the total number of contracts associated with that deployer.", "sql": null }, { "role": "assistant", "content": "SELECT deployer_address, COUNT(*) AS co...
You possess expertise in crafting database language queries. You can develop a suitable query to address the user's inquiry, utilizing the table structure detailed in the table creation statement. ## Table Schema CREATE TABLE financial_services.securities ( security_id text, ticker_symbol text, isin_code text, cusi...
[ { "role": "user", "content": "Identify pairs of securities that are in the same sector but are denominated in different currencies.", "sql": null }, { "role": "assistant", "content": "SELECT a.sector, a.ticker_symbol AS symbol_a, a.currency AS currency_a, b.ticker_symbol AS symbol_b, b.curre...
You are skilled in formulating database queries. You are capable of crafting the appropriate query to respond to a user's inquiry using the table structure provided in the table creation statements. ## Table Structure ```sql CREATE TABLE legal_services.clients ( client_id TEXT PRIMARY KEY, first_name TEXT, ...
[ { "role": "user", "content": "Provide the first and last names, email addresses, and phone numbers of all clients involved in cases categorized as 'Bankruptcy', including the case names.", "sql": null }, { "role": "assistant", "content": "SELECT T1.first_name , T1.last_name , T1.email , T...
You possess expertise in crafting database queries. Utilizing the table structure outlined in the creation statement, you can generate a suitable database query to address the user's inquiry. ## Table Structure CREATE TABLE gaming_technology.achievements ( achievement_id uuid PRIMARY KEY, game_id uuid, name text, desc...
[ { "role": "user", "content": "For each game_id, display the achievement with the top score, including its name and the number of points.", "sql": null }, { "role": "assistant", "content": "SELECT a.game_id,\n a.name,\n a.points\nFROM achievements a\nJOIN (\n SELECT game_id,\n ...
As a specialist in database languages, you are adept at crafting queries that address user inquiries using the table structure outlined in the table creation statement. ##Table Structure CREATE TABLE transportation.fuel_logs ( fuel_log_id text, vehicle_id text, trip_id text, log_timestamp timestamp...
[ { "role": "user", "content": "Find every occurrence where the odometer reading of a vehicle is lower than in the preceding fuel log entry.", "sql": null }, { "role": "assistant", "content": "SELECT curr.vehicle_id,\n prev.fuel_log_id AS previous_log_id,\n prev.odometer_reading ...
You are skilled in crafting database queries. Based on the table structures given by the table creation statements, you are capable of writing the appropriate database query to respond to user inquiries. ## Table Structure CREATE TABLE legal_services.invoices ( invoice_id VARCHAR(64) NOT NULL, -- unique identifi...
[ { "role": "user", "content": "\"Please display the total count of appointments categorized by their status.\"", "sql": null }, { "role": "assistant", "content": "SELECT status,\n COUNT(*) AS appointment_count\nFROM legal_services.appointments\nGROUP BY status;", "sql": null }, ...
You possess expertise in database query writing. You can create a suitable database query to respond to user inquiries based on the table structures outlined below. ## Table Structures ```sql CREATE TABLE healthcare.appointments ( appointment_id TEXT, patient_id TEXT, doctor_id TEXT, appointment_time ...
[ { "role": "user", "content": "Display the total count of diagnoses for each patient, including their patient ID and the ID of their most recent diagnosis. Ensure to join with the diagnoses table.", "sql": null }, { "role": "assistant", "content": "SELECT patient_id, COUNT(diagnosis_id) AS di...
You possess expertise in writing database queries and have the discretion to decline a user's inquiry if it does not pertain to the table structure. You can formulate an appropriate database query to address the user's question based on the table structure outlined in the table creation statement. ## Table Structure C...
[ { "role": "user", "content": "What are the expenses associated with maintaining a particular aircraft model, such as the Airbus A320?", "sql": null }, { "role": "assistant", "content": "I'm sorry, but I don't have access to data regarding maintenance costs for specific aircraft models such a...
You possess expertise in crafting database queries. You can formulate a database query to address the user's inquiry based on the table structure outlined in the table creation statements. ### Table Structure ```sql CREATE TABLE social_media.post_hashtags ( post_hashtag_id text, post_id text, hashtag_id...
[ { "role": "user", "content": "Compile a list of all unread alerts for group chats, ensuring to include the chat name, the ID of the user who sent it, and the time the alert was created.", "sql": null }, { "role": "assistant", "content": "SELECT c.group_name, n.sender_user_id, n.created_at\nF...
You are skilled in crafting queries for database languages. You are capable of generating queries that address user inquiries based on the table structures provided in the table creation statements. ## Table Structure ```sql CREATE TABLE insurance.policies ( policy_id TEXT, customer_id TEXT, product_id TE...
[ { "role": "user", "content": "Retrieve the payment_id, amount_paid, and payment_date for every premium payment where the amount exceeds 2500.", "sql": null }, { "role": "assistant", "content": "SELECT payment_id, amount_paid, payment_date\nFROM insurance.premium_payments\nWHERE amount_paid >...
You are highly skilled in crafting database queries. You can formulate a suitable query to address the user's inquiry by referring to the table structure outlined in the table creation statement. ## Table Structure: CREATE TABLE hospitality_technology.staff ( staff_id TEXT PRIMARY KEY, property_id TEXT, ...
[ { "role": "user", "content": "Display all public reviews that include a comment.", "sql": null }, { "role": "assistant", "content": "SELECT review_id, property_id, guest_id, rating_overall, comment FROM reviews WHERE is_public = TRUE AND comment IS NOT NULL AND comment != '';", "sql": nu...
You are highly proficient in creating database queries. Based on the provided table schema in the table creation statements, you can write queries to address user inquiries. ### Table Definitions ```sql CREATE TABLE token_metas ( block_timestamp TIMESTAMP, block_number BIGINT, transaction_hash TEXT, transacti...
[ { "role": "user", "content": "Provide a list of all wallet addresses that possess the NFT with contract address '0xbbbb...' and token ID '99'.", "sql": null }, { "role": "assistant", "content": "SELECT wallet_address, amount\nFROM nft_holders\nWHERE contract_address = '0xbbbb...'\n AND toke...
You have expertise in crafting database queries. You can create the appropriate database query to address a user's inquiry based on the structure of the tables as outlined in the table creation statements. ## Table Structure CREATE TABLE hospitality_technology.properties ( property_id VARCHAR(64) NOT NULL, pro...
[ { "role": "user", "content": "Provide a list of properties along with the count of public reviews each one has garnered.", "sql": null }, { "role": "assistant", "content": "SELECT p.property_id, p.property_name, COUNT(r.review_id) AS public_review_count\nFROM hospitality_technology.propertie...
You are skilled in crafting database queries and have the discretion to decline a user's inquiry if it does not pertain to the table structure. You can formulate a suitable database query to address the user's question by referencing the table structure as outlined in the table creation statement. ## Table Structure C...
[ { "role": "user", "content": "Could you provide the cost of tickets for trains leaving from the station identified by 'ST456'?", "sql": null }, { "role": "assistant", "content": "I'm sorry, but I can't provide information on ticket prices as this data is not included in the station managemen...
You possess expertise in crafting database queries. You can formulate a suitable query to address the user's inquiry using the table structures outlined in the table creation statements. ## Table Structures ```sql CREATE TABLE healthcare.diagnoses ( diagnosis_id VARCHAR(64) NOT NULL, record_id VARCHAR(64) NOT ...
[ { "role": "user", "content": "List all diagnoses that are linked to medications by correlating the diagnosis_code with the medication's NDC code. Ensure to include details such as diagnosis_id, patient_id, diagnosis_date, medication_name, and status.", "sql": null }, { "role": "assistant", "...
You possess expertise in crafting database queries. You can generate an appropriate database query to address the user's inquiry by utilizing the table structure outlined in the table creation statement. ## Table Structure ```sql CREATE TABLE insurance.claims ( claim_id text PRIMARY KEY, policy_id text, cu...
[ { "role": "user", "content": "Provide a list of insurance offerings, including their names and initial premiums, for products described with the term 'accident'.", "sql": null }, { "role": "assistant", "content": "SELECT product_name, base_premium FROM insurance.insurance_products WHERE desc...
You possess expertise in crafting database queries. You can generate a suitable query in the database language to address the user's inquiry, utilizing the table structure outlined in the table creation statement. ## Table Structure CREATE TABLE web3.users ( user_id TEXT, username TEXT, email TEXT, password_hash TEXT...
[ { "role": "user", "content": "What is the number of users who signed up on each specific date?", "sql": null }, { "role": "assistant", "content": "SELECT DATE(created_at) AS registration_date, COUNT(*) AS user_count FROM web3.users GROUP BY DATE(created_at) ORDER BY registration_date;", ...
You possess extensive expertise in crafting database queries. You can formulate a corresponding database query to address the user's inquiry based on the table structure outlined by the table creation statement. ### Table Definitions ```sql CREATE TABLE transportation.vehicles ( vehicle_id VARCHAR(64) NOT NULL, ...
[ { "role": "user", "content": "Calculate the total number of maintenance services for each service_type and display the service_type alongside the corresponding service_count.", "sql": null }, { "role": "assistant", "content": "SELECT service_type, COUNT(*) AS service_count\nFROM transportati...
You have a strong proficiency in crafting database queries. You are able to create a suitable query in a database language to address the user's inquiry based on the specified table architecture. ## Table Structure ```sql CREATE TABLE social_media.users ( user_id VARCHAR(64) NOT NULL, username VARCHAR(50) NOT...
[ { "role": "user", "content": "Display the posts that have been commented on by verified users, including the post details and the username of the verified user who commented.", "sql": null }, { "role": "assistant", "content": "SELECT DISTINCT p.content AS post_content, u.username AS commente...
You are highly skilled in formulating database queries. You can develop queries to address user inquiries based on the structure provided by the table creation statements. ### Table Structures ```sql CREATE TABLE trading_platform.users ( user_id VARCHAR(64) NOT NULL, username VARCHAR(128) NOT NULL, email ...
[ { "role": "user", "content": "Determine the count of log entries per user in which the action includes the word 'fail' within the past 30 days.", "sql": null }, { "role": "assistant", "content": "SELECT l.user_id, COUNT(*) AS fail_count\nFROM trading_platform.logs l\nWHERE l.action ILIKE '%f...
You possess expertise in crafting queries for database languages. You can create a suitable query to address a user's inquiry, utilizing the table structure outlined in the table creation statement. ## Table Structure ```sql CREATE TABLE government_services.citizens ( citizen_id TEXT, national_id_number TEXT,...
[ { "role": "user", "content": "Provide the first and last names of individuals whose submitted documents have been marked as 'Rejected'. Include the type of document and the application reference number for each case.", "sql": null }, { "role": "assistant", "content": "SELECT c.first_name, c....
You possess expertise in crafting database queries. Your role is to formulate a database query that addresses the user's inquiry, utilizing the table structure outlined in the provided table creation statement. ## Table Structure ```sql CREATE TABLE hospitality_technology.services ( service_id text, property...
[ { "role": "user", "content": "List all services priced over 100, displaying their service_id, service_name, and category.", "sql": null }, { "role": "assistant", "content": "SELECT service_id, service_name, category\nFROM hospitality_technology.services\nWHERE price > 100;", "sql": null ...
You possess expertise in crafting database queries. You can formulate a suitable database query to respond to a user's inquiry, utilizing the table structure provided by the table creation statement. ### Table Structure CREATE TABLE social_media.follows ( follow_id TEXT, follower_user_id TEXT, following_user_id TEXT,...
[ { "role": "user", "content": "\"What is the total number of users who have followed more than one individual?\"", "sql": null }, { "role": "assistant", "content": "SELECT follower_user_id, COUNT(DISTINCT following_user_id) AS following_count\nFROM social_media.follows\nGROUP BY follower_user...
You are highly skilled in crafting database language queries. You are capable of formulating a query that answers a user's inquiry based on the table structure outlined in the table creation statement. ## Table Structure ```sql CREATE TABLE token_metas ( block_timestamp TIMESTAMP, block_number BIGINT, tra...
[ { "role": "user", "content": "Display the contract address, symbol, and the total count of distinct wallet holders for each ERC20 token, as recorded in the current erc20_balances table.", "sql": null }, { "role": "assistant", "content": "SELECT e.contract_address, t.symbol, COUNT(DISTINCT e....
You are highly skilled in crafting database queries. You can formulate a suitable query in a database language to address the user's inquiry, using the table structures outlined in the creation statements provided. ### Table Schemas CREATE TABLE insurance.customers ( customer_id text, first_name text, la...
[ { "role": "user", "content": "Please provide the policy number, start and end dates, along with the product name and type for every policy.", "sql": null }, { "role": "assistant", "content": "SELECT T1.policy_number, T1.start_date, T1.end_date, T2.product_name, T2.product_type FROM insurance...
You possess expertise in crafting database queries. You can formulate an appropriate query in database language to address the user's inquiry, utilizing the table structure outlined in the table creation statement. ## Table Structure CREATE TABLE government_services.notifications ( notification_id TEXT, citizen_id TEX...
[ { "role": "user", "content": "Identify the IDs of applications that have been notified via both 'Email' and 'SMS' channels.", "sql": null }, { "role": "assistant", "content": "SELECT application_id FROM government_services.notifications WHERE channel IN ('Email', 'SMS') GROUP BY application_...
You possess advanced skills in database language authoring, enabling you to formulate suitable database queries to address user inquiries based on the table structures provided by the table creation statements. ## Table Definitions CREATE TABLE trading_platform.users ( user_id VARCHAR(64) NOT NULL, username V...
[ { "role": "user", "content": "Provide a list of all users along with the date of their latest transaction, whether they acted as a buyer or a seller. Ensure that every user is included, even if they have not participated in any trades.", "sql": null }, { "role": "assistant", "content": "SELE...
You excel in crafting database queries and can generate the appropriate query to address user inquiries based on the given table schema. ### Table Schema ```sql CREATE TABLE hospitality_technology.room_types ( room_type_id TEXT, property_id TEXT, type_name TEXT, description TEXT, base_rate NUMERIC...
[ { "role": "user", "content": "Provide a list of all public reviews where the overall rating is 4 or higher. Include the following details: review_id, guest_id, property_id, reservation_id, and review_date.", "sql": null }, { "role": "assistant", "content": "SELECT review_id, guest_id, proper...
You possess expertise in crafting database language queries. You can construct a suitable query to address the user's inquiry by using the table structure provided in the table creation statement. ## Table Definition CREATE TABLE financial_services.loans ( loan_id VARCHAR(64) NOT NULL, -- unique identifier for th...
[ { "role": "user", "content": "For every year an account is opened, please provide the sum of the principal amounts for all loans and the total number of loans. Ensure to link the loans with the corresponding accounts.", "sql": null }, { "role": "assistant", "content": "SELECT EXTRACT(YEAR FR...
You are a skilled professional in crafting database queries. You can formulate a suitable database query to address a user's inquiry based on the detailed table structure provided. ## Table Structures - **Patients Table:** ```sql CREATE TABLE healthcare.patients ( patient_id VARCHAR(64) NOT NULL, f...
[ { "role": "user", "content": "List each insurance plan along with the count of patients who have that plan as their primary active insurance policy. Only include plans with a minimum of one active patient.", "sql": null }, { "role": "assistant", "content": "SELECT T1.plan_name, COUNT(DISTINC...
You are proficient in formulating database queries. You can design an appropriate database query to resolve the user's inquiry, based on the table structure defined by the table creation statements. ##Table Structure ```sql CREATE TABLE trading_platform.wallets ( wallet_id VARCHAR(64) NOT NULL, -- unique identifi...
[ { "role": "user", "content": "Provide the name and symbol of each asset, along with the count of all active orders associated with it.", "sql": null }, { "role": "assistant", "content": "SELECT a.name,\n a.symbol,\n COUNT(o.order_id) AS open_order_count\nFROM trading_platform.ass...
You are highly skilled in crafting database queries. You can create queries to address user inquiries based on the table structure provided in the table creation statement. ## Table Definition CREATE TABLE hospitality_technology.reservations ( reservation_id VARCHAR(64) NOT NULL, property_id VARCHAR(64) NOT N...
[ { "role": "user", "content": "Display every review provided by guests, including the guest_id, the reservation_id associated with the guest, and the property_id and review_date corresponding to the related property.", "sql": null }, { "role": "assistant", "content": "SELECT r.review_id, r.gu...
You are highly skilled in crafting database query languages. You can create a suitable query to address the user's query based on the table structure outlined by the table creation statement. ### Table Structure ```sql CREATE TABLE government_services.services ( service_id TEXT, agency_id TEXT, service_...
[ { "role": "user", "content": "Determine how many documents have been submitted for each service. Display both the service_name and the document_count.", "sql": null }, { "role": "assistant", "content": "SELECT s.service_name, COUNT(d.document_id) AS document_count\nFROM government_services.s...
You possess expertise in crafting database language queries. Utilize your skills to write a query that addresses the user's question by referencing the table structures outlined in the table creation statements below. ## Table Structures CREATE TABLE erc20_balances_historical ( block_number bigint, contract_address v...
[ { "role": "user", "content": "Provide a list of wallet addresses holding over 1000 units of any ERC1155 token, including the token ID and the contract address.", "sql": null }, { "role": "assistant", "content": "SELECT wallet_address, token_id, contract_address FROM nft_holders WHERE contrac...
You possess advanced skills in constructing database queries. Using the table structure provided in the table creation statements, you can craft a database query to respond to user inquiries. ## Table Structures - **erc1155_approval_for_all**: ``` CREATE TABLE erc1155_approval_for_all ( block_number BIGINT, ...
[ { "role": "user", "content": "Please provide the historical balance records for the wallet address '0xabc...' and the contract address '0xdef...', detailing the block number and corresponding amount for each entry.", "sql": null }, { "role": "assistant", "content": "SELECT block_number, amou...
You possess expertise in crafting database language queries. You are capable of generating a relevant database query to address a user's inquiry based on the structure outlined in the table creation statement. ### Table Structure ```sql CREATE TABLE hospitality_technology.properties ( property_id TEXT, proper...
[ { "role": "user", "content": "Display the first and last names along with the email addresses of guests living in California.", "sql": null }, { "role": "assistant", "content": "SELECT first_name, last_name, email FROM hospitality_technology.guests WHERE state_province = 'CA'", "sql": nu...
You possess expertise in crafting database queries. Based on the table structure outlined in the table creation statement, you can develop a database query to address the user's inquiry. ### Table Structure ```sql CREATE TABLE transportation.vehicles ( vehicle_id VARCHAR(64) NOT NULL, -- Unique vehicl...
[ { "role": "user", "content": "List all drivers along with the vehicles assigned to them for trips marked as 'Delayed'. Provide the driver's first and last names, the vehicle's license plate, the trip ID, and the actual departure time.", "sql": null }, { "role": "assistant", "content": "SELEC...
You possess expertise in crafting database queries. You can generate a suitable query in a database language to respond to a user's inquiry, utilizing the table structure defined in the table creation statement. ## Table Structure CREATE TABLE healthcare.patients ( patient_id text PRIMARY KEY, first_name text,...
[ { "role": "user", "content": "Identify all sets of patients who have an identical emergency contact name. Display the patient IDs alongside the corresponding shared emergency contact name.", "sql": null }, { "role": "assistant", "content": "SELECT p1.patient_id AS patient1_id, p2.patient_id ...
You specialize in crafting database queries. You can create a database language query to address the user's question based on the table structure outlined in the table creation statements. ### Table Structure ```sql CREATE TABLE hospitality_technology.rooms ( room_id VARCHAR(64) NOT NULL, -- Unique room identifi...
[ { "role": "user", "content": "Please provide a comprehensive list of all employees, detailing their first and last names, job titles, and the property where they are employed.", "sql": null }, { "role": "assistant", "content": "SELECT s.first_name, s.last_name, s.position, p.property_name FR...
You possess expertise in crafting database queries. Based on the table structure provided in the table creation statements, you can formulate a database language query to address the user's inquiry. ## Table Definitions CREATE TABLE transportation.drivers ( driver_id VARCHAR(64) NOT NULL, employee_id VARCHAR(...
[ { "role": "user", "content": "Please supply the route numbers, as well as the starting and ending location names for each route.", "sql": null }, { "role": "assistant", "content": "SELECT T1.route_number , T2.name , T3.name FROM transportation.routes AS T1 JOIN transportation.locations AS ...
You possess expertise in crafting database queries. You can formulate a relevant database query to address the user's inquiry, utilizing the table structure outlined in the table creation statement. ## Table Structure CREATE TABLE project_fundraising_record ( id CHARACTER VARYING(32) NOT NULL, -- Unique identifier ...
[ { "role": "user", "content": "For projects that have undergone multiple fundraising rounds, determine the mean investment amount from all reported rounds. Present the project name alongside this average figure.", "sql": null }, { "role": "assistant", "content": "SELECT project_name, AVG(inve...
You specialize in crafting database queries. You can generate an appropriate database query to address the user's inquiry, utilizing the table structure outlined in the table creation statements provided. ## Table Structure CREATE TABLE gaming_technology.servers ( server_id uuid PRIMARY KEY, game_id uuid, server_name...
[ { "role": "user", "content": "\"What is the most valuable achievement in terms of points for each game?\"", "sql": null }, { "role": "assistant", "content": "SELECT a1.game_id, a1.achievement_id, a1.name, a1.points FROM gaming_technology.achievements a1 WHERE a1.points = (SELECT MAX(a2.point...
You are proficient in crafting database language queries. You can create a database query to respond to the user's inquiry based on the table structure provided by the table creation statement. ## Table Structure ```sql CREATE TABLE legal_services.lawyers ( lawyer_id TEXT PRIMARY KEY, first_name TEXT, last...
[ { "role": "user", "content": "Provide the complete name of every attorney, including the place and status of their appointments.", "sql": null }, { "role": "assistant", "content": "SELECT T1.first_name, T1.last_name, T2.location, T2.status FROM legal_services.lawyers AS T1 JOIN legal_service...
You possess expertise in crafting database language queries. Based on the table structure outlined in the table creation statement, you can formulate a suitable database query to address the user's inquiry. ##Table Structure CREATE TABLE insurance.insurance_products ( product_id text, product_name text, product_...
[ { "role": "user", "content": "Display a list of all products, including their ID, name, category, and status indicating if they are active.", "sql": null }, { "role": "assistant", "content": "SELECT product_id, product_name, product_type, is_active FROM insurance.insurance_products;", "s...
You possess expertise in crafting database queries. You can formulate a database query that answers a user's inquiry by utilizing the table structure outlined in the table creation statement. ## Table Structure CREATE TABLE project_fundraising_record ( id TEXT, project_id TEXT, project_name TEXT, rounds_name TEXT, i...
[ { "role": "user", "content": "Identify the token with the minimum price in the past 24 hours for each narrative, using data from DEX pools. Present the narrative, token symbol, blockchain, and the lowest price recorded in the last 24 hours.", "sql": null }, { "role": "assistant", "content": ...
You possess expertise in crafting database queries. You have the ability to create a suitable database query to respond to a user's inquiry, utilizing the table structure outlined by the table creation statement. ##Table Structure CREATE TABLE legal_services.law_firms ( firm_id TEXT, firm_name TEXT, address TEXT, pho...
[ { "role": "user", "content": "List each managing partner responsible for supervising multiple firms, displaying their managing_partner_id along with the number of firms they oversee.", "sql": null }, { "role": "assistant", "content": "SELECT managing_partner_id, COUNT(*) AS firm_count\nFROM ...
As a specialist in database language, you possess the capability to craft queries that address user inquiries by utilizing the table schema outlined in the table creation statement. ## Table Schema CREATE TABLE transportation.vehicles ( vehicle_id text PRIMARY KEY, license_plate text, vin text, make text, model text,...
[ { "role": "user", "content": "Identify vehicles that have a capacity exceeding the average for their respective type. Provide details including the vehicle_id, type, and capacity.", "sql": null }, { "role": "assistant", "content": "SELECT v.vehicle_id, v.type, v.capacity FROM transportation....
You possess expertise in database language writing. You are capable of crafting database language queries to respond to user inquiries, utilizing the table structure outlined in the table creation statement. ## Table Structure CREATE TABLE transportation.vehicles ( vehicle_id TEXT, license_plate TEXT, vin TE...
[ { "role": "user", "content": "Provide a list of all reservations, including the passenger's full name and the trip identification number.", "sql": null }, { "role": "assistant", "content": "SELECT b.booking_id, b.trip_id, p.first_name, p.last_name\nFROM transportation.bookings b\nJOIN transp...
You are highly skilled in crafting database queries. You can create a suitable database query to address the user's inquiry, utilizing the table structure outlined in the provided table creation statements. ## Table Structure ```sql CREATE TABLE legal_services.clients ( client_id VARCHAR(64) NOT NULL, first_n...
[ { "role": "user", "content": "Provide a list of all time records that include the entry ID, lawyer ID, and billing rate, specifically for entries where the hours logged exceed 4.", "sql": null }, { "role": "assistant", "content": "SELECT entry_id, lawyer_id, billing_rate\nFROM legal_services...
As a specialist in crafting database queries, you can create a suitable database query to address the user's inquiry based on the table structure specified by the table creation statement. ## Table Layout ```sql CREATE TABLE hospitality_technology.rooms ( room_id VARCHAR(64) NOT NULL, -- unique identifier for eac...
[ { "role": "user", "content": "Provide a list of rooms that haven't been cleaned in the past week, including their room number, property ID, and the date they were last cleaned.", "sql": null }, { "role": "assistant", "content": "SELECT room_number, property_id, last_cleaned_at FROM hospitali...
You possess expertise in crafting database language queries. You can create a suitable query to respond to a user's inquiry, utilizing the table structure outlined by the provided table creation statement. ## Table Structure CREATE TABLE insurance.policies (     policy_id character varying(64)...
[ { "role": "user", "content": "\"Provide the number of policies categorized according to their status.\"", "sql": null }, { "role": "assistant", "content": "SELECT status,\n COUNT(*) AS policy_count\nFROM insurance.policies\nGROUP BY status;", "sql": null } ]
You possess expertise in crafting queries for database languages. Given a table structure outlined by a table creation statement, you can compose a suitable database language query to address the user's inquiry. ## Table Structure ```sql CREATE TABLE narrative_info ( narrative VARCHAR(512) NOT NULL, -- identifier...
[ { "role": "user", "content": "Retrieve all tokens from the token_dexpool_info table that have liquidity exceeding $10 million and show a positive price change percentage over the past 6 hours on the Ethereum blockchain.", "sql": null }, { "role": "assistant", "content": "SELECT token_name, t...
You possess advanced skills in writing queries for database languages. Given the structure of a table as described by its creation statement, you can formulate a query to address the user's inquiry. ### Table Structure - **services**: ```sql CREATE TABLE government_services.services ( service_id TEXT PRIMAR...
[ { "role": "user", "content": "Identify service locations and currently available services provided by the same agency where the average processing time is less than 5 days. Provide details such as the name of the location, the city, the state, the service offered, and the time taken for processing.", "s...
As a specialist in crafting database queries, you have the capability to formulate a database language query that addresses the user's inquiry by utilizing the table structure provided in the table creation statement. ## Table Schema CREATE TABLE insurance.policy_beneficiaries ( beneficiary_id TEXT, policy_id TEXT, c...
[ { "role": "user", "content": "What is the number of beneficiaries added on each distinct date?", "sql": null }, { "role": "assistant", "content": "SELECT DATE(added_at), COUNT(*) FROM insurance.policy_beneficiaries GROUP BY DATE(added_at);", "sql": null } ]
You specialize in crafting database queries. Based on the table creation statements provided, you can generate the appropriate query to answer a user's question. ### Table Definitions - **Users Table**: ```sql CREATE TABLE trading_platform.users ( user_id VARCHAR(64) NOT NULL, username VARCHAR(128) ...
[ { "role": "user", "content": "Please provide a list of users who have signed up but have not yet set up a wallet. Include their user_id, username, and email address.", "sql": null }, { "role": "assistant", "content": "SELECT u.user_id, u.username, u.email\nFROM trading_platform.users u\nLEFT...
You possess expertise in crafting database queries. Your skill allows you to formulate queries that address user inquiries, utilizing the table structure provided in the table creation statements. ## Table Schema ```sql CREATE TABLE trading_platform.users ( user_id TEXT, username TEXT, email TEXT, pas...
[ { "role": "user", "content": "Provide a list of each user's user_id, username, the number of log entries recorded in the past 30 days, and the number of notifications they haven't read.", "sql": null }, { "role": "assistant", "content": "SELECT u.user_id,\n u.username,\n COUNT(l....
You are highly skilled in crafting database queries. You can formulate a suitable database query to respond to user inquiries based on the structure provided by the table creation statements. ## Table Structure CREATE TABLE healthcare.doctors ( doctor_id VARCHAR(64) NOT NULL, first_name VARCHAR(100) NOT NULL, l...
[ { "role": "user", "content": "Display all diagnostic information, incorporating the diagnosis ID, its description, the date it was made, and the complete name of the physician responsible for the diagnosis.", "sql": null }, { "role": "assistant", "content": "SELECT T1.diagnosis_id, T1.descri...
You possess expertise in crafting database queries. You are capable of formulating a suitable database query to address the user's question, utilizing the table structure provided in the table creation statement. ##Table Structure CREATE TABLE government_services.citizens ( citizen_id text PRIMARY KEY, national_i...
[ { "role": "user", "content": "Gather all notifications labeled as 'failed' and include the full name and contact phone number of the citizen for those notifications that have taken place within the last 30 days.", "sql": null }, { "role": "assistant", "content": "SELECT n.notification_id,\n ...
You possess expertise in crafting database queries. You can formulate an appropriate database query to address the user's inquiry, using the table structure outlined in the table creation statement. ## Table Structure CREATE TABLE gaming_technology.game_sessions ( session_id uuid NOT NULL DEFAULT gen_random_uuid(...
[ { "role": "user", "content": "Could you supply the total count of sessions and the mean session length in seconds for each combination of game_id and server_id?", "sql": null }, { "role": "assistant", "content": "SELECT game_id, server_id, COUNT(*) AS total_sessions, AVG(duration_seconds) AS...
You are highly skilled in crafting database queries. Given a table's creation statement, you can formulate a database query to respond to a user's inquiry. ## Table Definition CREATE TABLE healthcare.medications ( medication_id text, medication_name text, generic_name text, manufacturer text, ndc_code text, descripti...
[ { "role": "user", "content": "List all medications that have a common manufacturer with at least one other medication. Provide the medication_id, medication_name, and manufacturer for each entry.", "sql": null }, { "role": "assistant", "content": "SELECT m.medication_id,\n m.medication...
You possess expertise in crafting database queries. Your role is to generate a suitable database query that addresses the user's inquiry, utilizing the table structure defined by the provided table creation statements. ### Table Structure - **healthcare.patients**: ``` CREATE TABLE healthcare.patients ( pat...
[ { "role": "user", "content": "Provide a list of male patients who have been issued multiple prescriptions, detailing their complete names, birthdates, and the overall count of prescriptions received.", "sql": null }, { "role": "assistant", "content": "SELECT p.patient_id, p.first_name, p.las...
You possess expertise in crafting database queries. You are capable of creating a database query tailored to answer a user's inquiry based on the provided table structure. ### Table Structure - **insurance.customers** ```sql CREATE TABLE insurance.customers ( customer_id VARCHAR(64) NOT NULL, first_name VARCHAR(...
[ { "role": "user", "content": "Identify all beneficiaries who have been added within the past week. Include their beneficiary_id, policy_id, and percentage_share, and arrange the results in descending order based on percentage_share.", "sql": null }, { "role": "assistant", "content": "SELECT ...
You have a strong expertise in database language writing. You are able to create a suitable database query to respond to a user's inquiry based on the table structures provided in the table creation statements. ## Table Structure ```sql CREATE TABLE token_basic_info ( coin_id VARCHAR(100) NOT NULL, -- Unique identi...
[ { "role": "user", "content": "\"Please display the three leading narratives based on trend ranking, including their three most significant tokens and the percentage change in their prices over the past seven days.\"", "sql": null }, { "role": "assistant", "content": "SELECT n.narrative, n.to...
You possess expertise in crafting database language queries. You can generate a suitable database query to address the user's inquiry by utilizing the table structure outlined in the table creation statement. ##Table Structure CREATE TABLE insurance.claim_documents ( document_id TEXT PRIMARY KEY, claim_id TEXT,...
[ { "role": "user", "content": "Identify all document IDs, file names, and upload times for documents that were added during a weekend.", "sql": null }, { "role": "assistant", "content": "SELECT document_id, file_name, uploaded_at FROM insurance.claim_documents WHERE EXTRACT(DOW FROM uploaded_...
You possess expertise in crafting database queries. Your skillset allows you to generate suitable database language queries in response to users' inquiries, utilizing the table design provided in the table creation statement. ## Table Layout CREATE TABLE transportation.vehicles ( vehicle_id character varying(64) N...
[ { "role": "user", "content": "\"Provide the count of vehicles categorized by each type of fuel.\"", "sql": null }, { "role": "assistant", "content": "SELECT fuel_type,\n COUNT(*) AS total_vehicles\nFROM transportation.vehicles\nGROUP BY fuel_type;", "sql": null }, { "role":...
You possess expertise in crafting database queries. You are capable of creating queries to address users' inquiries based on the structure provided by the table creation statements. ## Table Definition CREATE TABLE hospitality_technology.properties ( property_id VARCHAR(64) NOT NULL, -- Unique identifier for eac...
[ { "role": "user", "content": "Calculate the mean overall review score for each property. Provide the property_name along with the avg_rating.", "sql": null }, { "role": "assistant", "content": "SELECT pr.property_name, AVG(r.rating_overall) AS avg_rating\nFROM hospitality_technology.reviews ...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4