question: Titles of all papers in dblp published until 1940, their authors with names, and the year of publication

sparql:
PREFIX dblp: <https://dblp.org/rdf/schema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?title ?author ?year WHERE {
  ?paper dblp:title ?title .
  ?paper dblp:authoredBy ?author_id .
  ?author_id rdfs:label ?author .
  ?paper dblp:yearOfPublication ?year .
  FILTER (?year <= "1940"^^xsd:gYear)
}
ORDER BY DESC(?year) ASC(?title)


question: All STOC 2018 papers, with each paper’s total number of authors, number of ORCID-certified authors, and the percentage of authors with ORCIDs

sparql:
PREFIX dblp: <https://dblp.org/rdf/schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?paper (COUNT(?signature) AS ?num_authors) (COUNT(?orcid) AS ?num_orcid) (ROUND(100 * ?num_orcid / ?num_authors) AS ?perc) WHERE {
  ?paper dblp:publishedInStream <https://dblp.org/streams/conf/stoc> .
  ?paper dblp:yearOfEvent "2018"^^xsd:gYear .
  ?paper dblp:hasSignature ?signature .
  OPTIONAL { ?signature dblp:signatureOrcid ?orcid }
}
GROUP BY ?paper
ORDER BY DESC(?perc)


question: All SIGIR authors with a Wikidata link to dblp, their names, their number of papers in SIGIR, and their birthplaces

sparql:
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX dblp: <https://dblp.org/rdf/schema#>
SELECT ?author_dblp ?author_name ?num_papers ?location WHERE {
  { SELECT ?author_dblp (COUNT(?paper) AS ?num_papers) WHERE {
      ?paper dblp:authoredBy ?author_dblp .
      ?paper dblp:publishedInStream <https://dblp.org/streams/conf/sigir> .
    } GROUP BY ?author_dblp }
  ?author_dblp dblp:primaryCreatorName ?author_name .
  ?author_dblp dblp:wikidata ?person_wd .
  SERVICE <https://query.wikidata.org/sparql> {
    ?person_wd wdt:P19 ?place_of_birth .
    ?place_of_birth wdt:P625 ?location .
  }
}
ORDER BY DESC(?num_papers)


question: All publications of Donald E. Knuth with label and number of citations, most cited first

sparql:
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX cito: <http://purl.org/spar/cito/>
PREFIX dblp: <https://dblp.org/rdf/schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?publ (COUNT(?cite) AS ?count_cite) (SAMPLE(?label) AS ?sample_label) WHERE {
  ?publ rdf:type dblp:Publication .
  ?publ dblp:authoredBy ?author .
  ?publ rdfs:label ?label .
  ?author dblp:creatorName "Donald E. Knuth" .
  ?publ dblp:omid ?omid .
  ?cite cito:hasCitedEntity ?omid .
}
GROUP BY ?publ
ORDER BY DESC(?count_cite)


question: Count and percentage frequency of the main dblp type entities

sparql:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dblp: <https://dblp.org/rdf/schema#>
PREFIX datacite: <http://purl.org/spar/datacite/>
SELECT ?type ?count (?count/?total * 100 AS ?percentage) WHERE {
  { SELECT ?type (COUNT(?s) AS ?count) WHERE {
      VALUES ?type { dblp:Publication dblp:Creator dblp:Signature dblp:VersionRelation datacite:Identifier dblp:Stream } .
      ?s rdf:type ?type .
    }
    GROUP BY ?type
  }
  { SELECT (COUNT(?s) AS ?total) WHERE {
      VALUES ?type { dblp:Publication dblp:Creator dblp:Signature dblp:VersionRelation datacite:Identifier dblp:Stream } .
      ?s rdf:type ?type .
    }
  }
}
ORDER BY DESC(?count)


question: Count and percentage frequency of the publication subtype entities

sparql:
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dblp: <https://dblp.org/rdf/schema#>
SELECT ?type ?count (?count/?total * 100 AS ?percentage) WHERE {
  { SELECT ?type (COUNT(?s) AS ?count) WHERE {
      ?type rdfs:subClassOf dblp:Publication .
      ?s rdf:type ?type .
    }
    GROUP BY ?type
  }
  { SELECT (COUNT(?s) AS ?total) WHERE {
      ?type rdfs:subClassOf dblp:Publication .
      ?s rdf:type ?type .
    }
  }
}
ORDER BY DESC(?count)


