How can I make a SELECT inside an INSERT operation?
insert into tableX (a_id, b_id) VALUES ((SELECT service_id FROM tableY WHERE id = 10, 2))
Try:
insert into tableX (a_id, b_id) SELECT service_id, 4 as QUESTIONMARK FROM tableY WHERE id in (10, 2);
This works on many database engines however we don't know what environment you are working on.
EDIT: What is the second insert supposed to be?