SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T1.document_name LIKE '%s%'
Give the ids of documents that have expenses and contain the letter s in their names.
SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id = T2.document_id WHERE T1.document_name LIKE ' % s % '
select t1 . document_id from documents as t1 join documents_with_expenses as t2 on t1 . document_id = t2 . document_id where t1 . document_name like value
Give the ids of documents that have expenses and contain the letter s in their names .