I am new to mysql . Please help me to solve the below requirement.

Table example :-

```
--------+-----------+-----------+--------+---------+
Id.     | fname | lname | qid1 | qid2 | 
--------+-----------+-----------+--------+---------+
1       | atul. |       |    0 |  0   |
--------+-----------+-----------+--------+---------+-

```

I want the answer as "3" of 1st id because 'lname' is blank and 'qid1', 'qid2' are 0.