Question: Is there a way to obtain current line number in executing Qt Script, using objects and functions in it?

Answer: 
```
select top 1 * from TableName order by [Date]

```

that way you will get all the relevant data
ANSI Standard. Simple. Works across all DBs ...

```
select * from YourTable
where [Date] = (select min([Date]) from YourTable)

```