Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-2098

Using query as subquery leads to NotMaterializedException

    XMLWordPrintable

    Details

      Description

      Running this query:

      SELECT
      ?person ?personLabel
      (CONCAT(?award1Label, " (", ?country1Label, ")") AS ?award1)
      (CONCAT(?award2Label, " (", ?country2Label, ")") AS ?award2)
      WHERE {
        {
          SELECT ?person ?personLabel ?award1Label ?country1Label ?award2Label ?country2Label WHERE {
            ?person wdt:P31 wd:Q5;
                    wdt:P166 ?award1, ?award2.
            FILTER(?award1 != ?award2).
            ?award1 wdt:P17 ?country1.
            ?award2 wdt:P17 ?country2.
            FILTER(?country1 != ?country2).
            SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
          }
          LIMIT 25
        }
      }
      

      Leads to NotMaterializedException. The inside query runs just fine by itself and produces 25 results.

        Attachments

          Activity

            People

            Assignee:
            michaelschmidt michaelschmidt
            Reporter:
            stasmalyshev stasmalyshev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: