Advertisement
Guest User

Consulta mujeres vivas

a guest
May 10th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SPARQL 0.43 KB | None | 0 0
  1.  
  2. SELECT (COUNT(?mujeres) AS ?nromujeres)
  3.        (COUNT(?hombres) AS ?nrohombres)
  4.        (100*?nromujeres/?nrohombres AS ?porcentaje)
  5. WHERE
  6. {
  7.   {
  8.     ?mujeres wdt:P21 wd:Q6581072 .       #encontrar mujeres
  9.     ?mujeres rdf:type wdno:P570 .   #sin fecha de fallecimiento declarada
  10.         }
  11.  UNION
  12.  {?hombres wdt:P21 wd:Q6581097 .       #Encontrar hombres
  13.     ?hombres rdf:type wdno:P570 .   #sin fecha de fallecimiento declarada
  14.   }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement