Datasets:
Tags:
License:
sql_complexity_description
stringclasses 2
values | sql_prompt
stringclasses 3
values | sql_context
stringclasses 3
values | sql_complexity
stringclasses 2
values | domain
stringclasses 1
value | sql_task_type
stringclasses 1
value | sql
stringclasses 3
values | sql_explanation
stringclasses 3
values | sql_task_type_description
stringclasses 1
value | domain_description
stringclasses 1
value |
---|---|---|---|---|---|---|---|---|---|
aggregation functions (COUNT, SUM, AVG, MIN, MAX, etc.), and HAVING clause | What are the top 5 suppliers by total value of parts supplied for aircraft manufacturing in 2020? | CREATE TABLE Suppliers (supplier_id INT, supplier_name VARCHAR(50), parts_supplied INT, total_value DECIMAL(10, 2), year INT); INSERT INTO Suppliers (supplier_id, supplier_name, parts_supplied, total_value, year) VALUES (1, 'Supplier-A', 500, 5000000, 2020), (2, 'Supplier-B', 300, 3500000, 2020), (3, 'Supplier-C', 800, 7000000, 2020), (4, 'Supplier-D', 250, 2200000, 2020); | aggregation | aerospace | analytics and reporting | SELECT supplier_name, SUM(total_value) as total_value_supplied FROM Suppliers WHERE year = 2020 GROUP BY supplier_name ORDER BY total_value_supplied DESC LIMIT 5; | Filters the Suppliers table based on year 2020, calculates the sum of total_value for each supplier_name, and returns the top 5 records. | generating reports, dashboards, and analytical insights | Aircraft manufacturing data, satellite deployment projects, flight safety records, and space exploration research. |
basic SQL with a simple select statement | Count the number of aircraft produced by company XYZ | CREATE TABLE aircraft (id INT, model VARCHAR(50), manufacturer VARCHAR(50), production_year INT); | basic SQL | aerospace | analytics and reporting | SELECT COUNT(*) FROM aircraft WHERE manufacturer = 'XYZ'; | This query counts the number of records in the aircraft table where the manufacturer is XYZ. | generating reports, dashboards, and analytical insights | Aircraft manufacturing data, satellite deployment projects, flight safety records, and space exploration research. |
aggregation functions (COUNT, SUM, AVG, MIN, MAX, etc.), and HAVING clause | What is the maximum number of passengers for each aircraft model? | CREATE TABLE aircraft_specs (id INT, model VARCHAR(50), max_passengers INT); INSERT INTO aircraft_specs (id, model, max_passengers) VALUES (1, 'Boeing 737', 215), (2, 'Airbus A320', 220), (3, 'Boeing 787', 335); | aggregation | aerospace | analytics and reporting | SELECT model, MAX(max_passengers) as max_passengers FROM aircraft_specs GROUP BY model; | This SQL query groups the aircraft_specs table by model and calculates the maximum number of passengers for each aircraft model. It returns the result. | generating reports, dashboards, and analytical insights | Aircraft manufacturing data, satellite deployment projects, flight safety records, and space exploration research. |
README.md exists but content is empty.
Use the Edit dataset card button to edit it.
- Downloads last month
- 20