Question: Businesses operating in the industrial sector

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?business ?businessLabel WHERE {
  ?business wdt:P31 wd:Q4830453 .
  ?business wdt:P101 wd:Q8148 .
  ?business rdfs:label ?businessLabel .
  FILTER(LANG(?businessLabel) = "en")
}

Which businesses are in the industrial sector?

List the names of companies that are classified as businesses and operate in the industrial sector.

SELECT ?var1 ?var2 ?var2Label WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4830453> . ?var2 <http://www.wikidata.org/prop/direct/P101> <http://www.wikidata.org/entity/Q8148> . }


Question: Which entities on Wikidata have the Twitter usernames "wikidata", "Wikipedia", "GallicaBnF", or "Remy_WMFr"?

SELECT ?entity ?username WHERE { ?entity wdt:P2002 ?username . VALUES ?username { "wikidata" "Wikipedia" "GallicaBnF" "Remy_WMFr" } } ORDER BY ?username

Show me the Wikidata items that are associated with these Twitter handles: wikidata, Wikipedia, GallicaBnF, and Remy_WMFr.

What are the Wikidata entities linked to the Twitter accounts @wikidata, @Wikipedia, @GallicaBnF, and @Remy_WMFr?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "Pyb75" ) ( "string2" ) ( "string3" ) ( "ArthurCrbz" ) ( "Wikimedia" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "FCahen" ) ( "GallicaBnF" ) ( "Remy_WMFr" ) ( "LimsiLab" ) ( "unistra" ) ( "WLM_Fr" ) ( "aquinum" ) ( "bxnode" ) ( "string10" ) ( "string11" ) ( "hervelc" ) ( "guldorac" ) ( "Wikipedia" ) ( "string12" ) ( "wikidata" ) } } ORDER BY ASC( ?var3 )


Question: What is the image, Wikimedia Commons category, and address of St. Gallen, Switzerland?

SELECT ?item ?itemLabel ?location ?image ?commonsCategory ?address WHERE { VALUES ?item { wd:Q25607 } ?item wdt:P625 ?location . OPTIONAL { ?item wdt:P18 ?image . } OPTIONAL { ?item wdt:P373 ?commonsCategory . } OPTIONAL { ?item wdt:P969 ?address . } ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

Can you show me the picture and Commons category for the city of St. Gallen, and its street address if available?

Tell me about St. Gallen: what does it look like (image), what’s its Commons category, and where is it located (address)?

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerSouthWest> "POINT(9 46)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(9 46)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P969> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var1 <http://schema.org/description> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } LIMIT 3000


Question: Which Wikidata items have Twitter handles CDEssonne, valdoise, DevedjianP, durovray, or lemondefr?

SELECT ?item ?twitterHandle WHERE { ?item wdt:P2002 ?twitterHandle . VALUES ?twitterHandle { "CDEssonne" "valdoise" "DevedjianP" "durovray" "lemondefr" } } ORDER BY DESC(wikibase:sitelinks)

What are the entities on Wikidata associated with the Twitter accounts @CDEssonne, @valdoise, @DevedjianP, @durovray, and @lemondefr?

Show me the Wikidata items for these French Twitter accounts — CDEssonne, valdoise, DevedjianP, durovray, and lemondefr — sorted by how popular they are on Wikipedia.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "CDEssonne" ) ( "valdoise" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "DevedjianP" ) ( "durovray" ) ( "string13" ) ( "lemondefr" ) ( "string14" ) ( "string15" ) ( "string16" ) ( "string17" ) } } ORDER BY ASC( ?var3 )


Question: Which Wikidata entity has the Twitter username "Prefet78"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?username ?itemLabel WHERE {
  ?item wdt:P2002 ?username .
  VALUES ?username {
    "Prefet78"
  }
  .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}

Who is the entity on Wikidata that uses the Twitter handle Prefet78?

Show me the English label of the Wikidata item that has the Twitter username Prefet78.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "Prefet78" ) ( "string2" ) ( "BusTVO" ) ( "string3" ) } } ORDER BY ASC( ?var3 )


Question: List all Poets Laureate of the United Kingdom with their start and end dates, appointers, birth and death years, and images.

SELECT ?personLabel ?image ?birthYear ?deathYear ?startDate ?endDate ?appointerLabel WHERE { ?person p:P39 ?statement . ?statement ps:P39 wd:Q877838 ; pq:P580 ?startDate ; pq:P748 ?appointer . OPTIONAL { ?statement pq:P582 ?endDate . } OPTIONAL { ?person wdt:P18 ?image ; wdt:P569 ?birthDate ; wdt:P570 ?deathDate . BIND(YEAR(?birthDate) AS ?birthYear) BIND(YEAR(?deathDate) AS ?deathYear) } OPTIONAL { ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } OPTIONAL { ?appointer rdfs:label ?appointerLabel . FILTER(LANG(?appointerLabel) = "en") } } ORDER BY ASC(?startDate) DESC(?appointerLabel)

Who were the Poets Laureate of the United Kingdom, when did they serve, who appointed them, and what are their birth and death years?

Show me the complete list of UK Poets Laureate, sorted by start date and then by appointer name, including their portraits, lifespans, and who appointed them.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7Label WHERE { ?var1 <http://www.wikidata.org/prop/P39> ?var8 . ?var8 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q877838> ; <http://www.wikidata.org/prop/qualifier/P580> ?var5 ; <http://www.wikidata.org/prop/qualifier/P748> ?var7 . OPTIONAL { ?var8 <http://www.wikidata.org/prop/qualifier/P582> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 ; <http://www.wikidata.org/prop/direct/P569> ?var9 ; <http://www.wikidata.org/prop/direct/P570> ?var10 . } BIND ( YEAR ( ?var9 ) AS ?var3 ). BIND ( YEAR ( ?var10 ) AS ?var4 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } } ORDER BY ASC( ?var5 ) DESC( ?var7Label )


Question: Which Wikidata items have the English label 'Something' and are linked to the English Wikipedia?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?item ?itemLabel WHERE {
  ?item rdfs:label ?itemLabel .
  FILTER ( ?itemLabel = "Something" @en ) .
  ?wikipedia schema:about ?item ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> .
}

What are the English Wikipedia articles about items labeled 'Something' in Wikidata?

Show me the items in Wikidata that are called 'Something' in English and have a corresponding page on English Wikipedia.

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { ?var1 ?var3Label "Something"@en . ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/inLanguage> "en". ?var4 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } }


Question: Genera in the sponge family Ancorinidae

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?genus ?genusLabel WHERE {
  ?genus wdt:P105 wd:Q34740 .
  ?genus wdt:P171 wd:Q3517595 .
  ?genus rdfs:label ?genusLabel .
  FILTER(LANG(?genusLabel) = "en")
}

Which genera belong to the sponge family Ancorinidae?

List the English names of all genera that are classified under the family Ancorinidae in the taxonomic hierarchy.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P105> <http://www.wikidata.org/entity/Q34740> . ?var1 <http://www.wikidata.org/prop/direct/P171> <http://www.wikidata.org/entity/Q3517595> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Genera in the family Verticillitidae

SELECT ?genus ?genusLabel WHERE { ?genus wdt:P105 wd:Q34740 . ?genus wdt:P171 wd:Q4010281 . ?genus rdfs:label ?genusLabel . FILTER(LANG(?genusLabel) = "en") }

What genera belong to the sponge family Verticillitidae?

List all genera that have Verticillitidae as their parent taxon.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P105> <http://www.wikidata.org/entity/Q34740> . ?var1 <http://www.wikidata.org/prop/direct/P171> <http://www.wikidata.org/entity/Q4010281> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Genes in Clostridium tetani with Entrez ID, locus tag, and genomic coordinates between 72256 and 202742, including strand orientation.

SELECT ?genomicStart ?genomicEnd ?entrezId ?isForward ?locusTag ?label WHERE { ?gene wdt:P31 wd:Q7187 ; wdt:P703 ?taxon ; wdt:P351 ?entrezId ; wdt:P2393 ?locusTag ; wdt:P644 ?genomicStart ; wdt:P645 ?genomicEnd ; wdt:P2548 ?strand ; rdfs:label ?label . ?taxon wdt:P685 "471472" . FILTER ( xsd:integer(?genomicStart) <= 202742 && xsd:integer(?genomicEnd) >= 72256 ) BIND( IF( ?strand = wd:Q22809680, "1", "-1" ) AS ?isForward ) FILTER ( lang(?label) = "en" ) }

What are the genes in Clostridium tetani that overlap the genomic region from 72256 to 202742, and are they on the forward or reverse strand?

List the English-labeled genes from Clostridium tetani that have genomic start ≤ 202742 and end ≥ 72256, along with their NCBI locus tags, Entrez IDs, and strand orientation (forward = 1, reverse = -1).

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 WHERE { BIND ( IF ( ( ?var9 = <http://www.wikidata.org/entity/Q22809680> ), "1", "-1" ) AS ?var4 ). BIND ( STR ( ?var10 ) AS ?var5 ). ?var10 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q7187> ; <http://www.wikidata.org/prop/direct/P703> ?var11 ; <http://www.wikidata.org/prop/direct/P351> ?var3 ; <http://www.wikidata.org/prop/direct/P351> ?var6 ; <http://www.wikidata.org/prop/direct/P2393> ?var7 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var8 ; <http://www.wikidata.org/prop/direct/P644> ?var1 ; <http://www.wikidata.org/prop/direct/P645> ?var2 ; <http://www.wikidata.org/prop/direct/P2548> ?var9 . ?var11 <http://www.wikidata.org/prop/direct/P685> "471472". FILTER ( ( !(( <http://www.w3.org/2001/XMLSchema#integer> ( ?var1 ) > "202742"^^<http://www.w3.org/2001/XMLSchema#integer> ) || ( <http://www.w3.org/2001/XMLSchema#integer> ( ?var2 ) < "72256"^^<http://www.w3.org/2001/XMLSchema#integer> )) ) ) . }


Question: Who is the grandmother of Anders Blad, and who is her child (i.e., Anders Blad’s parent)?

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?grandmother ?parent WHERE {
  ?grandmother p:P21 ?genderStatement .
  ?genderStatement ps:P21 wd:Q6581072 .
  ?grandmother p:P40 ?parentStatement .
  ?parentStatement ps:P40 ?parent .
  ?parent p:P40 ?childStatement .
  ?childStatement ps:P40 wd:Q16503008 .
}
LIMIT 101

Find all female individuals who are grandmothers of the numismatist Anders Blad, along with their children.

Which woman has a child who is the parent of Anders Blad?

SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/P21> ?var3 . ?var3 <http://www.wikidata.org/prop/statement/P21> <http://www.wikidata.org/entity/Q6581072> . ?var1 <http://www.wikidata.org/prop/P40> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P40> ?var2 . ?var2 <http://www.wikidata.org/prop/P40> ?var5 . ?var5 <http://www.wikidata.org/prop/statement/P40> <http://www.wikidata.org/entity/Q16503008> . } LIMIT 101


Question: Scholarly articles authored by Lee E. Goldstein, including co-authors, publication venues, and earliest publication dates.

SELECT
  (MIN(?pubDate) AS ?earliestPubDate)
  ?work
  ?workLabel
  (GROUP_CONCAT(DISTINCT ?typeLabel; SEPARATOR=", ") AS ?types)
  (SAMPLE(?pages) AS ?numberOfPages)
  ?venue
  ?venueLabel
  (GROUP_CONCAT(DISTINCT ?authorLabel; SEPARATOR=", ") AS ?allAuthors)
WHERE {
  ?work wdt:P50 wd:Q37376935 .  # Works authored by Lee E. Goldstein

  # Get all authors of the work
  ?work wdt:P50 ?author .
  OPTIONAL { ?author rdfs:label ?authorLabel . FILTER(LANG(?authorLabel) = "en") }

  # Get type of work
  OPTIONAL { ?work wdt:P31 ?type . ?type rdfs:label ?typeLabel . FILTER(LANG(?typeLabel) = "en") }

  # Get publication date
  OPTIONAL { ?work wdt:P577 ?pubDate }

  # Get number of pages
  OPTIONAL { ?work wdt:P1104 ?pages }

  # Get publication venue
  OPTIONAL { ?work wdt:P1433 ?venue . ?venue rdfs:label ?venueLabel . FILTER(LANG(?venueLabel) = "en") }

}
GROUP BY ?work ?workLabel ?venue ?venueLabel
ORDER BY DESC(?earliestPubDate)

What are all the scholarly works written by Lee E. Goldstein, who are his co-authors on each, and when and where were they published?

List all research papers authored by Lee E. Goldstein, showing each paper’s title, all authors, publication venue, type, number of pages, and the earliest publication date.

SELECT( MIN ( ?var1 ) AS ?var2 ) ?var3 ?var3Label ( GROUP_CONCAT ( DISTINCT ?var4Label ; SEPARATOR = ", " ) AS ?var5 )( SAMPLE ( ?var6 ) AS ?var7 ) ?var8 ?var8Label ( GROUP_CONCAT ( DISTINCT ?var9Label ; SEPARATOR = ", " ) AS ?var10 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q37376935> . ?var3 <http://www.wikidata.org/prop/direct/P50> ?var11 . OPTIONAL { ?var11 <http://www.w3.org/2000/01/rdf-schema#label> ?var12 . FILTER ( ( ( LANG ( ?var12 ) = "en" ) ) ) . } BIND ( COALESCE ( ?var12 , SUBSTR ( STR ( ?var11 ) ,"32"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var9Label ). OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P31> ?var4 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . } OPTIONAL { BIND ( <http://www.w3.org/2001/XMLSchema#date> ( ?var13 ) AS ?var1 ). ?var3 <http://www.wikidata.org/prop/direct/P577> ?var13 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P1104> ?var6 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P1433> ?var8 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,da,de,es,fr,jp,no,ru,sv,zh". } } GROUP BY ?var3 ?var3Label ?var8 ?var8Label ORDER BY DESC( ?var2 )


Question: What organization is Lee E. Goldstein affiliated with, and is there an image of it?

SELECT ?image ?organization ?organizationLabel ?start ?end ?degreeLabel WHERE {
  {
    wd:Q37376935 p:P1416 ?statement .
    ?statement ps:P1416 ?organization .
  } UNION {
    wd:Q37376935 p:P108 ?statement .
    ?statement ps:P108 ?organization .
  }

  ?organization rdfs:label ?organizationLabel .
  FILTER(LANG(?organizationLabel) = "en")

  OPTIONAL {
    ?organization wdt:P18 ?image .
  }

  OPTIONAL {
    ?statement pq:P580 ?start .
  }

  OPTIONAL {
    ?statement pq:P582 ?end .
  }

  OPTIONAL {
    ?statement pq:P512 ?degree .
    ?degree rdfs:label ?degreeLabel .
    FILTER(LANG(?degreeLabel) = "en")
  }
}

Where did Lee E. Goldstein work or affiliate with, when did it start and end, and what degrees are associated with that role?

Show the image and name of the institution Lee E. Goldstein is associated with, along with any employment dates or academic qualifications linked to that association.

SELECT ?var1 ?var2 ?var3Label ?var4 ?var5 ?var6Label WHERE { { <http://www.wikidata.org/entity/Q37376935> <http://www.wikidata.org/prop/P1416> ?var7 . } UNION { <http://www.wikidata.org/entity/Q37376935> <http://www.wikidata.org/prop/P108> ?var7 . } { ?var7 <http://www.wikidata.org/prop/statement/P1416> ?var2 . } UNION { ?var7 <http://www.wikidata.org/prop/statement/P108> ?var2 . } ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P580> ?var4 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P582> ?var5 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P512> ?var8 . ?var8 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . FILTER ( ( ( LANG ( ?var6Label ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr,de,ru,es,zh,jp". } }


Question: Albums by artist with release date

SELECT ?artist ?artistLabel ?album ?albumLabel ?releaseDate WHERE { ?album wdt:P31 wd:Q482994 . ?album wdt:P175 ?artist . ?album wdt:P577 ?releaseDate . ?artist rdfs:label ?artistLabel . ?album rdfs:label ?albumLabel . FILTER(LANG(?artistLabel) = "en") FILTER(LANG(?albumLabel) = "en") } LIMIT 10

Which artists have released albums, and when were those albums released?

List albums along with their performing artists and release dates.

SELECT ?var1 ?var2 ( SAMPLE ( ?var3 ) AS ?var4 ) WHERE { { SELECT DISTINCT ?var1 ?var2 WHERE { ?var2 <http://www.wikidata.org/prop/statement/P527> <http://www.wikidata.org/entity/Q482994> . ?var1 <http://www.wikidata.org/prop/P527> ?var2 . } LIMIT 101 } OPTIONAL { ?var2 ?var3 ?var5 . ?var6 <http://wikiba.se/ontology#qualifier> ?var3 . } } GROUP BY ?var1 ?var2


Question: Recent papers citing research from Harvard Medical School authors

SELECT DISTINCT ?pubDate ?citingWork ?citingWorkLabel ?citedWork ?citedWorkLabel WHERE { { ?author wdt:P108 wd:Q49121 . } UNION { ?author (wdt:P1416 / wdt:P361*) wd:Q49121 . } ?author wdt:P31 wd:Q5 . ?citedWork wdt:P50 ?author . ?citingWork wdt:P2860 ?citedWork . ?citingWork wdt:P577 ?pubDate . ?citingWork wdt:P1476 ?citingWorkLabel . ?citedWork wdt:P1476 ?citedWorkLabel . FILTER (BOUND(?pubDate) && isLiteral(?pubDate)) } ORDER BY DESC(?pubDate) LIMIT 100

What are the most recent scientific publications that cite work by researchers affiliated with Harvard Medical School?

Show me the latest papers that reference studies authored by scientists at Harvard Medical School, along with the original papers they cite.

SELECT DISTINCT ?var1 ?var2 ?var2Label ?var3 ?var3Label WHERE { { ?var4 <http://www.wikidata.org/prop/direct/P108> <http://www.wikidata.org/entity/Q49121> . } UNION { ?var4 ( <http://www.wikidata.org/prop/direct/P1416> / <http://www.wikidata.org/prop/direct/P361> *) <http://www.wikidata.org/entity/Q49121> . } BIND ( <http://www.w3.org/2001/XMLSchema#date> ( ?var5 ) AS ?var1 ). ?var3 <http://www.wikidata.org/prop/direct/P50> ?var4 . ?var2 <http://www.wikidata.org/prop/direct/P2860> ?var3 . ?var2 <http://www.wikidata.org/prop/direct/P577> ?var5 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,da,de,es,fr,jp,nl,nl,ru,sv,zh". } } ORDER BY DESC( ?var1 )


Question: Film with Megogo ID 6784

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?film WHERE {
  ?film wdt:P2826 "6784" .
}

Which film is identified by the Megogo ID 6784?

Tell me the film that has the Megogo ID 6784.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2826> "6784". }


Question: What properties (in German) are used to describe Adidas AG in Wikidata?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?propItem ?propItemLabel ?propItemDescription WHERE {
  wd:Q3895 ?prop ?value .
  FILTER(STRSTARTS(STR(?prop) , "http://www.wikidata.org/prop/direct/"))
  .
  BIND(IRI(REPLACE(STR(?prop) , "http://www.wikidata.org/prop/direct/" , "http://www.wikidata.org/entity/")) AS ?propItem)
  .
  ?propItem a wikibase:Property .
  ?propItem rdfs:label ?propItemLabel .
  ?propItem schema:description ?propItemDescription .
  FILTER(LANG(?propItemLabel) = "de")
  .
  FILTER(LANG(?propItemDescription) = "de")
}
LIMIT 100

Can you list the German labels and descriptions of properties that are directly used in statements about the company Adidas?

Show me the German-language labels and descriptions of all properties that link data to Adidas AG.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q3895> . ?var1 ?var6 ?var5 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "de" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "de" ) ) ) . } LIMIT 100


Question: What is the image of the person with SNAC ARK ID "w6pk1nbm"?

SELECT ?image WHERE { ?item wdt:P3430 "w6pk1nbm" . OPTIONAL { ?item wdt:P18 ?image . } }

Can you show me the Wikimedia Commons image associated with Sarah Brightman’s SNAC identifier?

Retrieve the image file from Wikimedia Commons for the individual identified by the SNAC ARK ID w6pk1nbm.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w6pk1nbm". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: Which gene has the NCBI Gene ID 205918?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?gene WHERE {
  ?gene wdt:P685 "205918" .
}

What is the Wikidata entity for the gene with NCBI Gene ID 205918?

Find the gene in Wikidata that is identified by the NCBI Gene ID 205918.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 WHERE { ?var10 <http://www.wikidata.org/prop/direct/P685> "205918". }


Question: Is the professional wrestler Tigers Mask classified as a human mitochondrial DNA haplogroup?

Does the entity "Tigers Mask" belong to the category of human mitochondrial DNA haplogroups through inheritance?

Can a human professional wrestler be considered a mitochondrial DNA haplogroup?

ASK WHERE { <http://www.wikidata.org/entity/Q4115142> ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q1356230> . <http://www.bigdata.com/queryHints#Prior> <http://www.bigdata.com/queryHints#gearing> "forwards". }


Question: What rides are linked to Rocky Mountain Construction, and what properties are used to connect them (e.g., manufacturer or designer), along with any qualifiers like start time?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?ride ?statement ?property ( SAMPLE( ?qualifierProperty ) AS ?qualifier ) WHERE {
  {
    ?ride wdt:P176 wd:Q3662070 .
    ?ride p:P176 ?statement .
    ?statement ps:P176 wd:Q3662070 .
    BIND( wd:P176 AS ?property )
  } UNION {
    ?ride wdt:P61 wd:Q3662070 .
    ?ride p:P61 ?statement .
    ?statement ps:P61 wd:Q3662070 .
    BIND( wd:P61 AS ?property )
  } UNION {
    ?ride wdt:P301 wd:Q3662070 .
    ?ride p:P301 ?statement .
    ?statement ps:P301 wd:Q3662070 .
    BIND( wd:P301 AS ?property )
  } UNION {
    ?ride wdt:P971 wd:Q3662070 .
    ?ride p:P971 ?statement .
    ?statement ps:P971 wd:Q3662070 .
    BIND( wd:P971 AS ?property )
  }
  OPTIONAL {
    ?statement ?qualifierProperty ?qualifierValue .
    ?property wikibase:qualifier ?qualifierProperty .
  }
}
GROUP BY ?ride ?statement ?property

List all roller coasters associated with Rocky Mountain Construction as manufacturer, designer, or category, and show if any of those associations have additional details like installation date.

Which attractions are built or categorized by Rocky Mountain Construction, and what kind of relationships (e.g., manufacturer, designer) connect them — including any qualifiers such as start time?

SELECT ?var1 ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var5 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var2 ?var6 <http://www.wikidata.org/entity/Q3662070> . ?var1 ?var7 ?var2 . ?var3 <http://wikiba.se/ontology#statementProperty> ?var6 . ?var3 <http://wikiba.se/ontology#claim> ?var7 . FILTER ( ( ( ?var3 != <http://www.wikidata.org/entity/P31> ) ) ) . } LIMIT 101 } OPTIONAL { ?var2 ?var4 ?var8 . ?var9 <http://wikiba.se/ontology#qualifier> ?var4 . } } GROUP BY ?var1 ?var2 ?var3


Question: Materials used in manuscripts (excluding Matenadaran and retired collections), with count of manuscripts per material.

SELECT ?material ( COUNT( DISTINCT ?manuscript ) AS ?count ) WHERE { ?manuscript ( wdt:P31 / wdt:P279* ) wd:Q87167 . ?manuscript p:P195 ?collection_statement . ?collection_statement ps:P195 ?collection . MINUS { ?collection_statement pq:P582 [] . } MINUS { ?collection_statement ps:P195 wd:Q1322278 . } ?manuscript wdt:P186 ?material . } GROUP BY ?material

How many manuscripts are made from each material, excluding those from the Matenadaran collection or those no longer in a collection?

List the materials used in manuscripts (excluding Matenadaran and those no longer in collections), along with how many manuscripts use each material.

SELECT ?var1 ?var2 ?var3 ( COUNT ( DISTINCT ?var4 ) AS ?var5 ) WHERE { ?var4 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q87167> . ?var4 <http://www.wikidata.org/prop/P195> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P195> ?var7 . MINUS { ?var6 <http://www.wikidata.org/prop/qualifier/P582> [] . } MINUS { ?var6 <http://www.wikidata.org/prop/statement/P195> <http://www.wikidata.org/entity/Q1322278> . } ?var4 <http://www.wikidata.org/prop/direct/P186> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . } } GROUP BY ?var1 ?var2 ?var3


Question: Which Wikidata items have Twitter handles "nantesfr", "VilleReze", or "Inrap"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitter WHERE {
  ?item wdt:P2002 ?twitter .
  VALUES ?twitter {
    "nantesfr" "VilleReze" "Inrap"
  }
}

What entities on Wikidata are associated with the Twitter usernames "nantesfr", "VilleReze", and "Inrap"?

List the Wikidata items that use "nantesfr", "VilleReze", or "Inrap" as their Twitter usernames.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "Mln_bd" ) ( "string2" ) ( "VilleReze" ) ( "string3" ) ( "gisacum" ) ( "string4" ) ( "string5" ) ( "AmzNantes" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "Tourisme44" ) ( "Nanteshype" ) ( "string11" ) ( "string12" ) ( "nantesfr" ) ( "string13" ) ( "string14" ) ( "string15" ) ( "string16" ) ( "tntnantes" ) ( "string17" ) ( "string18" ) ( "string19" ) ( "string20" ) ( "string21" ) ( "string22" ) ( "string23" ) ( "string24" ) ( "string25" ) ( "Inrap" ) ( "string26" ) ( "string27" ) ( "string28" ) ( "string29" ) ( "string30" ) ( "string31" ) } } ORDER BY ASC( ?var3 )


Question: What property is most commonly used to link other devices to the Samsung Galaxy A5 (2015)?

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?property(COUNT(?property) AS ?count) WHERE {
  ?subject ?statementProperty wd:Q18535197 .
  ?property wikibase:directClaim ?statementProperty .
  ?property rdf:type wikibase:Property .
}
GROUP BY ?property
ORDER BY DESC(?count)
LIMIT 1

Which Wikidata property is most frequently used to indicate a relationship where the Samsung Galaxy A5 (2015) is the object?

Show me the most common type of relationship that has the Samsung Galaxy A5 (2015) as its target.

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/Q18535197> . ?var1 <http://wikiba.se/ontology#directClaim> ?var4 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 10000 } } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 1


Question: Places in Monaco without geographic coordinates.

SELECT ?place WHERE { ?place wdt:P131* wd:Q235 . MINUS { ?place wdt:P625 [] . } }

Which places in Monaco do not have assigned coordinates?

List all locations in Monaco that are not geolocated.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P131> * <http://www.wikidata.org/entity/Q235> . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P625> [] . } }


Question: What are all the unique Guardian topic identifiers linked to Wikidata items?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?guardianTopicId WHERE {
  ?item wdt:P3106 ?guardianTopicId .
}

Which Guardian article topics or sections are represented in Wikidata through topic IDs?

Can you list all the topic paths used by The Guardian that are associated with items on Wikidata?

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3106> ?var1 . } GROUP BY ?var1


Question: Show Wikipedia articles categorized under music-related topics where the topic does not list the article as its main subject.

SELECT DISTINCT ?topic ?topicLabel ?article ?articleLabel WHERE { ?article wdt:P910 ?topic ; rdfs:label ?articleLabel . ?topic rdfs:label ?topicLabel . FILTER (LANG(?topicLabel) = "en") FILTER (LANG(?articleLabel) = "en") FILTER NOT EXISTS { ?topic wdt:P301 ?article . } FILTER (CONTAINS(LCASE(?topicLabel), "music")) } ORDER BY ASC(?topicLabel) LIMIT 500

Which Wikipedia articles are listed in music categories but are not the main topic of those categories?

List all English-language Wikipedia articles that belong to music-themed categories, excluding those where the category has the article as its primary topic.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var2 <http://www.wikidata.org/prop/direct/P910> ?var1 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P301> ?var2 . } ) ) . FILTER ( ( CONTAINS ( ?var4Label , ?var5 ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1Label ) LIMIT 500


Question: Which Wikidata properties are marked as transitive?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?property ?propertyLabel WHERE {
  ?property wdt:P31 wd:Q18647515 .
  ?property rdfs:label ?propertyLabel .
  FILTER ( LANG( ?propertyLabel ) = "en" )
}
LIMIT 30

What are the English-labeled properties in Wikidata that have the transitive property type?

List all transitive properties in Wikidata along with their English labels.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q18647515> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } LIMIT 30


Question: Which Wikidata items have Twitter usernames including NatGeo, ZachWeiner, EricFassin, or leCMN?

SELECT ?item ?twitterHandle WHERE { ?item wdt:P2002 ?twitterHandle . VALUES ?twitterHandle { "NatGeo" "ZachWeiner" "EricFassin" "leCMN" "kewgardens" "BernatRuiz" "ActuaLitte" "cocoboer" "sanseveria" "Ludovic_P_" "marinebab" "LeMediaTV" "bevellin" "OBerruyer" } }

Who are the people or organizations on Wikidata with the Twitter handles "NatGeo", "ZachWeiner", "EricFassin", "leCMN", "BernatRuiz", "ActuaLitte", "cocoboer", "sanseveria", "Ludovic_P_", "marinebab", "LeMediaTV", "bevellin", and "OBerruyer"?

List all entities in Wikidata that are associated with the Twitter accounts: NatGeo, ZachWeiner, EricFassin, leCMN, BernatRuiz, ActuaLitte, cocoboer, sanseveria, Ludovic_P_, marinebab, LeMediaTV, bevellin, and OBerruyer.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "PoulpyWP" ) ( "EricFassin" ) ( "string1" ) ( "NatGeo" ) ( "JNeving" ) ( "string2" ) ( "leCMN" ) ( "yannbisiou" ) ( "string3" ) ( "lavados" ) ( "Jules78120" ) ( "string4" ) ( "TrizekWP" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "kewgardens" ) ( "string8" ) ( "BernatRuiz" ) ( "ActuaLitte" ) ( "string9" ) ( "acherm" ) ( "string10" ) ( "ZachWeiner" ) ( "string11" ) ( "aurialie" ) ( "string12" ) ( "string13" ) ( "string14" ) ( "Angana80" ) ( "cocoboer" ) ( "string15" ) ( "string16" ) ( "ja_wa" ) ( "K_rho" ) ( "sanseveria" ) ( "jsamwrites" ) ( "string17" ) ( "string18" ) ( "string19" ) ( "string20" ) ( "string21" ) ( "Ludovic_P_" ) ( "string22" ) ( "string23" ) ( "marinebab" ) ( "LinuxManua" ) ( "string24" ) ( "mathenth" ) ( "LeMediaTV" ) ( "string25" ) ( "bevellin" ) ( "string26" ) ( "string27" ) ( "OBerruyer" ) ( "string28" ) } } ORDER BY ASC( ?var3 )


Question: What is the title, author, genre, publication date, and language of the novel "Mostly Harmless"?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?title ?authorLabel ?genreLabel ?publicationDateStr ?languageLabel WHERE {
  wd:Q187655 wdt:P1476 ?title .
  wd:Q187655 wdt:P50 ?author .
  wd:Q187655 wdt:P136 ?genre .
  wd:Q187655 wdt:P577 ?publicationDate .
  wd:Q187655 wdt:P407 ?language .
  ?author rdfs:label ?authorLabel .
  ?genre rdfs:label ?genreLabel .
  ?language rdfs:label ?languageLabel .
  FILTER(LANG(?authorLabel) = "en")
  FILTER(LANG(?genreLabel) = "en")
  FILTER(LANG(?languageLabel) = "en")
  BIND(xsd:string(?publicationDate) AS ?publicationDateStr)
}
LIMIT 1

Tell me about the book "Mostly Harmless" — who wrote it, what genre is it, when was it published, and in what language?

Show me the author, genre, publication year, and language of the 1992 science fiction novel "Mostly Harmless".

SELECT ?var1Label ?var2Label ?var3Label ?var4Label ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1476> ?var6 . ?var1 <http://www.wikidata.org/prop/direct/P50> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P136> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P577> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P407> ?var5 . VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q187655> ) } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 1


Question: Is DKK1 NUCLEAR EXPRESSION a type of genetic variation?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
ASK WHERE {
  wd:Q28371292(wdt:P31 / wdt:P279 *) wd:Q349856 .
}

Does the sequence variant DKK1 NUCLEAR EXPRESSION belong to the category of genetic variation?

Is DKK1 NUCLEAR EXPRESSION classified under genetic variation through its type or subclass hierarchy?

ASK WHERE { <http://www.wikidata.org/entity/Q28371292> ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Qnull> . <http://www.bigdata.com/queryHints#Prior> <http://www.bigdata.com/queryHints#gearing> "forwards". }


Question: Catalogs used as qualifiers to classify items, excluding those that are themselves catalogues.

PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?catalog ?catalogLabel ?statementType WHERE {
  {
    BIND("mainsnak" AS ?statementType)
    ?item wdt:P972 ?catalog .
  } UNION {
    BIND("qualifier" AS ?statementType)
    ?item ?p ?statement .
    ?statement pq:P972 ?catalog .
  } UNION {
    BIND("reference" AS ?statementType)
    ?item ?p ?statement .
    ?statement prov:wasDerivedFrom ?ref .
    ?ref pr:P972 ?catalog .
  }
  ?catalog rdfs:label ?catalogLabel .
  FILTER(LANG(?catalogLabel) = "en") MINUS {
    ?catalog(wdt:P279 *) wd:Q2352616 .
  }
}
LIMIT 100

What are the catalogs that are used as qualifiers to classify other items, and which are not themselves types of catalogues?

List all catalogs that are referenced as qualifiers in Wikidata statements, excluding any that are instances or subclasses of "catalogue", along with the type of statement used.

SELECT ?var1 ?var2 ?var2Label ?var3 WHERE { { SELECT DISTINCT ?var2 ?var4 ?var1 ( COUNT ( ?var5 ) AS ?var3 ) WHERE { { BIND ( "mainsnak" AS ?var1 ). ?var5 <http://www.wikidata.org/prop/direct/P972> ?var2 . } UNION { BIND ( "qualifier" AS ?var1 ). ?var6 <http://www.wikidata.org/prop/qualifier/P972> ?var2 . ?var5 ?var7 ?var6 . } UNION { BIND ( "reference" AS ?var1 ). ?var8 <http://www.wikidata.org/prop/reference/P972> ?var2 . ?var9 <http://www.w3.org/ns/prov#wasDerivedFrom> ?var8 . ?var5 ?var10 ?var9 . } VALUES ( ?var11 ) { ( <http://www.wikidata.org/entity/Q2352616> ) } MINUS { ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var11 . } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P31> ?var4 . } } GROUP BY ?var2 ?var4 ?var1 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Cities in Japan with the highest populations, excluding those with Czech Wikipedia articles.

SELECT ?city WHERE { ?city wdt:P31 wd:Q494721 . ?city wdt:P1082 ?population . MINUS { ?wikipediaArticle schema:about ?city . ?wikipediaArticle schema:isPartOf <https://cs.wikipedia.org/> . } } ORDER BY DESC(?population)

Which cities in Japan have the largest populations and do not have articles on the Czech Wikipedia?

List all Japanese cities sorted by population from highest to lowest, but omit any that have a corresponding page on the Czech Wikipedia.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q494721> . ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var2 . MINUS { ?var3 <http://schema.org/about> ?var1 . ?var3 <http://schema.org/isPartOf> <https://cs.wikipedia.org/> . } } ORDER BY DESC( ?var2 )


Question: Which commune is governed by Christodoulos Milonas?

SELECT ?commune ?communeLabel WHERE { ?commune wdt:P6 wd:Q29461407 . ?commune rdfs:label ?communeLabel . FILTER(LANG(?communeLabel) = "en") }

Who is the head of government of Ayios Therapon?

Tell me the name of the place where Christodoulos Milonas serves as head of government.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P6> <http://www.wikidata.org/entity/Q29461407> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "el". } }


Question: What is the English label and description of the person with Library of Congress ID n99034207?

SELECT ?item ?label ?description WHERE { ?item wdt:P244 "n99034207" . ?item rdfs:label ?label . FILTER(LANG(?label) = "en") . OPTIONAL { ?item schema:description ?description . FILTER(LANG(?description) = "en") . } }

Who is Jeannie Taylor, and what is her English description according to Wikidata?

Can you find the English name and lifespan of the individual identified by LCCN n99034207?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P244> "n99034207". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What countries and administrative regions is the municipality of Andechs part of?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?item WHERE {
  {
    wd:Q165958 wdt:P17 ?item .
  } UNION {
    wd:Q165958 ( wdt:P131 ) + ?item .
  }
}

Show me the full administrative hierarchy of Andechs, including its country.

Which larger geographic and political entities contain Andechs?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q165958> AS ?var2 ). ?var2 ( <http://www.wikidata.org/prop/direct/P30> | <http://www.wikidata.org/prop/direct/P17> | <http://www.wikidata.org/prop/direct/P131> | <http://www.wikidata.org/prop/direct/P376> | <http://www.wikidata.org/prop/direct/P501> )* ?var1 . }


Question: External identifiers and their values for the TV series "The Thundermans" in English.

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?propertyItem ?propertyLabel ?value WHERE {
  wd:Q9197118 ?directProperty ?value .
  ?propertyItem wikibase:directClaim ?directProperty ; rdfs:label ?propertyLabel .
  FILTER ( LANG( ?propertyLabel ) = "en" ) FILTER ( LANG( ?value ) = "en" || LANG( ?value ) = "" )
}

What are the English labels and corresponding values of all external IDs associated with the TV show "The Thundermans"?

List all external IDs (like IMDb, Twitter, etc.) for "The Thundermans" along with their labels in English and the actual ID values.

SELECT ?var1 ?var2 ?var3 ?var4Label ?var5 ?var6 ?var4 WHERE { <http://www.wikidata.org/entity/Q9197118> ?var4 ?var6 . ?var5 <http://wikiba.se/ontology#directClaim> ?var4 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label ; ?var3 ?var2 . ?var1 <http://wikiba.se/ontology#directClaim> ?var3 . FILTER ( ( ( "en" = LANG ( ?var6 ) ) || ( "" = LANG ( ?var6 ) ) ) ) . FILTER ( ( ( "en" = LANG ( ?var4Label ) ) ) ) . }


Question: Which entities have statements with the Spotify URI property (P2205), and what properties are used in those statements?

SELECT ?entity ?statement ?property (SAMPLE(?qualifierLabel) AS ?qualifier_property) WHERE { { SELECT ?entity ?statement ?property WHERE { ?statement ?prop wd:P2205 . ?entity ?directProp ?statement . ?property wikibase:statementProperty ?prop . ?property wikibase:claim ?directProp . FILTER (?property != wd:P31) } LIMIT 101 } OPTIONAL { ?property wikibase:qualifier ?qualifierProperty . ?qualifierProperty rdfs:label ?qualifierLabel . FILTER(LANG(?qualifierLabel) = "en") } } GROUP BY ?entity ?statement ?property

What items or properties are connected to the Spotify URI property (P2205), and what kind of statements link them to it?

Show me all entities that reference the Spotify URI property (P2205) in their statements, including the property used and any associated qualifiers.

SELECT ?var1 ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var5 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var2 ?var6 <http://www.wikidata.org/entity/P2205> . ?var1 ?var7 ?var2 . ?var3 <http://wikiba.se/ontology#statementProperty> ?var6 . ?var3 <http://wikiba.se/ontology#claim> ?var7 . FILTER ( ( ( ?var3 != <http://www.wikidata.org/entity/P31> ) ) ) . } LIMIT 101 } OPTIONAL { ?var2 ?var4 ?var8 . ?var9 <http://wikiba.se/ontology#qualifier> ?var4 . } } GROUP BY ?var1 ?var2 ?var3


Question: How many humans died in February 1920?

SELECT ?deathYear (COUNT(?person) AS ?count) WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P570 ?deathDate . BIND(STR(YEAR(?deathDate)) AS ?deathYear) FILTER(?deathDate >= "1920-02-01"^^xsd:date && ?deathDate < "1920-03-01"^^xsd:date) } GROUP BY ?deathYear

Number of people who died in February 1920

Can you tell me how many individuals recorded in Wikidata as having died in February 1920?

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P569> ?var4 . } BIND ( STR ( YEAR ( ?var5 ) ) AS ?var1 ). ?var2 <http://www.wikidata.org/prop/direct/P570> ?var5 . FILTER ( ( ( ?var5 >= "1920-02-01"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var5 < "1920-03-01"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1


Question: What is the image associated with the SNAC ARK ID "w6640fpd"?

SELECT ?image WHERE { ?item wdt:P3430 "w6640fpd" . OPTIONAL { ?item wdt:P18 ?image . } }

Can you show me the Wikimedia Commons image for the person identified by the SNAC ARK ID w6640fpd?

Which image is linked to Jane Fonda in the Social Networks and Archival Context database?

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w6640fpd". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: What is the image of Barack Obama as identified by his SNAC ARK ID?

SELECT ?image WHERE { ?person wdt:P3430 "w6f29nwg" . OPTIONAL { ?person wdt:P18 ?image . } }

Show me the Wikimedia Commons image linked to the SNAC ARK ID w6f29nwg.

Can you find the picture of the person whose SNAC ARK ID is w6f29nwg?

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w6jw9h0c". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: What film has the Scope.dk ID 8085?

SELECT ?film WHERE { ?film wdt:P2518 "8085" . }

Which film on Wikidata is identified by the Scope.dk film ID 8085?

Find the Wikidata item for the film with Scope.dk ID 8085.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2518> "8085". }


Question: Is Rafe Spall a type of software or any subclass of software?

Could Rafe Spall be classified as software or any kind of software category?

Confirm whether Rafe Spall, the actor, is considered software or a subclass of software.

ASK WHERE { <http://www.wikidata.org/entity/Q1190134> ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q7397> . <http://www.bigdata.com/queryHints#Prior> <http://www.bigdata.com/queryHints#gearing> "forwards". }


Question: Which Twitter accounts (on X) are linked in Wikidata among Apple, franceinfo, Simonnet2, and others, sorted by how many Wikipedia pages they have?

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username WHERE {
  ?item wdt:P2002 ?username .
  VALUES ?username {
    "ATTAC_JP" "Apple" "franceinfo" "Simonnet2" "chcngjo" "poulainmel" "Noulin" "_kimmina96" "Critiiks" "Tanner1495"
  }
}
ORDER BY DESC ( wikibase:sitelinks )

What are the Wikidata items for the Twitter usernames Apple, franceinfo, and Simonnet2, and which one has the most Wikipedia links?

Show me the Wikidata entities for the Twitter handles Apple, franceinfo, Simonnet2, and a few others, ordered by the number of sitelinks they have.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "ATTAC_JP" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "Apple" ) ( "franceinfo" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "Simonnet2" ) ( "chcngjo" ) ( "string10" ) ( "poulainmel" ) ( "Noulin" ) ( "_kimmina96" ) ( "string11" ) ( "Critiiks" ) ( "string12" ) ( "string13" ) ( "Tanner1495" ) } } ORDER BY ASC( ?var3 )


Question: Which film has the film-documentaire.fr ID 25173?

SELECT ?film ?filmLabel WHERE { ?film wdt:P3673 "25173" . ?film rdfs:label ?filmLabel . FILTER(LANG(?filmLabel) = "en") }

What is the name of the film identified by 25173 in the film-documentaire.fr database?

Find the English title of the film with the film-documentaire.fr identifier 25173.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3673> "25173". }


Question: What cities are named Lagos in English?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?city ?cityLabel WHERE {
  ?city wdt:P31 wd:Q515 ; rdfs:label ?cityLabel .
  FILTER(CONTAINS(LCASE(?cityLabel) , "lagos"))
  FILTER(LANG(?cityLabel) = "en")
}
LIMIT 10

Can you list the English labels of all cities that have "Lagos" in their name?

Which city entity in Wikidata is an instance of a city and has "Lagos" as its English label?

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q515> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( CONTAINS ( LCASE ( ?var1Label ) , "lagos" ) ) ) . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . } LIMIT 10


Question: List all geographic borders and their coordinates.

SELECT ?border ?coordinates WHERE { ?border (wdt:P31/wdt:P279*) wd:Q133346 ; wdt:P625 ?coordinates .}

What are the coordinates of all borders and their subclasses, such as international or maritime boundaries?

Please provide the geographic coordinates for every border entity, including those classified as international borders, maritime boundaries, or other subtypes of border.

SELECT * WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q133346> ; <http://www.wikidata.org/prop/direct/P625> ?var2 . }


Question: Female alumni of the University of Edinburgh and their places of birth.

SELECT ?person ?personLabel ?placeOfBirth ?placeOfBirthLabel WHERE { ?person wdt:P69 wd:Q160302 . ?person wdt:P21 wd:Q6581072 . ?person wdt:P19 ?placeOfBirth . OPTIONAL { ?person rdfs:label ?personLabel FILTER(LANG(?personLabel) = "en") } OPTIONAL { ?placeOfBirth rdfs:label ?placeOfBirthLabel FILTER(LANG(?placeOfBirthLabel) = "en") } }

Who are the women who studied at the University of Edinburgh, and where were they born?

List all female graduates of the University of Edinburgh along with their birthplaces in English.

SELECT ?var1 ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P69> <http://www.wikidata.org/entity/Q160302> . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var1 <http://www.wikidata.org/prop/direct/P19> ?var2Label . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: List Spanish municipalities that are part of the Basque Country region.

SELECT ?municipality (SAMPLE(?label) AS ?labelName) WHERE { ?municipality wdt:P31 wd:Q2074737 . ?municipality (wdt:P131* /^wdt:P527) wd:Q47588 . ?municipality rdfs:label ?label .} GROUP BY ?municipality

Which municipalities in Spain are located within areas considered part of the Basque Country?

Show me the names of all Spanish municipalities that fall under the cultural or administrative region of the Basque Country.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q2074737> . ?var1 ( <http://www.wikidata.org/prop/direct/P131> */^ <http://www.wikidata.org/prop/direct/P527> ) <http://www.wikidata.org/entity/Q47588> . }


Question: Properties linking entities to Glassnote Records, ordered by frequency

SELECT ?property (COUNT(?item) AS ?count)
WHERE {
  ?item ?property wd:Q3771894 .
}
GROUP BY ?property
HAVING (?count > 1)
ORDER BY DESC(?count)

What properties connect other items to Glassnote Records, and how many times does each appear?

Show me all properties that link to Glassnote Records more than once, sorted by how often they’re used.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q3771894> . OPTIONAL { ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . } } GROUP BY ?var1 HAVING ( ( ?var3 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ORDER BY DESC( ?var3 )


Question: What are the birth details, education, occupation, and parents of Taylor Swift and Benjamin Netanyahu, identified by Freebase IDs /m/0fm2h and /m/0dl567?

SELECT ?person ?personLabel ?givenName ?familyName ?birthDate ?birthPlace ?occupation ?education ?father ?mother
WHERE {
  VALUES ?freebaseId { "/m/0fm2h" "/m/0dl567" }
  ?person wdt:P646 ?freebaseId .

  OPTIONAL { ?person wdt:P735 ?givenName . }
  OPTIONAL { ?person wdt:P734 ?familyName . }
  OPTIONAL { ?person wdt:P569 ?birthDate . }
  OPTIONAL { ?person wdt:P19 ?birthPlace . }
  OPTIONAL { ?person wdt:P106 ?occupation . }
  OPTIONAL { ?person wdt:P69 ?education . }
  OPTIONAL { ?person wdt:P22 ?father . }
  OPTIONAL { ?person wdt:P25 ?mother . }

  OPTIONAL { ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") }
}
LIMIT 20

Can you show me the occupations, places of birth, educational backgrounds, and parents of Taylor Swift and Benjamin Netanyahu using their Freebase identifiers?

Please retrieve the personal information — including name, birth date, birthplace, education, occupation, father, and mother — for the individuals with Freebase IDs /m/0fm2h and /m/0dl567.

SELECT ?var1 ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var4Label ?var5 ?var6 ?var6Label ?var7 ?var8 ?var8Label ?var9 ?var10 ?var10Label ?var11 ?var11Label ?var12 ?var12Label WHERE { VALUES ( ?var13 ) { ( "/m/0fm2h" ) ( "/m/0dl567" ) } ?var1 <http://www.wikidata.org/prop/direct/P646> ?var13 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P69> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P735> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P734> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P20> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P973> ?var9 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P22> ?var10 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P25> ?var11 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P106> ?var12 . } } LIMIT 20


Question: All properties and values for Tyrannosaurus on Wikidata.

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?value WHERE {
  wd:Q14332 ?property ?value .
}

What data is available about Tyrannosaurus in Wikidata, including all its properties and values?

Show me every piece of information Wikidata has about the dinosaur genus Tyrannosaurus.

SELECT * WHERE { <http://www.wikidata.org/entity/Q14332> ?var1 ?var2 . }


Question: What are the different language labels for the entity Matroska?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?var1 ?label WHERE {
  BIND(wd:Q21641529 AS ?var1)
  ?var1 rdfs:label ?label .
}

Can you list the names of Matroska in various languages?

What are the multilingual names of Matroska, the mascot of the Admiral hockey club?

SELECT ?var1 ?var1Label WHERE { BIND ( <http://www.wikidata.org/entity/Q21641529> AS ?var1 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Members of Joy Division

SELECT ?member ?memberLabel WHERE { wd:Q172763 wdt:P527 ?member . ?member rdfs:label ?memberLabel . FILTER(LANG(?memberLabel) = "en")}

Who are the members of the band Joy Division?

List the English names of all members of Joy Division.

SELECT ?var1 ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/Q215380> <http://www.wikidata.org/entity/Q172763> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the genre of the band Joy Division?

SELECT ?genre ?genreLabel WHERE { wd:Q172763 wdt:P136 ?genre . ?genre rdfs:label ?genreLabel . FILTER(LANG(?genreLabel) = "en") }

Tell me the musical genre associated with Joy Division.

SELECT ?var1 ?var1Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } <http://www.wikidata.org/entity/Q172763> <http://www.wikidata.org/prop/direct/P136> ?var1 . } LIMIT 100


Question: What are the sovereign countries located in Europe?

SELECT ?country ?countryLabel WHERE { ?country wdt:P31 wd:Q3624078 . ?country wdt:P30 wd:Q46 . ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") . FILTER NOT EXISTS { ?country wdt:P31 wd:Q11514315 } . FILTER NOT EXISTS { ?country wdt:P31 wd:Q3024240 } }

Can you list all the countries in Europe?

Which nations in Europe are recognized as sovereign states?

SELECT ?var1 ?var2 ?var2Label WHERE { ?var3 <http://www.wikidata.org/prop/direct/P30> <http://www.wikidata.org/entity/Q46> . ?var3 <http://www.wikidata.org/prop/direct/P17> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,de". } }


Question: Image of Christian Daniel Rauch (SNAC ARK ID w6cz3j0n)

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?image WHERE {
  ?person wdt:P3430 "w6cz3j0n" .
  OPTIONAL {
    ?person wdt:P18 ?image .
  }
}

What is the Wikimedia Commons image for Christian Daniel Rauch, identified by SNAC ARK ID w6cz3j0n?

Show me the image of the person with SNAC ARK ID w6cz3j0n.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w6cz3j0n". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: Which Wikidata items are linked to the Twitter usernames "UnivAngers" and "MdM_France"?

SELECT ?item ?username WHERE { ?item wdt:P2002 ?username . VALUES ?username { "UnivAngers" "MdM_France" } }

What organizations on Wikidata have the Twitter handles @UnivAngers and @MdM_France?

Show me the Wikidata entries for the Twitter accounts UnivAngers and MdM_France.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "dbourrion" ) ( "UnivAngers" ) ( "LavrentyA" ) ( "symac" ) ( "string1" ) ( "St_Bouvier" ) ( "string2" ) ( "string3" ) ( "totonono" ) ( "MdM_France" ) ( "string4" ) ( "string5" ) ( "mart1oeil" ) ( "teamviima" ) } } ORDER BY ASC( ?var3 )


Question: Properties linking to the gene ZCWPW1

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?property WHERE {
  ?subject ?property wd:Q18041516 .
}

What properties connect other entities to the human gene ZCWPW1?

Show me all the properties that have the gene ZCWPW1 as their object, including both direct statements and those with qualifiers.

SELECT DISTINCT ?var1 WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q18041516> . }


Question: How many subclasses does optical character recognition have?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ( COUNT( ?subclass ) AS ?count ) WHERE {
  ?subclass wdt:P279 wd:Q167555 .
}

What is the number of technologies that are subclasses of optical character recognition?

List the count of known subclass types of optical character recognition.

SELECT( COUNT ( ?var1 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q167555> . }


Question: Who were Dutch creators who died in 1953?

SELECT DISTINCT ?person ?personLabel ?occupationLabel ?image WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P106 ?occupation . ?occupation wdt:P279* wd:Q2500638 . ?person wdt:P27 wd:Q29999 . ?person wdt:P570 ?deathDate . FILTER ( YEAR(?deathDate) = YEAR(NOW()) - 71 ) OPTIONAL { ?person wdt:P18 ?image . } ?person rdfs:label ?personLabel . ?occupation rdfs:label ?occupationLabel . FILTER (LANG(?personLabel) = "en") FILTER (LANG(?occupationLabel) = "en") } ORDER BY ASC(?personLabel)

Can you list people from the Netherlands whose occupations were creative professions and who passed away 71 years ago?

Show me the names, occupations, and images of Dutch citizens who were creators and died in 1953.

SELECT DISTINCT ?var1 ?var1Label ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P106> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q2500638> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q29999> . ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "nl". } FILTER ( ( ( YEAR ( ?var4 ) = ( YEAR ( NOW ( ) ) -"71"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } } ORDER BY ASC( ?var1Label )


Question: Films and albums along with their producers in English.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?work ?workLabel ?producer ?producerLabel WHERE {
  ?work wdt:P162 ?producer .
  OPTIONAL {
    ?work wdt:P1476 ?workTitle .
    FILTER ( LANG( ?workTitle ) = "en" )
  }
  OPTIONAL {
    ?work rdfs:label ?workLabelRaw .
    FILTER ( LANG( ?workLabelRaw ) = "en" )
  }
  BIND( COALESCE ( ?workTitle , ?workLabelRaw ) AS ?workLabel ) OPTIONAL {
    ?producer rdfs:label ?producerLabel .
    FILTER ( LANG( ?producerLabel ) = "en" )
  }
  FILTER ( BOUND( ?producerLabel ) && BOUND( ?workLabel ) )
}
LIMIT 5000

Which creative works (like films or albums) have been produced by which people, and what are their English titles and names?

Show me a list of creative works and their English titles, along with the English names of their producers.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P162> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 5000


Question: Which entities have Twitter usernames "TVLine" or "JRadloff", and how many Wikipedia links do they have?

SELECT ?item ?username (COUNT(?sitelink) AS ?sitelinks) WHERE { ?item wdt:P2002 ?username . OPTIONAL { ?sitelink schema:about ?item ; schema:isPartOf ?site . } VALUES ?username { "TVLine" "JRadloff" } } GROUP BY ?item ?username ORDER BY ASC(?sitelinks)

What are the Wikidata items for the Twitter accounts "TVLine" and "JRadloff", and how many Wikipedia articles are linked to each?

List the Wikidata entities associated with the Twitter handles "TVLine" and "JRadloff", sorted by the number of Wikipedia sitelinks they have, from least to most.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "string3" ) ( "TVLine" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "JRadloff" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "string13" ) } } ORDER BY ASC( ?var3 )


Question: Libraries in the German Empire with their IDs prefixed with a hyphen, along with the country property and country ID.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT(CONCAT("-" , ?entityId) AS ?libraryId)("P17" AS ?property)(?countryIdStr AS ?countryId) WHERE {
  ?library wdt:P17 wd:Q43287 .
  ?library wdt:P31 wd:Q7075 .
  BIND(SUBSTR(STR(?library) , STRLEN(STR(wd:)) + 1) AS ?entityId)
  BIND(SUBSTR(STR(wd:Q43287) , STRLEN(STR(wd:)) + 1) AS ?countryIdStr)
}

What are the Wikidata IDs of libraries in the German Empire, prefixed with a hyphen, and what is the country property and country ID used?

Show me the hyphen-prefixed IDs of all libraries located in the German Empire, along with the property code for country and the country's entity ID.

SELECT( CONCAT ( "-", ?var1 ) AS ?var2 )( "P17" AS ?var3 )( "Q854218" AS ?var4 ) WHERE { ?var5 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q43287> . ?var5 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q7075> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . } BIND ( SUBSTR ( STR ( ?var5 ) , ( STRLEN ( STR ( <http://www.wikidata.org/entity/> ) ) +"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var1 ). }


Question: Which organizations or people have Twitter handles like NASA, Twitter, elonmusk, or CityOfBoston, and how many Wikipedia articles are there about them?

SELECT ?item ?handle (COUNT(?sitelink) AS ?sitelinkCount) WHERE { ?item wdt:P2002 ?handle . ?sitelink schema:about ?item . FILTER(STRSTARTS(STR(?sitelink), "https://")) VALUES ?handle { "NASA" "Twitter" "elonmusk" "CityOfBoston" } } GROUP BY ?item ?handle ORDER BY ASC(?sitelinkCount)

Can you list the Wikidata items for the Twitter accounts NASA, Twitter, elonmusk, and CityOfBoston, sorted by the number of Wikipedia pages about them?

Show me the entities linked to the Twitter handles NASA, Twitter, elonmusk, and CityOfBoston, along with how many language versions of Wikipedia have articles about each, ordered from least to most.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "Litlok" ) ( "PoulpyWP" ) ( "KialoHQ" ) ( "ash_crow" ) ( "K_rho" ) ( "cha_matou" ) ( "string1" ) ( "Jean_no" ) ( "string2" ) ( "MSR_Tlse" ) ( "string3" ) } } ORDER BY ASC( ?var3 )


Question: Is Intel a human or a subclass of a human?

ASK WHERE { wd:Q248 (wdt:P31/wdt:P279*) wd:Q5 . }

Does Intel qualify as a human according to Wikidata’s classification hierarchy?

Confirm whether Intel is classified as a human or any of its subclasses in Wikidata.

ASK WHERE { <http://www.wikidata.org/entity/Q248> ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q5> . <http://www.bigdata.com/queryHints#Prior> <http://www.bigdata.com/queryHints#gearing> "forwards". }


Question: What are some examples of entities and their locations for common place-related properties like birthplace or capital?

SELECT DISTINCT ?item ?propLabel ?location WHERE { VALUES ?prop { wdt:P19 wdt:P20 wdt:P119 wdt:P131 wdt:P115 wdt:P1427 wdt:P1444 wdt:P206 wdt:P1158 wdt:P1376 } . ?item ?prop ?location . ?propItem wikibase:directClaim ?prop . ?propItem rdfs:label ?propLabel . FILTER(LANG(?propLabel) = "en") } LIMIT 100

Show me subjects and their associated locations for properties that are subproperties of "located in the administrative territorial entity", along with the property names in English.

List items with their location values and the English labels of the properties used, such as place of birth or capital of.

SELECT DISTINCT ?var1 ?var2Label ?var3 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P1647> * <http://www.wikidata.org/entity/P276> . ?var2 <http://wikiba.se/ontology#directClaim> ?var4 . ?var1 ?var2 ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100


Question: Which Wikidata items have Twitter usernames 'envlh' or 'A_Moatti'?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username WHERE {
  ?item wdt:P2002 ?username .
  VALUES ?username {
    "envlh" "A_Moatti"
  }
}

Who are the people on Wikidata with the Twitter handles @envlh and @A_Moatti?

Show me the Wikidata entities corresponding to the Twitter usernames 'envlh' and 'A_Moatti'.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "envlh" ) ( "string1" ) ( "hpiedcoq" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "A_Moatti" ) } } ORDER BY ASC( ?var3 )


Question: Find the English label and description for the Library of Congress authority ID n98066251.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?label ?description WHERE {
  ?item wdt:P244 "n98066251" .
  OPTIONAL {
    ?item rdfs:label ?label .
    FILTER ( LANG( ?label ) = "en" )
  }
  OPTIONAL {
    ?item schema:description ?description .
    FILTER ( LANG( ?description ) = "en" )
  }
}

Who is the person with the Library of Congress ID n98066251, and what is their English description?

Show me the name in English and any English description for the entity identified by the LCCN n98066251.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P244> "n98066251". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Free and open-source software with OSI-approved or free licenses

SELECT DISTINCT ?software ?softwareLabel WHERE { ?software wdt:P31 / wdt:P279* wd:Q506883 . ?software wdt:P275 ?license . ?license wdt:P31 / wdt:P279* ?licenseClass . VALUES ?licenseClass { wd:Q196294 wd:Q1156659 } ?software rdfs:label ?softwareLabel . FILTER(LANG(?softwareLabel) = "en") }

What free and open-source software products are licensed under OSI-approved or free licenses?

List all free and open-source software that use either a free license or an OSI-approved license, along with their English names.

SELECT DISTINCT ?var1 ?var1Label WHERE { { ?var1 ( <http://www.wikidata.org/prop/P31> / <http://www.wikidata.org/prop/statement/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q506883> . } { ?var1 ( <http://www.wikidata.org/prop/P31> / <http://www.wikidata.org/prop/statement/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q341> . } { ?var1 ( <http://www.wikidata.org/prop/P31> / <http://www.wikidata.org/prop/statement/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q1130645> . } { ?var1 ( <http://www.wikidata.org/prop/P31> / <http://www.wikidata.org/prop/statement/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q7397> . ?var1 <http://www.wikidata.org/prop/direct/P275> ?var2 . ?var2 ( <http://www.wikidata.org/prop/P31> / <http://www.wikidata.org/prop/statement/P31> /( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P279> )*) ?var3 . VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q196294> ) ( <http://www.wikidata.org/entity/Q1156659> ) } } }


Question: What is the image of the person with SNAC ARK ID w67w6w74?

SELECT ?image WHERE { ?person wdt:P3430 "w67w6w74" . OPTIONAL { ?person wdt:P18 ?image . } }

Can you show me the Wikimedia Commons image associated with Joseph Gilbert Totten?

Which image is linked to the SNAC ARK ID w67w6w74 in Wikidata?

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w67w6w74". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: Soviet film directors who received the Order of Lenin and their birthplaces

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?director ?directorLabel ?birthPlace ?birthPlaceLabel WHERE {
  ?director wdt:P31 wd:Q5 ; wdt:P166 wd:Q185493 ; wdt:P19 ?birthPlace ; wdt:P106 wd:Q2526255 ; wdt:P27 wd:Q15180 .
  ?director rdfs:label ?directorLabel .
  ?birthPlace rdfs:label ?birthPlaceLabel .
  FILTER ( LANG( ?directorLabel ) = "en" ) FILTER ( LANG( ?birthPlaceLabel ) = "en" )
}
LIMIT 100

Which Soviet film directors were awarded the Order of Lenin, and where were they born?

List the names and birthplaces of all Soviet film directors who received the Order of Lenin, in English.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://www.wikidata.org/prop/direct/P166> <http://www.wikidata.org/entity/Q185493> ; <http://www.wikidata.org/prop/direct/P19> ?var1 ; <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q2526255> ; <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q15180> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 100


Question: List English labels for occupations, vocations, and crafts.

SELECT DISTINCT ?occupation ?label WHERE { { ?occupation wdt:P31 wd:Q12737077 . } UNION { ?occupation wdt:P31 wd:Q829183 . } UNION { ?occupation wdt:P31 wd:Q2207288 . } ?occupation rdfs:label ?label . FILTER(LANG(?label) = "en") } LIMIT 20

What are some examples of occupations, vocations, and crafts in English?

Can you show me 20 English names of jobs or work roles that are classified as occupations, vocations, or crafts?

SELECT DISTINCT ?var1 ?var2Label WHERE { { SELECT DISTINCT ?var1 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q12737077> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q28604> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q829183> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q2207288> . } } } } LIMIT 20


Question: List occupations and crafts with their labels in multiple languages.

SELECT DISTINCT ?occupation ?label WHERE { VALUES ?type { wd:Q12737077 wd:Q2207288 } ?occupation wdt:P31 ?type . ?occupation rdfs:label ?label . } LIMIT 20

What are some occupations and crafts, and how are they labeled in different languages?

Show me a list of occupations and crafts along with their translations in various languages.

SELECT DISTINCT ?var1 ?var2Label WHERE { { SELECT DISTINCT ?var1 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q12737077> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q28604> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q829183> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q2207288> . } } } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } LIMIT 20


Question: Occupations, crafts, and metro lines with English labels

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?item ?itemLabel WHERE {
  {
    ?item wdt:P31 wd:Q12737077 .
  } UNION {
    ?item wdt:P31 wd:Q2207288 .
  } UNION {
    ?item wdt:P31 wd:Q15079663 .
  }
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
}
LIMIT 1000

What are some examples of occupations, crafts, and rapid transit railway lines in Wikidata?

List English-labeled entities that are instances of occupation, craft, or rapid transit railway line.

SELECT DISTINCT ?var1 ?var1Label WHERE { { SELECT ?var1 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> * <http://www.wikidata.org/entity/Q12737077> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> * <http://www.wikidata.org/entity/Q28604> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> * <http://www.wikidata.org/entity/Q829183> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> * <http://www.wikidata.org/entity/Q2207288> . } } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 1000


Question: Which Wikidata items have Twitter usernames "envlh" or "GillesCC"?

SELECT ?item ?twitterUsername WHERE { ?item wdt:P2002 ?twitterUsername . VALUES ?twitterUsername { "envlh" "GillesCC" } }

Who are the people on Wikidata with the Twitter handles @envlh and @GillesCC?

Show me the Wikidata entities linked to the Twitter usernames envlh and GillesCC.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "envlh" ) ( "WikiBrest" ) ( "JeanFred" ) ( "string2" ) ( "string3" ) ( "elog_io" ) ( "string4" ) ( "GillesCC" ) ( "string5" ) } } ORDER BY ASC( ?var3 )


Question: What is the Twitter/X username of the official Wikipedia account, and how many Wikipedia language editions link to it?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username ( COUNT( ?link ) AS ?sitelinks ) WHERE {
  ?item wdt:P2002 "Wikipedia" .
  ?link schema:about ?item ; schema:isPartOf ?site .
}
GROUP BY ?item ?username
ORDER BY ASC ( ?sitelinks )

How many Wikipedia language editions are connected to the official Wikipedia Twitter account?

Which Wikidata item has the Twitter handle "Wikipedia", and how many sitelinks does it have across Wikipedia language editions?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "InaGlobal" ) ( "joelgombin" ) ( "string1" ) ( "MaelLeHir" ) ( "dixkatre" ) ( "Auregann" ) ( "BibliLab" ) ( "string2" ) ( "ExcelPope" ) ( "string3" ) ( "TALORIG" ) ( "CGdrawing" ) ( "A_DLF" ) ( "KonbiniFr" ) ( "PoulpyWP" ) ( "TrizekWP" ) ( "Nouuill" ) ( "string4" ) ( "cperciva" ) ( "lavados" ) ( "otecam92" ) ( "BBeyern" ) ( "string5" ) ( "ackboo" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "LesNews" ) ( "IntJudoFed" ) ( "InsidOpi" ) ( "aprilmpls" ) ( "kornelski" ) ( "vnctmrn" ) ( "erinbiba" ) ( "gblardone" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "wikipedia" ) ( "string13" ) ( "string14" ) ( "string15" ) ( "string16" ) ( "string17" ) ( "string18" ) ( "string19" ) ( "Calimaq" ) ( "string20" ) ( "string21" ) ( "fagerving" ) ( "string22" ) ( "string23" ) ( "lerefuge" ) ( "string24" ) ( "string25" ) ( "string26" ) ( "string27" ) ( "string28" ) ( "Setsunael" ) ( "symac" ) ( "string29" ) ( "string30" ) ( "string31" ) ( "WikiBrest" ) } } ORDER BY ASC( ?var3 )


Question: What properties are most commonly used to link other items to the Wikidata item Q980216, and how many times are they used?

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property(COUNT(?item) AS ?count) WHERE {
  ?item ?property wd:Q980216 .
}
GROUP BY ?property
HAVING(?count > 1)
ORDER BY DESC(?count)

Which semantic relationships connect other entities to Q980216 more than once, ranked by frequency?

Show me the properties that link at least two other items to Q980216, sorted by how often they appear.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q980216> . OPTIONAL { ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . } } GROUP BY ?var1 HAVING ( ( ?var3 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ORDER BY DESC( ?var3 )


Question: Human languages with Sinhala and Dutch labels in Wikidata.

SELECT ?language ?labelSi ?labelNl WHERE { ?language wdt:P31 wd:Q34770 . ?language rdfs:label ?labelSi . ?language rdfs:label ?labelNl . FILTER (LANG(?labelSi) = "si") FILTER (LANG(?labelNl) = "nl") }

Which human languages have official names in both Sinhala and Dutch?

Show me the names of human languages in Sinhala and Dutch.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q34770> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var2 ) = "si" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "nl" ) ) ) . }


Question: Image of Augustine of Canterbury (SNAC ARK ID w6cr6k95)

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?image WHERE {
  ?item wdt:P3430 "w6cr6k95" .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
}

