Ask for attribute and value of an element in xquery

Input source xml :

some value

XPATH = /T1/T2[@year=‘2006’]=‘some value’

How will be this query in xquery? I am interested on where clause.

for $a in input()/T1
where ----------
return { $a }

Don’t answer last question. Where clause is the same :

$a/T2[@year=‘2006’]=‘some value’