Write SQL query to solve given problem: List the courses' IDs and students' IDs who failed to pass the course.. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT course_id, student_id FROM registration WHERE grade IS NULL OR grade = ''