What is the image associated with the SNAC ARK ID w6cr6k95?

Show me the Wikimedia Commons image for the person with SNAC ARK ID w6cr6k95.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w6cr6k95". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: What properties are used in statements about Carl Hårleman, and what qualifiers are associated with them?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?directProperty ?statement ?baseProperty ( SAMPLE( ?label ) AS ?qualifierLabel ) WHERE {
  wd:Q1038985 ?directProperty ?statement .
  ?statement ?statementProperty ?value .
  ?baseProperty wikibase:statementProperty ?statementProperty ; wikibase:claim ?directProperty .
  FILTER ( ?baseProperty != wd:P31 ) OPTIONAL {
    ?statement ?qualifierProperty ?qualifierValue .
    ?baseProperty wikibase:qualifier ?qualifierProperty .
    ?qualifierProperty rdfs:label ?label .
    FILTER ( LANG( ?label ) = "en" )
  }
}
GROUP BY ?directProperty ?statement ?baseProperty

Which properties describe Carl Hårleman in Wikidata statements, and what are the labels of any qualifiers attached to those statements?

List all the properties (excluding "instance of") that are used to describe Carl Hårleman in Wikidata, along with one example of a qualifier label for each statement.

SELECT ?var1 ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var5 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var2 ?var6 <http://www.wikidata.org/entity/Q1038985> . ?var1 ?var7 ?var2 . ?var3 <http://wikiba.se/ontology#statementProperty> ?var6 . ?var3 <http://wikiba.se/ontology#claim> ?var7 . FILTER ( ( ( ?var3 != <http://www.wikidata.org/entity/P31> ) ) ) . } LIMIT 101 } OPTIONAL { ?var2 ?var4 ?var8 . ?var9 <http://wikiba.se/ontology#qualifier> ?var4 . } } GROUP BY ?var1 ?var2 ?var3


