idx stringlengths 33 52 | instance_id stringlengths 12 17 | db_id stringclasses 209
values | messages listlengths 2 2 | prompt listlengths 1 1 | completion listlengths 1 1 |
|---|---|---|---|---|---|
501860_sft_cte_gptoss120b_spider_train_one_9547 | local_spider_2857 | customer_deliveries | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "\nJSON Response: \n```json\n{\"Employees\": \"drop_all\"}\n```\n"
}
] |
333889_sft_cte_gptoss120b_spider_train_fk_8474 | local_spider_6700 | driving_school | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "CTE Query: \n```cte\nWITH Cancelled_lessons AS (SELECT \"lesson_id\", \"lesson_status_code\" FROM \"Lessons\" WHERE \"lesson_status_code\" = 'Cancelled' ) \n```\nJSON Response: \n```json\n{\"Addresses\": \"drop_all\", \"Staff\": \"drop_all\", \... |
68378_sft_cte_qwen25_spider_train_7301 | local_spider_2891 | icfp_1 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "assistant",
"reasoning_content": "Let's break down the task step by step:\n\n### Step-by-Step Analysis\n\n1. **Identify Relevant Information:**\n - The question asks for papers that have \"Olin Shivers\" as an author. \n - The `Authorship` table connects authors to papers (via `authID` and `p... |
95936_sft_cte_nemotron3super_bird_train_fk_5453 | local_bird_3583 | authors | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "The user wants a JSON block indicating whether a CTE is needed, in a specific format. The previous response had a JSON block but maybe the format was slightly off or the user wants a specific structure like ",
"content": "CTE Query: \n```cte\nWITH author_cte ... |
276523_sft_cte_gptoss120b_bird_train_one_35111 | local_bird_7082 | works_cycles | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The tables ['Store'] are not have any relevant information to answer the question `Average cost of purchase orders made during the first six months of 2012.`. So we can drop all these tables. Because no relevant tables, there are no CTE query ... |
444979_sft_cte_llama33_spider_train_fk_1728 | local_spider_1312 | performance_attendance | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "assistant",
"reasoning_content": "To answer the question, \"What is the average number of attendees for performances?\", we need to identify the table and column that store the number of attendees for each performance. From the provided database schema, the `performance` table has a column named ... |
278185_sft_cte_gptoss120b_bird_train_one_36773 | local_bird_7132 | works_cycles | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\nYou are an experienced database expert. Your task is to generate a CTE (Common Table Expression) query to help answer the question based on the provided database schema and select relevant columns from the schema by generate a json ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\nYou are an experienced database expert. Your task is to generate a CTE (Common Table Expression) query to help answer the question based on the provided database schema and select relevant columns from the schema by generate a json ... | [
{
"role": "assistant",
"reasoning_content": "We need to consider the provided schema: only one table described: ProductModelProductDescriptionCulture. But there are other tables referenced in previous CTEs: EmailAddress, Person. Those are part of the broader database not shown now. The instruction: \"Do not... |
30772_sft_cte_xiaomi25pro_spider_train_size300_218 | local_spider_110 | bike_1 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": " The `weather` table contains `date` and `max_temperature_f`, which directly relate to the question about dates when the maximum temperature is higher than 85. The column `max_temperature_f` can be filtered to find rows where it exceeds 85, and `date` provides th... |
427615_sft_cte_gptoss120b_bird_train_fk_15720 | local_bird_7281 | works_cycles | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The tables ['Culture', 'ProductDescription', 'ProductModel', 'ProductModelProductDescriptionCulture'] are not have any relevant information to answer the question `What is the highest profit on net for a product?`. So we can drop all these tab... |
62441_sft_cte_qwen25_spider_train_1364 | local_spider_589 | store_1 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "assistant",
"reasoning_content": "You are correct. The JSON and CTE must be consistent regarding the columns included. If the CTE selects specific columns, the JSON should reflect those columns as well. \n\nSince the CTE query filters based on `first_name` and `last_name`, these columns should be... |
13711_sft_cte_glm5_spider_train_fk_2857 | local_spider_3416 | hr_1 | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "assistant",
"reasoning_content": "We need to produce CTE query and JSON answer.\n\nGiven schema hr_1 with tables: departments, job_history, jobs, employees.\n\nQuestion: \"when is the hire date for those employees whose first name does not containing the letter M?\" So we need hire date of employ... |
289675_sft_cte_gptoss120b_bird_train_one_48263 | local_bird_7576 | image_and_language | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "JSON Response: \n```json\n{\"ATT_CLASSES\": [\"ATT_CLASS_ID\", \"ATT_CLASS\"]}\n```\nCTE Query: \n```cte\nWITH sparse_attribute_cte AS (SELECT \"ATT_CLASS_ID\", \"ATT_CLASS\" FROM \"ATT_CLASSES\" WHERE \"ATT_CLASS\" = 'sparse' ) \n```\n"
}
] |
325364_sft_cte_llama33_spider_train_25885 | local_spider_6972 | culture_company | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "assistant",
"reasoning_content": "To answer the question, we first need to identify the relevant tables and columns in the provided schema. The question asks for the number of books for each publisher. However, the provided schema only includes a table named `culture_company` which does not direc... |
234313_sft_cte_llama33_bird_train_7449 | local_bird_1586 | car_retails | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The tables ['customers'] are not have any relevant information to answer the question `List the product code of the top five motorcycles, by descending order, the number of quantity in stock.`. So we can drop all these tables. Because no relev... |
516173_sft_cte_gptoss120b_spider_train_one_23860 | local_spider_6233 | ship_1 | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "We need to decide if the table captain is relevant. It contains Class column. We need classes with >2 captains. The table alone can answer: group by Class, count distinct Captain_ID >2. So relevant.\n\nWe need CTE query. Probably just select Class from captain gr... |
250220_sft_cte_gptoss120b_bird_train_one_8808 | local_bird_1835 | soccer_2016 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The tables ['City'] are not have any relevant information to answer the question `Who is the player who won the first ever \"man of the match\" award?`. So we can drop all these tables. Because no relevant tables, there are no CTE query genera... |
286904_sft_cte_gptoss120b_bird_train_one_45492 | local_bird_7400 | works_cycles | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The tables ['BillOfMaterials'] are not have any relevant information to answer the question `Which seasonal discount had the highest discount percentage?`. So we can drop all these tables. Because no relevant tables, there are no CTE query gen... |
343949_sft_cte_gptoss120b_bird_train_size300_9772 | local_bird_3611 | authors | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\nYou are an experienced database expert. Your task is to generate a CTE (Common Table Expression) query to help answer the question based on the provided database schema and select relevant columns from the schema by generate a json ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\nYou are an experienced database expert. Your task is to generate a CTE (Common Table Expression) query to help answer the question based on the provided database schema and select relevant columns from the schema by generate a json ... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "We need to address feedback: \"The lacking columns are: Table: Conference - Column: Mathematics of Program Construction ;\". The user says JSON and CTE are inconsistent; missing column is \"Mathematics of Program Construction\". But that's a va... |
288221_sft_cte_gptoss120b_bird_train_one_46809 | local_bird_7442 | works_cycles | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "assistant",
"reasoning_content": " The question asks for the thumbnail photo file name of a product with ID 979. The provided schema only contains a Currency table with columns CurrencyCode, Name, and ModifiedDate, which have no relation to products or thumbnail images. Therefore, this table is i... |
423064_sft_cte_gptoss120b_bird_train_fk_11169 | local_bird_5450 | sales | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. CTE response : Generate a CTE query to provide all the necessary information from the provided schema to help to answer the question.\n2. JSON response : Decide whether this table is relevant to the questio... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. CTE response : Generate a CTE query to provide all the necessary information from the provided schema to help to answer the question.\n2. JSON response : Decide whether this table is relevant to the questio... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "CTE Query: \n```cte\nWITH sales_total AS (SELECT \"Sales\".\"SalesID\", \"Sales\".\"CustomerID\", \"Sales\".\"Quantity\", \"Products\".\"Price\", (\"Sales\".\"Quantity\" * \"Products\".\"Price\") AS total_price FROM \"Sales\" INNER JOIN \"Produ... |
32952_sft_cte_xiaomi25pro_spider_train_size300_2398 | local_spider_1272 | apartment_rentals | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "First, I need to decide which tables are relevant to the question. The question is: \"Which apartments have bookings with both status codes 'Provisional' and 'Confirmed'? Give me the apartment numbers.\"\n\nFrom the database schema:\n\n- Table:... |
448233_sft_cte_llama33_spider_train_fk_4982 | local_spider_3730 | program_share | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "To answer the question, we first need to identify which table contains information about channel ownership and names. The `channel` table has columns for `Name` (channel name), `Owner` (channel owner), and `Channel_ID` (unique identifier for each channel). Since ... |
248204_sft_cte_gptoss120b_bird_train_one_6792 | local_bird_1450 | synthea | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The tables ['conditions'] are not have any relevant information to answer the question `How many patients with 'allergy to eggs' have been immunized with 'Td (adult) preservative free'?`. So we can drop all these tables. Because no relevant ta... |
404079_sft_cte_glm47_spider_train_fk_5029 | local_spider_3210 | college_1 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "assistant",
"reasoning_content": "The user wants me to generate a CTE query and a JSON relevance decision based on the provided schema and question.\n\n**Schema Analysis:**\n- Database: `college_1`\n- Table `CLASS`: Columns: `CLASS_CODE`, `CRS_CODE`, `CLASS_SECTION`, `CLASS_TIME`, `CLASS_ROOM`, `... |
115891_sft_cte_mistralLarge_bird_train_fk_1158 | local_bird_642 | codebase_comments | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generate a CTE (Common... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generate a CTE (Common... | [
{
"role": "assistant",
"reasoning_content": "Let's analyze the provided schema and the question step by step.\n\n### Step-by-Step Analysis\n\n1. **Understand the Question**:\n The question asks for the percentage of Forks to Stars for the repository associated with the solution ID \"104086\".\n\n2. **Iden... |
15080_sft_cte_glm5_spider_train_fk_4226 | local_spider_4786 | department_store | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "assistant",
"reasoning_content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generat... |
389040_sft_cte_gpt5mini_spider_train_13493 | local_spider_3632 | baseball_1 | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The tables ['all_star'] are not have any relevant information to answer the question `What is average salary of the players in the team named 'Boston Red Stockings' ?`. So we can drop all these tables. Because no relevant tables, there are no ... |
84133_sft_cte_xiaomi25pro_spider_train_fk_1375 | local_spider_996 | university_basketball | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "JSON Response: \n```json\n{\"basketball_match\": \"drop_all\", \"university\": [\"Enrollment\", \"Founded\"]}\n```\nCTE Query: \n```cte\nWITH university_cte AS (SELECT \"Enrollment\" FROM \"university\" WHERE \"Founded\" < 1850 ) \n```\n"
}
] |
96090_sft_cte_nemotron3super_bird_train_fk_5607 | local_bird_3730 | college_completion | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. CTE response : Generate a CTE query to provide all the necessary information from the provided schema to help to answer the question.\n2. JSON response : Decide whether this table is relevant to the questio... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. CTE response : Generate a CTE query to provide all the necessary information from the provided schema to help to answer the question.\n2. JSON response : Decide whether this table is relevant to the questio... | [
{
"role": "assistant",
"reasoning_content": "The tables ['institution_grads'] are not have any relevant information to answer the question `What is the percentage of the number of 4-year public schools from Madison Area Technical College's home state in the Alabama?`. So we can drop all these tables. Becau... |
366097_sft_cte_gptoss120b_bird_train_size300_31920 | local_bird_7792 | hockey | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "assistant",
"reasoning_content": "**Step‑by‑step reasoning**\n\n1. **Is the `Master` table useful?** \n Yes. It stores each person’s identifying data (`playerID`) together with the dominant‑hand field (`shootCatch`) and name fields (`firstName`, `lastName`). These columns are needed to return ... |
435761_sft_cte_gptoss120b_bird_train_fk_23866 | local_bird_8641 | chicago_crime | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\nYou are an experienced database expert. Your task is to generate a CTE (Common Table Expression) query to help answer the question based on the provided database schema and select relevant columns from the schema by generate a json ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\nYou are an experienced database expert. Your task is to generate a CTE (Common Table Expression) query to help answer the question based on the provided database schema and select relevant columns from the schema by generate a json ... | [
{
"role": "assistant",
"reasoning_content": " The IUCR table provides the necessary data: `iucr_no` (IUCR number), `index_code` (index status), and `primary_description` (used to filter for homicide incidents). These columns are referenced in the CTE, so they are listed here. All other tables do not contain... |
170207_sft_cte_llama33_bird_train_fk_22300 | local_bird_8447 | mondial_geo | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The tables ['geo_sea'] are not have any relevant information to answer the question `Which of the top 3 economies by GDP has the lowest proportion of the economy devoted to agriculture?`. So we can drop all these tables. Because no relevant ta... |
439196_sft_cte_gptoss120b_bird_train_fk_27301 | local_bird_9428 | movie_3 | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "assistant",
"reasoning_content": " The question asks for the average monetary amount spent by customers in Italy on a single film rental. This requires data about customers (including their country), rental transactions, and the rental amount. The provided `film` table only contains information a... |
377721_sft_cte_gpt5mini_spider_train_2174 | local_spider_630 | store_1 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "Do the table contain information to answer the question?\n- Partially. The provided `genres` table contains genre id and genre name which can be used to identify the genre \"Rock\" (i.e., to filter by genre). However, the schema does not include the `tracks` tabl... |
409922_sft_cte_glm47_spider_train_fk_10872 | local_spider_5397 | tracking_software_problems | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The question asks for first and last names of staff members who reported problems for product \"rem\" but not for product \"aut\". The schema provided only includes the \"Problems\" table. It has columns: problem_id, product_id, closure_authori... |
534557_sft_cte_qwen36plus_spider_train_2_8491 | local_spider_5503 | voter_2 | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "assistant",
"reasoning_content": "The JSON and CTE should be consistent in terms of the columns used. Here is the revised JSON format answer:",
"content": "JSON Response: \n```json\n{\"Student\": [\"Advisor\", \"StuID\"], \"Voting_record\": \"drop_all\"}\n```\nCTE Query: \n```cte\nWITH adviso... |
149732_sft_cte_llama33_bird_train_fk_1825 | local_bird_1107 | talkingdata | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "assistant",
"reasoning_content": "To correct the inconsistency, we should include `phone_brand` in the JSON selected columns since it is used in the CTE query to filter the results for 'OPPO' brand. Here is the revised answer: The `phone_brand_device_model2` table is directly relevant because it ... |
206008_sft_cte_qwen3coder480b_bird_train_fk_1331 | local_bird_1056 | talkingdata | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "Let me analyze this step by step.\n\nLooking at the database schema and the question \"How many users belong to the MOBA category?\", I need to determine if the tables contain information to answer this question.\n\nThe question asks about user... |
191521_sft_cte_llama33_bird_train_2_5408 | local_bird_4920 | olympics | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\nYou are an experienced database expert. Your task is to generate a CTE (Common Table Expression) query to help answer the question based on the provided database schema and select relevant columns from the schema by generate a json ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\nYou are an experienced database expert. Your task is to generate a CTE (Common Table Expression) query to help answer the question based on the provided database schema and select relevant columns from the schema by generate a json ... | [
{
"role": "assistant",
"reasoning_content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Deci... |
307978_sft_cte_llama33_spider_train_8499 | local_spider_2529 | movie_1 | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generate a CTE (Common... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generate a CTE (Common... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "JSON Response: \n```json\n{\"Reviewer\": [\"rID\", \"name\"]}\n```\nCTE Query: \n```cte\nWITH rated_3_or_4 AS (SELECT r.rID, r.name FROM Reviewer AS r JOIN Rating AS rt ON r.rID = rt.rID WHERE rt.stars IN (3, 4) ) , \nrated_both AS (SELECT rID ... |
463099_sft_cte_gptoss120b_spider_train_size300_11117 | local_spider_4780 | department_store | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generate a CTE (Common... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generate a CTE (Common... | [
{
"role": "assistant",
"reasoning_content": "We need to analyze schema: tables: Order_Items, Supplier_Addresses, Customer_Addresses, Products. No Supplier table directly, but there is Supplier_Addresses linking to Suppliers (though Suppliers table not shown). Also Product_Suppliers probably exists but not l... |
323498_sft_cte_llama33_spider_train_24019 | local_spider_6346 | e_government | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generate a CTE (Common... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generate a CTE (Common... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "JSON Response: \n```json\n{\"Organizations\": [\"organization_id\", \"organization_name\"]}\n```\nCTE Query: \n```cte\nWITH organization_contact_count AS (SELECT o.organization_id, o.organization_name, COUNT(oci.individual_id) AS contact_count ... |
396963_sft_cte_gpt5mini_spider_train_21416 | local_spider_5173 | music_2 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The tables ['Songs'] are not have any relevant information to answer the question `How many bands are there?`. So we can drop all these tables. Because no relevant tables, there are no CTE query generated, just return JSON with all tables mark... |
194202_sft_cte_qwen25_bird_train_2_1027 | local_bird_1360 | synthea | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "Let's carefully re-analyze the question and validate against the provided relevant values.\n\n---\n\n### **Question**: \n*According to the observation on 2008/3/11, what was the height of Elly Koss?*\n\n### **Key Requirements**:\n- **Date**: `'2008-03-11'` → mat... |
259846_sft_cte_gptoss120b_bird_train_one_18434 | local_bird_3919 | public_review_platform | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "assistant",
"reasoning_content": " The question asks for business_id, city, and stars to list businesses in Tempe with star ratings from 3 to 4. The provided schema only includes the Attributes table, which contains attribute_id and attribute_name and does not have any of the required columns. He... |
93965_sft_cte_nemotron3super_bird_train_fk_3482 | local_bird_1977 | soccer_2016 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2.... |
406741_sft_cte_glm47_spider_train_fk_7691 | local_spider_3944 | hospital_1 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. CTE response : Generate a CTE query to provide all the necessary information from the provided schema to help to answer the question.\n2. JSON response : Decide whether this table is relevant to the questio... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. CTE response : Generate a CTE query to provide all the necessary information from the provided schema to help to answer the question.\n2. JSON response : Decide whether this table is relevant to the questio... | [
{
"role": "assistant",
"reasoning_content": "The `Appointment` table contains `Physician` (EmployeeID) and `AppointmentID`, which links to the `Prescribes` table (via foreign key `Prescribes.Appointment -> Appointment.AppointmentID`) and the `Physician` table (via foreign key `Appointment.Physician -> Physi... |
151412_sft_cte_llama33_bird_train_fk_3505 | local_bird_1898 | soccer_2016 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "\nJSON Response: \n```json\n{\"Extra_Type\": \"drop_all\", \"Extra_Runs\": \"drop_all\"}\n```\n"
}
] |
450164_sft_cte_llama33_spider_train_fk_6913 | local_spider_5310 | manufactory_1 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "To determine the names and revenues of the companies with the highest revenues in each headquarter city, we need to analyze the provided database schema. The relevant information for answering this question is found in the `Manufacturers` table, which contains th... |
213508_sft_cte_ling1T_bird_train_fk_54 | local_bird_73 | movie_platform | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "JSON Response: \n```json\n{\"lists\": \"drop_all\", \"movies\": [\"movie_id\", \"movie_title\"], \"ratings_users\": \"drop_all\", \"lists_users\": \"drop_all\", \"ratings\": [\"user_id\", \"movie_id\", \"user_trialist\"]}\n```\nCTE Query: \n```... |
450569_sft_cte_llama33_spider_train_fk_7318 | local_spider_5713 | dorm_1 | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generate a CTE (Common... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generate a CTE (Common... | [
{
"role": "assistant",
"reasoning_content": "To answer the question, we first need to identify which table contains information about the city where students are living and the number of students in each city. The `Student` table contains a `city_code` column, which represents the city where each student is... |
284104_sft_cte_gptoss120b_bird_train_one_42692 | local_bird_7315 | works_cycles | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The tables ['CurrencyRate'] are not have any relevant information to answer the question `List all staff in the Shipping and Receiving department who are hired in 2009.`. So we can drop all these tables. Because no relevant tables, there are n... |
100025_sft_cte_nemotron3super_bird_train_fk_9542 | local_bird_5583 | shipping | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "CTE Query: \n```cte\nWITH shipments AS (SELECT \"ship_id\", \"cust_id\" FROM \"shipment\" ) \n```\nJSON Response: \n```json\n{\"city\": \"drop_all\", \"shipment\": [\"ship_id\", \"cust_id\"]}\n```\n"
}
] |
43559_sft_cte_qwen25_bird_train_fk_5200 | local_bird_3874 | public_review_platform | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generate a CTE (Common... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generate a CTE (Common... | [
{
"role": "assistant",
"reasoning_content": "### Step-by-Step Analysis\n\n1. **Question Analysis:** The question asks for the number of elite users who have posted more than 10 reviews.\n2. **Information Needed:**\n - `user_id`: To identify users who have posted reviews.\n - A count of each user's revie... |
8907_sft_cte_minimaxM25_bird_train_fk_1832 | local_bird_1091 | talkingdata | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generate a CTE (Common... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generate a CTE (Common... | [
{
"role": "assistant",
"reasoning_content": "<think>The user is asking me to provide only one JSON block and one CTE block. Let me combine everything into a single response with one CTE block and one JSON block.\n\nLooking at the question again:\n- Please list the IDs of the events happened on all the vivo ... |
406220_sft_cte_glm47_spider_train_fk_7170 | local_spider_3772 | e_learning | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "\nJSON Response: \n```json\n{\"Subjects\": \"drop_all\", \"Student_Tests_Taken\": \"drop_all\"}\n```\n"
}
] |
104860_sft_cte_nemotron3super_bird_train_fk_14377 | local_bird_7057 | works_cycles | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The tables ['ProductModelProductDescriptionCulture', 'ShoppingCartItem'] are not have any relevant information to answer the question `Among the employees who have a pay rate of above 40, how many of them are male?`. So we can drop all these t... |
123578_sft_cte_mistralLarge_bird_train_fk_8845 | local_bird_4128 | public_review_platform | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "JSON Response: \n```json\n{\"Business\": [\"business_id\", \"stars\", \"active\"]}\n```\nCTE Query: \n```cte\nWITH food_businesses AS (SELECT \"business_id\", \"stars\", \"active\" FROM \"Business\" WHERE \"active\" = 'true' ) \n```\n"
}
] |
317124_sft_cte_llama33_spider_train_17645 | local_spider_4706 | college_3 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "assistant",
"reasoning_content": "To answer the question, we need to identify the departments that are either in division 'AS' or in division 'EN' and in building 'NEB'. \n\nThe relevant table for this question is the `Department` table, which contains the columns `DName`, `Division`, and `Buildi... |
127325_sft_cte_mistralLarge_bird_train_fk_12592 | local_bird_6791 | retails | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "JSON Response: \n```json\n{\"customer\": \"drop_all\", \"lineitem\": \"drop_all\", \"nation\": \"drop_all\", \"orders\": \"drop_all\", \"part\": [\"p_partkey\", \"p_type\"], \"partsupp\": [\"ps_partkey\", \"ps_supplycost\"], \"region\": \"drop_... |
374951_sft_cte_xiaomi25pro_bird_train_fk_1083 | local_bird_607 | codebase_comments | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "assistant",
"reasoning_content": "We are given a database schema for a table named \"Repo\". The columns are:\n - Id (integer)\n - Url (text)\n - Stars (integer)\n - Forks (integer)\n - Watchers (integer)\n - ProcessedTime (integer)\n\n The question is: \"Give the tokenized name for t... |
60107_sft_cte_qwen25_bird_train_fk_21748 | local_bird_9308 | movie_3 | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "assistant",
"reasoning_content": "The tables ['actor'] are not have any relevant information to answer the question `What is the largest number of films rented per customer?`. So we can drop all these tables. Because no relevant tables, there are no CTE query generated, just return JSON with all... |
42808_sft_cte_qwen25_bird_train_fk_4449 | local_bird_3767 | public_review_platform | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "assistant",
"reasoning_content": "To answer the question, we need to identify the category of the Yelp business that received the most 5-star reviews. The provided schema contains the `Business_Attributes` table, but it does not have information about reviews directly or the category of the busin... |
390340_sft_cte_gpt5mini_spider_train_14793 | local_spider_3748 | program_share | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "CTE Query: \n```cte\nWITH bn AS (SELECT b.\"Channel_ID\", b.\"Time_of_day\" FROM \"broadcast\" AS b WHERE NOT b.\"Time_of_day\" IS NULL AND b.\"Time_of_day\" IN ('Morning', 'Night') ) \n```\nJSON Response: \n```json\n{\"channel\": [\"Channel_ID... |
231185_sft_cte_llama33_bird_train_4321 | local_bird_1063 | talkingdata | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The tables ['gender_age'] are not have any relevant information to answer the question `What are the labels' IDs of online shopping and online malls categories?`. So we can drop all these tables. Because no relevant tables, there are no CTE qu... |
307953_sft_cte_llama33_spider_train_8474 | local_spider_2516 | movie_1 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "To answer this question, we first need to identify which tables and columns are relevant. The question asks for the average rating of each movie that has never been reviewed by Brittany Harris. This involves identifying movies, their ratings, and the reviewers of... |
283729_sft_cte_gptoss120b_bird_train_one_42317 | local_bird_7303 | works_cycles | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "assistant",
"reasoning_content": "The tables ['ShipMethod'] are not have any relevant information to answer the question `How many products that take more than 2 days to make are out of stock?`. So we can drop all these tables. Because no relevant tables, there are no CTE query generated, just r... |
55888_sft_cte_qwen25_bird_train_fk_17529 | local_bird_8386 | mondial_geo | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. CTE response : Generate a CTE query to provide all the necessary information from the provided schema to help to answer the question.\n2. JSON response : Decide whether this table is relevant to the questio... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. CTE response : Generate a CTE query to provide all the necessary information from the provided schema to help to answer the question.\n2. JSON response : Decide whether this table is relevant to the questio... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The tables ['geo_source'] are not have any relevant information to answer the question `How many cities in France have a population of more than 100,000?`. So we can drop all these tables. Because no relevant tables, there are no CTE query gen... |
362320_sft_cte_gptoss120b_bird_train_size300_28143 | local_bird_7407 | works_cycles | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "\nJSON Response: \n```json\n{\"SpecialOffer\": \"drop_all\"}\n```\n"
}
] |
465378_sft_cte_gptoss120b_spider_train_size300_13396 | local_spider_5853 | tracking_share_transactions | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\nYou are an experienced database expert. Your task is to generate a CTE (Common Table Expression) query to help answer the question based on the provided database schema and select relevant columns from the schema by generate a json ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\nYou are an experienced database expert. Your task is to generate a CTE (Common Table Expression) query to help answer the question based on the provided database schema and select relevant columns from the schema by generate a json ... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The tables ['Investors', 'Lots', 'Ref_Transaction_Types', 'Sales', 'Purchases', 'Transactions_Lots'] are not have any relevant information to answer the question `Show the average amount of transactions with type code \"SALE\".`. So we can dro... |
9413_sft_cte_minimaxM25_bird_train_fk_2338 | local_bird_5029 | olympics | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "assistant",
"reasoning_content": "Looking at this question, I need to identify:\n1. Male competitors (gender = 'M' from person table)\n2. Who participated in 1948 Summer games (games_name = '1948 Summer' from games table)\n3. Count the number of these competitors\n\n**Analyzing the schema:**\n\n1... |
228157_sft_cte_llama33_bird_train_1293 | local_bird_330 | retail_complains | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generate a CTE (Common... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generate a CTE (Common... | [
{
"role": "assistant",
"reasoning_content": "To answer the question, \"What is the most common issue for the highest priority complaints?\", we need to identify the tables and columns in the provided schema that are relevant to this inquiry.\n\n1. **Relevant Tables and Columns**: The question revolves aroun... |
251429_sft_cte_gptoss120b_bird_train_one_10017 | local_bird_1940 | soccer_2016 | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "assistant",
"reasoning_content": "We need to examine schema: only Out_Type table given. No Player table. Question asks for players whose bowling skill is Legbreak. Out_Type has Out_Id, Out_Name which are dismissal types. No relevant column. So irrelevant. Provide json marking Out_Type as drop_all... |
491847_sft_cte_gpt5mini_spider_train_2_3941 | local_spider_3620 | music_1 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "assistant",
"reasoning_content": " Yes — a CTE is useful. The `song` table contains `artist_name` and `languages`, which allow filtering songs in Bangla and grouping by artist to count songs. The `artist` table is optional for additional metadata but not required to compute the top 3 artists by B... |
473418_sft_cte_qwen25_spider_train_2_182 | local_spider_216 | book_2 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "assistant",
"reasoning_content": "### Step-by-Step Analysis\n\n1. **Question Understanding:** The question asks for the titles of books listed in ascending order based on the number of issues.\n2. **Identify Relevant Table and Columns:**\n - **Relevant Table:** `book` (Since it contains the col... |
404209_sft_cte_glm47_spider_train_fk_5159 | local_spider_3247 | college_1 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. CTE response : Generate a CTE query to provide all the necessary information from the provided schema to help to answer the question.\n2. JSON response : Decide whether this table is relevant to the questio... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. CTE response : Generate a CTE query to provide all the necessary information from the provided schema to help to answer the question.\n2. JSON response : Decide whether this table is relevant to the questio... | [
{
"role": "assistant",
"reasoning_content": "The question asks for first names of students who took ACCT-211 and received a C. The provided schema includes only ENROLL and EMPLOYEE tables. ENROLL contains enrollment records with CLASS_CODE, STU_NUM, and ENROLL_GRADE, which are relevant for filtering by grad... |
165157_sft_cte_llama33_bird_train_fk_17250 | local_bird_7567 | image_and_language | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "CTE Query: \n```cte\nWITH object_sample_count AS (SELECT COUNT(OBJ_SAMPLE_ID) AS total_object_samples, COUNT(DISTINCT IMG_ID) AS total_unique_images FROM \"IMG_OBJ\" ) \n```\nJSON Response: \n```json\n{\"ATT_CLASSES\": \"drop_all\", \"OBJ_CLASS... |
143551_sft_cte_random_bird_train_fk_7078 | local_bird_3872 | public_review_platform | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "assistant",
"reasoning_content": "Let’s examine the schema.\n\n**Table:** `Days` \n**Columns:** `day_id`, `day_of_week`\n\nThe question asks for businesses with operating hours longer than 12 hours on Sundays. \nThis involves:\n- Identifying Sunday (`day_of_week = 'Sunday'`)\n- Linking to busin... |
472132_sft_cte_xiaomi25pro_bird_train_size300_919 | local_bird_299 | retail_complains | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "\nJSON Response: \n```json\n{\"callcenterlogs\": \"drop_all\"}\n```\n"
}
] |
63701_sft_cte_qwen25_spider_train_2624 | local_spider_961 | medicine_enzyme_interaction | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "assistant",
"reasoning_content": "The tables ['medicine_enzyme_interaction'] are not have any relevant information to answer the question `How many medicines were not approved by the FDA?`. So we can drop all these tables. Because no relevant tables, there are no CTE query generated, just return... |
499646_sft_cte_gptoss120b_spider_train_one_7333 | local_spider_2133 | company_1 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The tables ['project'] are not have any relevant information to answer the question `find all dependent names who have a spouse relation with some employee.`. So we can drop all these tables. Because no relevant tables, there are no CTE query ... |
186116_sft_cte_llama33_bird_train_2_3 | local_bird_5 | movie_platform | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "CTE Query: \n```cte\nWITH kubrick_movies AS (SELECT \"movie_popularity\" FROM \"movies\" WHERE \"director_name\" = 'Stanley Kubrick' ) \n```\nJSON Response: \n```json\n{\"lists\": \"drop_all\", \"movies\": [\"movie_id\", \"movie_title\", \"movi... |
204135_sft_cte_llama33_spider_train_2_6897 | local_spider_6436 | cre_Docs_and_Epenses | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "assistant",
"reasoning_content": "To answer the question, we first need to identify which tables contain information about projects and their associated documents. The `Projects` table stores project details, and the `Documents` table stores document information, including the project each docume... |
91042_sft_cte_nemotron3super_bird_train_fk_559 | local_bird_453 | movies_4 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "assistant",
"reasoning_content": "We are given a database schema for movies_4 with only one table: movie_keywords.\n The table has columns: movie_id and keyword_id.\n\n The question: \"How many movies released in 1995 did Quentin Tarantino appear in?\"\n\n To answer this, we need:\n - Movies re... |
226648_sft_cte_minimaxM25_spider_train_fk_5358 | local_spider_6780 | activity_1 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The question asks for the first and last name of all faculty members who participated in some activity, along with the number of activities they participated in.\n\nLooking at the schema:\n1. `Faculty` table - contains FacID, Lname, Fname - thi... |
58739_sft_cte_qwen25_bird_train_fk_20380 | local_bird_9131 | movie_3 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query in ```cte block to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to ... | [
{
"role": "assistant",
"reasoning_content": "The provided table schema does not contain information about customers, rentals, or films, which are essential for answering the question about films rented by RUTH MARTINEZ and their release years. The `staff` table only contains details about staff members, suc... |
502297_sft_cte_gptoss120b_spider_train_one_9984 | local_spider_2951 | sakila_1 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\nYou are an experienced database expert. Your task is to generate a CTE (Common Table Expression) query to help answer the question based on the provided database schema and select relevant columns from the schema by generate a json ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\nYou are an experienced database expert. Your task is to generate a CTE (Common Table Expression) query to help answer the question based on the provided database schema and select relevant columns from the schema by generate a json ... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The tables ['film_category'] are not have any relevant information to answer the question `Which film has the most number of actors or actresses? List the film name, film id and description.`. So we can drop all these tables. Because no releva... |
408656_sft_cte_glm47_spider_train_fk_9606 | local_spider_4835 | aircraft | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "We are given a single table: `airport` in database `aircraft`.\n The question asks: \"What are the names of all aircrafts that are associated with both London Heathrow and Gatwick airports?\"\n\n However, the provided schema only has the `airpo... |
248108_sft_cte_gptoss120b_bird_train_one_6696 | local_bird_1437 | synthea | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "We need to decide relevance of tables. Schema includes patients table with address column. Also mention other tables like medications, claims with billable period. The question: \"List down the address of patients who have billable period in 2010.\"\n\nWe need to... |
445937_sft_cte_llama33_spider_train_fk_2686 | local_spider_2082 | party_people | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\nYou are an experienced database expert. Your task is to generate a CTE (Common Table Expression) query to help answer the question based on the provided database schema and select relevant columns from the schema by generate a json ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\nYou are an experienced database expert. Your task is to generate a CTE (Common Table Expression) query to help answer the question based on the provided database schema and select relevant columns from the schema by generate a json ... | [
{
"role": "assistant",
"reasoning_content": "To answer the question, \"How many Annual Meeting events happened in the United Kingdom region?\", we need to analyze the provided database schema and identify the relevant tables and columns.\n\n1. **Relevance of Tables**:\n - `region`: This table contains inf... |
358373_sft_cte_gptoss120b_bird_train_size300_24196 | local_bird_7251 | works_cycles | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\nYou are an experienced database expert. Your task is to generate a CTE (Common Table Expression) query to help answer the question based on the provided database schema and select relevant columns from the schema by generate a json ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\nYou are an experienced database expert. Your task is to generate a CTE (Common Table Expression) query to help answer the question based on the provided database schema and select relevant columns from the schema by generate a json ... | [
{
"role": "assistant",
"reasoning_content": "We need to examine schema: only one table TransactionHistoryArchive. It has TransactionID, ProductID, etc.; no job title or hire date. The question is about job position hired most in 2007, requiring a table with employee hiring data (JobTitle, HireDate). The pro... |
425272_sft_cte_gptoss120b_bird_train_fk_13377 | local_bird_7009 | works_cycles | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The tables ['SalesTaxRate', 'StateProvince'] are not have any relevant information to answer the question `How much would be the total sales profit for shopping cart ID 20621 ?`. So we can drop all these tables. Because no relevant tables, the... |
311425_sft_cte_llama33_spider_train_11946 | local_spider_3453 | hr_1 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "To answer the question, we need to identify the departments where the manager is managing more than 3 employees. The `employees` table contains the necessary information, including `DEPARTMENT_ID`, `MANAGER_ID`, and `EMPLOYEE_ID`. We can use the `employees` table... |
244483_sft_cte_gptoss120b_bird_train_one_3071 | local_bird_565 | movies_4 | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "\nJSON Response: \n```json\n{\"gender\": \"drop_all\"}\n```\n"
}
] |
434509_sft_cte_gptoss120b_bird_train_fk_22614 | local_bird_8452 | mondial_geo | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The tables ['geo_estuary'] are not have any relevant information to answer the question `Which company falls under the category of an associated member? Please provide the organization's full name.`. So we can drop all these tables. Because no... |
147162_sft_cte_random_bird_train_fk_10689 | local_bird_5146 | address | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation】\nYou are an experienced database expert.\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Comm... |
45444_sft_cte_qwen25_bird_train_fk_7085 | local_bird_4143 | citeseer | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "user",
"content": "【 CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. Generate a CTE (Common Table Expression) query to provide all the necessary information from the provided schema to help to answer the question.\n2. Decide whether this table is relevant to the question or ... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "CTE Query: \n```cte\nWITH WordsCitedIn315017 AS (SELECT \"word_cited_id\" FROM \"content\" WHERE \"paper_id\" = '315017' ) \n```\nJSON Response: \n```json\n{\"paper\": [\"paper_id\", \"class_label\"], \"content\": [\"paper_id\", \"word_cited_id... |
80150_sft_cte_qwen25_spider_train_19073 | local_spider_6029 | game_1 | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation】\n\nYou have two tasks.\n1. Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. Generate a CTE (Common Table Expression) query to prov... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "JSON Response: \n```json\n{\"Student\": [\"StuID\", \"Sex\"]}\n```\nCTE Query: \n```cte\nWITH student_male AS (SELECT StuID FROM Student WHERE Sex = 'M' ) , \nplays_football AS (SELECT StuID FROM SportsInfo WHERE SportName = 'Football' ) \n```\... |
418116_sft_cte_gptoss120b_bird_train_fk_6221 | local_bird_3761 | public_review_platform | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generate a CTE (Common... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generate a CTE (Common... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "The tables ['Users'] are not have any relevant information to answer the question `How many long reviews does user No. 36139 give for the Yelp businesses?`. So we can drop all these tables. Because no relevant tables, there are no CTE query ge... |
270606_sft_cte_gptoss120b_bird_train_one_29194 | local_bird_6135 | food_inspection_2 | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generate a CTE (Common... | [
{
"role": "user",
"content": "【CTE (Common Table Expression) generation 】\n\nYou have two tasks.\n1. JSON response : Decide whether this table is relevant to the question or not and write in json format include all columns you think is needed to answer the question.\n2. CTE response : Generate a CTE (Common... | [
{
"role": "assistant",
"reasoning_content": "",
"content": "JSON Response: \n```json\n{\"inspection\": [\"inspection_id\", \"inspection_date\", \"employee_id\", \"license_no\"]}\n```\nCTE Query: \n```cte\nWITH inspection_may_2011 AS (SELECT \"inspection_id\", \"inspection_date\", \"employee_id\", \"lice... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.