guergana.tzatchkova added a comment.

  Example query for union of two conditions (OR):
  
    SELECT DISTINCT ?item ?P281 ?P17 WHERE {
       {
         BIND("10777" AS ?P281)
         ?item p:P281 ?statement0.
         ?statement0 (ps:P281) "10777".
       }
       UNION
       {
         ?item p:P17 ?statement1.
         ?statement1 (ps:P17) wd:Q147.
       }
       OPTIONAL { ?item (p:P281/ps:P281) ?P281 . }
       OPTIONAL { ?item (p:P17/ps:P17) ?P17 . }
     }
     LIMIT 4

TASK DETAIL
  https://phabricator.wikimedia.org/T277646

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: guergana.tzatchkova
Cc: Lucas_Werkmeister_WMDE, Aklapper, Lydia_Pintscher, Invadibot, maantietaja, 
Alter-paule, Beast1978, Un1tY, Akuckartz, Hook696, Kent7301, joker88john, 
CucyNoiD, Nandana, Gaboe420, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, 
Bsandipan, GoranSMilovanovic, QZanden, LawExplorer, Lewizho99, Maathavan, 
_jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to