Question: Humans who died on or before January 1, 1948, with their English names.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?label WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P570 ?deathDate .
  OPTIONAL {
    ?person rdfs:label ?label .
    FILTER(LANG(?label) = "en")
  }
  FILTER(?deathDate <= "1948-01-01T00:00:00Z" ^^ xsd:dateTime)
}
LIMIT 150

Who are the people who died before 1948, and what are their English names?

List up to 150 humans who died by 1948, along with their English labels.

SELECT ?var1 ?var2 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P570> ?var3 . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } FILTER ( ( ( ?var3 <= "1948-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . } LIMIT 150


Question: Music singles by Kasmir and the albums or discographies they belong to.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?single ?singleLabel ?album ?albumLabel WHERE {
  ?single wdt:P31 wd:Q134556 .
  ?single wdt:P175 wd:Q16299729 .
  ?single wdt:P361 ?album .
  ?single rdfs:label ?singleLabel .
  ?album rdfs:label ?albumLabel .
  FILTER ( LANG( ?singleLabel ) = "en" ) FILTER ( LANG( ?albumLabel ) = "en" )
}

What are the music singles released by Kasmir, and which albums or compilations are they part of?

List all of Kasmir’s music singles along with the albums or release groups they are included in.

SELECT ?var1 ?var2Label ?var3 ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q134556> . ?var1 <http://www.wikidata.org/prop/direct/P175> <http://www.wikidata.org/entity/Q16299729> . ?var1 <http://www.wikidata.org/prop/direct/P361> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "it". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . } }


Question: Which paintings by Leonardo da Vinci are held in France?

SELECT ?painting ?paintingLabel WHERE { ?painting wdt:P31 wd:Q3305213 ; wdt:P170 wd:Q762 ; wdt:P195 ?collection . ?collection wdt:P17 wd:Q142 . }

Leonardo da Vinci paintings in French museums

Show me all paintings created by Leonardo da Vinci that are part of French public collections

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3305213> ; <http://www.wikidata.org/prop/direct/P127> <http://www.wikidata.org/entity/Q142> ; <http://www.wikidata.org/prop/direct/P170> <http://www.wikidata.org/entity/Q762> . }


Question: What is the image of Jessica Mitford in Wikimedia Commons?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?image WHERE {
  ?item wdt:P3430 "w6ft8pz0" .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
}

Can you show me the photo associated with Jessica Mitford’s SNAC ARK ID w6ft8pz0?

Show the Commons image file for the person identified by SNAC ARK ID w6ft8pz0.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w6ft8pz0". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: Which properties are most frequently used to link other entities to Toby Alderweireld, and how many times?

SELECT ?property (COUNT(?item) AS ?count) WHERE { ?item ?property wd:Q128840 . OPTIONAL { ?property rdfs:label ?label . FILTER(LANG(?label) = "en") } } GROUP BY ?property HAVING (?count > 1) ORDER BY DESC(?count)

What properties connect other items to the Belgian footballer Toby Alderweireld, and which ones appear more than once?

Show me the properties that relate other entities to Toby Alderweireld, sorted by frequency, but only include those used more than once.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q128840> . OPTIONAL { ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . } } GROUP BY ?var1 HAVING ( ( ?var3 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ORDER BY DESC( ?var3 )


Question: Which Wikidata items have Twitter usernames like Apple, wikidata, lemondefr, fosdem, or attac_fr?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?username WHERE {
  VALUES ?item {
    wd:Q312 wd:Q2013 wd:Q12461 wd:Q69565062 wd:Q475430 wd:Q118626 wd:Q3501758 wd:Q16655993 wd:Q42921754
  }
  ?item wdt:P2002 ?username .
}

What are the Wikidata entities associated with the Twitter handles Apple, wikidata, lemondefr, fosdem, attac_fr, sfoucart, Calimaq, and ash_crow?

List the Wikidata items and their corresponding Twitter usernames for the handles: Apple, wikidata, lemondefr, fosdem, attac_fr, sfoucart, Calimaq, and ash_crow.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "Desiiah" ) ( "LesNews" ) ( "chronocyte" ) ( "ButaGhibli" ) ( "Gjpvernant" ) ( "string1" ) ( "string2" ) ( "string3" ) ( "Jules78120" ) ( "Apple" ) ( "attac_fr" ) ( "string4" ) ( "libe" ) ( "SylvStal" ) ( "MaelLeHir" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "hatonjan" ) ( "PJ_un_jour" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "Bleeptrack" ) ( "wikidata" ) ( "sfoucart" ) ( "lemondefr" ) ( "string12" ) ( "string13" ) ( "string14" ) ( "string15" ) ( "ash_crow" ) ( "Calimaq" ) ( "CcileMazin" ) ( "Hazukashi1" ) ( "PoulpyWP" ) ( "squintar" ) ( "string16" ) ( "string17" ) ( "string18" ) ( "string19" ) ( "string20" ) ( "string21" ) ( "fosdem" ) ( "string22" ) ( "string23" ) ( "bevellin" ) ( "framaka" ) ( "string24" ) ( "K_rho" ) ( "string25" ) ( "string26" ) ( "string27" ) ( "string28" ) } } ORDER BY ASC( ?var3 )


Question: Who are the people awarded "mort pour la France"?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?personLabel WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P166 wd:Q3324507 .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}
LIMIT 1000

Which humans received the French military honor "mort pour la France"?

List the names of individuals recognized as having died for France, along with their official labels.

SELECT ?var1 ?var1Label ?var2 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P166> <http://www.wikidata.org/entity/Q3324507> . } LIMIT 1000


Question: Image of the person with SNAC ARK ID w67w976z

SELECT ?image WHERE { ?item wdt:P3430 "w67w976z" . OPTIONAL { ?item wdt:P18 ?image . } }

What is the image associated with Islam Karimov in Wikidata?

Can you show me the Wikimedia Commons image linked to the SNAC ARK ID w67w976z?

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w67w976z". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: Most frequently used property linking to uracil?

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property(COUNT(?property) AS ?count) WHERE {
  ?item ?property wd:Q182990 .
}
GROUP BY ?property
ORDER BY DESC(?count)
LIMIT 1

Which property is most commonly used to associate scientific articles with the chemical compound uracil?

Show me the property that connects the most items to uracil, ordered by frequency.

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/Q182990> . ?var1 <http://wikiba.se/ontology#directClaim> ?var4 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 10000 } } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 1


Question: Canada's population, ISO code, and label

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?var1 ?var2 ?var3 ?var4 ?var1Label WHERE {
  ?var1 wdt:P31 wd:Q6256 .
  ?var1 wdt:P297 "CA" .
  OPTIONAL {
    ?var1 wdt:P1082 ?var2 .
  }
  OPTIONAL {
    ?var1 wdt:P297 ?var3 .
  }
  OPTIONAL {
    ?var1 wdt:P300 ?var4 .
  }
  ?var1 rdfs:label ?var1Label .
  FILTER(LANG(?var1Label) = "en")
}
LIMIT 100

What is the population and ISO 3166-1 alpha-2 code of Canada?

Show me the country with ISO code "CA", including its population and English label, and any ISO 3166-2 subdivision codes it might have.

SELECT ?var1 ?var2 ?var3 ?var4 ?var1Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } OPTIONAL { } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P297> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P300> ?var4 . } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . ?var1 <http://www.wikidata.org/prop/direct/P300> "CA". } LIMIT 100


Question: Geographic features located in administrative areas with their source documents.

SELECT DISTINCT ?featureLabel ?feature ?adminUnit ?adminUnitLabel ?source WHERE { ?feature wdt:P131 ?adminUnit . ?adminUnit wdt:P248 ?source . }

Which places are located in administrative units, and what sources document those administrative locations?

Show me buildings, caves, and other features along with the towns they are in and the reference works that cite those locations.

SELECT DISTINCT ?var1Label ?var1 ?var2 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P248> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: Who are the people buried in Paris?

SELECT ?person ?personLabel WHERE { ?person wdt:P119 wd:Q90 . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } LIMIT 1000

List the names of individuals whose place of burial is Paris.

Which historical figures are buried in the city of Paris?

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P119> <http://www.wikidata.org/entity/Q90> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } } LIMIT 1000


Question: Who has the IMDb ID nm1138302?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item WHERE {
  ?item wdt:P345 "nm1138302" .
}

