Вопрос пользователя:
Ответ нейросети:
SELECT DISTINCT c.number
FROM Department d
JOIN Course c ON d.id = c.department_id
GROUP BY c.number
HAVING SUM(c.funding) > 100000;
SELECT g.name
FROM Group g
JOIN Student s ON g.id = s.group_id
GROUP BY g.name
HAVING AVG(s.rating) > (SELECT AVG(s2.rating) FROM Group g2 JOIN Student s2 ON g2.id = s2.group_id WHERE g2.name = 'D221');
SELECT p.last_name, p.first_name
FROM Professor p
WHERE p.rate > (SELECT AVG(p2.rate) FROM Professor p2);
SELECT g.name
FROM Group g
GROUP BY g.name
HAVING COUNT(g.teacher_id) > 1;
SELECT g.name
FROM Group g
JOIN Student s ON g.id = s.group_id
GROUP BY g.name
HAVING AVG(s.rating) < (SELECT MIN(s2.rating) FROM Group g2 JOIN Student s2 ON g2.id = s2.group_id WHERE g2.year = 5);
SELECT f.name
FROM Faculty f
JOIN Department d ON f.id = d.faculty_id
GROUP BY f.name
HAVING SUM(d.funding) > (SELECT SUM(d2.funding) FROM Faculty f2 JOIN Department d2 ON f2.id = d2.faculty_id WHERE f2.name = 'Computer Science');
SELECT d.name, CONCAT(p.first_name, ' ', p.last_name) AS full_name
FROM Discipline d
JOIN Lecture l ON d.id = l.discipline_id
JOIN Professor p ON l.professor_id = p.id
GROUP BY d.name, full_name
ORDER BY COUNT(*) DESC
LIMIT 1;
SELECT d.name
FROM Discipline d
JOIN Lecture l ON d.id = l.discipline_id
GROUP BY d.name
ORDER BY COUNT(*) ASC
LIMIT 1;
Обратите внимание: ответы, предоставляемые искусственным интеллектом, могут не всегда быть точными. Не рассчитывайте на них в критически важных областях, таких как медицина, юриспруденция, финансы или в вопросах, связанных с безопасностью. Для важных решений всегда обращайтесь к квалифицированным специалистам. Администрация сайта не несет ответственности за контент, сгенерированный автоматически.