question_id
stringlengths
30
30
schema_id
stringlengths
13
13
sql
stringlengths
8
6.56k
difficulty
stringclasses
3 values
questions
dict
relevant_tables
stringlengths
6
1.41k
number_of_relevant_tables
int64
1
20
execution_result
stringlengths
2
63.5k
schema_020919_s2_q0_ffc6f5c825
schema_020919
SELECT description, last_updated FROM settingsinformation WHERE s_key = 22
simple
{ "verbose": "What is the description and last updated timestamp for the setting identified by the key 22?", "evidence_supported": "What are the description and last updated timestamp for the configuration setting identified by key 22?, evidence: Key 22 is a unique identifier for a configuration setting. Last updat...
["DerivedT11", "DerivedT8", "base_t2", "bast1", "bast3", "configurations_additional", "configurations_extra", "derived_t10", "derived_t12", "derived_t7", "derivedt9", "setdat", "settings_history", "settings_monitoring", "settingsinformation"]
15
[[null, "2023-07-16 16:00:53"]]
schema_011250_s1_q1_10684a9edf
schema_011250
WITH owners AS ( SELECT DISTINCT userId FROM prouseper WHERE permissionLevel = 'owner' ), latest AS ( SELECT pt.creby, pt.title, pt.creat, ROW_NUMBER() OVER (PARTITION BY pt.creby ORDER BY pt.creat DESC) AS rn FROM ProjectTemplates pt JOIN owners o ON o.userId = pt.creby ) SELECT o.us...
moderate
{ "verbose": "Identify all users who have been granted 'owner' level permission on any project. For each of these project owners, determine the title of the project template they created most recently, as this represents their latest template contribution.", "evidence_supported": "Which users hold owner permissions...
["ProjectDocumentComments", "ProjectTemplates", "UserDeviceTokens", "UserPreferences", "Users", "prouseper", "usesestok"]
7
[["07f3c352-0304-4f12-9d42-f50fcf7ea265", null, "API Gateway Auth Middleware v2 (Deprecated)"], ["11abd2f2-0469-4ade-9fdc-a412801f06ff", "hallett", "Role-Based Access Control Schema v3 (Legacy)"], ["19b35980-1af3-41fb-b4d3-067cf5bc8d56", "nicolson98", "Custom Claim Mapping Guide v3 (Legacy)"], ["68e8c475-e1a0-46e6-9b80...
schema_003577_s3_q2_f918f9f017
schema_003577
SELECT messageType, CAST(usage AS REAL) / maxMessagesPerMinute AS usage_ratio FROM messagethrottling ORDER BY usage_ratio DESC LIMIT 1
moderate
{ "verbose": "Identify the message type that is currently operating closest to its maximum allowed throughput limit by calculating the ratio of current usage to the maximum messages per minute for each type in the throttling configuration, and return the message type name along with this usage ratio.", "evidence_su...
["ebmsmessage", "messageArchive", "messagebatchitem", "messagethrottling", "messageversion", "overlaymessage", "revisionQueue", "thrlog"]
8
[["PAYMENT_INQUIRY", 1.204225352112676]]
schema_018068_s0_q0_388abb19cc
schema_018068
SELECT a.nama_lengkap, a.email, a.nomor_handphone FROM akun a JOIN relawan r ON r.IdAkun = a.id_akun WHERE a.nama_lengkap = 'Antram Isherwood'
simple
{ "verbose": "Retrieve the full name, email address, and phone number for the volunteer account associated with the user named 'Antram Isherwood' to verify their contact details for the upcoming crypto education content creation session.", "evidence_supported": "What are the full name, email, and phone number for t...
["akun", "pelatihan", "pendaftaran_ulang_relawan", "relawan", "trainingexit", "volshiass", "volunteer_shift_log", "volunteershiftattendance"]
8
[["Antram Isherwood", "antram.isherwoo25@btcwallet.com", "+44-334-8728-965"]]
schema_009229_s3_q1_8b09d6ce82
schema_009229
WITH hist AS ( SELECT p.id, p.estoque, MAX(COALESCE(eh.quantidade_atual, eh.quantidade_anterior)) AS max_historical FROM produtos p LEFT JOIN estoquehistorico eh ON eh.id_produto = p.id WHERE p.id = 67 GROUP BY p.id, p.estoque ), coupon AS ( SELECT dataexpiracao FROM cu...
moderate
{ "verbose": "For the product 'Ledger Ethereum Pro - NFT Gallery Tool' (id 67), calculate the difference between its current stock level and the highest historical stock quantity recorded in the `estoquehistorico` table, and also list the expiration date of its most recent valid discount coupon from the `cuppro` tabl...
["ad_campaigns", "cuppro", "estoquehistorico", "imagensprodutos", "impressoes_anuncios", "produtos"]
6
[[10, 75, -65, "2027-03-04 23:39:48.098772"]]
schema_012093_s0_q2_cae2f09a5e
schema_012093
WITH currency_totals AS ( SELECT currency, SUM(TotalAmount) AS total_vol FROM EBookingsPayments GROUP BY currency ), top_currency AS ( SELECT currency, total_vol FROM currency_totals ORDER BY total_vol DESC LIMIT 1 ) SELECT tc.currency, tc.total_vol, (SELECT COUNT(*) FROM EBookingsPayments e...
hard
{ "verbose": "We need to audit our payment processing efficiency across different currencies. First, for each currency recorded in the `EBookingsPayments` table, calculate the total `TotalAmount` processed. Then, identify which currency had the highest total volume. Finally, for that specific highest-volume currency,...
["CustomerGroups", "EBookingsPayments", "HrUserRegistration", "SmsLogs", "admnot", "couenrquo", "ebookingsmembers", "environment_setting_audit", "itSupportTicket", "supportticketassignments", "syslog", "userApiKeys"]
12
[["USD", 1208, 5]]
schema_008687_s0_q1_c01795b13a
schema_008687
SELECT u.email, COUNT(r.id) AS report_count FROM publicuser u JOIN pubrep r ON r.userId = u.id WHERE u.id IN (SELECT DISTINCT UserId FROM publicWallComment WHERE UserId IS NOT NULL) AND r.userId IS NOT NULL AND u.email IS NOT NULL GROUP BY u.id, u.email ORDER BY report_count DESC;
moderate
{ "verbose": "Identify the email addresses of all users who have posted at least one comment on a wall post (as recorded in publicWallComment) and also have at least one report filed against their content (as recorded in pubrep). For each such user, calculate the total number of reports filed against them. The result...
["PublicEventLog", "pcmq", "publicModerationAction", "publicWallComment", "publickeyrotation", "publicsupportmessage", "publicuser", "pubrep"]
8
[["eddison.alanson@example.com", 14], ["dale.quirk@example.com", 13], ["millar.webber@example.com", 13], ["schofield.laverick@example.com", 11], ["sturgess.barnett@example.com", 11], ["coyle.rodriguez@example.com", 7], ["larsson.read@example.com", 6], ["patrick.thurman@example.com", 6], ["deegan.lawton@example.com", 5]...
schema_021640_s2_q0_5c10dbffb8
schema_021640
SELECT wtd.type_name, COUNT(DISTINCT w.id) AS writer_count FROM WriterTypeDefinitions wtd LEFT JOIN writers w ON w.type = wtd.type_name WHERE wtd.default_retry_count > 2 GROUP BY wtd.type_name ORDER BY wtd.type_name
moderate
{ "verbose": "Identify the writer types (from WriterTypeDefinitions) that have a default_retry_count greater than 2, and for each of these types, count how many distinct writers (from the writers table) are currently associated with it (by matching the type column in writers to type_name in WriterTypeDefinitions).", ...
["OutputDataProvenance", "WriterTypeDefinitions", "outp", "writers"]
4
[["Academy_Investment_Writeoff", 0], ["Broadcasting_Rights_Adjustment", 0], ["Code_of_Conduct_Breach", 0], ["Community_Outreach_Fee", 0], ["Disciplinary_Committee_Hearing", 0], ["GameDay_Fine", 0], ["Hospitality_Suite_Cancellation", 0], ["Inflation_Adjustment_Index", 0], ["Insurance_Claim_Adjuster", 0], ["International...
schema_004481_s2_q2_4ed6e818f0
schema_004481
SELECT pal.UserId, COALESCE(SUM(c."Score Value"), 0) AS highest_contribution_score, b.description AS badge_description FROM privilegeactionlogs pal LEFT JOIN user_contributon_scores c ON c.UserId = pal.UserId CROSS JOIN badgeTypes b WHERE pal.ActionType = 'MODIFY_SCOPE' AND b.badge_name = 'Senior Auditor ...
hard
{ "verbose": "For each user who has performed a privilege action of type \"MODIFY_SCOPE,\" calculate their total contribution score from the user_contributon_scores table; then, determine which of these users has the highest contribution score, and return that user's ID along with their highest contribution score val...
["badgeTypes", "moderatedContentReviews", "post_deleted", "privilegeactionlogs", "sestok", "syscon", "user_contributon_scores", "user_privileges"]
8
[[1013, 0, "This badge type manages user access for fine-grained control providing clear accountability. It is designed to support the authorization model's requirements for precise control over system resources and user interactions. Specifically tailored for the 'Senior Auditor Badge' role."]]
schema_012497_s1_q1_3f8cccadc4
schema_012497
WITH classes_with_submissions AS ( SELECT ClassId, COUNT(*) AS assessment_count FROM uek_class_formatted_assessments WHERE SubmissionLink IS NOT NULL GROUP BY ClassId ) SELECT c.ClassId, c.assessment_count, COALESCE(SUM(p.amou), 0) AS total_amount_paid FROM classes_with_submissions c LEFT ...
moderate
{ "verbose": "Find the total amount paid by students for each class that has an assessment with a submission link. Include the count of such assessments for each class.", "evidence_supported": "What is the total student payment and assessment count for each class containing at least one assessment that has a submis...
["UekClassAttendanceLogs", "uek_class_formatted_assessments", "uek_class_reminders", "uek_event_guest_speakers", "uek_student_gradebooks", "uek_student_payments", "uekclassmeetingtimes", "uekclassprerequisites"]
8
[[101, 2, 0], [116, 3, 0], [120, 5, 0], [123, 1, 0], [128, 1, 0], [133, 1, 0], [136, 2, 0], [138, 1, 0], [139, 3, 0], [167, 1, 0], [171, 5, 0], [179, 3, 0], [193, 3, 0], [198, 4, 0], [215, 1, 0], [222, 1, 0], [228, 4, 0], [229, 2, 0], [255, 2, 0], [264, 4, 0], [274, 3, 0], [281, 2, 0], [297, 2, 0]]
schema_003577_s1_q2_d8c7a98a7a
schema_003577
WITH max_metric AS ( SELECT component, metricname, value FROM performancemetric WHERE value = (SELECT MAX(value) FROM performancemetric p2 WHERE p2.component = performancemetric.component) ), component_avg AS ( SELECT component, AVG(value) as avg_value FROM performancemetric GROUP BY component ) SELECT m.co...
hard
{ "verbose": "For each unique component tracked in the performance metrics, determine which specific metric recorded the highest value, and then calculate the difference between the maximum value recorded for that component and the average value of all metrics recorded for that same component, allowing the operations...
["PerformanceAlert", "ServiceUsage", "channel_security", "encryption_policy", "externalservice", "performancemetric", "serend", "signing_policy"]
8
[["AuthService", "request_latency_ms", 66.29629606726098, 18.929449611801466, 47.366846455459516], ["CacheLayer", "active_sessions_count", 2555.0, 554.8168293635996, 2000.1831706364005], ["PasswordHasher", "memory_usage_mb", 666.1899384006128, 178.0068575010089, 488.18308089960397], ["RateLimiter", "memory_usage_mb", 1...
schema_020919_s3_q1_7bd16d503b
schema_020919
SELECT si.s_key, si.description, COUNT(sh.history_id) AS history_count FROM settingsinformation si JOIN settings_history sh ON si.s_key = sh.s_key GROUP BY si.s_key, si.description ORDER BY history_count DESC, si.s_key ASC LIMIT 1;
moderate
{ "verbose": "Identify the setting with the highest number of history records, and return its s_key, description, and the count of its history records by joining settingsinformation and settings_history.", "evidence_supported": "Which setting has the most history records, and what are its key, description, and tota...
["DerivedT11", "DerivedT8", "base_t2", "bast1", "derived_t10", "derived_t12", "derivedt9", "setdat", "settings_history", "settingsinformation"]
10
[[2, "Email SMTP relay server hostname", 4]]
schema_021640_s1_q1_670de6d1e5
schema_021640
SELECT w.name AS writer_name, COUNT(we.id) AS total_errors, (SELECT e.StepDescription FROM errresste e JOIN writer_errors we2 ON e.WriterErrorId = we2.id JOIN writer_attempts wa2 ON we2.wriattid = wa2.id WHERE wa2.writerId = w.id AND e.PerformedAt IS NOT NULL ORDER BY e.Per...
moderate
{ "verbose": "For each writer that has experienced at least one error during an attempt, list the writer's name, the total count of errors recorded for that writer, and the description of the step where the most recent error occurred (based on PerformedAt from errresste), so we can prioritize troubleshooting for writ...
["WriterConfigurations", "errresste", "retry_attempts", "statuses", "writer_attempts", "writer_errors", "writers", "writerstatustransitions"]
8
[["Allard", 3, "Updated error pricing mismatch when verifying writer credentials"], ["Baudin", 3, "Validated error pricing mismatch when verifying writer credentials"], ["Borde", 2, null], ["Desjardins", 3, "Reviewed error pricing mismatch during TrainingDay check-in"], ["Duguay", 1, null], ["Dupont", 2, null], [null, ...
schema_017962_s2_q0_26d4d8cf88
schema_017962
SELECT processingstep, processedby FROM animalorder_OrderProcessingLogs WHERE orderid = 2 ORDER BY processeddate
simple
{ "verbose": "Please list the unique processing steps (if available) and the name of the staff member who processed them for all logs associated with order ID 2, sorted by the processing date.", "evidence_supported": "Show unique processing steps and staff names for order 2, sorted by processing date. List all avai...
["animalorderOrders", "animalorder_OrderProcessingLogs", "animalorder_ReturnInventoryLogs", "animalorder_ReturnRequests", "animalorder_ReturnSteps", "anireftra"]
6
[[null, "Lucey"], [null, "Faust"]]
schema_020704_s1_q2_4192463e51
schema_020704
WITH post_likes AS ( SELECT p.category, COUNT(DISTINCT l.id) AS like_count FROM post p LEFT JOIN likes l ON l.post_id = p.id GROUP BY p.category, p.id ), category_avg AS ( SELECT category, AVG(like_count) AS avg_likes FROM post_likes GROUP BY category ) SELECT category, avg_likes ...
hard
{ "verbose": "I need to identify the 'most engaged' category by looking at the average number of likes per post within each category, but only for categories that have at least one post. For each of these categories, please report the category ID and its average like count. Then, from that list, I want to know which ...
["likes", "post"]
2
[[5, 3.6363636363636362]]
schema_009162_s0_q1_dfb1127b98
schema_009162
SELECT DISTINCT p.name AS product_name, m.ContactEmail AS manufacturer_email FROM prod p JOIN product_discontinuation d ON p.ProductId = d.ProductId JOIN product_manufacturer_info m ON p.ProductId = m.ProductId ORDER BY p.name;
moderate
{ "verbose": "Identify the product names and their corresponding manufacturer contact emails for all products that have been discontinued, requiring a join between the product catalog, the discontinuation log, and the manufacturer information table to correlate active product data with historical discontinuation reco...
["iitd", "invlinite", "invoice_line_item_discounts", "invoices", "prod", "product_discontinuation", "product_manufacturer_info", "services"]
8
[["Advanced Assembly", "wills.wills@meridianpro.com"], ["Automatic Case", "strong.strong@quantumgroup.com"], ["Basic Drum v4", "jowett.jowett@meridianfabrication.com"], ["Commercial Device", "vodden.vodden@stellarproducts.com"], ["Commercial Tool", "kilbride.kilbride@stellarmax.com"], ["Commercial Unit", "althoff.altho...
schema_013828_s0_q0_fb47e80cdc
schema_013828
SELECT e.description, m.LIEN_MEDIA FROM evenement e JOIN evemed m ON e.id = m.ID_EVENEMENT WHERE e.description LIKE '%Spectacle de danse contemporaine%' AND e.description LIKE '%Marseille%' AND e."Date Debut" BETWEEN '2022-01-01' AND '2022-02-28'
simple
{ "verbose": "Retrieve the description and media link for the event titled 'Spectacle de danse contemporaine' that took place in Marseille in early 2022. This requires joining the event details with its associated media records to provide a complete view of the event's promotional content.", "evidence_supported": "...
["evemed", "evemod", "evenement", "evenementTache", "everesfin"]
5
[["Spectacle de danse contemporaine présenté par Linville, organisé à Galerie nationale, Marseille. Cet événement met en valeur des œuvres originales et offre une occasion unique de découvrir les talents émergents du marché de l'art. Support technique fourni pour les installations.", "https://www.vimeo.com/embed/174805...
schema_008814_s0_q2_dde6cb3c31
schema_008814
WITH tax_customers AS ( SELECT DISTINCT CAST(CustomerId AS INTEGER) AS cust_id FROM taxexerec WHERE CustomerId IS NOT NULL ), eng AS ( SELECT CustomerId AS cust_id, COALESCE(SUM(EngagementCount),0) AS eng_sum FROM customerProductEngagement GROUP BY CustomerId ), wl AS ( SELECT customer_id AS cust_id, COUNT(*) A...
hard
{ "verbose": "For each customer who holds a tax exemption (recorded in `taxexerec`), determine their 'engagement score' defined as the sum of their `EngagementCount` from `customerProductEngagement` plus the number of products in their `wishlists`. Then, identify the customer with the highest engagement score among t...
["InventoryAlerts", "cusinf", "cusrefcli", "customerProductEngagement", "orders", "product_views", "taxexerec", "wishlists"]
8
[["Snell", 209, 35, "Yes"]]
schema_013763_s0_q2_498fe1f804
schema_013763
SELECT DISTINCT bucketname AS fund_or_penalty_category FROM UserActivity WHERE bucketname IS NOT NULL ORDER BY bucketname
moderate
{ "verbose": "The table names (`caisse_noire`, `game_days`, `training_days`, `user_penalties`, `fine-calculation-history`, `recurring_fees`) strongly suggest that this system is actually a **financial tracking and penalty management system for sports teams**, where \"buckets\" represent different funds or categories ...
["AccessControlEntries", "LifecycleExpirations", "ObjectLockConfig", "ReplicationRules", "UserActivity", "accdenlog", "accesspatternstats", "anacon", "data_lifecycle", "invexp", "multipartpart", "notend", "object_tags", "request_rate_limits"]
14
[["behavioral_sanction_account"], ["community_service_offset"], ["financial_deposit_reserve"], ["gameday_disciplinary_fund"], ["general_penalty_fund"], ["late_arrival_penalty"], ["legal_dispute_escrow"], ["rehabilitation_fund"], ["training_violation_fine"], ["uniform_non_compliance_fund"]]
schema_011928_s3_q2_3e355f1653
schema_011928
SELECT m.methodType FROM sfGuardMfaMethod m WHERE m.userId = ( SELECT user_id FROM sgupcr WHERE requested_at IS NOT NULL ORDER BY requested_at DESC LIMIT 1 ) AND m.enabled = 1
hard
{ "verbose": "Identify the user who has the most recently requested a password change reset (based on the `requested_at` timestamp in the `sgupcr` table). Once that user is identified, determine if they have any enabled multi-factor authentication methods defined in the `sfGuardMfaMethod` table, and if so, list the t...
["sfGuardMfaMethod", "sf_guard_password_policy_pattern", "sfguardgroupmetadata", "sfguardpasswordstrengthpattern", "sfguardusertwofactor", "sgupcr"]
6
[["email"], ["totp"]]
schema_017962_s0_q1_0edd35c79b
schema_017962
SELECT c.description, COUNT(a.id) AS adjustment_count FROM aniitecat c JOIN animalorderproductsubcategories s ON s.category_id = c.id LEFT JOIN aniinvadj a ON a.ProductId = 8 WHERE s.subcategory_name = 'Feline Interactive Toys' GROUP BY c.description
moderate
{ "verbose": "Find the description of the product category that contains the subcategory named 'Feline Interactive Toys', and also provide the count of inventory adjustments made for the product (ProductId 8) associated with that same category, assuming the product belongs to the category linked to that subcategory."...
["aniinvadj", "aniitecat", "animalorderproductsubcategories", "anishidel"]
4
[["Aquatic craniate animals with gills and limbs (if any) modified into fins. Characterized by distinct physiological traits.", 6]]
schema_011250_s0_q1_39db497730
schema_011250
SELECT p.userId AS user_id, u.username FROM UserPreferences p LEFT JOIN Users u ON p.userId = u.userId WHERE p.key = 'compact_mode' AND p.value IS NULL;
moderate
{ "verbose": "List all user IDs who have a specific preference configuration where the preference key is \"compact_mode\" and the value is null, and for each of these users, return their associated username if it exists in the user profiles.", "evidence_supported": "Which users have their compact mode preference se...
["ProjectSubcategories", "UserPreferences", "Users", "usesestok"]
4
[["fa59fb57-1b8a-42b8-83a9-ce9a393e563b", null], ["bec37608-082a-49f7-85c0-6c867a2cb951", "titmuss"], ["84bbd6ee-6284-4596-85d0-6f65b3b36cc0", null], ["6d4b0788-d4ee-469a-af73-b6c853412e93", null], ["c6e4cc09-9839-4711-befc-8e074cb5ad67", null], ["5f127af6-dcea-443c-acb5-43ae5a6a7098", "kristensen"]]
schema_004019_s0_q2_eda3c59f9c
schema_004019
WITH dept_avg AS ( SELECT u.UserDepartamento AS dept, AVG(sbl.tamanhoBackup) AS avg_backup_size FROM users u JOIN logsacessosistema l ON u.id = l.IdUsuario JOIN SystemBackupLogs sbl ON l.DataAcesso = sbl.dataBackup GROUP BY u.UserDepartamento ), top_dept AS ( SELECT dept FROM...
hard
{ "verbose": "We are analyzing storage efficiency by department. First, determine which department has the highest average total backup size attributed to its members' access logs. Then, within that specific high-performing department, identify the individual user who has the single highest total backup size linked t...
["SystemBackupLogs", "logsacessosistema", "users"]
3
[["Logistique Sportive", null]]
schema_009162_s1_q2_5213e180b9
schema_009162
WITH supplier_returns AS ( SELECT s.supplier_id, s.name, AVG(r.quaret) as avg_return_qty FROM inventory_shipment_returns r JOIN inventoryshipments sh ON r.shiid = sh.shipmentId JOIN suppliers s ON sh.supplierId = s.supplier_id GROUP BY s.supplier_id ), top_supplier AS ( SELECT supplier_id, name ...
hard
{ "verbose": "Determine which supplier has the highest average return quantity per individual return event, and then list the distinct marketing campaign types that were active during any of that supplier's return events.", "evidence_supported": "Which supplier has the highest average return quantity per event, and...
["inventory_shipment_returns", "inventoryshipments", "marcam", "suppliers"]
4
[["System Role Standardization"], ["Access Control Migration"], ["Role Assignment Audit"], ["Permission Review Cycle"]]
schema_007398_s2_q2_5a738c96f9
schema_007398
WITH order_discounts AS ( SELECT fk_order_id, SUM(discount_amount) AS total_discount FROM t_order_discount WHERE discount_amount IS NOT NULL GROUP BY fk_order_id HAVING SUM(discount_amount) > 0 ), avg_discount AS ( SELECT AVG(total_discount) AS avg_disc FROM order_discounts ) SELECT od.fk_o...
hard
{ "verbose": "Calculate the total discount amount applied to each order from the discount details table. Identify the orders where this total discount is greater than the average discount amount of all orders that received a discount. For these high-discount orders, return the order ID, the total discount amount, and...
["t_order", "t_order_discount", "t_order_gift_card", "t_promotion", "toda", "torderdiscountusage"]
6
[[1, 648.45, "Seasonal Discount #578,Clearance Event #503,Member Exclusive #103"], [2, 137.75, "Seasonal Discount #578"]]
schema_003487_s3_q2_3d82eb8839
schema_003487
SELECT (SELECT COUNT(*) FROM TestflowitemSummary WHERE testflowitem_id = 'TFI-1010') AS summary_count, (SELECT commenttext FROM testflowitem_comment WHERE testflowitemid = 'TFI-1010' ORDER BY commenttimestamp DESC LIMIT 1) AS latest_comment
moderate
{ "verbose": "I need to assess the collaboration activity around the workflow item \"TFI-1010\" by combining information from the summary and comment logs. First, find the total count of summary records associated with this item. Then, retrieve the text of the most recent comment made on this item. I need these two p...
["TestflowitemSummary", "tescac", "teseve", "testflowitem", "testflowitemSyncLog", "testflowitem_comment", "testflowitem_dependency_log", "testflowitem_dependency_map", "testflowitem_integration", "testflowitem_permission", "testflowitem_saved_queries", "testitem_lock", "testtypeconfiguration"]
13
[[3, "Error encountered while classified API response payload; retry initiated."]]
schema_004019_s1_q1_638b25f769
schema_004019
SELECT SUM(sb.tamanhoBackup) AS total_size FROM SystemBackupLogs sb JOIN logsacessosistema l ON l.DataAcesso = sb.dataBackup JOIN users u ON u.id = l.IdUsuario WHERE u.UserDepartamento = 'Finances & Pénalités'
moderate
{ "verbose": "Find the total size of all system backups associated with access logs generated by users belonging to the 'Finances & Pénalités' department, joining the backup logs with the access logs and user profiles to filter by department.", "evidence_supported": "What is the total size of all system backups lin...
["SystemBackupLogs", "logsacessosistema", "matborreq", "users"]
4
[[1789.148625874331]]
schema_017623_s1_q0_0d062e9406
schema_017623
SELECT id, name, description, startdate, enddate FROM proj WHERE name = 'Database Normalization Concepts'
simple
{ "verbose": "Retrieve the full details of the project named 'Database Normalization Concepts', including its start and end dates, to verify its scheduling status.", "evidence_supported": "What are the start and end dates for the project named 'Database Normalization Concepts' to check its schedule?, evidence: Proj...
["proj", "question_category", "question_topic", "question_type", "student", "topic"]
6
[[16, "Database Normalization Concepts", null, "2022-12-19 23:18:08", "2023-04-04 19:33:16"]]
schema_007771_s3_q1_7038674b05
schema_007771
SELECT e.id_pesquisa AS research_project_id, e.id_registro_edicao_pesquisa AS edition_id FROM prae p JOIN pesquisaRegistroEdicao e ON e.id_registro_edicao_pesquisa = p.IdRegistroEdicaoPesquisa WHERE p.DtRegistro = '2022-03-16 05:18:43'
moderate
{ "verbose": "Identify the research project ID and the specific edition ID for the research edit that was registered in the evaluation log ('prae') on '2022-03-16 05:18:43'.", "evidence_supported": "Which research project and specific edition were recorded in the evaluation log at 05:18:43 on March 16, 2022?, evide...
["PesquisaRegistroAcesso", "grep", "grupo_registro_edicao", "pesq", "pesquisaRegistroEdicao", "pesquisaregistroacessoedicao", "prae", "usuario_registro_edicao_pesquisa"]
8
[["PESQ-0053", "RGE-00023"]]
schema_013763_s2_q0_cd7b70cfec
schema_013763
SELECT (SELECT COUNT(*) FROM buckets) AS total_buckets, (SELECT COUNT(*) FROM usequolim) AS total_quotas, (SELECT COUNT(*) FROM lifecycle) AS total_lifecycle_rules, (SELECT COUNT(*) FROM accpoi) AS total_access_points, (SELECT COUNT(*) FROM ReplicationExceptions) AS total_compliance_violations
moderate
{ "verbose": "This database supports a cloud storage infrastructure for a sports organization's penalty fund management system, tracking data lifecycle, storage quotas, access controls, and compliance violations for teams and users.", "evidence_supported": "Which penalty funds in the sports management system have e...
["MultipartUploads", "ReplicationExceptions", "RestoreStatus", "UserActivity", "UserPolicies", "accpoi", "buckets", "crossaccountgrants", "encryption_config", "gcpart", "invexp", "lifecycle", "obje", "object_tags", "objectmetadata", "request_rate_limits", "stousadai", "usequolim"]
18
[[89, 88, 69, 77, 34]]
schema_009229_s1_q2_b42922a4db
schema_009229
WITH product_counts AS ( SELECT id_produto, COUNT(*) as cnt FROM hispre GROUP BY id_produto ), top_product AS ( SELECT id_produto FROM product_counts ORDER BY cnt DESC, id_produto ASC LIMIT 1 ), most_recent AS ( SELECT h.preco_antigo, h.preco_novo, ROW_NUMBER() OVER (PARTITION...
hard
{ "verbose": "Identify the product with the highest number of price history records in the system; for that specific product, retrieve the old price and new price from its most recent price change record, and also count how many total questions were asked about that product by any customer.", "evidence_supported": ...
["InventoryThresholds", "RespostasPerguntas", "ad_campaigns", "cerpro", "clie", "cuppro", "hispre", "hispro", "imagensprodutos", "impressoes_anuncios", "perpro", "produtos", "promocoes", "trocas"]
14
[[2, "530.62", "201.94", 17]]
schema_021785_s3_q2_1eb7a3336a
schema_021785
WITH alert_logs AS ( SELECT DISTINCT LogId FROM alert_trigger_logs ), tagged_logs AS ( SELECT DISTINCT logid FROM logs_tags WHERE tag IS NOT NULL ) SELECT a.user_id, a.access_level, COUNT(DISTINCT a.log_id) AS tagged_admin_log_count FROM LogAccessPermissions a WHERE a.access_level = 'admin' AND a.lo...
moderate
{ "verbose": "Find the `user_id` and `access_level` for all users who have 'admin' access to logs that have triggered at least one system alert (recorded in `alert_trigger_logs`), and for each such user, count the number of distinct logs they have admin access to that also have at least one tag.", "evidence_support...
["LogAccessPermissions", "alert_trigger_logs", "customalertlogs", "logBackupTasks", "logs", "logs_tags", "logsou", "logvalues", "useractivities"]
9
[["18", "admin", 1], ["20", "admin", 1], ["21", "admin", 1], ["24", "admin", 1], ["25", "admin", 1], ["30", "admin", 1], ["35", "admin", 1], ["46", "admin", 1], ["47", "admin", 1], ["48", "admin", 1], ["7", "admin", 2]]
schema_008687_s0_q0_34a13bb07d
schema_008687
SELECT COUNT(*) FROM pcmq JOIN publicuser u ON pcmq.UserId = u.id WHERE u.name = 'Kore Patton' AND pcmq."Submitted Time" IS NOT NULL
simple
{ "verbose": "Please find the total number of content submissions that have a recorded submission time for the user named 'Kore Patton'. To answer this, we need to look at the pcmq table to count the rows where the 'Submitted Time' is not null, and join with the publicuser table to identify the specific user 'Kore Pa...
["PublicEventLog", "pcmq", "publicModerationAction", "publicWallComment", "publickeyrotation", "publicsupportmessage", "publicuser", "pubrep"]
8
[[0]]
schema_014629_s0_q1_2a5f26c0d4
schema_014629
SELECT IdPlayer, SendTime FROM tgamcha WHERE MessageText LIKE '%Tutorial step complete%' ORDER BY SendTime DESC LIMIT 1
moderate
{ "verbose": "Identify the player who sent the chat message containing the phrase \"Tutorial step complete,\" and return their player ID along with the exact timestamp of that message, to help the system log their completion of specific safety guidelines.", "evidence_supported": "Which player sent a chat message co...
["t_game_news", "tgamcha"]
2
[[7, "2023-12-14 00:10:00"]]
schema_011928_s3_q1_569ec6136b
schema_011928
SELECT description, created_by AS administrator, NULL AS pattern, NULL AS strength_rating FROM sfguardgroupmetadata WHERE group_id = '91' UNION ALL SELECT NULL, NULL, s.pattern, s.strengthRating FROM sfguardpasswordstrengthpattern s JOIN sf_guard_password_policy_pattern p ON p.PatternId = s.patternId WHERE p.PolicyName...
moderate
{ "verbose": "Retrieve the description and the administrator who created the metadata for the user group with ID 91, and also list all the password strength patterns (specifically their pattern strings and strength ratings) that are currently associated with any password policy named 'External_Login_Cookie'.", "evi...
["sfGuardMfaMethod", "sf_guard_password_policy_pattern", "sfguardgroupmetadata", "sfguardpasswordstrengthpattern", "sfguardusertwofactor", "sgupcr"]
6
[["Finance department users viewing billing reports and invoice generation tools. - Integration test passed for module MOD-98", "admin_crowley", null, null], [null, null, "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d).{8,}$", "High"], [null, null, "^[a-zA-Z0-9!@#$%^&*]{18,}$", "High"], [null, null, "^[a-zA-Z0-9]{12,}$", "Medium"], ...
schema_009162_s0_q2_126f775d81
schema_009162
WITH client_balances AS ( SELECT ClientId, SUM(COALESCE("Invoice Total", 0)) - SUM(COALESCE("Payment Total (USD)", 0)) AS balance FROM invoices WHERE ClientId IS NOT NULL GROUP BY ClientId ) SELECT ClientId, balance FROM client_balances WHERE balance > (SELECT AVG(balance) FROM client_balances) ORDER B...
hard
{ "verbose": "For each client who has received an invoice, determine the difference between their total invoice amount and their total payment amount (i.e., the outstanding balance), but only include those clients whose outstanding balance is greater than the average outstanding balance across all clients; this requi...
["iitd", "invlinite", "invoice_line_item_discounts", "invoices", "prod", "product_discontinuation", "product_manufacturer_info", "services"]
8
[[1, 0.0], [3, 0.0], [5, 0.0], [11, 0.0], [12, 0.0], [14, 0.0], [15, 0.0], [18, 0.0], [19, 0.0], [20, 0.0], [22, 0.0], [23, 0.0], [24, 0.0], [27, 0.0], [28, 0.0], [29, 0.0], [30, 0.0], [6, -10.76]]
schema_008814_s1_q1_25bbf5ba56
schema_008814
SELECT r.name, COUNT(p.id) AS permission_count FROM roles r JOIN permissions p ON r.id = p.RoleId GROUP BY r.id, r.name HAVING COUNT(p.id) > 0 ORDER BY r.name;
moderate
{ "verbose": "List the names of all roles that have at least one permission assigned to them, including the count of permissions for each role, and filter the results to show only those roles where the count is greater than zero.", "evidence_supported": "Which roles have at least one permission assigned, and how ma...
["permissions", "roles", "systemsettings", "user_roles"]
4
[["Accountant", 1], ["Analytics Collector", 1], ["Asset Manager", 2], ["Assistant Manager", 1], ["Auditor", 1], ["Batch Processing Job", 2], ["Bot Service Account", 3], ["Business Intelligence Analyst", 1], ["Change Advisory Board Member", 2], ["Code Reviewer", 1], ["Content Editor", 1], ["Contract Manager", 1], ["Cust...
schema_008360_s0_q2_6e896a48bb
schema_008360
SELECT s.plan_type, AVG(us.totcli) AS avg_orders FROM subpla s JOIN usesta us ON us.useid = s.user_id GROUP BY s.plan_type ORDER BY avg_orders DESC LIMIT 1;
hard
{ "verbose": "For each subscription plan type offered on the platform, calculate the average number of total orders placed by the users subscribed to that plan, and then identify which plan type has the highest average order count.", "evidence_supported": "Which subscription plan has the highest average total order...
["UserApiKeys", "UserDevices", "auditLogs", "billingInvoices", "link_expiry_alerts", "linper", "refpro", "subpla", "useinv", "usenot", "user_social_profiles", "usernotifications", "users", "usesta"]
14
[["Institutional WebSocket Feed", 21.8]]
schema_010039_s3_q1_bdc1341c46
schema_010039
SELECT vh.softwareVersion, SUM(r.DurationSeconds) AS total_duration_seconds FROM tabnewversionhistory vh JOIN tabnewrefresh r ON r.TabNewId = vh.tabNewId WHERE vh.tabNewId = 'ORCAS-DEP-00012' AND r.success = 1 GROUP BY vh.softwareVersion
moderate
{ "verbose": "Identify the software versions that have been applied to the deployment \"ORCAS-DEP-00012\" by joining with its version history, and for each of those versions, determine the total duration in seconds of all successful refresh operations associated with that same deployment to understand how long the sy...
["TabNew", "TabNewImport", "TabNewReject", "tab_new_cache", "tabnewhistory", "tabnewrefresh", "tabnewstatus", "tabnewusa", "tabnewversionhistory"]
9
[["2.3.0-RELEASE", 19], ["3.4.1-SNAPSHOT", 19]]
schema_021229_s3_q2_96b018dbe0
schema_021229
SELECT feature_name, description FROM productFeature WHERE productid LIKE 'PROD-00%'
simple
{ "verbose": "Retrieve the feature names and descriptions for all products that have 'PROD-00' as the start of their product ID.", "evidence_supported": "What are the names and descriptions of products whose IDs begin with the prefix 'PROD-00'?, evidence: Product ID starts with 'PROD-00' means the first six charact...
["InventoryAdjustment", "ProductInventory", "assmai", "inventorySupplyChain", "invresreq", "orgass", "productFeature"]
7
[["Auto-scaling Policy", "Configures dynamic resource scaling based on CPU utilization thresholds for AWS EC2 instances."], ["SAML2 Authentication", "Enables single sign-on integration with enterprise IdPs like Okta and Azure AD using SAML 2.0 protocol."], ["Multi-Tenant Isolation", null], ["Pay-as-you-go Billing", "Su...
schema_008360_s1_q2_c3294fe652
schema_008360
SELECT l.title, l.author, COUNT(DISTINCT r.ReporterId) AS distinct_reporters FROM content_moderation_reports r JOIN links l ON l.id = r.LinkId GROUP BY r.LinkId ORDER BY distinct_reporters DESC, r.LinkId ASC LIMIT 1;
hard
{ "verbose": "Find the links that have been reported for moderation. For each reported link, calculate the number of distinct reporters who submitted a report. Then, identify which reported link has the highest number of distinct reporters. For that specific link, provide its title, the author's ID, and the total cou...
["content_moderation_reports", "lincustra", "link_metadata", "links"]
4
[["Solana Wallet Connect Endpoint", 8, 19]]
schema_001934_s1_q0_23c77cd60b
schema_001934
SELECT u.usrUsername, u.usrEmail, npc.NPC_DISPLAY_NAME, COUNT(DISTINCT t.TSK_OID) AS task_count FROM DB_WCT_WCTUSER u JOIN DbWctNotificationPreference np ON np.npusroid = u.usrOid AND np.npena = 1 JOIN dbwctnotificationpreferencecategory npc ON np.npcat = npc.NPC_NAME LEFT JOIN DbWctTask t ...
simple
{ "verbose": "Retrieve the usernames and email addresses of all users who have at least one notification preference enabled, along with the display name of the category associated with that preference. Additionally, include the count of tasks assigned to each of these users.", "evidence_supported": "Which users hav...
["DB_WCT_NOTIFICATION_PREFERENCE_CATEGORIES", "DB_WCT_WCTUSER", "DbWctNotificationPreference", "DbWctTask", "dbwctnotificationpreferencecategory", "dwpml", "dwtd"]
7
[["user_57_dev", "mcconnell.arrowsmith@example.com", "System - Alerts", 0]]
schema_014629_s0_q0_e972ab3198
schema_014629
SELECT newscontent FROM t_game_news WHERE idgame = 1649 ORDER BY publishtime DESC NULLS LAST LIMIT 1
simple
{ "verbose": "Retrieve the content of the most recent news update associated with the game session identified by ID 1649, so that the instructor can review the latest changes regarding Just-In-Time manufacturing principles.", "evidence_supported": "What is the content of the latest news update for game session 1649...
["t_game_news", "tgamcha"]
2
[["Refactored TAssemblyDetails logic to better reflect Just-In-Time manufacturing principles. This update addresses key learning outcomes for industrial engineering curricula. Enjoy the new features!"]]
schema_009162_s3_q2_a75e8e19d4
schema_009162
WITH non_empl_counts AS ( SELECT ChangedBy, COUNT(*) AS cnt FROM auditlogs WHERE "Table Name" <> 'empl' GROUP BY ChangedBy ), empl_counts AS ( SELECT ChangedBy, COUNT(*) AS cnt FROM auditlogs WHERE "Table Name" = 'empl' GROUP BY ChangedBy ), avg_empl AS ( SELECT AVG(cnt) AS avg_cnt FROM empl_counts )...
hard
{ "verbose": "First, identify the employees who have been involved in the creation of audit logs for tables other than 'empl' (the employee master table). For these specific employees, calculate the total number of audit log entries they have created. Then, filter this group to only include those employees whose tota...
["EmployeeMeetingAttendances", "EmployeeSkillCertifications", "ServiceWorkshopSchedules", "auditlogs", "empl", "employmentcontracts", "empsaftra", "invcolatt"]
8
[["Vanwell", 3], ["Jonhson", 3], ["Voakes", 3], ["Saleh", 3], ["Yeldon", 2], ["Tilson", 2], ["Alldridge", 2], ["Griffiths", 2], ["Ellam", 2], ["Grennan", 2], ["Harrop", 2], ["Metcalfe", 2], ["Thurbon", 2], ["Estlick", 2], ["Parish", 2], ["Winship", 2], ["Garcia", 2], ["Doherty", 2], ["Findley", 2], ["Watters", 2], ["Go...
schema_009162_s1_q0_85e2f4ec08
schema_009162
SELECT r.retid AS return_id, r.retdat AS return_date, s.name AS supplier_name, m.name AS campaign_name, m.campaignType AS campaign_type FROM inventory_shipment_returns r JOIN inventoryshipments sh ON r.shiid = sh.shipmentId JOIN suppliers s ON sh.supplierId = s.supplier_id LEFT JOIN marcam m...
simple
{ "verbose": "Please retrieve the return ID, return date, and supplier name for the return linked to shipment ID 41, and include the name and type of any marketing campaign that was active on the date of that return.", "evidence_supported": "For return 41, provide the return ID, date, and supplier, plus any active ...
["inventory_shipment_returns", "inventoryshipments", "marcam", "suppliers"]
4
[[21, "2022-05-17 05:41:20", "Sterling Supply Co.", "Auditing User Permissions Department Level", "User Onboarding Campaign"], [21, "2022-05-17 05:41:20", "Sterling Supply Co.", "Cleaning Privilege Levels Cross-Platform- Batch 13", "Privilege Escalation Prevention"], [21, "2022-05-17 05:41:20", "Sterling Supply Co.", "...
schema_011250_s0_q2_5347866754
schema_011250
SELECT u.userId, u.username, COUNT(t.tokenId) AS token_count FROM Users u JOIN usesestok t ON u.userId = t.userId WHERE u.username IS NOT NULL GROUP BY u.userId, u.username ORDER BY token_count DESC, u.userId LIMIT 1
hard
{ "verbose": "Identify the user(s) who have the most active session tokens and have a defined username. For these users, determine the total count of their valid tokens. The question requires two dependent parts: first, identify the user with the maximum number of tokens; second, return that user's ID, username, and ...
["ProjectSubcategories", "UserPreferences", "Users", "usesestok"]
4
[["1a7c9d84-34d3-44e2-8d57-b45e9109da82", "finch730", 1]]
schema_010039_s1_q1_8ca414d6ce
schema_010039
WITH project_spending AS ( SELECT b.project_id, b.total_budget, COALESCE(SUM(sp."Amount Spent"), 0) AS total_spent FROM tab_new_contributor_project_budget b LEFT JOIN TabNewContributorProjectSpending sp ON b.budget_id = sp.BudgetId WHERE b.total_budget IS NOT NULL GROUP BY b....
moderate
{ "verbose": "For each project that has a defined `total_budget` in the `tab_new_contributor_project_budget` table, calculate the total amount spent across all categories in the `TabNewContributorProjectSpending` table, and identify which project has the highest total spending. Return the project ID, the total budget...
["TabNew", "TabNewContributorProjectSpending", "TabNewContributorProjectTask", "tabNewContributorProjectTaskAssignment", "tab_new_contributor_audit", "tab_new_contributor_project_budget", "tab_new_contributor_project_task_status", "tabnewcontributor", "tabnewcontributorprojectdiscussion", "tabnewcontributorprojectmiles...
15
[["PROJ-0001", 7845.6, 0]]
schema_008687_s2_q0_b8baf24931
schema_008687
WITH cohort AS ( SELECT (SELECT COUNT(DISTINCT UserId) FROM PublicEventLog WHERE UserId IS NOT NULL) AS event_log, (SELECT COUNT(DISTINCT UserId) FROM publicWallComment WHERE UserId IS NOT NULL) AS wall_comment, (SELECT COUNT(DISTINCT useid) FROM public_user_friend) AS friends, (SELECT COUNT(DISTINCT ...
simple
{ "verbose": "Retrieve the names of all users who have a record in the public event log, have posted a comment on a wall, have at least one friend connection, have liked a gallery item, have rotated an encryption key, have sent a support message, have submitted a report, and have a defined privacy setting. For this s...
["PublicEventLog", "publicWallComment", "public_user_friend", "publicgallerylike", "publickeyrotation", "publicsupportmessage", "publicuser", "pubrep", "pubusepri"]
9
[[62]]
schema_007398_s0_q1_7c4434409b
schema_007398
SELECT o.id AS order_id, o.status AS order_status, (SELECT c.reason FROM tordcan c WHERE c.fkOrderId = o.id AND c.reason IS NOT NULL ORDER BY c.id LIMIT 1) AS cancellation_reason, (SELECT r.reason FROM t_order_refund_request r WHERE r.fkOrderId = o.id AND r.reason IS NOT NULL ORDER BY r.id LIMIT 1) AS r...
moderate
{ "verbose": "Identify the order with ID 3, which has a status of 'CANCELLED'. Retrieve the reason for its cancellation from the cancellation log, the reason provided for its refund request if one exists, and the specific discount amount applied via the promotion linked to this order. Also, list the auditor who revie...
["t_order", "t_order_discount", "t_order_gift_card", "t_order_pickup_time_window", "t_order_refund_request", "t_promotion", "toda", "tordcan", "torderconfirmationreminder", "torderdiscountusage", "torderpaymentverification", "tpaytra"]
12
[[3, "CANCELLED", "Shipping address invalid or undeliverable", "Customer changed mind within return window", 1.76, "Keaveney"]]
schema_008687_s0_q2_4a6ba329b1
schema_008687
WITH ticket_counts AS ( SELECT TicketId, COUNT(*) as cnt FROM publicsupportmessage GROUP BY TicketId ORDER BY cnt DESC LIMIT 1 ) SELECT u.email FROM publicsupportmessage m JOIN publicuser u ON m.UserId = u.id WHERE m.TicketId = (SELECT TicketId FROM ticket_counts) ORDER BY m."Sent At" ASC LIMIT 1
hard
{ "verbose": "Find the user who sent the very first support message in the ticket that received the highest number of support messages overall. Specifically, first determine which ticket (from publicsupportmessage) has the most messages associated with it. Then, identify the earliest message ('Sent At') within that s...
["PublicEventLog", "pcmq", "publicModerationAction", "publicWallComment", "publickeyrotation", "publicsupportmessage", "publicuser", "pubrep"]
8
[["finch.waldron@example.com"]]
schema_006265_s1_q2_f432ced2d0
schema_006265
WITH ranked AS ( SELECT i.Ino, i.Iname, COUNT(DISTINCT u.UsedBy) AS distinct_personnel FROM Inventory i JOIN InventoryUsage u ON u.Ino = i.Ino GROUP BY i.Ino, i.Iname ) SELECT r.Ino, r.Iname, SUM(u.QuantityUsed) AS total_quantity_consumed FROM ranked r JOIN InventoryUsage u ON u.Ino = r.Ino WH...
moderate
{ "verbose": "\"Identify the inventory item that has been used by the most distinct personnel according to the usage logs, and for that specific item, report the total quantity of units consumed across all recorded usage events.\",", "evidence_supported": "Which inventory item was used by the most distinct personne...
["Ato", "BackupInventory", "Inventory", "InventoryReorder", "InventoryUsage", "invtra"]
6
[["INV001", "Glucose Test Strips", 38]]
schema_013763_s2_q1_a206ed252a
schema_013763
SELECT bucketname FROM buckets WHERE versioning = 'Enabled' AND bucketname IS NOT NULL ORDER BY bucketname
moderate
{ "verbose": "Please list the names of all storage buckets that have versioning explicitly enabled, as we need to audit which archives are protected against accidental deletion.", "evidence_supported": "Which storage buckets have versioning explicitly enabled, and what are their names?, evidence: Versioning explici...
["MultipartUploads", "ReplicationExceptions", "RestoreStatus", "UserActivity", "UserPolicies", "accpoi", "buckets", "crossaccountgrants", "encryption_config", "gcpart", "invexp", "lifecycle", "obje", "object_tags", "objectmetadata", "request_rate_limits", "stousadai", "usequolim"]
18
[["black_box_83"], ["black_box_87"], ["fine_collection_15"], ["fine_collection_26"], ["fine_collection_27"], ["fine_collection_37"], ["fine_collection_5"], ["fine_collection_51"], ["fine_collection_52"], ["fine_collection_78"], ["sanction_pool_57"], ["team_penalty_32"], ["team_penalty_61"], ["team_penalty_69"], ["team_...
schema_008865_s3_q0_496e629961
schema_008865
SELECT contact FROM cont WHERE StudentId = 7 AND ProviderId IS NULL LIMIT 1
simple
{ "verbose": "Retrieve the full contact details (name, email, phone, and note) for the student with ID 7 who has no associated provider, as we need to verify if this is a direct enrollment without a training partner.", "evidence_supported": "What are the full contact details for student ID 7, specifically confirmin...
["cont", "course", "enrollment", "stud"]
4
[["Name: Bradshaw Kilroy; Email: bradshaw.kilroy@videostore60.com; Phone: +1-964-797-2935; Note: Update from Bradshaw Kilroy: follow-up call completed successfully."]]
schema_016621_s3_q2_8d27d47aba
schema_016621
WITH eligible AS ( SELECT DISTINCT e.id AS employeeid FROM public_employee e JOIN public_employee_addresses a ON a.employeeid = e.id JOIN PublicEmployeeSales s ON s.employeeid = e.id WHERE a.country = 'United States' ) SELECT d.name AS department, AVG(e.salary) AS average_salary FROM eligible el JOI...
hard
{ "verbose": "Identify the department that has the highest average salary among employees who have a recorded address in the United States and have generated at least one sale, and provide that department's average salary value.", "evidence_supported": "Which department has the highest average salary among US-based...
["PublicEmployeeEmployees", "PublicEmployeeSales", "publicEmployeeDepartments", "public_employee", "public_employee_addresses"]
5
[["Office of Business Intelligence 3", 130690.02185812386]]
schema_012497_s3_q1_4572105645
schema_012497
SELECT p.empid AS employee_id, p.total_payment, (SELECT COUNT(*) FROM uek_library_inventory l WHERE l.employee_id = p.empid) AS library_items_checked, (SELECT COALESCE(SUM(e.duration), 0) FROM uek_event_exhibit_presentation e WHERE e.employee_id = p.empid) AS total_presentation_duration FROM ( SELECT empid, ...
moderate
{ "verbose": "Calculate the average total payment amount processed by any employee. Then, identify the employees whose total processed payment amount exceeds this average. For these specific employees, retrieve their total payment amount, the count of library inventory items they have last checked, and the sum of dur...
["uek_academic_advisements", "uek_class_reminders", "uek_event_exhibit_presentation", "uek_event_feedback", "uek_library_inventory", "uek_student_accommodations", "uek_student_payments", "uekacaann", "uekacaloc"]
9
[[12, 148.02, 3, 0], [20, 218.55, 3, 0], [27, 253.44, 0, 0], [33, 285.65, 0, 0], [35, 348.96999999999997, 0, 0], [44, 151.5, 0, 0], [47, 166.32, 0, 0], [48, 211.9, 0, 0], [60, 193.06, 0, 0], [65, 194.76, 0, 0], [74, 269.06, 0, 0], [84, 418.26, 0, 0], [86, 188.54000000000002, 0, 0], [87, 176.77, 0, 0], [88, 203.32, 0, 0...
schema_018068_s0_q2_ab3765c6c4
schema_018068
WITH valid_att AS ( SELECT a.shiid, v.IdPelatihan, v.IdRelawan, (julianday(a.checkout_time) - julianday(a.checkin_time)) * 24.0 AS hours FROM volunteershiftattendance a JOIN volshiass v ON v.ShiftId = a.shiid WHERE a.checkin_time IS NOT NULL AND a.checkin_time != 'NaT' AND a.check...
hard
{ "verbose": "Identify the volunteer training program that had the highest average shift duration per attendee in 2021, and for that specific program, list the name of the volunteer who worked the most total hours across all their assigned shifts during that year.", "evidence_supported": "Which 2021 volunteer train...
["akun", "pelatihan", "pendaftaran_ulang_relawan", "relawan", "trainingexit", "volshiass", "volunteer_shift_log", "volunteershiftattendance"]
8
[["Analisis Teknikal untuk Trader Pemula #46", "Dell Ashbrook"]]
schema_003487_s1_q2_3789c0ab1f
schema_003487
SELECT c.configKey, c.configValue, CASE WHEN EXISTS ( SELECT 1 FROM testflowitemSyncLog sl WHERE sl.testflowitem_id = ( SELECT tf.testflowitem_id FROM testflowitem tf WHERE tf.testflowitem_item_id = c.testitemId ) AND sl.sync_oper...
hard
{ "verbose": "Identify the integration configurations that are currently active (isActive = 1). For each of these active configurations, determine if the specific test item it is linked to (if any) has ever had a sync log entry with the operation 'OCR_EXTRACT'. The result should list the configuration key and value, ...
["TestitemResult", "tesintcon", "tespar", "testflowitem", "testflowitemSyncLog", "testflowitem_comment", "testflowitem_integration", "testflowitem_permission"]
8
[["proxy_host", "proxy-2.internal.corp", 0], ["credential_path", "/etc/secrets/watson_creds_4.json", 0], ["api_key", "AIzaSy14a1a53d3fd95821cdb5afb7e", 0], ["batch_size", "20", 0], ["retry_count", "2", 0], ["batch_size", "10", 0], ["proxy_host", "proxy-2.internal.corp", 0], ["language_code", "ja-JP", 0], ["timeout_seco...
schema_000014_s2_q0_06901452ae
schema_000014
SELECT idclasse FROM etudiant WHERE nom = 'Fournier' AND ville = 'Nantes'
simple
{ "verbose": "Identify the student named 'Fournier' who lives in 'Nantes' and determine which class code he is enrolled in by looking up his profile in the student records.", "evidence_supported": "Which class code is assigned to the student named Fournier who resides in Nantes?, evidence: Class code refers to the ...
["ClasseAbsenceClasseMatiere", "EtudiantAbsenceForecast", "SerieDocumentClasseMatiere", "TnClasseMatiereProfesseur", "absence", "classe", "classemateriauxusagehistorique", "demandeabsence", "empliv", "etudiant", "exam", "livre", "note", "preetu", "presenceSalle", "presenceprofesseur", "reservation_salle", "tnclassemati...
18
[["CL-041"]]
schema_008865_s2_q2_62df0782b8
schema_008865
WITH course_duration AS ( SELECT c.id AS course_id, c.name, c.provider_id, SUM((julianday(cl.endtim) - julianday(cl.statim)) * 24 * 60) AS total_minutes FROM class cl JOIN course c ON cl.couid = c.id GROUP BY c.id ), ranked AS ( SELECT course_id, nam...
hard
{ "verbose": "To analyze course scheduling intensity and provider details, first calculate the total accumulated duration of all class sessions for each course to determine which course has the longest total session time; for that specific course, please return its name, the operator code of its provider, and the tot...
["class", "course", "enrollment", "prov"]
4
[["Forrest Gump", null, 17]]
schema_004193_s0_q2_bbdaff781b
schema_004193
WITH completed AS ( SELECT DISTINCT MEETINGID FROM ExternalMeetingActions WHERE STATUS = 'Completed' ), exp AS ( SELECT meet, SUM(amou) AS total_exp FROM meeextexp WHERE meet IN (SELECT MEETINGID FROM completed) GROUP BY meet ), maxexp AS ( SELECT MAX(total_exp) AS mx FROM exp ) SELECT m.TITLE, e.total_exp,...
hard
{ "verbose": "Identify the meetings that have the highest total financial expenditure (sum of amou) among those meetings that have at least one 'Completed' action item. For these specific meetings, determine which one has the earliest MEETINGDATE and return its title, total expenditure, and the count of distinct equi...
["ExternalMeetingActions", "MeetingExtResourceAllocations", "MeetingExtTravelAssignments", "academicmeetinglinks", "cmoi", "externalmeetingequipment", "meeextexp", "meeting_ext_ext_expert_Link", "meeting_ext_housing_requests", "meetings_external", "mela", "projectMeetingExceptions"]
12
[["Tax Compliance & Regulatory Check (1)", 37.76, 3]]
schema_021712_s1_q0_c42df4ab4a
schema_021712
SELECT t.Title, t.CreationYear, i.Insurer, i.CoverageAmount FROM cktart t INNER JOIN ckmartworkinsurance i ON t.Id = i.ArtworkId ORDER BY t.Title
simple
{ "verbose": "Retrieve the title and creation year of each artwork, along with the name of the insurer and the coverage amount for any active insurance policies associated with those artworks. This query requires joining the main artwork table (cktart) with the insurance table (ckmartworkinsurance) to link each artwo...
["CK_mArtworkExhibitionPresence", "CK_mArtworkPublishingRights", "CkMArtworkReproduction", "CkMArtworkReproductionRequest", "ckMArtworkCustomization", "ckMArtworkProvenance", "ckmartworkinsurance", "cktart", "cktartworkloanhistory", "cktartworkmediafeature", "cmuvh"]
11
[[null, null, "Travelers Casualty", 28971], [null, 2016, "Zurich Insurance", 10000], [null, 1989, "Chubb Fine Art", 10000], [null, 1989, "Travelers Casualty", 10000], [null, 2016, "Zurich Insurance", 13413], [null, 1988, "Marsh McLennan", 13921], [null, 1988, "AIG Art Insurance", 13289], [null, 2023, "AXA Art", 22607],...
schema_004019_s1_q0_69ca2b780d
schema_004019
SELECT l.IdUsuario, l.dispositivo FROM logsacessosistema l JOIN users u ON l.IdUsuario = u.id WHERE u.UserDepartamento = 'Logistique Sportive' ORDER BY l.DataAcesso DESC LIMIT 1
simple
{ "verbose": "Identify the user ID and the specific device used by the person in the 'Logistique Sportive' department who performed the most recent system access recorded in the logs.", "evidence_supported": "Who is the most recent user to access the system, and what device did they use? Filter for members of the '...
["SystemBackupLogs", "logsacessosistema", "matborreq", "users"]
4
[["USR-1038", "iPad Air"]]
schema_020704_s0_q1_9f427adc0c
schema_020704
SELECT u.username, u.email FROM users u WHERE EXISTS ( SELECT 1 FROM comm c WHERE c.user_id = u.id )
moderate
{ "verbose": "\"Retrieve the username and email for all users who have posted at least one comment, ensuring you check the 'comm' table for any record where the user_id matches the user's id.\",", "evidence_supported": "Which users have made at least one comment? For each, provide their username and email address.,...
["UserFollowers", "UserSettings", "comm", "likes", "noti", "postreactions", "useactlog", "usepro", "users"]
9
[["fenton.stanton", "fenton.stanton@rbac-system.io"], ["pitts.thurston", "pitts.thurston@rbac-system.io"], ["edler.eggison", "edler.eggison@rbac-system.io"], ["flack.flavell", "flack.flavell@rbac-system.io"], ["vallance.lindsay", "vallance.lindsay@rbac-system.io"], ["reynolds.atkin", "reynolds.atkin@rbac-system.io"], [...
schema_016221_s3_q1_2599803322
schema_016221
SELECT l."Nama Baru" AS product_name, l."Nama Lama" AS old_name, l."Nama Baru" AS new_name FROM lpnp l ORDER BY l."Tgl Perubahan" DESC LIMIT 1;
moderate
{ "verbose": "Find the name of the product that has been updated the most recently according to the name change log (lpnp), and return the old name and the new name associated with that specific update record.", "evidence_supported": "Which product experienced the most recent name change in the update log, and what...
["ProductStockChanges", "ProductToCategory", "ProductVariantAttributes", "dynamicproductattribute", "inventarisproduk", "invreothr", "logpensto", "lpnp", "pemesan", "ulasanproduk", "wisitepem"]
11
[["Elektronik Dosya - Depo Revizyonu", "Fakir Dosya Elektronik", "Elektronik Dosya - Depo Revizyonu"]]
schema_003487_s3_q1_899a19a7e3
schema_003487
SELECT sync_operation, sync_timestamp FROM testflowitemSyncLog WHERE testflowitem_id = 'TFI-1010' AND sync_status = 'FAILED' ORDER BY sync_timestamp
moderate
{ "verbose": "To audit the system's synchronization health for a specific processing unit, I need to identify which synchronization operations failed for the workflow item identified as \"TFI-1010\". Please list the specific operation names that ended with a \"FAILED\" status for this item, along with the timestamp w...
["TestflowitemSummary", "tescac", "teseve", "testflowitem", "testflowitemSyncLog", "testflowitem_comment", "testflowitem_dependency_log", "testflowitem_dependency_map", "testflowitem_integration", "testflowitem_permission", "testflowitem_saved_queries", "testitem_lock", "testtypeconfiguration"]
13
[["WORD_RECOMMEND", "2023-10-11 18:15:47"]]
schema_013763_s2_q2_87139ca30d
schema_013763
SELECT q.userid, COALESCE(SUM(s.totalobjects), 0) AS total_objects FROM usequolim q LEFT JOIN buckets b ON b.uid = q.userid LEFT JOIN stousadai s ON s.bucketname = b.bucketname AND s.usagedate = (SELECT MAX(s2.usagedate) FROM stousadai s2 WHERE s2.bucketname = ...
moderate
{ "verbose": "Identify the users who have exceeded 50% of their allocated storage quota (where current_usage_gb is greater than or equal to half of max_storage_gb) and calculate the total number of objects stored in their associated buckets on the most recent usage date available for each bucket to help prioritize cl...
["MultipartUploads", "ReplicationExceptions", "RestoreStatus", "UserActivity", "UserPolicies", "accpoi", "buckets", "crossaccountgrants", "encryption_config", "gcpart", "invexp", "lifecycle", "obje", "object_tags", "objectmetadata", "request_rate_limits", "stousadai", "usequolim"]
18
[["081420ad-2a71-4aba-92d2-bea16796c2f4", 0], ["0fb1ea06-717f-48b7-aa49-d4ca52469aee", 0], ["1e7d3529-9d50-4a36-b19e-2a0b61daf329", 0], ["234d3b6b-0cd3-4bcd-b762-1c8e5a49e622", 0], ["36150df0-3967-46b3-9850-a262f913c7b6", 0], ["403a91a1-17e5-410e-aaa9-c3b41aced00b", 0], ["43938175-b60b-43f3-80cf-a7fe7c826680", 0], ["48...
schema_009229_s2_q0_86ada34c6c
schema_009229
SELECT c.nomeProduto AS product_name, e.endereco_entrega AS delivery_address, e.data_entrega AS final_delivery_date FROM comp c JOIN entr e ON e.id_compra = c.id WHERE c.nomeProduto = 'Ledger Hardware Wallet Bundle' AND e.status = 2
simple
{ "verbose": "Retrieve the name of the product, the delivery address, and the final delivery date for the order associated with the 'Ledger Hardware Wallet Bundle' that was successfully delivered.", "evidence_supported": "For the successfully delivered Ledger Hardware Wallet Bundle order, what is the product name, ...
["comp", "devmot", "email_templates", "entr", "hisdev", "historicotrocas", "impressoes_anuncios", "logcom", "pagamentos", "produtos", "solicitacoes_devolucao", "solicitadevolucoes", "trocas"]
13
[["Ledger Hardware Wallet Bundle", "8411 Wallet Way, Apt 28, Zurich, ZH 50277-5461", "2023-07-04 09:26:21"]]
schema_020704_s2_q1_7ac030212d
schema_020704
SELECT p.userid, COUNT(c.id) AS comment_count FROM post p LEFT JOIN comm c ON c.post_id = p.id WHERE p.id = 'POST-0001' GROUP BY p.userid;
moderate
{ "verbose": "Identify the user who posted the thread with ID 'POST-0001' and count how many comments that specific thread has received, so we can determine the engagement level of the post discussing API endpoint permission issues.", "evidence_supported": "Who authored post POST-0001 regarding API endpoint permiss...
["comm", "post"]
2
[[17, 212]]
schema_001934_s3_q0_81e6cab263
schema_001934
SELECT CmOid, CmName, CmDescription, CmAgencyOid, CmActive FROM DB_WCT_CRAWL_MONITOR WHERE CmName = 'Critical_Site_Tracker'
simple
{ "verbose": "Retrieve the details of the crawl monitor named 'Critical_Site_Tracker', including its ID, description, and the agency ID it belongs to, so we can verify its configuration and active status in the monitoring system.", "evidence_supported": "What are the ID, description, and agency ID for the crawl mon...
["DB_WCT_CRAWL_MONITOR", "DB_WCT_PROFILE_OVERRIDE_LOG", "DB_WCT_USER_ROLE", "dbwctcrawlmonitorlog", "dbwctprofileoverrides", "dbwcttargetinstanceorigseed", "dwcmal", "dwcmh"]
8
[[33, "Critical_Site_Tracker", "This crawler scrapes database records on a weekly basis. ID reference: 33", 33, 0]]
schema_003577_s0_q1_13feba8627
schema_003577
SELECT AVG(julianday(c.lasuse) - julianday(c.creat)) AS avg_days_between_creation_and_last_use, cpa.cpa AS cpa_name, sp.name AS signing_policy_name, (SELECT COUNT(*) FROM security_incident) AS total_security_incidents FROM channel c JOIN channel_security cs ON cs.channel_id = c.chaid JOIN encryption_pol...
moderate
{ "verbose": "Calculate the average number of days between the creation date and the last use date for all channels that are associated with an encryption policy using the 'Camellia-128' algorithm; for these channels, also list the name of the associated CPA, the name of the associated signing policy, and the total c...
["SystemMessage", "channel", "channel_security", "cpa", "encryption_key_version", "encryption_policy", "message_priority", "security_incident", "signing_policy", "system_message_recipient"]
10
[[66.0, null, "SECURE-PAYLOAD-009", 49]]
schema_014868_s0_q2_ad05accc96
schema_014868
SELECT om.ChannelID, COUNT(*) AS delivered_offline_messages FROM OfflineMessage om WHERE om.Delivered = 1 AND om.ChannelID = ( SELECT cm.ChannelID FROM ChannelModerator cm GROUP BY cm.ChannelID ORDER BY COUNT(DISTINCT cm.ClientID) DESC LIMIT 1 ) GROUP BY om.ChannelID;
hard
{ "verbose": "Identify the channel that has the highest number of unique moderators assigned to it, and for that specific channel, list the total count of offline messages that have been successfully delivered (Delivered = 1).", "evidence_supported": "Which channel has the most unique moderators, and how many offli...
["ChannelClient", "ChannelModerator", "Invite", "Member", "OfflineMessage", "audlog", "chan", "channelevent", "clie", "invreq", "noti"]
11
[[9, 6]]
schema_014868_s3_q1_0e8e6cf482
schema_014868
SELECT mr.cliid AS ClientID, AVG(mr.rati) AS AverageRating FROM MessageRating mr WHERE mr.cliid IN ( SELECT ClientID FROM UserLoginHistory WHERE Device = 'MacBook Pro 16-inch' ) GROUP BY mr.cliid HAVING AVG(mr.rati) > 2.5;
moderate
{ "verbose": "Calculate the average message rating for clients who have logged in from a 'MacBook Pro 16-inch' device. Return the client ID and their average rating, but only include clients with an average rating above 2.5.", "evidence_supported": "Which clients, identified by ID, logged in using a MacBook Pro 16-...
["AppUserActivity", "ChannelModerator", "ClientArchiveStatus", "GroupChatReadStatus", "Member", "MessageRating", "UserLoginHistory", "audlog", "cliappset", "clie", "clitim", "invreq"]
12
[["CLIE-000009", 3.230769230769231], ["CLIE-000018", 3.0], ["CLIE-000019", 3.2], ["CLIE-000025", 3.142857142857143], ["CLIE-000032", 3.0], ["CLIE-000046", 3.0]]
schema_003577_s0_q2_424c78654b
schema_003577
WITH policy_versions AS ( SELECT polid, COUNT(*) AS cnt FROM encryption_key_version GROUP BY polid ORDER BY cnt DESC, polid ASC LIMIT 1 ), target_channel AS ( SELECT c.chaid, c.name, c.lasuse, c.cpaid FROM channel c JOIN channel_security cs ON cs.channel_id = c.chaid JOIN policy_vers...
hard
{ "verbose": "Identify the encryption policy that has the highest number of key versions; for this policy, find the channel with the most recent 'lasuse' date, and return the policy name, channel name, last use date, associated signing policy name, and associated CPA URL; additionally, calculate the difference in day...
["SystemMessage", "channel", "channel_security", "cpa", "encryption_key_version", "encryption_policy", "message_priority", "security_incident", "signing_policy", "system_message_recipient"]
10
[["Legacy Vault Access v2", "Access Route 174", "2023-10-11 00:00:00", "ARCHIVE-HEADER-046", "https://campaign.manager.org/link/click?id=cmp_65077&type=cpa", 381, "Account Verification Required - Ref #1060", "Standard processing: New user registration completed successfully for USR-1002. Awaiting email verification. [R...
schema_008143_s3_q2_f2a0682acc
schema_008143
WITH active_shares AS ( SELECT DISTINCT userid FROM sharedGalleries WHERE isshared = 1 ), user_access AS ( SELECT a.UserId, COUNT(a.id) AS access_count FROM access_history a JOIN active_shares s ON s.userid = a.UserId GROUP BY a.UserId ), top_user AS ( SELECT UserId FROM user_access ...
hard
{ "verbose": "For each user who has an active share (isshared = 1) in the sharedGalleries table, determine the total number of galleries they have access to via the access_history table. Then, identify which of these users has the highest total access count, and for that specific user, retrieve the content of their m...
["access_history", "comm", "galfav", "galleries", "galoffvie", "imavercom", "likes", "notifications", "permissions", "sharedGalleries", "useact", "users"]
12
[["Exley said this power bank is decent. They added to wishlist it recently."]]
schema_021785_s0_q0_9dd0e27b98
schema_021785
SELECT DISTINCT s.source_name FROM logs l JOIN logsou s ON s.log_id = l.id JOIN logvalues lv ON lv.logid = l.id JOIN LogAccessPermissions lap ON lap.log_id = l.id WHERE l.type = 'channel_unsubscribed' AND lv.para = 'retry_count' AND lv.valint = 6 AND lap.access_level = 'admin';
simple
{ "verbose": "Retrieve the names of the system instances (sources) that generated logs of type `channel_unsubscribed`, where those specific logs contain a `retry_count` parameter with an integer value of 6, and those logs have been granted `admin` access level to any user in the system.", "evidence_supported": "Whi...
["LogAccessPermissions", "logs", "logsou", "logvalues"]
4
[["Session-Manager-Instance-414"]]
schema_008360_s0_q1_85833e0ddb
schema_008360
SELECT i.InviteeEmail FROM useinv i LEFT JOIN users u ON u.email = i.InviteeEmail WHERE u.id IS NULL AND i.InviteeEmail IS NOT NULL;
moderate
{ "verbose": "Find the email addresses of all users who have been invited to the platform but have not yet registered, by looking up the invitees in the invitation records who do not have a corresponding entry in the main users table.", "evidence_supported": "List the email addresses for all users who received an i...
["UserApiKeys", "UserDevices", "auditLogs", "billingInvoices", "link_expiry_alerts", "linper", "refpro", "subpla", "useinv", "usenot", "user_social_profiles", "usernotifications", "users", "usesta"]
14
[["fp127us9@crypto-trader.io"], ["s6qd2gsu@blockchain-dev.com"], ["ddodusjt@defi-hub.io"], ["8u81spoi@defi-hub.io"], ["snujz1om@crypto-trader.io"], ["155i36in@blockchain-dev.com"], ["bml0iorr@wallet-ops.net"], ["g38pqw3s@defi-hub.io"], ["8dyol0i5@crypto-trader.io"], ["evljh07q@defi-hub.io"], ["db3t9oep@exchange-api.org...
schema_017623_s3_q2_97a506bf93
schema_017623
SELECT s.level_name, COUNT(DISTINCT qk.questionId) AS question_count FROM question_version qv JOIN queskilev qk ON qk.questionId = qv.question_id JOIN skilev s ON s.id = qk.skillLevelId WHERE qv.version_code IS NOT NULL AND qv.version_code >= 'v4.1.2' GROUP BY s.id, s.level_name ORDER BY question_count DESC
moderate
{ "verbose": "Identify the skill levels associated with questions that have been updated in version 'v4.1.2' or later. For each such skill level, provide the level name and the count of questions tied to it. This requires joining version history with question-skill mappings.", "evidence_supported": "For questions u...
["proj", "queskilev", "question_category", "question_topic", "question_type", "question_version", "skilev", "student", "topic"]
9
[["Skill Level 47: Dynamic", 4], ["Skill Level 34: Polished", 3], ["Skill Level 70: Seventh Edition", 3], ["Skill Level 10: Skilled", 3], ["Skill Level 66: Third Edition", 3], ["Skill Level 27: Fundamental", 3], ["Skill Level 36: Solid", 3], ["Skill Level 9: Competent", 2], ["Skill Level 59: Current", 2], ["Skill Level...