Which person on Wikidata is associated with the IMDb identifier nm1138302?

Find the Wikidata item for the IMDb ID nm1138302.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "nm1138302". }


Question: What is the taxonomic hierarchy above Polypodium moricandii?

SELECT DISTINCT ?ancestor WHERE { wd:Q17112220 wdt:P171+ ?ancestor . }

Can you list all the higher taxonomic groups that Polypodium moricandii belongs to?

Show me the complete lineage of parent taxa for the plant species Polypodium moricandii.

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q17112220> AS ?var2 ). ?var2 ( <http://www.wikidata.org/prop/direct/P171> | <http://www.wikidata.org/prop/direct/P273> | <http://www.wikidata.org/prop/direct/P75> | <http://www.wikidata.org/prop/direct/P76> | <http://www.wikidata.org/prop/direct/P77> | <http://www.wikidata.org/prop/direct/P70> | <http://www.wikidata.org/prop/direct/P71> | <http://www.wikidata.org/prop/direct/P74> | <http://www.wikidata.org/prop/direct/P89> )* ?var1 . }


Question: What are the places in Arkansas that have images, Commons categories, or street addresses?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?place ?placeLabel ?location ?image ?commonsCategory ?address WHERE {
  ?place wdt:P17 wd:Q30 .
  ?place wdt:P131 wd:Q1612 .
  OPTIONAL {
    ?place wdt:P625 ?location .
  }
  OPTIONAL {
    ?place wdt:P18 ?image .
  }
  OPTIONAL {
    ?place wdt:P373 ?commonsCategory .
  }
  OPTIONAL {
    ?place wdt:P969 ?address .
  }
  ?place rdfs:label ?placeLabel .
  FILTER ( LANG( ?placeLabel ) = "en" )
}
LIMIT 3000

Show me entities in Arkansas with their coordinates, images, Wikimedia Commons categories, and addresses.

List places in Arkansas along with their associated images, Commons categories, and street addresses.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerSouthWest> "POINT(-92 35)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(-91 36)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P969> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var1 <http://schema.org/description> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } LIMIT 3000


Question: List municipalities in Niger with their coordinates and images.

SELECT ?municipalityLabel ?image ?coordinates WHERE { ?municipality (wdt:P31/wdt:P279*) wd:Q605291 . ?municipality wdt:P17 wd:Q1032 . ?municipality wdt:P625 ?coordinates . OPTIONAL { ?municipality wdt:P18 ?image . } ?municipality rdfs:label ?municipalityLabel . FILTER(LANG(?municipalityLabel) = "en") }

What are the names, coordinates, and images of municipalities in Niger?

Show me all administrative subdivisions of Niger (like communes or municipalities), including their geographic coordinates and any associated images from Wikimedia Commons.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q605291> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q1032> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: What are all the superclass categories of atheism in the Wikidata hierarchy?

SELECT DISTINCT ?subclass WHERE { wd:Q7066 wdt:P279* ?subclass }

Show me all the broader categories that atheism belongs to, including indirect ones.

What classes is atheism a subclass of, directly or indirectly?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q7066> AS ?var2 ). ?var2 <http://www.wikidata.org/prop/direct/P279> * ?var1 . }