prompt listlengths 2 2 | completion listlengths 1 1 | chat_template_kwargs dict | meta dict |
|---|---|---|---|
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE aero_horizon_hubs (\n hub_id INTEGER PRIMARY KEY,\n hub_code TEXT NOT NULL UNIQUE,\n... | [
{
"role": "assistant",
"content": "SELECT tail_number, model_type, seat_capacity FROM aero_horizon_fleet ORDER BY seat_capacity DESC LIMIT 5;"
}
] | {
"enable_thinking": false
} | {
"db": "test-0",
"domain": "airline operations",
"difficulty": "simple",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE aero_horizon_hubs (\n hub_id INTEGER PRIMARY KEY,\n hub_code TEXT NOT NULL UNIQUE,\n... | [
{
"role": "assistant",
"content": "SELECT employee_number, first_name, last_name, role, hire_date FROM aero_horizon_crew WHERE date(REPLACE(hire_date, '/', '-')) > '2020-01-01' ORDER BY hire_date;"
}
] | {
"enable_thinking": false
} | {
"db": "test-0",
"domain": "airline operations",
"difficulty": "simple",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE aero_horizon_hubs (\n hub_id INTEGER PRIMARY KEY,\n hub_code TEXT NOT NULL UNIQUE,\n... | [
{
"role": "assistant",
"content": "SELECT route_code, origin_hub_id, destination_hub_id, distance_km FROM aero_horizon_routes WHERE is_seasonal = 1;"
}
] | {
"enable_thinking": false
} | {
"db": "test-0",
"domain": "airline operations",
"difficulty": "simple",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE aero_horizon_hubs (\n hub_id INTEGER PRIMARY KEY,\n hub_code TEXT NOT NULL UNIQUE,\n... | [
{
"role": "assistant",
"content": "SELECT f.flight_number, r.route_code, oh.city AS origin_city, dh.city AS destination_city FROM aero_horizon_flights f JOIN aero_horizon_routes r ON f.route_id = r.route_id JOIN aero_horizon_hubs oh ON r.origin_hub_id = oh.hub_id JOIN aero_horizon_hubs dh ON r.destination_h... | {
"enable_thinking": false
} | {
"db": "test-0",
"domain": "airline operations",
"difficulty": "join",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE aero_horizon_hubs (\n hub_id INTEGER PRIMARY KEY,\n hub_code TEXT NOT NULL UNIQUE,\n... | [
{
"role": "assistant",
"content": "SELECT f.tail_number, f.model_type, h.hub_name, h.city FROM aero_horizon_fleet f JOIN aero_horizon_hubs h ON f.hub_id = h.hub_id WHERE f.status = 'Active';"
}
] | {
"enable_thinking": false
} | {
"db": "test-0",
"domain": "airline operations",
"difficulty": "join",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE aero_horizon_hubs (\n hub_id INTEGER PRIMARY KEY,\n hub_code TEXT NOT NULL UNIQUE,\n... | [
{
"role": "assistant",
"content": "SELECT f.flight_number, c.first_name || ' ' || c.last_name AS captain_name, ac.tail_number FROM aero_horizon_flights f JOIN aero_horizon_crew c ON f.captain_id = c.crew_id JOIN aero_horizon_fleet ac ON f.aircraft_id = ac.aircraft_id WHERE f.flight_status = 'Arrived';"
}
... | {
"enable_thinking": false
} | {
"db": "test-0",
"domain": "airline operations",
"difficulty": "join",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE aero_horizon_hubs (\n hub_id INTEGER PRIMARY KEY,\n hub_code TEXT NOT NULL UNIQUE,\n... | [
{
"role": "assistant",
"content": "SELECT model_type, COUNT(*) AS active_count FROM aero_horizon_fleet WHERE status = 'Active' GROUP BY model_type;"
}
] | {
"enable_thinking": false
} | {
"db": "test-0",
"domain": "airline operations",
"difficulty": "aggregate",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE aero_horizon_hubs (\n hub_id INTEGER PRIMARY KEY,\n hub_code TEXT NOT NULL UNIQUE,\n... | [
{
"role": "assistant",
"content": "SELECT r.route_code, AVG(f.passenger_count) AS avg_passengers, AVG(f.cargo_weight_kg) AS avg_cargo_kg FROM aero_horizon_flights f JOIN aero_horizon_routes r ON f.route_id = r.route_id WHERE f.flight_status = 'Arrived' GROUP BY r.route_code;"
}
] | {
"enable_thinking": false
} | {
"db": "test-0",
"domain": "airline operations",
"difficulty": "aggregate",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE aero_horizon_hubs (\n hub_id INTEGER PRIMARY KEY,\n hub_code TEXT NOT NULL UNIQUE,\n... | [
{
"role": "assistant",
"content": "SELECT r.route_code, r.scheduled_duration_min, AVG(f.actual_duration_min) AS avg_actual_duration FROM aero_horizon_flights f JOIN aero_horizon_routes r ON f.route_id = r.route_id WHERE f.flight_status = 'Arrived' AND f.actual_duration_min IS NOT NULL GROUP BY r.route_code,... | {
"enable_thinking": false
} | {
"db": "test-0",
"domain": "airline operations",
"difficulty": "hard",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE aero_horizon_hubs (\n hub_id INTEGER PRIMARY KEY,\n hub_code TEXT NOT NULL UNIQUE,\n... | [
{
"role": "assistant",
"content": "SELECT c.first_name || ' ' || c.last_name AS captain_name, COUNT(DISTINCT f.model_type) AS model_types_flown FROM aero_horizon_flights fl JOIN aero_horizon_crew c ON fl.captain_id = c.crew_id JOIN aero_horizon_fleet f ON fl.aircraft_id = f.aircraft_id WHERE fl.flight_statu... | {
"enable_thinking": false
} | {
"db": "test-0",
"domain": "airline operations",
"difficulty": "hard",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE suppliers (\n supplier_id INTEGER PRIMARY KEY,\n company_name TEXT NOT NULL,\n co... | [
{
"role": "assistant",
"content": "SELECT product_name, selling_price FROM products ORDER BY selling_price DESC LIMIT 5;"
}
] | {
"enable_thinking": false
} | {
"db": "test-1",
"domain": "pharmacy inventory",
"difficulty": "simple",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE suppliers (\n supplier_id INTEGER PRIMARY KEY,\n company_name TEXT NOT NULL,\n co... | [
{
"role": "assistant",
"content": "SELECT p.product_name, p.sku FROM products p JOIN suppliers s ON p.supplier_id = s.supplier_id WHERE s.company_name = 'Apex Pharmaceuticals';"
}
] | {
"enable_thinking": false
} | {
"db": "test-1",
"domain": "pharmacy inventory",
"difficulty": "simple",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE suppliers (\n supplier_id INTEGER PRIMARY KEY,\n company_name TEXT NOT NULL,\n co... | [
{
"role": "assistant",
"content": "SELECT p.product_name, ib.batch_number, ib.quantity_on_hand, ib.expiry_date FROM inventory_batches ib JOIN products p ON ib.product_id = p.product_id ORDER BY p.product_name, ib.expiry_date;"
}
] | {
"enable_thinking": false
} | {
"db": "test-1",
"domain": "pharmacy inventory",
"difficulty": "join",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE suppliers (\n supplier_id INTEGER PRIMARY KEY,\n company_name TEXT NOT NULL,\n co... | [
{
"role": "assistant",
"content": "SELECT st.transaction_type, st.quantity_change, st.transaction_date FROM stock_transactions st JOIN inventory_batches ib ON st.batch_id = ib.batch_id JOIN products p ON ib.product_id = p.product_id WHERE p.product_name = 'Amoxicillin 500mg Capsule' ORDER BY st.transaction_... | {
"enable_thinking": false
} | {
"db": "test-1",
"domain": "pharmacy inventory",
"difficulty": "join",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE suppliers (\n supplier_id INTEGER PRIMARY KEY,\n company_name TEXT NOT NULL,\n co... | [
{
"role": "assistant",
"content": "SELECT p.product_name, s.company_name FROM products p JOIN suppliers s ON p.supplier_id = s.supplier_id WHERE s.is_active = 0;"
}
] | {
"enable_thinking": false
} | {
"db": "test-1",
"domain": "pharmacy inventory",
"difficulty": "join",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE suppliers (\n supplier_id INTEGER PRIMARY KEY,\n company_name TEXT NOT NULL,\n co... | [
{
"role": "assistant",
"content": "SELECT pc.category_name, SUM(ib.quantity_on_hand) AS total_quantity FROM inventory_batches ib JOIN products p ON ib.product_id = p.product_id JOIN product_categories pc ON p.category_id = pc.category_id GROUP BY pc.category_name ORDER BY total_quantity DESC;"
}
] | {
"enable_thinking": false
} | {
"db": "test-1",
"domain": "pharmacy inventory",
"difficulty": "aggregate",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE suppliers (\n supplier_id INTEGER PRIMARY KEY,\n company_name TEXT NOT NULL,\n co... | [
{
"role": "assistant",
"content": "SELECT p.product_name, ABS(SUM(st.quantity_change)) AS units_sold FROM stock_transactions st JOIN inventory_batches ib ON st.batch_id = ib.batch_id JOIN products p ON ib.product_id = p.product_id WHERE st.transaction_type = 'SALE' AND strftime('%Y', REPLACE(st.transaction_... | {
"enable_thinking": false
} | {
"db": "test-1",
"domain": "pharmacy inventory",
"difficulty": "aggregate",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE suppliers (\n supplier_id INTEGER PRIMARY KEY,\n company_name TEXT NOT NULL,\n co... | [
{
"role": "assistant",
"content": "SELECT p.product_name, p.reorder_level, COALESCE(SUM(ib.quantity_on_hand), 0) AS total_stock FROM products p LEFT JOIN inventory_batches ib ON p.product_id = ib.product_id GROUP BY p.product_id, p.product_name, p.reorder_level HAVING total_stock < p.reorder_level;"
}
] | {
"enable_thinking": false
} | {
"db": "test-1",
"domain": "pharmacy inventory",
"difficulty": "hard",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE suppliers (\n supplier_id INTEGER PRIMARY KEY,\n company_name TEXT NOT NULL,\n co... | [
{
"role": "assistant",
"content": "SELECT s.company_name, SUM(ib.quantity_on_hand * ib.unit_cost_at_purchase) AS total_inventory_value FROM inventory_batches ib JOIN products p ON ib.product_id = p.product_id JOIN suppliers s ON p.supplier_id = s.supplier_id WHERE date(REPLACE(ib.expiry_date, '/', '-')) >= ... | {
"enable_thinking": false
} | {
"db": "test-1",
"domain": "pharmacy inventory",
"difficulty": "hard",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE branches (\n branch_id INTEGER PRIMARY KEY,\n branch_name TEXT NOT NULL,\n city T... | [
{
"role": "assistant",
"content": "SELECT room_id, room_number, floor_level, has_balcony FROM accommodations WHERE status = 'Occupied' ORDER BY room_id;"
}
] | {
"enable_thinking": false
} | {
"db": "test-3",
"domain": "hotel reservations",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE branches (\n branch_id INTEGER PRIMARY KEY,\n branch_name TEXT NOT NULL,\n city T... | [
{
"role": "assistant",
"content": "SELECT guest_id, full_name, email, loyalty_tier, registration_date FROM guest_profiles ORDER BY registration_date DESC LIMIT 5;"
}
] | {
"enable_thinking": false
} | {
"db": "test-3",
"domain": "hotel reservations",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE branches (\n branch_id INTEGER PRIMARY KEY,\n branch_name TEXT NOT NULL,\n city T... | [
{
"role": "assistant",
"content": "SELECT category_id, category_name, base_rate, max_occupancy FROM room_categories WHERE base_rate > 300 ORDER BY base_rate;"
}
] | {
"enable_thinking": false
} | {
"db": "test-3",
"domain": "hotel reservations",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE branches (\n branch_id INTEGER PRIMARY KEY,\n branch_name TEXT NOT NULL,\n city T... | [
{
"role": "assistant",
"content": "SELECT gp.full_name, rc.category_name, b.city\nFROM bookings bk\nJOIN guest_profiles gp ON bk.guest_id = gp.guest_id\nJOIN accommodations a ON bk.room_id = a.room_id\nJOIN room_categories rc ON a.category_id = rc.category_id\nJOIN branches b ON a.branch_id = b.branch_id\nW... | {
"enable_thinking": false
} | {
"db": "test-3",
"domain": "hotel reservations",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE branches (\n branch_id INTEGER PRIMARY KEY,\n branch_name TEXT NOT NULL,\n city T... | [
{
"role": "assistant",
"content": "SELECT a.room_id, a.room_number, rc.category_name, br.branch_name, br.city\nFROM accommodations a\nJOIN room_categories rc ON a.category_id = rc.category_id\nJOIN branches br ON a.branch_id = br.branch_id\nWHERE a.status = 'Available' AND a.has_balcony = 1\nORDER BY br.bra... | {
"enable_thinking": false
} | {
"db": "test-3",
"domain": "hotel reservations",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE branches (\n branch_id INTEGER PRIMARY KEY,\n branch_name TEXT NOT NULL,\n city T... | [
{
"role": "assistant",
"content": "SELECT gp.full_name, gp.loyalty_tier, rc.category_name, bk.check_in_date\nFROM bookings bk\nJOIN guest_profiles gp ON bk.guest_id = gp.guest_id\nJOIN accommodations a ON bk.room_id = a.room_id\nJOIN room_categories rc ON a.category_id = rc.category_id\nWHERE bk.booking_sta... | {
"enable_thinking": false
} | {
"db": "test-3",
"domain": "hotel reservations",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE branches (\n branch_id INTEGER PRIMARY KEY,\n branch_name TEXT NOT NULL,\n city T... | [
{
"role": "assistant",
"content": "SELECT br.branch_name, rc.category_name, COUNT(a.room_id) AS room_count\nFROM accommodations a\nJOIN branches br ON a.branch_id = br.branch_id\nJOIN room_categories rc ON a.category_id = rc.category_id\nGROUP BY br.branch_id, rc.category_id\nORDER BY br.branch_name, rc.cat... | {
"enable_thinking": false
} | {
"db": "test-3",
"domain": "hotel reservations",
"difficulty": "aggregate",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE branches (\n branch_id INTEGER PRIMARY KEY,\n branch_name TEXT NOT NULL,\n city T... | [
{
"role": "assistant",
"content": "SELECT br.branch_name,\n COUNT(bk.booking_id) AS completed_stays,\n SUM(bk.total_charge) AS total_revenue,\n AVG(bk.total_charge) AS avg_charge\nFROM bookings bk\nJOIN accommodations a ON bk.room_id = a.room_id\nJOIN branches br ON a.branch_id = br.branch... | {
"enable_thinking": false
} | {
"db": "test-3",
"domain": "hotel reservations",
"difficulty": "aggregate",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE branches (\n branch_id INTEGER PRIMARY KEY,\n branch_name TEXT NOT NULL,\n city T... | [
{
"role": "assistant",
"content": "SELECT rc.category_name,\n COUNT(a.room_id) AS total_rooms,\n SUM(CASE WHEN a.status = 'Occupied' THEN 1 ELSE 0 END) AS occupied_rooms,\n ROUND(100.0 * SUM(CASE WHEN a.status = 'Occupied' THEN 1 ELSE 0 END) / COUNT(a.room_id), 2) AS occupancy_rate_pct\nFR... | {
"enable_thinking": false
} | {
"db": "test-3",
"domain": "hotel reservations",
"difficulty": "hard",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE medical_facilities (\n facility_id INTEGER PRIMARY KEY,\n facility_name TEXT NOT NUL... | [
{
"role": "assistant",
"content": "SELECT facility_name, city, state FROM medical_facilities WHERE is_active = 1 ORDER BY facility_name;"
}
] | {
"enable_thinking": false
} | {
"db": "test-4",
"domain": "clinic appointments",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE medical_facilities (\n facility_id INTEGER PRIMARY KEY,\n facility_name TEXT NOT NUL... | [
{
"role": "assistant",
"content": "SELECT first_name, last_name, medical_specialty, hire_date FROM care_providers WHERE employment_status = 'Active' ORDER BY hire_date DESC LIMIT 5;"
}
] | {
"enable_thinking": false
} | {
"db": "test-4",
"domain": "clinic appointments",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE medical_facilities (\n facility_id INTEGER PRIMARY KEY,\n facility_name TEXT NOT NUL... | [
{
"role": "assistant",
"content": "SELECT visit_id, appointment_datetime, visit_reason, visit_status FROM scheduled_visits WHERE strftime('%Y-%m', REPLACE(appointment_datetime, '/', '-')) = '2024-02' ORDER BY appointment_datetime;"
}
] | {
"enable_thinking": false
} | {
"db": "test-4",
"domain": "clinic appointments",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE medical_facilities (\n facility_id INTEGER PRIMARY KEY,\n facility_name TEXT NOT NUL... | [
{
"role": "assistant",
"content": "SELECT rp.first_name || ' ' || rp.last_name AS patient_name, cp.first_name || ' ' || cp.last_name AS provider_name, cp.medical_specialty FROM registered_patients rp JOIN care_providers cp ON rp.facility_id = cp.facility_id WHERE cp.employment_status = 'Active' ORDER BY pat... | {
"enable_thinking": false
} | {
"db": "test-4",
"domain": "clinic appointments",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE medical_facilities (\n facility_id INTEGER PRIMARY KEY,\n facility_name TEXT NOT NUL... | [
{
"role": "assistant",
"content": "SELECT rp.first_name || ' ' || rp.last_name AS patient_name, cp.first_name || ' ' || cp.last_name AS provider_name, mf.facility_name, sv.appointment_datetime, sv.visit_reason FROM scheduled_visits sv JOIN registered_patients rp ON sv.patient_id = rp.patient_id JOIN care_pr... | {
"enable_thinking": false
} | {
"db": "test-4",
"domain": "clinic appointments",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE medical_facilities (\n facility_id INTEGER PRIMARY KEY,\n facility_name TEXT NOT NUL... | [
{
"role": "assistant",
"content": "SELECT mf.facility_name, cp.first_name || ' ' || cp.last_name AS provider_name, cp.medical_specialty FROM medical_facilities mf JOIN care_providers cp ON mf.facility_id = cp.facility_id WHERE mf.is_active = 1 AND cp.employment_status = 'Active' ORDER BY mf.facility_name, p... | {
"enable_thinking": false
} | {
"db": "test-4",
"domain": "clinic appointments",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE medical_facilities (\n facility_id INTEGER PRIMARY KEY,\n facility_name TEXT NOT NUL... | [
{
"role": "assistant",
"content": "SELECT visit_type, COUNT(*) AS visit_count FROM scheduled_visits WHERE visit_status = 'Completed' GROUP BY visit_type ORDER BY visit_count DESC;"
}
] | {
"enable_thinking": false
} | {
"db": "test-4",
"domain": "clinic appointments",
"difficulty": "aggregate",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE medical_facilities (\n facility_id INTEGER PRIMARY KEY,\n facility_name TEXT NOT NUL... | [
{
"role": "assistant",
"content": "SELECT mf.facility_name, ROUND(AVG(sv.copay_amount), 2) AS avg_copay FROM scheduled_visits sv JOIN medical_facilities mf ON sv.facility_id = mf.facility_id WHERE sv.visit_status = 'Completed' GROUP BY mf.facility_name ORDER BY avg_copay DESC;"
}
] | {
"enable_thinking": false
} | {
"db": "test-4",
"domain": "clinic appointments",
"difficulty": "aggregate",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE medical_facilities (\n facility_id INTEGER PRIMARY KEY,\n facility_name TEXT NOT NUL... | [
{
"role": "assistant",
"content": "SELECT cp.first_name || ' ' || cp.last_name AS provider_name, cp.medical_specialty, COUNT(sv.visit_id) AS completed_visits, SUM(sv.copay_amount) AS total_copay FROM care_providers cp JOIN scheduled_visits sv ON cp.provider_id = sv.provider_id WHERE sv.visit_status = 'Compl... | {
"enable_thinking": false
} | {
"db": "test-4",
"domain": "clinic appointments",
"difficulty": "hard",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE support_agents (\n agent_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n ema... | [
{
"role": "assistant",
"content": "SELECT agent_id, full_name, hire_date FROM support_agents WHERE is_active = 1 ORDER BY date(REPLACE(hire_date, '/', '-')) DESC LIMIT 5;"
}
] | {
"enable_thinking": false
} | {
"db": "test-7",
"domain": "customer support desk",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE support_agents (\n agent_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n ema... | [
{
"role": "assistant",
"content": "SELECT ticket_id, subject, priority, status FROM support_tickets WHERE status IN ('Open', 'In Progress') ORDER BY CASE priority WHEN 'Critical' THEN 1 WHEN 'High' THEN 2 WHEN 'Medium' THEN 3 WHEN 'Low' THEN 4 END;"
}
] | {
"enable_thinking": false
} | {
"db": "test-7",
"domain": "customer support desk",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE support_agents (\n agent_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n ema... | [
{
"role": "assistant",
"content": "SELECT product_id, product_name, category FROM product_lines WHERE is_legacy = 1;"
}
] | {
"enable_thinking": false
} | {
"db": "test-7",
"domain": "customer support desk",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE support_agents (\n agent_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n ema... | [
{
"role": "assistant",
"content": "SELECT st.ticket_id, st.subject, ca.company_name, pl.product_name FROM support_tickets st JOIN customer_accounts ca ON st.account_id = ca.account_id JOIN product_lines pl ON st.product_id = pl.product_id;"
}
] | {
"enable_thinking": false
} | {
"db": "test-7",
"domain": "customer support desk",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE support_agents (\n agent_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n ema... | [
{
"role": "assistant",
"content": "SELECT ta.activity_id, sa.full_name, ta.activity_type, ta.description, ta.duration_minutes FROM ticket_activities ta JOIN support_agents sa ON ta.agent_id = sa.agent_id WHERE ta.ticket_id = 1 ORDER BY ta.created_at;"
}
] | {
"enable_thinking": false
} | {
"db": "test-7",
"domain": "customer support desk",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE support_agents (\n agent_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n ema... | [
{
"role": "assistant",
"content": "SELECT sa.full_name, COUNT(st.ticket_id) AS assigned_tickets FROM support_agents sa LEFT JOIN support_tickets st ON sa.agent_id = st.assigned_agent_id AND st.status NOT IN ('Resolved', 'Closed') GROUP BY sa.agent_id, sa.full_name ORDER BY assigned_tickets DESC;"
}
] | {
"enable_thinking": false
} | {
"db": "test-7",
"domain": "customer support desk",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE support_agents (\n agent_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n ema... | [
{
"role": "assistant",
"content": "SELECT subscription_tier, ROUND(AVG(monthly_mrr), 2) AS avg_mrr FROM customer_accounts GROUP BY subscription_tier ORDER BY avg_mrr DESC;"
}
] | {
"enable_thinking": false
} | {
"db": "test-7",
"domain": "customer support desk",
"difficulty": "aggregate",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE support_agents (\n agent_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n ema... | [
{
"role": "assistant",
"content": "SELECT pl.product_name, COUNT(st.ticket_id) AS total_tickets, ROUND(AVG(st.satisfaction_score), 2) AS avg_satisfaction FROM support_tickets st JOIN product_lines pl ON st.product_id = pl.product_id WHERE st.satisfaction_score IS NOT NULL GROUP BY pl.product_id, pl.product_... | {
"enable_thinking": false
} | {
"db": "test-7",
"domain": "customer support desk",
"difficulty": "aggregate",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE support_agents (\n agent_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n ema... | [
{
"role": "assistant",
"content": "SELECT sa.full_name, SUM(ta.duration_minutes) AS total_customer_minutes FROM ticket_activities ta JOIN support_agents sa ON ta.agent_id = sa.agent_id WHERE ta.is_internal = 0 GROUP BY sa.agent_id, sa.full_name HAVING total_customer_minutes > 100 ORDER BY total_customer_min... | {
"enable_thinking": false
} | {
"db": "test-7",
"domain": "customer support desk",
"difficulty": "hard",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE support_agents (\n agent_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n ema... | [
{
"role": "assistant",
"content": "SELECT ca.company_name, ca.subscription_tier, COUNT(st.ticket_id) AS critical_high_tickets, CASE WHEN ca.subscription_tier = 'Enterprise' THEN 'Yes' ELSE 'No' END AS is_enterprise FROM customer_accounts ca LEFT JOIN support_tickets st ON ca.account_id = st.account_id AND s... | {
"enable_thinking": false
} | {
"db": "test-7",
"domain": "customer support desk",
"difficulty": "hard",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE facilitator (\n facilitator_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n ... | [
{
"role": "assistant",
"content": "SELECT track_name, standard_fee FROM certification_track ORDER BY standard_fee DESC;"
}
] | {
"enable_thinking": false
} | {
"db": "test-8",
"domain": "university courses",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE facilitator (\n facilitator_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n ... | [
{
"role": "assistant",
"content": "SELECT full_name, specialization, hourly_rate FROM facilitator WHERE is_active = 0;"
}
] | {
"enable_thinking": false
} | {
"db": "test-8",
"domain": "university courses",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE facilitator (\n facilitator_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n ... | [
{
"role": "assistant",
"content": "SELECT full_name, hire_date FROM facilitator ORDER BY hire_date DESC LIMIT 5;"
}
] | {
"enable_thinking": false
} | {
"db": "test-8",
"domain": "university courses",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE facilitator (\n facilitator_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n ... | [
{
"role": "assistant",
"content": "SELECT ct.track_name, c.cohort_label, f.full_name AS lead_facilitator, COUNT(r.registration_id) AS enrolled_count\nFROM cohort c\nJOIN certification_track ct ON c.track_id = ct.track_id\nJOIN facilitator f ON c.lead_facilitator_id = f.facilitator_id\nLEFT JOIN registration... | {
"enable_thinking": false
} | {
"db": "test-8",
"domain": "university courses",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE facilitator (\n facilitator_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n ... | [
{
"role": "assistant",
"content": "SELECT l.full_name, l.department, c.cohort_label\nFROM learner l\nJOIN registration r ON l.learner_id = r.learner_id\nJOIN cohort c ON r.cohort_id = c.cohort_id\nJOIN certification_track ct ON c.track_id = ct.track_id\nWHERE ct.track_code = 'CDP-200';"
}
] | {
"enable_thinking": false
} | {
"db": "test-8",
"domain": "university courses",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE facilitator (\n facilitator_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n ... | [
{
"role": "assistant",
"content": "SELECT f.full_name AS facilitator, ss.session_date, ss.topic, CASE ss.is_mandatory WHEN 1 THEN 'Yes' ELSE 'No' END AS mandatory\nFROM session_schedule ss\nJOIN facilitator f ON ss.facilitator_id = f.facilitator_id\nJOIN cohort c ON ss.cohort_id = c.cohort_id\nWHERE c.cohor... | {
"enable_thinking": false
} | {
"db": "test-8",
"domain": "university courses",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE facilitator (\n facilitator_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n ... | [
{
"role": "assistant",
"content": "SELECT c.cohort_label, ROUND(AVG(r.final_score), 2) AS avg_score, ROUND(AVG(r.attendance_pct), 2) AS avg_attendance\nFROM registration r\nJOIN cohort c ON r.cohort_id = c.cohort_id\nWHERE c.status = 'Completed' AND r.final_score IS NOT NULL\nGROUP BY c.cohort_id, c.cohort_... | {
"enable_thinking": false
} | {
"db": "test-8",
"domain": "university courses",
"difficulty": "aggregate",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE facilitator (\n facilitator_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n ... | [
{
"role": "assistant",
"content": "SELECT f.full_name, f.specialization, COUNT(DISTINCT ss.cohort_id) AS cohort_count\nFROM facilitator f\nJOIN session_schedule ss ON f.facilitator_id = ss.facilitator_id\nGROUP BY f.facilitator_id, f.full_name, f.specialization\nHAVING cohort_count > 0\nORDER BY cohort_coun... | {
"enable_thinking": false
} | {
"db": "test-8",
"domain": "university courses",
"difficulty": "aggregate",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE facilitator (\n facilitator_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n ... | [
{
"role": "assistant",
"content": "SELECT l.full_name, \n ct_completed.track_name AS completed_program,\n ct_active.track_name AS active_program\nFROM learner l\nJOIN registration r_comp ON l.learner_id = r_comp.learner_id\nJOIN cohort c_comp ON r_comp.cohort_id = c_comp.cohort_id\nJOIN certific... | {
"enable_thinking": false
} | {
"db": "test-8",
"domain": "university courses",
"difficulty": "hard",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE facilitator (\n facilitator_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n ... | [
{
"role": "assistant",
"content": "SELECT ct.track_name,\n SUM(ct.standard_fee) AS total_revenue,\n ROUND(AVG(r.final_score), 2) AS avg_paid_score\nFROM certification_track ct\nJOIN cohort c ON ct.track_id = c.track_id\nJOIN registration r ON c.cohort_id = r.cohort_id\nWHERE c.status = 'Complete... | {
"enable_thinking": false
} | {
"db": "test-8",
"domain": "university courses",
"difficulty": "hard",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE game_project (\n project_id INTEGER PRIMARY KEY,\n title TEXT NOT NULL,\n genre T... | [
{
"role": "assistant",
"content": "SELECT project_id, title, budget_usd FROM game_project WHERE budget_usd > 2000000 ORDER BY budget_usd DESC;"
}
] | {
"enable_thinking": false
} | {
"db": "test-9",
"domain": "video game studio",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE game_project (\n project_id INTEGER PRIMARY KEY,\n title TEXT NOT NULL,\n genre T... | [
{
"role": "assistant",
"content": "SELECT member_id, full_name, role_title, hire_date FROM studio_member WHERE is_active = 1 AND date(REPLACE(hire_date, '/', '-')) > '2022-01-01' ORDER BY hire_date;"
}
] | {
"enable_thinking": false
} | {
"db": "test-9",
"domain": "video game studio",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE game_project (\n project_id INTEGER PRIMARY KEY,\n title TEXT NOT NULL,\n genre T... | [
{
"role": "assistant",
"content": "SELECT asset_name, asset_type, project_id, file_size_mb FROM asset ORDER BY file_size_mb DESC LIMIT 5;"
}
] | {
"enable_thinking": false
} | {
"db": "test-9",
"domain": "video game studio",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE game_project (\n project_id INTEGER PRIMARY KEY,\n title TEXT NOT NULL,\n genre T... | [
{
"role": "assistant",
"content": "SELECT gp.title, sm.full_name FROM game_project gp JOIN studio_member sm ON gp.lead_producer_id = sm.member_id;"
}
] | {
"enable_thinking": false
} | {
"db": "test-9",
"domain": "video game studio",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE game_project (\n project_id INTEGER PRIMARY KEY,\n title TEXT NOT NULL,\n genre T... | [
{
"role": "assistant",
"content": "SELECT a.asset_name, a.asset_type, sm.full_name AS artist_name, gp.title AS project_title FROM asset a JOIN studio_member sm ON a.assigned_artist_id = sm.member_id JOIN game_project gp ON a.project_id = gp.project_id WHERE a.review_status = 'In Review';"
}
] | {
"enable_thinking": false
} | {
"db": "test-9",
"domain": "video game studio",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE game_project (\n project_id INTEGER PRIMARY KEY,\n title TEXT NOT NULL,\n genre T... | [
{
"role": "assistant",
"content": "SELECT m.name AS milestone_name, gp.title AS project_title, m.planned_date, m.status FROM milestone m JOIN game_project gp ON m.project_id = gp.project_id WHERE m.status IN ('Delayed', 'In Progress') ORDER BY m.planned_date;"
}
] | {
"enable_thinking": false
} | {
"db": "test-9",
"domain": "video game studio",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE game_project (\n project_id INTEGER PRIMARY KEY,\n title TEXT NOT NULL,\n genre T... | [
{
"role": "assistant",
"content": "SELECT gp.title, COUNT(a.asset_id) AS asset_count, ROUND(AVG(a.file_size_mb), 2) AS avg_file_size_mb FROM game_project gp LEFT JOIN asset a ON gp.project_id = a.project_id GROUP BY gp.project_id, gp.title ORDER BY asset_count DESC;"
}
] | {
"enable_thinking": false
} | {
"db": "test-9",
"domain": "video game studio",
"difficulty": "aggregate",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE game_project (\n project_id INTEGER PRIMARY KEY,\n title TEXT NOT NULL,\n genre T... | [
{
"role": "assistant",
"content": "SELECT gp.title, COUNT(sm.member_id) AS active_member_count, ROUND(AVG(sm.hourly_rate_usd), 2) AS avg_hourly_rate FROM game_project gp LEFT JOIN studio_member sm ON gp.project_id = sm.project_id AND sm.is_active = 1 GROUP BY gp.project_id, gp.title ORDER BY active_member_c... | {
"enable_thinking": false
} | {
"db": "test-9",
"domain": "video game studio",
"difficulty": "aggregate",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE game_project (\n project_id INTEGER PRIMARY KEY,\n title TEXT NOT NULL,\n genre T... | [
{
"role": "assistant",
"content": "SELECT ec.company_name, COUNT(DISTINCT ec.project_id) AS project_count, GROUP_CONCAT(gp.title, ', ') AS project_titles FROM external_contractor ec JOIN game_project gp ON ec.project_id = gp.project_id GROUP BY ec.company_name HAVING project_count > 1;"
}
] | {
"enable_thinking": false
} | {
"db": "test-9",
"domain": "video game studio",
"difficulty": "hard",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE suppliers (\n supplier_id INTEGER PRIMARY KEY AUTOINCREMENT,\n supplier_name TEXT NO... | [
{
"role": "assistant",
"content": "SELECT generic_name, brand_name, strength, dosage_form, unit_cost FROM medications WHERE is_active = 1 AND unit_cost > 0.50 ORDER BY unit_cost DESC;"
}
] | {
"enable_thinking": false
} | {
"db": "test-11",
"domain": "pharmacy inventory",
"difficulty": "simple",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE suppliers (\n supplier_id INTEGER PRIMARY KEY AUTOINCREMENT,\n supplier_name TEXT NO... | [
{
"role": "assistant",
"content": "SELECT batch_id, lot_number, received_date, expiry_date, quantity_received FROM inventory_batches ORDER BY date(REPLACE(received_date, '/', '-')) DESC LIMIT 5;"
}
] | {
"enable_thinking": false
} | {
"db": "test-11",
"domain": "pharmacy inventory",
"difficulty": "simple",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE suppliers (\n supplier_id INTEGER PRIMARY KEY AUTOINCREMENT,\n supplier_name TEXT NO... | [
{
"role": "assistant",
"content": "SELECT transaction_id, batch_id, quantity_sold, sale_price_per_unit, transaction_date, prescription_ref FROM sales_transactions WHERE customer_type = 'institutional' ORDER BY date(REPLACE(transaction_date, '/', '-')) DESC;"
}
] | {
"enable_thinking": false
} | {
"db": "test-11",
"domain": "pharmacy inventory",
"difficulty": "simple",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE suppliers (\n supplier_id INTEGER PRIMARY KEY AUTOINCREMENT,\n supplier_name TEXT NO... | [
{
"role": "assistant",
"content": "SELECT m.generic_name, m.brand_name, dc.category_name, SUM(ib.quantity_on_hand) AS total_on_hand FROM medications m JOIN drug_categories dc ON m.category_id = dc.category_id JOIN inventory_batches ib ON m.medication_id = ib.medication_id WHERE m.is_active = 1 GROUP BY m.me... | {
"enable_thinking": false
} | {
"db": "test-11",
"domain": "pharmacy inventory",
"difficulty": "join",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE suppliers (\n supplier_id INTEGER PRIMARY KEY AUTOINCREMENT,\n supplier_name TEXT NO... | [
{
"role": "assistant",
"content": "SELECT ib.batch_id, m.generic_name, m.strength, ib.lot_number, ib.quantity_on_hand, ib.expiry_date FROM inventory_batches ib JOIN medications m ON ib.medication_id = m.medication_id JOIN suppliers s ON ib.supplier_id = s.supplier_id WHERE s.supplier_name = 'MediSource Dist... | {
"enable_thinking": false
} | {
"db": "test-11",
"domain": "pharmacy inventory",
"difficulty": "join",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE suppliers (\n supplier_id INTEGER PRIMARY KEY AUTOINCREMENT,\n supplier_name TEXT NO... | [
{
"role": "assistant",
"content": "SELECT st.transaction_id, m.generic_name, m.brand_name, ib.lot_number, s.supplier_name, st.quantity_sold, st.sale_price_per_unit, st.transaction_date FROM sales_transactions st JOIN inventory_batches ib ON st.batch_id = ib.batch_id JOIN medications m ON ib.medication_id = ... | {
"enable_thinking": false
} | {
"db": "test-11",
"domain": "pharmacy inventory",
"difficulty": "join",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE suppliers (\n supplier_id INTEGER PRIMARY KEY AUTOINCREMENT,\n supplier_name TEXT NO... | [
{
"role": "assistant",
"content": "SELECT dc.category_name, SUM(st.quantity_sold * st.sale_price_per_unit) AS total_revenue FROM sales_transactions st JOIN inventory_batches ib ON st.batch_id = ib.batch_id JOIN medications m ON ib.medication_id = m.medication_id JOIN drug_categories dc ON m.category_id = dc... | {
"enable_thinking": false
} | {
"db": "test-11",
"domain": "pharmacy inventory",
"difficulty": "aggregate",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE suppliers (\n supplier_id INTEGER PRIMARY KEY AUTOINCREMENT,\n supplier_name TEXT NO... | [
{
"role": "assistant",
"content": "SELECT s.supplier_name, COUNT(DISTINCT ib.medication_id) AS distinct_medications, SUM(ib.quantity_received) AS total_units_received FROM suppliers s JOIN inventory_batches ib ON s.supplier_id = ib.supplier_id GROUP BY s.supplier_id, s.supplier_name ORDER BY total_units_rec... | {
"enable_thinking": false
} | {
"db": "test-11",
"domain": "pharmacy inventory",
"difficulty": "aggregate",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE suppliers (\n supplier_id INTEGER PRIMARY KEY AUTOINCREMENT,\n supplier_name TEXT NO... | [
{
"role": "assistant",
"content": "SELECT m.generic_name, m.brand_name, m.reorder_level, COALESCE(SUM(ib.quantity_on_hand), 0) AS current_stock FROM medications m LEFT JOIN inventory_batches ib ON m.medication_id = ib.medication_id WHERE m.is_active = 1 GROUP BY m.medication_id, m.generic_name, m.brand_name... | {
"enable_thinking": false
} | {
"db": "test-11",
"domain": "pharmacy inventory",
"difficulty": "hard",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE suppliers (\n supplier_id INTEGER PRIMARY KEY AUTOINCREMENT,\n supplier_name TEXT NO... | [
{
"role": "assistant",
"content": "SELECT m.generic_name, m.brand_name, \n SUM(st.quantity_sold * st.sale_price_per_unit) AS total_revenue,\n SUM(st.quantity_sold * ib.unit_cost) AS total_cogs,\n ROUND((SUM(st.quantity_sold * st.sale_price_per_unit) - SUM(st.quantity_sold * ib.unit_cost)) ... | {
"enable_thinking": false
} | {
"db": "test-11",
"domain": "pharmacy inventory",
"difficulty": "hard",
"domain_seen": false
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE agents (\n agent_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n license_num... | [
{
"role": "assistant",
"content": "SELECT full_name, hire_date FROM agents WHERE is_active = 1 ORDER BY hire_date DESC LIMIT 5;"
}
] | {
"enable_thinking": false
} | {
"db": "test-12",
"domain": "real estate listings",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE agents (\n agent_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n license_num... | [
{
"role": "assistant",
"content": "SELECT full_name, max_budget FROM buyers WHERE preferred_city = 'Springfield' AND max_budget > 300000 ORDER BY max_budget DESC;"
}
] | {
"enable_thinking": false
} | {
"db": "test-12",
"domain": "real estate listings",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE agents (\n agent_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n license_num... | [
{
"role": "assistant",
"content": "SELECT p.address, p.city, a.full_name AS listing_agent FROM properties p JOIN agents a ON p.agent_id = a.agent_id WHERE p.status = 'Active' ORDER BY p.city, p.address;"
}
] | {
"enable_thinking": false
} | {
"db": "test-12",
"domain": "real estate listings",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE agents (\n agent_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n license_num... | [
{
"role": "assistant",
"content": "SELECT b.full_name AS buyer, p.address AS property, v.viewing_date FROM viewings v JOIN buyers b ON v.buyer_id = b.buyer_id JOIN properties p ON v.property_id = p.property_id ORDER BY v.viewing_date;"
}
] | {
"enable_thinking": false
} | {
"db": "test-12",
"domain": "real estate listings",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE agents (\n agent_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n license_num... | [
{
"role": "assistant",
"content": "SELECT p.address, b.full_name AS buyer, o.offer_amount, o.status FROM offers o JOIN properties p ON o.property_id = p.property_id JOIN buyers b ON o.buyer_id = b.buyer_id WHERE p.city = 'Decatur' ORDER BY o.offer_date;"
}
] | {
"enable_thinking": false
} | {
"db": "test-12",
"domain": "real estate listings",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE agents (\n agent_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n license_num... | [
{
"role": "assistant",
"content": "SELECT a.full_name, COUNT(p.property_id) AS listing_count, ROUND(AVG(p.list_price), 2) AS avg_list_price FROM agents a JOIN properties p ON a.agent_id = p.agent_id GROUP BY a.agent_id, a.full_name ORDER BY listing_count DESC;"
}
] | {
"enable_thinking": false
} | {
"db": "test-12",
"domain": "real estate listings",
"difficulty": "aggregate",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE agents (\n agent_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n license_num... | [
{
"role": "assistant",
"content": "SELECT p.city, COUNT(v.viewing_id) AS total_viewings, COUNT(DISTINCT v.buyer_id) AS unique_buyers FROM viewings v JOIN properties p ON v.property_id = p.property_id GROUP BY p.city ORDER BY total_viewings DESC;"
}
] | {
"enable_thinking": false
} | {
"db": "test-12",
"domain": "real estate listings",
"difficulty": "aggregate",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE agents (\n agent_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n license_num... | [
{
"role": "assistant",
"content": "SELECT a.full_name, COUNT(o.offer_id) AS accepted_offers FROM agents a JOIN properties p ON a.agent_id = p.agent_id JOIN offers o ON p.property_id = o.property_id WHERE o.status = 'Accepted' GROUP BY a.agent_id, a.full_name HAVING COUNT(o.offer_id) >= 1 ORDER BY accepted_o... | {
"enable_thinking": false
} | {
"db": "test-12",
"domain": "real estate listings",
"difficulty": "hard",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE agents (\n agent_id INTEGER PRIMARY KEY,\n full_name TEXT NOT NULL,\n license_num... | [
{
"role": "assistant",
"content": "SELECT b.full_name, COUNT(DISTINCT o.property_id) AS properties_bid_on FROM buyers b JOIN offers o ON b.buyer_id = o.buyer_id GROUP BY b.buyer_id, b.full_name HAVING COUNT(DISTINCT o.property_id) > 1 ORDER BY properties_bid_on DESC;"
}
] | {
"enable_thinking": false
} | {
"db": "test-12",
"domain": "real estate listings",
"difficulty": "hard",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE orchard_blocks (\n block_id INTEGER PRIMARY KEY,\n block_name TEXT NOT NULL,\n ac... | [
{
"role": "assistant",
"content": "SELECT block_name, acreage FROM orchard_blocks WHERE acreage > 20 ORDER BY acreage DESC;"
}
] | {
"enable_thinking": false
} | {
"db": "test-13",
"domain": "farm harvests",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE orchard_blocks (\n block_id INTEGER PRIMARY KEY,\n block_name TEXT NOT NULL,\n ac... | [
{
"role": "assistant",
"content": "SELECT event_id, harvest_date, total_weight_kg FROM harvest_events ORDER BY total_weight_kg DESC LIMIT 5;"
}
] | {
"enable_thinking": false
} | {
"db": "test-13",
"domain": "farm harvests",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE orchard_blocks (\n block_id INTEGER PRIMARY KEY,\n block_name TEXT NOT NULL,\n ac... | [
{
"role": "assistant",
"content": "SELECT crew_name, crew_size FROM harvest_crews ORDER BY crew_size DESC;"
}
] | {
"enable_thinking": false
} | {
"db": "test-13",
"domain": "farm harvests",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE orchard_blocks (\n block_id INTEGER PRIMARY KEY,\n block_name TEXT NOT NULL,\n ac... | [
{
"role": "assistant",
"content": "SELECT he.event_id, ob.block_name, hc.crew_name, he.total_weight_kg\nFROM harvest_events he\nJOIN orchard_blocks ob ON he.block_id = ob.block_id\nJOIN harvest_crews hc ON he.crew_id = hc.crew_id\nORDER BY he.event_id;"
}
] | {
"enable_thinking": false
} | {
"db": "test-13",
"domain": "farm harvests",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE orchard_blocks (\n block_id INTEGER PRIMARY KEY,\n block_name TEXT NOT NULL,\n ac... | [
{
"role": "assistant",
"content": "SELECT pb.batch_id, pb.output_cases, pb.waste_kg\nFROM processing_batches pb\nJOIN harvest_events he ON pb.event_id = he.event_id\nJOIN orchard_blocks ob ON he.block_id = ob.block_id\nWHERE ob.block_name = 'North Ridge'\nORDER BY pb.batch_id;"
}
] | {
"enable_thinking": false
} | {
"db": "test-13",
"domain": "farm harvests",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE orchard_blocks (\n block_id INTEGER PRIMARY KEY,\n block_name TEXT NOT NULL,\n ac... | [
{
"role": "assistant",
"content": "SELECT ms.destination_market, ms.revenue_usd\nFROM market_shipments ms\nJOIN processing_batches pb ON ms.batch_id = pb.batch_id\nJOIN harvest_events he ON pb.event_id = he.event_id\nJOIN harvest_crews hc ON he.crew_id = hc.crew_id\nWHERE hc.crew_name = 'Alpha Pickers'\nORD... | {
"enable_thinking": false
} | {
"db": "test-13",
"domain": "farm harvests",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE orchard_blocks (\n block_id INTEGER PRIMARY KEY,\n block_name TEXT NOT NULL,\n ac... | [
{
"role": "assistant",
"content": "SELECT ob.primary_variety,\n SUM(he.total_weight_kg) AS total_weight_kg,\n ROUND(AVG(CASE he.quality_grade WHEN 'Grade A' THEN 3 WHEN 'Grade B' THEN 2 WHEN 'Grade C' THEN 1 END), 2) AS avg_quality_score\nFROM harvest_events he\nJOIN orchard_blocks ob ON he.bloc... | {
"enable_thinking": false
} | {
"db": "test-13",
"domain": "farm harvests",
"difficulty": "aggregate",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE orchard_blocks (\n block_id INTEGER PRIMARY KEY,\n block_name TEXT NOT NULL,\n ac... | [
{
"role": "assistant",
"content": "SELECT destination_market,\n COUNT(*) AS shipment_count,\n SUM(revenue_usd) AS total_revenue_usd\nFROM market_shipments\nGROUP BY destination_market\nORDER BY total_revenue_usd DESC;"
}
] | {
"enable_thinking": false
} | {
"db": "test-13",
"domain": "farm harvests",
"difficulty": "aggregate",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE orchard_blocks (\n block_id INTEGER PRIMARY KEY,\n block_name TEXT NOT NULL,\n ac... | [
{
"role": "assistant",
"content": "SELECT he.event_id, ob.block_name, ob.primary_variety, he.total_weight_kg\nFROM harvest_events he\nJOIN orchard_blocks ob ON he.block_id = ob.block_id\nWHERE he.total_weight_kg > (\n SELECT AVG(he2.total_weight_kg)\n FROM harvest_events he2\n JOIN orchard_blocks o... | {
"enable_thinking": false
} | {
"db": "test-13",
"domain": "farm harvests",
"difficulty": "hard",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE orchard_blocks (\n block_id INTEGER PRIMARY KEY,\n block_name TEXT NOT NULL,\n ac... | [
{
"role": "assistant",
"content": "SELECT ob.block_name,\n julianday(MAX(REPLACE(he.harvest_date, '/', '-'))) - julianday(MIN(REPLACE(he.harvest_date, '/', '-'))) AS days_between_harvests\nFROM harvest_events he\nJOIN orchard_blocks ob ON he.block_id = ob.block_id\nWHERE strftime('%Y', REPLACE(he.harv... | {
"enable_thinking": false
} | {
"db": "test-13",
"domain": "farm harvests",
"difficulty": "hard",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE venue (\n venue_id INTEGER PRIMARY KEY,\n name TEXT NOT NULL,\n address TEXT,\n ... | [
{
"role": "assistant",
"content": "SELECT title, start_datetime FROM event WHERE status = 'On Sale' ORDER BY start_datetime;"
}
] | {
"enable_thinking": false
} | {
"db": "test-14",
"domain": "event ticketing",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE venue (\n venue_id INTEGER PRIMARY KEY,\n name TEXT NOT NULL,\n address TEXT,\n ... | [
{
"role": "assistant",
"content": "SELECT name, price FROM ticket_type WHERE event_id = 2 ORDER BY price ASC;"
}
] | {
"enable_thinking": false
} | {
"db": "test-14",
"domain": "event ticketing",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE venue (\n venue_id INTEGER PRIMARY KEY,\n name TEXT NOT NULL,\n address TEXT,\n ... | [
{
"role": "assistant",
"content": "SELECT full_name, company, job_title, created_at FROM attendee ORDER BY created_at DESC LIMIT 5;"
}
] | {
"enable_thinking": false
} | {
"db": "test-14",
"domain": "event ticketing",
"difficulty": "simple",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE venue (\n venue_id INTEGER PRIMARY KEY,\n name TEXT NOT NULL,\n address TEXT,\n ... | [
{
"role": "assistant",
"content": "SELECT e.title, v.name, v.city FROM event e JOIN venue v ON e.venue_id = v.venue_id WHERE e.status = 'Completed';"
}
] | {
"enable_thinking": false
} | {
"db": "test-14",
"domain": "event ticketing",
"difficulty": "join",
"domain_seen": true
} |
[
{
"role": "system",
"content": "You are a SQLite expert. Given a database schema and a question, reply with one SQLite SELECT query and nothing else."
},
{
"role": "user",
"content": "Schema:\nCREATE TABLE venue (\n venue_id INTEGER PRIMARY KEY,\n name TEXT NOT NULL,\n address TEXT,\n ... | [
{
"role": "assistant",
"content": "SELECT a.full_name, tt.name, p.quantity, p.unit_price FROM purchase p JOIN attendee a ON p.attendee_id = a.attendee_id JOIN ticket_type tt ON p.ticket_type_id = tt.ticket_type_id JOIN event e ON tt.event_id = e.event_id WHERE e.title = 'Apex Leadership Summit 2024';"
}
] | {
"enable_thinking": false
} | {
"db": "test-14",
"domain": "event ticketing",
"difficulty": "join",
"domain_seen": true
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.