if i m reading the question correctly,
u want a function in terms of sop or pos form to produce above result,
in such cases kernaugh map is very hand try reading about it.
the solution of such problems is very easy with the use of kernaugh map.
or else you can identify the minterms for whic o/p is high (for sop)
and try using and logic to get the minterms in form of product of three variable such that o/p is high for the combination then join them by or function.
in case u are confused.
example
o/p is high when a b c read 1,2,4 and 7 (see table) in binary form.
since for one input shud be A'.B'.C (low inputs are complimented)
for 4 A.B'.C' etc add them all and simplify using boolean algebra
like op = a.b'.c' + a'.b'.c + ......
u wil get the req function.

You simply read off the terms by inspection.
For each row where the result is a one read the inputs from left to right saying not<variable> for a zero and <variable> for a one with AND as the connective. Then OR all of these terms together.

Four ones in the result column implies four terms connected with .OR.
Each term has three factors connected with .AND.
It is the same story for all the truth tables you will ever see, besides all the one you won't, no matter how many inputs there are.

oh its ok i just put this example on the forum so someone could show me the method of derriving a function. now i am trying to apply this method to real example. but it kinda gets complicated. can u just have a quick look at the question:
-------------------------------------------------------------------------
A certain committee has four officers; Chair, Deputy, Secretary and Treasurer, each of whom is provided with a voting 'button'; being a switch which gives:
'0' = "Against" or '1' = "For" a resolution.
The rules of Simple Majority Voting apply except that, in the event of a tie, the Chair's vote is "casting" (i.e. the vote, for or against, is that of the Chair).

A combinational logic circuit is required to accept the four switch values as its inputs and generate the overall Vote as a single output; V.
(You may assume that each voting switch gives true and complement outputs; i.e. C and C, D and D etc., are all available directly.)

4.1 Incorporate these voting rules into a Function Table and hence, derive an equation which expresses V in terms of C, D, S and T.

Step 1. Your table has 15 rows instead of 16
Step 2. Adjacent rows may imply a simpler expression. Example, the last two rows reveal that if C=D=S=1, then T is a don't care because the function is a 1 regardless of the value.
Step 3. It can be hard to see what is going on with XOR in a function of four variables. Stick to the AND/OR formulation until you gain some confidence. It is hard to make a mistake and the results are obvious by inspection.