This repository has been archived on 2026-03-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
TP-BDD2/xpath/ex2.xq
2022-03-29 17:16:02 +02:00

16 lines
528 B
Plaintext

(:
1:: //ACTEURS/acteur[@id = //FILMS/film[titre = "McVicar"]/cast/acteur/@id]/text()
2:: //FILMS/film[cast/acteur/@id = //ACTEURS/acteur[. ="Cheryl Campbell"]/@id]
3:: //ACTEURS/acteur[@sexe = "M" and @naissance =//ACTEURS/acteur[@sexe = "F"]/@naissance ]
4:: //FILMS/film[ count(cast/acteur[@id = //acteur[@sexe ="M"]/@id ]) > count(cast/acteur[@id = //acteur[@sexe ="F"]/@id ])]
5:: //FILMS/film[@annee - directeur/@naissance < 45]
6:: //FILMS/film[not (cast/acteur/@id = //ACTEURS/acteur[@naissance > 1949]/@id)]
:)