And a GPR119 agonist activity, have a superior efficacy and useful for the prophylaxis or treatment of diabetes, obesity, etc., a compound represented by the following formula. 6-membered aromatic ring substituents, Q :( substitution) 6-membered aromatic ring A 1:: P CR 4a R 4b, NR 4c, O, S, SO, SO2 {R 4a-4c: H, etc.} L 1 :( replacement) C 1-5 alkylene, L 2: bonds, (substituted) C 1-3 alkylene, L 3-4 :( replacement) C 1-3 alkylene, R 1: H, X, CN, (substituted) hydrocarbons, (substituted) heterocyclic ring, or (substituted) OH together with 1 A (replacement) 4-8 members (complex) ring, R 2: H, CN, (replacement ) hydrocarbon, R 3a: -COSR A1, (substituted) 5-6 membered aromatic ring {R A1 :( substitution) hydrocarbons, (substituted) heterocyclic}GPR119アゴニスト作用を有し、糖尿病、肥満症等の予防・治療に有用であり、かつ優れた薬効を有する、下記式で表される化合物またはその塩。P:置換6員芳香環、Q:(置換)6員芳香環A1:CR4aR4b,NR4c,O,S,SO,SO2{R4a-4c:H等}L1:(置換)C1-5アルキレン、L2:結合,(置換)C1-3アルキレン、L3-4:(置換)C1-3アルキレン、R1:H,X,CN,(置換)炭化水素,(置換)複素環,(置換)OH又はA1と共に(置換)4-8員(複素)環、R2:H,CN,(置換)炭化水素、R3a:-COSRA1,(置換)5-6員芳香環{RA1:(置換)炭化水素,(置換)複素環}