Project:SPARQL/examples: Difference between revisions

Line 62: Line 62:
</sparql>
</sparql>


===People whose elections were proposed to SAL or RAI linked in a graph to those who proposed their nomination for election===
===People whose elections were proposed to SAL linked in a graph to those who signed their nomination for election===


<sparql tryit="1">
<sparql tryit="1">
PREFIX a: <http://beyond-notability.wiki.opencura.com/entity/>
PREFIX bnwd: <http://beyond-notability.wiki.opencura.com/entity/>
PREFIX b: <http://beyond-notability.wiki.opencura.com/prop/direct/>
PREFIX bnwds: <http://beyond-notability.wiki.opencura.com/entity/statement/>
PREFIX bnwdv: <http://beyond-notability.wiki.opencura.com/value/>
PREFIX bnwdt: <http://beyond-notability.wiki.opencura.com/prop/direct/>
PREFIX bnp: <http://beyond-notability.wiki.opencura.com/prop/>
PREFIX bnps: <http://beyond-notability.wiki.opencura.com/prop/statement/>
PREFIX bnpq: <http://beyond-notability.wiki.opencura.com/prop/qualifier/>


#defaultView:Graph
#defaultView:Graph
SELECT ?person ?personLabel ?elector ?electorLabel WHERE {
SELECT ?person ?personLabel ?SALsignatory ?SALsignatoryLabel WHERE {
    ?person b:P7|b:P16 ?elector .
  ?person bnp:P16 ?SALstatement .
  ?SALstatement bnps:P16 ?SALproposed .
  ?SALstatement bnpq:P32 ?SALsignatory .
     SERVICE wikibase:label {
     SERVICE wikibase:label {
       bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en-gb".
       bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en-gb".
6,317

edits