question: Count and percentage frequency of the creator subtype entities

sparql:
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dblp: <https://dblp.org/rdf/schema#>
SELECT ?type ?count (?count/?total * 100 AS ?percentage) WHERE {
  { SELECT ?type (COUNT(?s) AS ?count) WHERE {
      ?type rdfs:subClassOf dblp:Creator .
      ?s rdf:type ?type .
    }
    GROUP BY ?type
  }
  { SELECT (COUNT(?s) AS ?total) WHERE {
      ?type rdfs:subClassOf dblp:Creator .
      ?s rdf:type ?type .
    }
  }
}
ORDER BY DESC(?count)


question: Count and percentage frequency of the stream subtype entities

sparql:
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dblp: <https://dblp.org/rdf/schema#>
SELECT ?type ?count (?count/?total * 100 AS ?percentage) WHERE {
  { SELECT ?type (COUNT(?s) AS ?count) WHERE {
      ?type rdfs:subClassOf dblp:Stream .
      ?s rdf:type ?type .
    }
    GROUP BY ?type
  }
  { SELECT (COUNT(?s) AS ?total) WHERE {
      ?type rdfs:subClassOf dblp:Stream .
      ?s rdf:type ?type .
    }
  }
}
ORDER BY DESC(?count)


question: Count and percentage frequency of the external identifier entities by type

sparql:
PREFIX datacite: <http://purl.org/spar/datacite/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?scheme ?count (?count/?total * 100 AS ?percentage) WHERE {
  { SELECT ?scheme (COUNT(?s) AS ?count) WHERE {
      ?s rdf:type datacite:Identifier .
      ?s datacite:usesIdentifierScheme ?scheme .
      FILTER(
        ?scheme NOT IN (datacite:dblp, datacite:dblp-stream, datacite:dblp-record)
      )
    }
    GROUP BY ?scheme
  }
  { SELECT (COUNT(?s) AS ?total) WHERE {
      ?s rdf:type datacite:Identifier .
      ?s datacite:usesIdentifierScheme ?scheme .
      FILTER(
        ?scheme NOT IN (datacite:dblp, datacite:dblp-stream, datacite:dblp-record)
      )
    }
  }
}
ORDER BY DESC(?count)


question: All papers published in SIGIR with title and publication year

sparql:
PREFIX dblp: <https://dblp.org/rdf/schema#>
SELECT ?paper ?title ?year WHERE {
  ?paper dblp:title ?title .
  ?paper dblp:publishedInStream <https://dblp.org/streams/conf/sigir> .
  ?paper dblp:yearOfPublication ?year .
}
ORDER BY DESC(?year)


question: Number of papers by stream

sparql:
PREFIX dblp: <https://dblp.org/rdf/schema#>
SELECT ?venue (COUNT(?paper) AS ?count) WHERE {
  ?paper dblp:publishedInStream ?venue .
}
GROUP BY ?venue
ORDER BY DESC(?count)


question: All papers in dblp until 1940 with title, author name, and year of publication

sparql:
PREFIX dblp: <https://dblp.org/rdf/schema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?paper ?title ?author ?year WHERE {
  ?paper dblp:title ?title .
  ?paper dblp:authoredBy ?author_id .
  ?author_id rdfs:label ?author .
  ?paper dblp:yearOfPublication ?year .
  FILTER (?year <= "1940"^^xsd:gYear)
}
ORDER BY ASC(?year) ASC(?title)


question: All papers with their title

sparql:
PREFIX dblp: <https://dblp.org/rdf/schema#>
SELECT ?paper ?title WHERE {
  ?paper dblp:title ?title .
}


question: All predicates ordered by size

sparql:
SELECT ?predicate (COUNT(*) AS ?count) WHERE {
  ?s ?predicate ?o .
}
GROUP BY ?predicate
ORDER BY DESC(?count)