Question: German-language administrative entities used as locations in Wikidata

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?admin ?adminLabel ?adminDescription WHERE {
  ?item wdt:P131 ?admin .
  ?admin rdfs:label ?adminLabel .
  ?admin schema:description ?adminDescription .
  FILTER ( LANG( ?adminLabel ) = "de" ) FILTER ( LANG( ?adminDescription ) = "de" )
}
LIMIT 20

Which administrative places in Wikidata have German labels and descriptions and are used as locations for other items?

Show me up to 20 administrative regions that are used as locations in Wikidata and have German labels and descriptions.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P131> ?var1 . } LIMIT 20 } ?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 20


Question: Which EU official languages have the highest percentage of migration-related concepts labeled in them on Wikidata?

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 ?languageLabel ( ROUND( ( 100 * COUNT( ?topic ) ) / 10 ) AS ?coveragePercentage ) ?languageCode WHERE {
  wd:Q458 wdt:P37 ?language .
  ?language wdt:P424 ?languageCode .
  ?language rdfs:label ?languageLabel .
  VALUES ?topic {
    wd:Q131288 wd:Q131572 wd:Q1932461 wd:Q15320003 wd:Q706601 wd:Q181784 wd:Q379693 wd:Q8458 wd:Q166005 wd:Q1338878
  }
  ?topic rdfs:label ?label .
  FILTER ( LANG( ?label ) = ?languageCode ) FILTER ( LANG( ?languageLabel ) = "en" )
}
GROUP BY ?language ?languageLabel ?languageCode
ORDER BY DESC ( ?coveragePercentage )

Among the official languages of the European Union, which ones have complete label coverage for key migration terms like refugee, immigration, and human rights?

Show me the EU languages where all 10 major migration-related topics have Wikidata labels, ranked by how many topics are covered.

SELECT ?var1Label ( ROUND ( ( ( "100"^^<http://www.w3.org/2001/XMLSchema#integer> * SUM ( ?var2 ) ) / SUM ("1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) AS ?var3 ) ?var4 WHERE { VALUES ( ?var5 ) { ( <http://www.wikidata.org/entity/Q177626> ) ( <http://www.wikidata.org/entity/Q131288> ) ( <http://www.wikidata.org/entity/Q187668> ) ( <http://www.wikidata.org/entity/Q1932461> ) ( <http://www.wikidata.org/entity/Q12547146> ) ( <http://www.wikidata.org/entity/Q706601> ) ( <http://www.wikidata.org/entity/Q473741> ) ( <http://www.wikidata.org/entity/Q15320003> ) ( <http://www.wikidata.org/entity/Q280958> ) ( <http://www.wikidata.org/entity/Q2608153> ) ( <http://www.wikidata.org/entity/Q47191833> ) ( <http://www.wikidata.org/entity/Q4354288> ) ( <http://www.wikidata.org/entity/Q7317170> ) ( <http://www.wikidata.org/entity/Q837556> ) ( <http://www.wikidata.org/entity/Q379693> ) ( <http://www.wikidata.org/entity/Q133004> ) ( <http://www.wikidata.org/entity/Q705818> ) ( <http://www.wikidata.org/entity/Q181784> ) ( <http://www.wikidata.org/entity/Q8463> ) ( <http://www.wikidata.org/entity/Q7167> ) ( <http://www.wikidata.org/entity/Q47192123> ) ( <http://www.wikidata.org/entity/Q59816> ) ( <http://www.wikidata.org/entity/Q11409> ) ( <http://www.wikidata.org/entity/Q41397> ) ( <http://www.wikidata.org/entity/Q230533> ) ( <http://www.wikidata.org/entity/Q154278> ) ( <http://www.wikidata.org/entity/Q166005> ) ( <http://www.wikidata.org/entity/Q8461> ) ( <http://www.wikidata.org/entity/Q8458> ) ( <http://www.wikidata.org/entity/Q79913> ) ( <http://www.wikidata.org/entity/Q1338878> ) ( <http://www.wikidata.org/entity/Q192989> ) ( <http://www.wikidata.org/entity/Q1368367> ) ( <http://www.wikidata.org/entity/Q16513600> ) ( <http://www.wikidata.org/entity/Q36192> ) ( <http://www.wikidata.org/entity/Q18344718> ) ( <http://www.wikidata.org/entity/Q912512> ) ( <http://www.wikidata.org/entity/Q8434> ) ( <http://www.wikidata.org/entity/Q7181> ) ( <http://www.wikidata.org/entity/Q1397926> ) ( <http://www.wikidata.org/entity/Q131572> ) ( <http://www.wikidata.org/entity/Q2382319> ) ( <http://www.wikidata.org/entity/Q283509> ) ( <http://www.wikidata.org/entity/Q49993410> ) ( <http://www.wikidata.org/entity/Q564811> ) ( <http://www.wikidata.org/entity/Q128393> ) ( <http://www.wikidata.org/entity/Q133346> ) ( <http://www.wikidata.org/entity/Q185598> ) ( <http://www.wikidata.org/entity/Q4006> ) ( <http://www.wikidata.org/entity/Q170404> ) ( <http://www.wikidata.org/entity/Q1351807> ) ( <http://www.wikidata.org/entity/Q196756> ) ( <http://www.wikidata.org/entity/Q1522225> ) ( <http://www.wikidata.org/entity/Q43812> ) ( <http://www.wikidata.org/entity/Q2918584> ) ( <http://www.wikidata.org/entity/Q61509> ) ( <http://www.wikidata.org/entity/Q5843> ) ( <http://www.wikidata.org/entity/Q865054> ) ( <http://www.wikidata.org/entity/Q200814> ) ( <http://www.wikidata.org/entity/Q3172759> ) ( <http://www.wikidata.org/entity/Q367293> ) } <http://www.wikidata.org/entity/Q458> <http://www.wikidata.org/prop/direct/P37> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P424> ?var4 . OPTIONAL { BIND ( IF ( BOUND ( ?var6Label ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var2 ). ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . FILTER ( ( ( ?var4 = LANG ( ?var6Label ) ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "io". } } GROUP BY ?var4 ?var1Label ORDER BY DESC( ?var3 )


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

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

What is the Wikidata item for the Twitter account @Oceana?

Find the organization on Wikidata that uses "Oceana" as its Twitter handle.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "Oceana" ) ( "string2" ) } }


Question: Humans named "Mel Gibson" in Spanish or Catalan

SELECT ?person ?label WHERE { ?person wdt:P31 wd:Q5 . ?person rdfs:label ?label . VALUES (?label) { ("Mel Gibson"@es) ("Mel Gibson"@ca) } } ORDER BY ?person

Who are the humans with the name "Mel Gibson" in Spanish or Catalan?

List all humans whose label is "Mel Gibson" in Spanish or Catalan.

SELECT ?var1 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . VALUES ( ?var2Label ) { ( "Mel Gibson"@es ) ( "Mel Gibson"@ca ) } } ORDER BY ASC( ?var1Label )


Question: Image of Jean-Claude Casadesus from SNAC ARK ID w6d22jhb

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

What is the Wikimedia Commons image associated with the SNAC ARK ID w6d22jhb?

Show me the picture of the person whose SNAC ARK ID is w6d22jhb.

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


Question: Which of these Twitter accounts are linked to Wikidata items, and how many Wikipedia articles exist about each person?

SELECT ?item ?twitterUsername (COUNT(?sitelink) AS ?sitelinkCount) WHERE { ?item wdt:P2002 ?twitterUsername . VALUES ?twitterUsername { "guillegros" "Delreg11" "afr0steph" "Hyprion2" "Miliouz1" "eagletoo4" "daily_51" "raiden1968" "PkrMentor" "N_Hulot" } . ?sitelink schema:about ?item ; schema:isPartOf [ wikibase:wikiGroup "wikipedia" ] . } GROUP BY ?item ?twitterUsername ORDER BY ASC(?sitelinkCount)

Can you find the Wikidata entities for the Twitter usernames N_Hulot, Delreg11, and others, and sort them by how many Wikipedia pages mention them?

Show me the Wikidata items that have Twitter usernames like N_Hulot or PkrMentor, along with the number of Wikipedia language versions they have articles in.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "guillegros" ) ( "string2" ) ( "string3" ) ( "Delreg11" ) ( "afr0steph" ) ( "string4" ) ( "Hyprion2" ) ( "Miliouz1" ) ( "string5" ) ( "string6" ) ( "eagletoo4" ) ( "string7" ) ( "daily_51" ) ( "string8" ) ( "raiden1968" ) ( "string9" ) ( "PkrMentor" ) ( "N_Hulot" ) } } ORDER BY ASC( ?var3 )


Question: MoMA artists and their birth places

SELECT ?artist ?momaId ?artistLabel ?birthPlaceLabel WHERE { ?artist wdt:P2174 ?momaId . ?artist wdt:P31 wd:Q5 . OPTIONAL { ?artist wdt:P19 ?birthPlace . ?birthPlace rdfs:label ?birthPlaceLabel . } ?artist rdfs:label ?artistLabel . FILTER(LANG(?artistLabel) = "en") FILTER(LANG(?birthPlaceLabel) = "en") }

Who are the human artists listed in the Museum of Modern Art’s collection, and where were they born?

List the names and birth locations of all human artists who have a Museum of Modern Art artist ID.

SELECT ?var1 ?var2 ?var1Label ?var3Label WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P2174> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var3 . } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: El Greco paintings and their genres

SELECT DISTINCT ?painting ?paintingLabel ?genreLabel WHERE { ?painting wdt:P170 wd:Q301 ; wdt:P31 wd:Q3305213 ; wdt:P136 ?genre . ?painting rdfs:label ?paintingLabel . ?genre rdfs:label ?genreLabel . FILTER(LANG(?paintingLabel) = "en") FILTER(LANG(?genreLabel) = "en") }

What are the paintings created by El Greco and what artistic genres do they belong to?

List all of El Greco’s paintings along with their artistic genres in English.

SELECT DISTINCT ?var1 ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P170> <http://www.wikidata.org/entity/Q301> ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3305213> ; <http://www.wikidata.org/prop/direct/P136> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es, en, [AUTO_LENGUAGE]". } }


Question: What journals have published works by Douglas Hofstadter, and how many works did he publish in each?

SELECT ?publication ?label (COUNT(?work) AS ?count) WHERE { ?work wdt:P50 wd:Q319308 . ?work wdt:P1433 ?publication . ?publication rdfs:label ?labelRaw . FILTER(LANG(?labelRaw) = "en") . OPTIONAL { ?publication wdt:P1813 ?shortName . } BIND(COALESCE(?shortName, ?labelRaw) AS ?label) } GROUP BY ?publication ?label ORDER BY DESC(?count)

Show the publication venues for Douglas Hofstadter’s works, using their short names if available, sorted by frequency.

Which academic journals has Douglas Hofstadter contributed to, and what are their preferred labels (full name or abbreviation)?

SELECT ?var1 ?var2Label ( COUNT ( ?var3 ) AS ?var4 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q319308> . ?var3 <http://www.wikidata.org/prop/direct/P1433> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . FILTER ( ( ( LANG ( ?var5Label ) = "en" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1813> ?var6 . } BIND ( COALESCE ( ?var6 , ?var5Label ) AS ?var2Label ). } GROUP BY ?var1 ?var2Label ORDER BY DESC( ?var4 )


Question: Common class of Maiduguri and Kano

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?commonClass WHERE {
  wd:Q221436 wdt:P31 ?commonClass .
  wd:Q182984 wdt:P31 ?commonClass .
}

What category do both Maiduguri and Kano belong to?

Show me the most specific shared category between the Nigerian cities Maiduguri and Kano.

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q221436> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q22654> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: Scholarly articles authored by Kristina Hanspers, including publication venue, authors, and publication date.

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 ( MIN( ?pubDate ) AS ?minPubDate ) ?work ?workLabel ( GROUP_CONCAT( DISTINCT ?typeLabel ; SEPARATOR = ", " ) AS ?types ) ( SAMPLE( ?pages ) AS ?numPages ) ?venue ?venueLabel ( GROUP_CONCAT( DISTINCT ?authorLabel ; SEPARATOR = ", " ) AS ?authors ) WHERE {
  ?work wdt:P50 wd:Q28865047 .
  OPTIONAL {
    ?work wdt:P31 ?type .
    ?type rdfs:label ?typeLabel .
    FILTER ( LANG( ?typeLabel ) = "en" )
  }
  OPTIONAL {
    ?work wdt:P577 ?pubDate
  }
  OPTIONAL {
    ?work wdt:P1104 ?pages
  }
  OPTIONAL {
    ?work wdt:P1433 ?venue .
    ?venue rdfs:label ?venueLabel .
    FILTER ( LANG( ?venueLabel ) = "en" )
  }
  ?work wdt:P50 ?author .
  ?author rdfs:label ?authorLabel .
  FILTER ( LANG( ?authorLabel ) = "en" )
}
GROUP BY ?work ?workLabel ?venue ?venueLabel
ORDER BY DESC ( ?minPubDate )

What are all the scholarly works written by Kristina Hanspers, and who are the co-authors and journals for each?

List all publications by Kristina Hanspers with their publication dates, journals, number of pages, and full lists of authors.

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/Q28865047> . ?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: Entities with X (Twitter) usernames

SELECT ?entity ?username WHERE { ?entity wdt:P2002 ?username . } LIMIT 10

Which organizations, cities, or people have an X (Twitter) account, and what are their usernames?

Show me a list of entities along with their X (formerly Twitter) usernames.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . } LIMIT 10


Question: What are the publications where Laura Rieger has authored works, and how many works did she publish in each?

SELECT ?publication ?publicationLabel (COUNT(?work) AS ?count)
WHERE {
  ?work wdt:P50 wd:Q48975801 .
  ?work wdt:P1433 ?publication .
  ?publication rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  OPTIONAL {
    ?publication wdt:P1813 ?shortName .
  }
  BIND(COALESCE(?shortName, ?label) AS ?publicationLabel)
}
GROUP BY ?publication ?publicationLabel
ORDER BY DESC(?count)

Show Laura Rieger’s publications with their preferred names (short name if available, otherwise full title), sorted by how many of her works appear in each.

Which journals or conference proceedings have published Laura Rieger’s research, and how many papers does she have in each?

SELECT ?var1 ?var2Label ( COUNT ( ?var3 ) AS ?var4 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q48975801> . ?var3 <http://www.wikidata.org/prop/direct/P1433> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . FILTER ( ( ( LANG ( ?var5Label ) = "en" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1813> ?var6 . } BIND ( COALESCE ( ?var6 , ?var5Label ) AS ?var2Label ). } GROUP BY ?var1 ?var2Label ORDER BY DESC( ?var4 )


Question: What artworks are held by the Bavarian State Painting Collections, and what are their inventory numbers?

SELECT ?artwork ?artworkLabel ?inventoryNumber WHERE { ?artwork wdt:P195 wd:Q812285 . OPTIONAL { ?artwork rdfs:label ?artworkLabel } OPTIONAL { ?artwork wdt:P217 ?inventoryNumber } }

List all paintings and artworks in the Bavarian State Painting Collections along with their catalog numbers.

Show me the titles and inventory IDs of artworks belonging to the Bavarian State Painting Collections.

SELECT ?var1 ?var1Label ?var2 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P195> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P361> <http://www.wikidata.org/entity/Q812285> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P276> <http://www.wikidata.org/entity/Q812285> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P276> ?var4 . ?var4 <http://www.wikidata.org/prop/direct/P361> <http://www.wikidata.org/entity/Q812285> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P217> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,de,fr,it,es,pt,ca,la". } } GROUP BY ?var1 ?var1Label ?var2


Question: Journals where Lauren A. Maggio has published, ordered by number of publications, using abbreviations if available.

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 ?publication ?publicationLabel(COUNT(?work) AS ?publicationCount) WHERE {
  ?work wdt:P50 wd:Q42794800 .
  ?work wdt:P1433 ?publication .
  ?publication rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  OPTIONAL {
    ?publication wdt:P1813 ?shortName .
  }
  BIND(COALESCE(?shortName , ?label) AS ?publicationLabel)
}
GROUP BY ?publication ?publicationLabel
ORDER BY DESC(?publicationCount)

Which journals have published the most works by Lauren A. Maggio, and what are their names (using abbreviations when available)?

Show me a list of journals that Lauren A. Maggio has contributed to, ranked by how many times she’s published in each, with abbreviations shown instead of full titles where they exist.

SELECT ?var1 ?var2Label ( COUNT ( ?var3 ) AS ?var4 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q42794800> . ?var3 <http://www.wikidata.org/prop/direct/P1433> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . FILTER ( ( ( LANG ( ?var5Label ) = "en" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1813> ?var6 . } BIND ( COALESCE ( ?var6 , ?var5Label ) AS ?var2Label ). } GROUP BY ?var1 ?var2Label ORDER BY DESC( ?var4 )


Question: List scholarly works by John P. McCrae, including co-authors, publication venues, and earliest publication dates, sorted from oldest to newest.

SELECT
  (MIN(?pubDate) AS ?earliestPubDate)
  ?work
  ?workLabel
  (GROUP_CONCAT(DISTINCT ?typeLabel; SEPARATOR=", ") AS ?types)
  (SAMPLE(?pages) AS ?sampledPages)
  ?publicationVenue
  ?publicationVenueLabel
  (GROUP_CONCAT(DISTINCT ?coAuthorLabel; SEPARATOR=", ") AS ?coAuthors)
WHERE {
  # Find works authored by John P. McCrae
  ?work wdt:P50 wd:Q47454172 .

  # Get publication date
  OPTIONAL { ?work wdt:P577 ?pubDateRaw . BIND(xsd:date(?pubDateRaw) AS ?pubDate) }

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

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

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

  # Get all authors of the work (including John P. McCrae)
  ?work wdt:P50 ?coAuthor .

  # Exclude John P. McCrae from co-authors
  FILTER(?coAuthor != wd:Q47454172)

  # Get co-author labels
  OPTIONAL {
    ?coAuthor rdfs:label ?coAuthorLabel .
    FILTER(LANG(?coAuthorLabel) = "en")
  }

  # Bind labels for work and publication venue
  ?work rdfs:label ?workLabel .
  FILTER(LANG(?workLabel) = "en")
}
GROUP BY ?work ?workLabel ?publicationVenue ?publicationVenueLabel
ORDER BY ?earliestPubDate

What are the earliest publications authored by John P. McCrae, who are his co-authors, and where were they published?

Show me all works written by John P. McCrae, with their publication dates, co-authors (excluding himself), publication venues, and types — ordered by publication date from oldest to newest.

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/Q47454172> . ?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 is the most specific shared category between South Korea and Athens County, Ohio?

SELECT ?commonAncestor ?commonAncestorLabel WHERE { wd:Q884 wdt:P31 ?class1 . wd:Q485588 wdt:P31 ?class2 . ?class1 wdt:P279* ?commonAncestor . ?class2 wdt:P279* ?commonAncestor . ?commonAncestor rdfs:label ?commonAncestorLabel . FILTER (LANG(?commonAncestorLabel) = "en") FILTER (CONTAINS(LCASE(?commonAncestorLabel), "administrative territorial entity")) } LIMIT 1

In the Wikidata hierarchy, what is the common administrative classification that both South Korea and Athens County belong to?

Find the most specific type that both South Korea and Athens County, Ohio are classified under in terms of administrative structure.

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q884> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q485588> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: What are the names and locations of venues that accept Visa Electron as a payment method?

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 ?venue ?venueLabel ?coord WHERE {
  ?venue wdt:P2851 wd:Q2993698 .
  ?venue wdt:P625 ?coord .
  ?venue rdfs:label ?venueLabel .
  FILTER(LANG(?venueLabel) = "en")
}

Show me mapped businesses in Wikidata that accept Visa Electron.

Which hotels or museums accept Visa Electron and have known geographic coordinates?

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


Question: What are the English and German Wikipedia pages for the movie with IMDb ID tt0366629?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?movie ?wikipedia_page WHERE {
  ?movie wdt:P345 "tt0366629" .
  ?wikipedia_page schema:about ?movie ; schema:inLanguage ?lang ; schema:isPartOf ?site .
  FILTER ( ?lang = "en" || ?lang = "de" ) .
  FILTER ( ?site = <https://en.wikipedia.org/> || ?site = <https://de.wikipedia.org/> )
}

Show me the Wikipedia articles in English or German about the film "James Bond 007: Everything or Nothing".

Which Wikipedia pages link to the movie identified by IMDb ID tt0366629, and in which languages are they written?

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt7169096". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Items in the Musée Saint-Raymond collection with their images and Commons categories.

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 ?item ?itemLabel ?image ?commonsCategory WHERE {
  ?item wdt:P195 wd:Q1376 .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory .
  }
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
}
LIMIT 100

What items are in the Musée Saint-Raymond collection, and what are their associated images and Wikimedia Commons categories?

Show me the English-labeled items from the Musée Saint-Raymond collection, along with their images and Commons categories.

SELECT ?var1 ?var1Label ?var2 ?var3 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/P195> <http://www.wikidata.org/entity/Q1376> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var3 . } } LIMIT 100


Question: Which Joconde work IDs are most frequently reused across different artworks in Wikidata, and what collections and inventory numbers are associated with them?

SELECT ?jocondeId (COUNT(*) AS ?count) (GROUP_CONCAT(DISTINCT ?collectionLabel; SEPARATOR="; ") AS ?collections) (GROUP_CONCAT(DISTINCT ?inventoryNumber; SEPARATOR="; ") AS ?inventoryNumbers) WHERE { ?item wdt:P347 ?jocondeId . OPTIONAL { ?item wdt:P195 ?collection . ?collection rdfs:label ?collectionLabel . FILTER(LANG(?collectionLabel) = "en") } OPTIONAL { ?item wdt:P217 ?inventoryNumber . } MINUS { ?item (wdt:P31/wdt:P279*) wd:Q15727816 . } } GROUP BY ?jocondeId ORDER BY DESC(?count)

What are the Joconde IDs that appear on the most artworks, excluding painting series, and which museums and inventory numbers are linked to those IDs?

Show me the Joconde IDs with the highest number of associated artworks (excluding painting series), along with the collections and inventory numbers they belong to, sorted by frequency.

SELECT ?var1 ( COUNT (* ) AS ?var2 ) WHERE { { SELECT ?var1 ( SUBSTR ( STR ( ?var3 ) ,"32"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var4 ) ?var3Label ( SAMPLE ( SUBSTR ( STR ( ?var5 ) ,"32"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var5 )( GROUP_CONCAT ( ?var6 ; SEPARATOR = " ; " ) AS ?var6 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P347> ?var1 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P195> ?var5 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P217> ?var6 . } MINUS { ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q15727816> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } } GROUP BY ?var1 ?var3 ?var3Label ORDER BY ASC( ?var1 ) } } GROUP BY ?var1 ORDER BY DESC( ?var2 )


Question: List all artworks with their Joconde database identifiers.

SELECT DISTINCT ?artwork ?jocondeId WHERE { ?artwork wdt:P347 ?jocondeId .}

Which artworks in Wikidata have a Joconde ID, and what are those IDs?

Show me the mapping between artworks and their corresponding Joconde work IDs from the French Ministry of Culture’s database.

SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P347> ?var2 . }


Question: Direct properties linking items to costume jewelry, excluding instance of

SELECT DISTINCT ?property WHERE { ?item ?statementProperty wd:Q3575260 . ?property wikibase:statementProperty ?statementProperty . FILTER (?property != wd:P31) }

What properties (other than "instance of") are used to relate other entities to bijou (costume jewelry)?

List all the direct properties that connect any item to costume jewelry, but exclude the "instance of" property.

SELECT DISTINCT ?var1 WHERE { ?var2 ?var3 <http://www.wikidata.org/entity/Q3575260> . ?var1 <http://wikiba.se/ontology#statementProperty> ?var3 . FILTER ( ( ( ?var1 != <http://www.wikidata.org/entity/P31> ) ) ) . }


Question: What is the most specific shared category in the taxonomy between Atlanta and Honolulu?

SELECT ?commonClass ?label WHERE { VALUES ?commonClass { wd:Q486972 wd:Q1306755 wd:Q470540 wd:Q515 wd:Q124250988 } wd:Q23556 wdt:P31 ?type1 . ?type1 wdt:P279* ?commonClass . wd:Q18094 wdt:P31 ?type2 . ?type2 wdt:P279* ?commonClass . ?commonClass rdfs:label ?label . FILTER (LANG(?label) = "en") } ORDER BY ASC(?label) LIMIT 1

What do Atlanta and Honolulu have in common as administrative types in Wikidata?

What is the lowest common ancestor in the subclass hierarchy for the cities of Atlanta and Honolulu?

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q23556> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q18094> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: What are the top journals where Jan Buitelaar has published the most papers?

SELECT ?publication ?publicationLabel ( COUNT( ?work ) AS ?publicationCount ) WHERE { ?work wdt:P50 wd:Q30302466 . ?work wdt:P1433 ?publication . ?publication rdfs:label ?publicationLabel . FILTER(LANG(?publicationLabel) = "en") } GROUP BY ?publication ?publicationLabel ORDER BY DESC ( ?publicationCount )

Which academic journals have published the highest number of articles by Jan Buitelaar, and how many papers did he publish in each?

Show me a ranked list of journals that have published Jan Buitelaar’s research, ordered by the number of publications.

SELECT ?var1 ?var1Label ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q30302466> . ?var2 <http://www.wikidata.org/prop/direct/P1433> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr,de,ru,es,zh,jp". } } GROUP BY ?var1 ?var1Label ORDER BY DESC( ?var3 )


Question: Images of visual artworks and ancient Greek pottery on Wikimedia Commons.

SELECT DISTINCT ?item ?image WHERE { { ?item (wdt:P31/wdt:P279*) wd:Q4502142 . } UNION { ?item (wdt:P31/wdt:P279*) wd:Q738680 . } ?item wdt:P18 ?image . }

What are the images of items that are either visual artworks or ancient Greek pottery?

Show me all images from Wikimedia Commons for items classified as visual artworks or as pottery from ancient Greece, including their subclasses.

SELECT DISTINCT ?var1 ?var2 WHERE { { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q4502142> . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q738680> . } { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } }


Question: What are all the scholarly articles authored by Sheena Radford, including their publication venues, co-authors, and earliest publication dates?

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/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ( MIN( ?pubDate ) AS ?earliestPublicationDate ) ?work ?workLabel ( GROUP_CONCAT( DISTINCT ?instanceLabel ; SEPARATOR = ", " ) AS ?instanceTypes ) ( SAMPLE( ?pages ) AS ?sampledPages ) ?venue ?venueLabel ( GROUP_CONCAT( DISTINCT ?coauthorLabel ; SEPARATOR = ", " ) AS ?coauthors ) WHERE {
  ?work wdt:P50 wd:Q17011933 .
  OPTIONAL {
    ?work rdfs:label ?workLabel .
    FILTER ( LANG( ?workLabel ) = "en" )
  }
  OPTIONAL {
    ?work wdt:P577 ?pubDateRaw .
    BIND( xsd:date ( ?pubDateRaw ) AS ?pubDate )
  }
  OPTIONAL {
    ?work wdt:P31 ?instance .
    ?instance rdfs:label ?instanceLabel .
    FILTER ( LANG( ?instanceLabel ) = "en" )
  }
  OPTIONAL {
    ?work wdt:P1104 ?pages
  }
  OPTIONAL {
    ?work wdt:P1433 ?venue .
    ?venue rdfs:label ?venueLabel .
    FILTER ( LANG( ?venueLabel ) = "en" )
  }
  OPTIONAL {
    ?coauthor wdt:P50 ?work .
    ?coauthor rdfs:label ?coauthorLabel .
    FILTER ( LANG( ?coauthorLabel ) = "en" ) FILTER ( ?coauthor != wd:Q17011933 )
  }
}
GROUP BY ?work ?workLabel ?venue ?venueLabel
ORDER BY DESC ( ?earliestPublicationDate )

List Sheena Radford’s publications in descending order of publication date, showing the journal they appeared in, their type (e.g., scholarly article), and who else co-authored them.

Which journals have published the most work by Sheena Radford, and who are her frequent co-authors across these publications?

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/Q17011933> . ?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 are some places in Finland that belong to a larger organization or system and are located in a specific administrative region?

SELECT ?item ?itemLabel ?adminLabel ?partLabel WHERE { ?item wdt:P131 ?admin . ?item wdt:P361 ?part . ?item wdt:P17 wd:Q33 . ?item rdfs:label ?itemLabel . ?admin rdfs:label ?adminLabel . ?part rdfs:label ?partLabel . FILTER(LANG(?itemLabel) = "en") FILTER(LANG(?adminLabel) = "en") FILTER(LANG(?partLabel) = "en") }

Can you list cultural or historical sites in Finland that are part of a larger group and specify which municipality they are in and what larger entity they belong to?

Show me examples of entities in Finland that are both located in a town or municipality and are part of a broader network or collection, along with their names, locations, and affiliations.

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


Question: What is the most specific category that both Florida and Oakland belong to, based on the shortest path in the subclass hierarchy?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?ancestor ( MIN( ?dist1 ) AS ?minDist1 ) ( MIN( ?dist2 ) AS ?minDist2 ) ( ?minDist1 + ?minDist2 AS ?totalDistance ) WHERE {
  {
    SELECT ?ancestor ( COUNT( ?mid ) AS ?dist1 ) WHERE {
      wd:Q35657 wdt:P279 + ?mid .
      ?mid wdt:P279 * ?ancestor .
    }
    GROUP BY ?ancestor
  }
  {
    SELECT ?ancestor ( COUNT( ?mid ) AS ?dist2 ) WHERE {
      wd:Q515 wdt:P279 + ?mid .
      ?mid wdt:P279 * ?ancestor .
    }
    GROUP BY ?ancestor
  }
}
GROUP BY ?ancestor
ORDER BY ASC ( ?totalDistance )
LIMIT 1

Which class is the closest common ancestor of U.S. state and city in the Wikidata taxonomy?

Find the entity that is the most specific shared superclass of Florida and Oakland, measured by the sum of shortest subclass paths.

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q812> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q17042> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: Finnish municipalities without NE.se ID

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 ?municipality ?municipalityLabel WHERE {
  ?municipality ( wdt:P31 / wdt:P279 * ) wd:Q856076 . MINUS {
    ?municipality wdt:P3222 [] .
  }
  ?municipality rdfs:label ?municipalityLabel .
  FILTER ( LANG( ?municipalityLabel ) = "fi" )
}
ORDER BY ASC ( ?municipalityLabel )

Which municipalities in Finland are not listed in the Swedish Nationalencyklopedin?

List the Finnish municipalities that don’t have a corresponding article on NE.se.

SELECT ?var1 ?var1Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q856076> . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P3222> [] . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sv". } } ORDER BY ASC( ?var1Label )


Question: Heritage-designated buildings in Amsterdam with images

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/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?itemLabel ?adminLabel ?image WHERE {
  ?item wdt:P131 wd:Q727 .
  ?item p:P1435 ?heritage .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item rdfs:label ?itemLabel .
    FILTER ( LANG( ?itemLabel ) = "en" )
  }
  OPTIONAL {
    wd:Q727 rdfs:label ?adminLabel .
    FILTER ( LANG( ?adminLabel ) = "en" )
  }
}
LIMIT 10

What are the heritage-designated sites in Amsterdam, and do they have images?

List the English-named heritage sites in Amsterdam along with their images.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4 ?var5 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerWest> "POINT(5 52)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerEast> "POINT(5 52)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } ?var1 <http://www.wikidata.org/prop/P1435> ?var6 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "nl,en". } }


Question: What are all the academic works authored by Janet Werker, including her co-authors, publication dates, and the journals they were published in, sorted from newest to oldest?

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(MIN(?pubDate) AS ?minPubDate) ?work ?workLabel(GROUP_CONCAT(DISTINCT ?typeLabel ; SEPARATOR = ", ") AS ?types)(SAMPLE(?pages) AS ?numPages) ?publicationSource ?publicationSourceLabel(GROUP_CONCAT(DISTINCT ?authorLabel ; SEPARATOR = ", ") AS ?authors) WHERE {
  ?work wdt:P50 wd:Q22808729 .
  OPTIONAL {
    ?work wdt:P577 ?pubDate .
  }
  OPTIONAL {
    ?work wdt:P31 ?type .
    ?type rdfs:label ?typeLabel .
    FILTER(LANG(?typeLabel) = "en")
  }
  OPTIONAL {
    ?work wdt:P1104 ?pages .
  }
  OPTIONAL {
    ?work wdt:P1433 ?publicationSource .
    ?publicationSource rdfs:label ?publicationSourceLabel .
    FILTER(LANG(?publicationSourceLabel) = "en")
  }
  OPTIONAL {
    ?work wdt:P50 ?author .
    ?author rdfs:label ?authorLabel .
    FILTER(LANG(?authorLabel) = "en")
  }
}
GROUP BY ?work ?workLabel ?publicationSource ?publicationSourceLabel
ORDER BY DESC(?minPubDate)

Show me a list of Janet Werker’s publications with their types (e.g., article), publication sources, number of pages, and all authors involved, ordered by publication date in descending order.

Retrieve all scholarly works by Janet Werker, along with their co-authors, publication venues, and dates — group the results by work and include concatenated labels for types and authors in English.

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/Q22808729> . ?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 is the most specific category that both Pyongyang and Los Angeles belong to?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?class WHERE {
  wd:Q18808 wdt:P31 ?class .
  wd:Q65 wdt:P31 ?class .
  FILTER NOT EXISTS {
    ?other wdt:P31 wd:Q18808 .
    ?other wdt:P31 wd:Q65 .
    ?class wdt:P279 ?other .
  }
}
ORDER BY ?class
LIMIT 1

Which class is the lowest common ancestor of Pyongyang and Los Angeles in Wikidata’s hierarchy?

What is the most specific shared classification for the cities of Pyongyang and Los Angeles?

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q18808> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q65> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: What is the most specific category that both Pyongyang and Brazil belong to?

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 ?commonAncestor ?label WHERE {
  {
    wd:Q18808 wdt:P31 ?type1 .
    ?type1 wdt:P279 ?commonAncestor .
    wd:Q155 wdt:P31 ?type2 .
    ?type2 wdt:P279 ?commonAncestor .
  } UNION {
    wd:Q18808 wdt:P31 ?type1 .
    ?type1 wdt:P279 ?level1 .
    ?level1 wdt:P279 ?commonAncestor .
    wd:Q155 wdt:P31 ?type2 .
    ?type2 wdt:P279 ?level2 .
    ?level2 wdt:P279 ?commonAncestor .
  }
  ?commonAncestor rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" )
}
ORDER BY ASC ( STRLEN( STR( ?label ) ) )
LIMIT 1

What do Pyongyang and Brazil have in common in terms of their classification in Wikidata?

Which higher-level administrative or political category includes both the city of Pyongyang and the country of Brazil?

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q18808> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q155> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: Image of Mario Vargas Llosa using SNAC ARK ID w6hx2g3p

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

What is the Wikimedia Commons image associated with the SNAC ARK ID w6hx2g3p?

Show me the picture of the person whose SNAC ARK ID is w6hx2g3p.

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


Question: What is the most specific category that both Pyongyang and Louisville 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 ?commonType ?commonTypeLabel ?instanceCount WHERE {
  wd:Q18808 wdt:P31 ?commonType .
  wd:Q43668 wdt:P31 ?commonType .
  ?commonType rdfs:label ?commonTypeLabel .
  FILTER(LANG(?commonTypeLabel) = "en")
  {
    SELECT ?commonType(COUNT(?instance) AS ?instanceCount) WHERE {
      ?instance wdt:P31 ?commonType .
    }
    GROUP BY ?commonType
  }
}
ORDER BY ASC(?instanceCount)
LIMIT 1

Which type is shared by both Pyongyang and Louisville, and is the most specific among their common classifications?

Find the common class that both Pyongyang and Louisville are instances of, ranked by how narrowly it defines them.

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q18808> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q43668> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: Dutch-language descriptions of squares in the Netherlands that are not canals, streets, or hamlets.

SELECT ?square ?description WHERE { ?square wdt:P31 wd:Q174782 . ?square wdt:P17 wd:Q55 . FILTER NOT EXISTS { ?square wdt:P31 wd:Q523166 . ?square wdt:P31 wd:Q79007 . ?square wdt:P31 wd:Q1484611 . } OPTIONAL { ?square schema:description ?description . FILTER (LANG(?description) = "nl") } }

What are the Dutch descriptions of public squares in the Netherlands that are not classified as streets, canals, or buurtschappen?

Show me the Dutch descriptions of all squares in the Netherlands, excluding those classified as streets, canals, or small inhabited places.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q174782> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q55> . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q523166> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q79007> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1484611> . } ) ) . OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "nl" ) ) ) . } }


Question: What are some public squares and where are they located?

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 ?square ?squareLabel ?location WHERE {
  ?square wdt:P31 wd:Q174782 .
  ?square wdt:P276 ?location .
  ?square rdfs:label ?squareLabel .
  FILTER ( LANG( ?squareLabel ) = 'en' )
}

Can you list English-named city squares along with the cities they are in?

Show me the names and locations of real-world squares (not types of squares) in English.

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


Question: List all hotels in Amsterdam.

SELECT ?hotel WHERE { ?hotel wdt:P31 wd:Q27686 ; wdt:P131 wd:Q9899 . }

What are the hotels located in Amsterdam?

Show me the entities representing hotels in Amsterdam.

SELECT ?var1 WHERE { <https://adamlink.nl/geo/building/hotel-the-exchange/106> <https://www.wikidata.org/wiki/Property:P31> <http://www.wikidata.org/entity/Q13691604> ; <https://www.wikidata.org/wiki/Property:P131> <http://www.wikidata.org/entity/Q9899> . }


Question: Humans who are citizens of the Netherlands but do not have a Slovenian label.

SELECT ?var1 ?var1Label WHERE { ?var1 wdt:P31 wd:Q5 . ?var1 wdt:P27 wd:Q55 . ?var1 rdfs:label ?var1Label . FILTER ( NOT EXISTS { ?var1 rdfs:label ?slLabel . FILTER ( LANG( ?slLabel ) = "sl" ) } ) } ORDER BY ASC(?var1Label)

Which humans are citizens of the Netherlands and do not have a label in Slovenian?

List all Dutch human citizens sorted alphabetically by their name, excluding those with any Slovenian-language label.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q55> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,de,nl,fr,it,es,no,pt,pl,cs,hr,du". } FILTER ( ( NOT EXISTS { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "sl" ) ) ) . } ) ) . } ORDER BY ASC( ?var1Label )


Question: What is the image of Deventer?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?image WHERE {
  wd:Q10001 wdt:P18 ?image .
}

What image is associated with the municipality of Deventer on Wikimedia Commons?

Show me the official image of Deventer, Netherlands, as stored on Wikimedia Commons.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q10001> <http://www.wikidata.org/prop/direct/P18> ?var1 . }


Question: Streets in the Netherlands named after painters and nearby locations not named after anyone.

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/>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
SELECT ?nearbyLocation ?nearbyLocationLabel ?nearbyLocationCoord WHERE {
  ?street wdt:P31 wd:Q79007 ; wdt:P17 wd:Q55 ; wdt:P138 ?painter ; wdt:P625 ?streetCoord .
  ?painter wdt:P106 wd:Q1028181 .
  ?nearbyLocation wdt:P625 ?nearbyLocationCoord .
  FILTER ( geof:distance ( ?streetCoord , ?nearbyLocationCoord ) <= 0.1 ) MINUS {
    ?nearbyLocation wdt:P138 [] .
  }
  OPTIONAL {
    ?nearbyLocation rdfs:label ?nearbyLocationLabel .
    FILTER ( LANG( ?nearbyLocationLabel ) = "en" )
  }
}

What locations are within 100 meters of streets in the Netherlands that are named after painters, excluding those that are themselves named after someone?

Show me places near streets in the Netherlands that honor painters, but aren’t named after any person themselves, along with their labels and coordinates.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var3 ( <http://www.wikidata.org/prop/direct/P138> / <http://www.wikidata.org/prop/direct/P106> ) <http://www.wikidata.org/entity/Q1028181> ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q79007> ; <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q55> ; <http://www.wikidata.org/prop/direct/P625> ?var4 . SERVICE <http://wikiba.se/ontology#around> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#center> ?var4 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#radius> "0.1". } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P138> [] . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "nl". } }


Question: What is the entity in Wikidata that has the French label "Dicle Haber Ajansı" and is a news agency?

SELECT DISTINCT ?item WHERE { ?item rdfs:label "Dicle Haber Ajansı"@fr . ?item wdt:P31 wd:Q192283 . }

Find the news agency known as "Dicle Haber Ajansı" in French.

Which organization, classified as a news agency, is referred to as "Dicle Haber Ajansı" in French?

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "Diha Kaci"@fr . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . }


Question: List all scholarly articles authored by Ulrik Kjems, including their publication dates, co-authors, journals, and number of pages.

SELECT
  ?publicationDate
  ?work
  ?workLabel
  (GROUP_CONCAT(DISTINCT ?instanceLabel; SEPARATOR=", ") AS ?instanceTypes)
  ?numberOfPages
  ?publishedIn
  ?publishedInLabel
  (GROUP_CONCAT(DISTINCT ?coAuthorLabel; SEPARATOR=", ") AS ?coAuthors)
WHERE {
  ?work wdt:P50 wd:Q27846382 .  # Works authored by Ulrik Kjems

  # Publication date
  OPTIONAL { ?work wdt:P577 ?publicationDate }

  # Number of pages
  OPTIONAL { ?work wdt:P1104 ?numberOfPages }

  # Published in
  OPTIONAL {
    ?work wdt:P1433 ?publishedIn .
    ?publishedIn rdfs:label ?publishedInLabel .
    FILTER(LANG(?publishedInLabel) = "en")
  }

  # Instance type (e.g., scholarly article)
  OPTIONAL {
    ?work wdt:P31 ?instance .
    ?instance rdfs:label ?instanceLabel .
    FILTER(LANG(?instanceLabel) = "en")
  }

  # Work title
  ?work rdfs:label ?workLabel .
  FILTER(LANG(?workLabel) = "en")

  # Co-authors (other authors of the same work)
  OPTIONAL {
    ?work wdt:P50 ?coAuthor .
    ?coAuthor rdfs:label ?coAuthorLabel .
    FILTER(LANG(?coAuthorLabel) = "en")
    # Exclude Ulrik Kjems himself from co-authors
    FILTER(?coAuthor != wd:Q27846382)
  }
}
GROUP BY ?work ?workLabel ?publishedIn ?publishedInLabel ?publicationDate ?numberOfPages
ORDER BY DESC(?publicationDate)

What are the publications by Ulrik Kjems, and who are his co-authors, where were they published, and when?

Please provide a list of Ulrik Kjems’ academic works with their titles, publication years, co-authors, publication venues, instance types (e.g., scholarly article), and page counts, sorted by most recent first.

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/Q27846382> . ?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: Artworks in the Metropolitan Museum of Art created by women and depicting female subjects, with images and Wikipedia pages.

SELECT DISTINCT ?artwork ?artworkLabel ?depictedLabel ?image ?wikipediaPage WHERE { ?artwork wdt:P195 wd:Q160236 . ?artwork wdt:P170 ?creator . ?creator wdt:P21 wd:Q6581072 . ?artwork wdt:P180 ?depicted . ?depicted wdt:P21 wd:Q6581072 . ?artwork wdt:P18 ?image . OPTIONAL { ?wikipediaPage schema:about ?artwork . ?wikipediaPage schema:isPartOf <https://en.wikipedia.org/> . } OPTIONAL { ?artwork rdfs:label ?artworkLabel . FILTER(LANG(?artworkLabel) = "en") } OPTIONAL { ?depicted rdfs:label ?depictedLabel . FILTER(LANG(?depictedLabel) = "en") } } GROUP BY ?artwork ?artworkLabel ?depictedLabel ?image ?wikipediaPage LIMIT 50

Which artworks in the Metropolitan Museum of Art were created by female artists and depict female figures, and what are their images and Wikipedia links?

Show me female-created artworks from the Met that feature female subjects, along with their images and corresponding English Wikipedia pages.

SELECT DISTINCT ?var1 ?var1Label ?var2 ( SAMPLE ( ?var3 ) AS ?var3 ) ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P195> <http://www.wikidata.org/entity/Q160236> . ?var1 <http://www.wikidata.org/prop/direct/P170> ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var1 <http://www.wikidata.org/prop/direct/P180> ?var6 . ?var6 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var7 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var4 <http://schema.org/about> ?var1 . ?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> "[AUTO_LANGUAGE],en,fr,es,de,ru,it,nl,ja,zh,pl,cs". } } GROUP BY ?var1 ?var1Label ?var2 ?var4 LIMIT 50


Question: Who are the female artists whose artworks are held in collections located in New York City?

SELECT DISTINCT ?creatorLabel WHERE { ?work wdt:P195 ?collection . ?collection wdt:P131* wd:Q60 . ?work wdt:P170 ?creator . ?creator wdt:P21 wd:Q6581072 . ?creator rdfs:label ?creatorLabel . FILTER(LANG(?creatorLabel) = "en") }

Female creators of items in New York City collections

List the names of women who created works in collections based in New York City.

SELECT DISTINCT ?var1Label WHERE { ?var2 <http://www.wikidata.org/prop/direct/P195> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P131> * <http://www.wikidata.org/entity/Q60> . ?var2 <http://www.wikidata.org/prop/direct/P170> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Official websites of United States federal agencies

SELECT ?website WHERE { ?agency wdt:P31 wd:Q20857065 . ?agency wdt:P856 ?website . } LIMIT 20

What are the official websites of U.S. federal government agencies?

Can you list up to 20 official websites of organizations that are instances of U.S. federal agencies?

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q20857065> . ?var2 <http://www.wikidata.org/prop/direct/P856> ?var1 . } LIMIT 20


Question: List all scholarly works by Anthony A. Echelle, including co-authors, publication journals, earliest publication dates, and types.

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(MIN(?publicationDate) AS ?earliestPublicationDate) ?work ?workLabel(GROUP_CONCAT(DISTINCT ?authorLabelClean ; SEPARATOR = ", ") AS ?authors)(SAMPLE(?pages) AS ?samplePages) ?publishedIn ?publishedInLabel(GROUP_CONCAT(DISTINCT ?instanceLabel ; SEPARATOR = ", ") AS ?types) WHERE {
  ?work wdt:P50 wd:Q21387677 .
  ?work wdt:P50 ?author .
  OPTIONAL {
    ?author rdfs:label ?authorLabel .
    FILTER(LANG(?authorLabel) = "en")
  }
  BIND(COALESCE(?authorLabel , SUBSTR(STR(?author) , 32)) AS ?authorLabelClean)
  OPTIONAL {
    ?work wdt:P577 ?publicationDateRaw .
    BIND(xsd:date(?publicationDateRaw) AS ?publicationDate)
  }
  OPTIONAL {
    ?work wdt:P1104 ?pages .
  }
  OPTIONAL {
    ?work wdt:P1433 ?publishedIn .
    ?publishedIn rdfs:label ?publishedInLabel .
    FILTER(LANG(?publishedInLabel) = "en")
  }
  OPTIONAL {
    ?work wdt:P31 ?instance .
    ?instance rdfs:label ?instanceLabel .
    FILTER(LANG(?instanceLabel) = "en")
  }
  OPTIONAL {
    ?work rdfs:label ?workLabel .
    FILTER(LANG(?workLabel) = "en")
  }
}
GROUP BY ?work ?workLabel ?publishedIn ?publishedInLabel
ORDER BY DESC(?earliestPublicationDate)

What are the publications authored by Anthony A. Echelle, who are his co-authors, where were they published, and when was the earliest one released?

Show me a list of Anthony A. Echelle’s publications with their co-authors, the journals they appeared in, the number of pages, and their publication dates, sorted from newest to oldest.

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/Q21387677> . ?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: French labels and descriptions of properties used for Claude Monet in Wikidata.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?property ?label ?description WHERE {
  wd:Q296 ?property ?value .
  FILTER(STRSTARTS(STR(?property) , "http://www.wikidata.org/prop/direct/"))
  .
  BIND(IRI(REPLACE(STR(?property) , "http://www.wikidata.org/prop/direct/" , "http://www.wikidata.org/entity/")) AS ?propertyEntity)
  .
  ?propertyEntity rdfs:label ?label .
  ?propertyEntity schema:description ?description .
  FILTER(LANG(?label) = "fr")
  FILTER(LANG(?description) = "fr")
}
LIMIT 100

What are the French labels and descriptions of the properties that describe Claude Monet in Wikidata?

Show me the French names and descriptions of all properties that are used to describe Claude Monet on Wikidata.

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/Q296> . ?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 ) = "fr" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "fr" ) ) ) . } LIMIT 100


Question: Countries with Russian Wikipedia articles

SELECT DISTINCT ?country WHERE { ?country wdt:P31 wd:Q6256 . ?wikipediaPage schema:isPartOf <https://ru.wikipedia.org/> ; schema:about ?country . }

Which countries have a Wikipedia page on the Russian Wikipedia?

List all countries that are linked to articles on the Russian-language Wikipedia.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . ?var2 <http://schema.org/isPartOf> <https://ru.wikipedia.org/> ; <http://schema.org/about> ?var1 . }


Question: Who has the Twitter handle tsipras_eu?

SELECT ?person ?twitterHandle WHERE { ?person wdt:P2002 ?twitterHandle . VALUES ?twitterHandle { "tsipras_eu" } }

Which Wikidata item is associated with the Twitter username tsipras_eu?

Find the person whose Twitter/X username is tsipras_eu.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "tsipras_eu" ) ( "string1" ) ( "syriza_gr" ) ( "dntwit" ) ( "string2" ) } }


Question: What types of entities is Aldi an instance of?

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 ?type ?typeLabel WHERE {
  wd:Q125054 wdt:P31 ?type .
  ?type rdfs:label ?typeLabel .
  FILTER ( LANG( ?typeLabel ) = "en" )
}

What categories does Aldi belong to in Wikidata?

Is Aldi classified as a supermarket chain or a brand name?

SELECT ?var1 ?var1Label WHERE { <http://www.wikidata.org/entity/Property:P31> ?var1 <http://www.wikidata.org/entity/Q125054> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: List all works by Lawrence Butler, including their publication dates, types (e.g., book review or scholarly article), number of pages, and where they were published, sorted by most recent first.

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(MIN(?pubDate) AS ?minPubDate) ?work ?workLabel(GROUP_CONCAT(DISTINCT ?instanceLabel ; SEPARATOR = ", ") AS ?instanceTypes)(SAMPLE(?pages) AS ?numPages) ?publicationVenue ?publicationVenueLabel WHERE {
  ?work wdt:P50 wd:Q42687928 .
  OPTIONAL {
    ?work rdfs:label ?workLabel .
    FILTER(LANG(?workLabel) = "en")
  }
  OPTIONAL {
    ?work wdt:P31 ?instance .
    ?instance rdfs:label ?instanceLabel .
    FILTER(LANG(?instanceLabel) = "en")
  }
  OPTIONAL {
    ?work wdt:P577 ?pubDateRaw .
    BIND(xsd:date(?pubDateRaw) AS ?pubDate)
  }
  OPTIONAL {
    ?work wdt:P1104 ?pages
  }
  OPTIONAL {
    ?work wdt:P1433 ?publicationVenue .
    OPTIONAL {
      ?publicationVenue rdfs:label ?publicationVenueLabel .
      FILTER(LANG(?publicationVenueLabel) = "en")
    }
  }
}
GROUP BY ?work ?workLabel ?publicationVenue ?publicationVenueLabel
ORDER BY DESC(?minPubDate)

What are the publications authored by Lawrence Butler, and what are their publication dates, types, page counts, and venues?

Please provide a list of all scholarly works by Lawrence Butler, with their publication years, types (such as article or review), number of pages, and the journals or books in which they appeared, ordered from newest to oldest.

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/Q42687928> . ?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: Which institutions or individuals on Wikidata have the Twitter handles ENS_ULM, EHESS_fr, Lille3, MaitronD, psl_univ, SFWamPearl, or UnivParis8?

SELECT ?institutionOrPerson ?twitterHandle WHERE { ?institutionOrPerson wdt:P2002 ?twitterHandle . VALUES ?twitterHandle { "ENS_ULM" "EHESS_fr" "Lille3" "MaitronD" "psl_univ" "SFWamPearl" "UnivParis8" } }

Who are the entities on Wikidata associated with the Twitter accounts @ENS_ULM, @EHESS_fr, @Lille3, @MaitronD, @psl_univ, @SFWamPearl, and @UnivParis8?

List all Wikidata entities that are linked to the French academic institutions’ Twitter usernames: ENS_ULM, EHESS_fr, Lille3, MaitronD, psl_univ, SFWamPearl, and UnivParis8.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "ENS_ULM" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "anne1978" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "adane_v" ) ( "EHESS_fr" ) ( "NBarreyre" ) ( "SFWamPearl" ) ( "MaitronD" ) ( "string12" ) ( "UnivParis8" ) ( "string13" ) ( "FDaRochaC" ) ( "Lille3" ) ( "string14" ) ( "AphgIDF" ) ( "string15" ) ( "string16" ) ( "eduscol_HG" ) ( "string17" ) ( "string18" ) ( "psl_univ" ) ( "string19" ) ( "string20" ) ( "ChanetJF" ) } }


Question: Mosques and monasteries in Amsterdam with their types

SELECT ?building ?buildingLabel ?type ?typeLabel WHERE { { ?building wdt:P31 wd:Q32815 . BIND(wd:Q32815 AS ?type) } UNION { ?building wdt:P31 wd:Q44539 . BIND(wd:Q44539 AS ?type) } UNION { ?building wdt:P31 wd:Q44613 . BIND(wd:Q44613 AS ?type) } UNION { ?building wdt:P31 wd:Q697295 . BIND(wd:Q697295 AS ?type) } ?building wdt:P131 wd:Q9899 . ?building rdfs:label ?buildingLabel . ?type rdfs:label ?typeLabel . FILTER(LANG(?buildingLabel) = "en" || LANG(?buildingLabel) = "") FILTER(LANG(?typeLabel) = "en" || LANG(?typeLabel) = "") } LIMIT 200

What are the mosques, monasteries, temples, and shrines located in Amsterdam, and what types are they?

List all religious buildings such as mosques, monasteries, temples, and shrines in Amsterdam, along with their labels and classifications.

SELECT ?var1 ?var2 ?var3 ?var3Label ?var4 ?var4Label ?var5 ?var5Label ?var6 ?var6Label ?var7 ?var8 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } { ?var6 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q32815> . ?var6 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q9899> . } UNION { } UNION { ?var5 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q697295> . ?var5 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q9899> . } UNION { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q44539> . ?var3 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q9899> . } UNION { ?var1 <http://www.wikidata.org/entity/P31> <http://www.wikidata.org/entity/Q44613> . ?var1 <http://www.wikidata.org/entity/P31> <http://www.wikidata.org/entity/Q9899> . } OPTIONAL { } } LIMIT 200


Question: Mosques, shrines, temples, and monasteries in Amsterdam with images and coordinates for mosques.

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 ?monastery ?monasteryLabel ?temple ?templeLabel ?shrine ?shrineLabel ?mosque ?mosqueLabel ?image ?coordinates WHERE {
  {
    ?mosque wdt:P31 wd:Q32815 .
    ?mosque wdt:P131 wd:Q9899 .
    OPTIONAL {
      ?mosque wdt:P18 ?image .
      ?mosque wdt:P625 ?coordinates .
    }
    ?mosque rdfs:label ?mosqueLabel .
    FILTER(LANG(?mosqueLabel) = "en")
  } UNION {
    ?shrine wdt:P31 wd:Q697295 .
    ?shrine wdt:P131 wd:Q9899 .
    ?shrine rdfs:label ?shrineLabel .
    FILTER(LANG(?shrineLabel) = "en")
  } UNION {
    ?temple wdt:P31 wd:Q44539 .
    ?temple wdt:P131 wd:Q9899 .
    ?temple rdfs:label ?templeLabel .
    FILTER(LANG(?templeLabel) = "en")
  } UNION {
    ?monastery wdt:P31 wd:Q44613 .
    ?monastery wdt:P131 wd:Q9899 .
    ?monastery rdfs:label ?monasteryLabel .
    FILTER(LANG(?monasteryLabel) = "en")
  }
}
LIMIT 200

What are the mosques, shrines, temples, and monasteries located in Amsterdam, and which mosques have images and geographic coordinates?

List all religious buildings — including mosques, shrines, temples, and monasteries — in Amsterdam, along with their English labels, and include images and coordinates for mosques where available.

SELECT ?var1 ?var2 ?var3 ?var3Label ?var4 ?var4Label ?var5 ?var5Label ?var6 ?var6Label ?var7 ?var8 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } { ?var6 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q32815> . ?var6 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q9899> . OPTIONAL { ?var6 <http://www.wikidata.org/prop/direct/P18> ?var7 . ?var6 <http://www.wikidata.org/prop/direct/P625> ?var8 . } } UNION { } UNION { ?var5 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q697295> . ?var5 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q9899> . } UNION { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q44539> . ?var3 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q9899> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q44613> . ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q9899> . } } LIMIT 200


Question: What are the English, French, and Italian names for Bacalhau à Brás, along with its image and Wikipedia link?

SELECT ?label ?description ?image ?wikipediaArticle WHERE {
  VALUES (?lang ?order) {
    ("en" 1)
    ("fr" 2)
    ("it" 3)
  }

  wd:Q541392 rdfs:label ?label .
  FILTER (LANG(?label) = ?lang)

  OPTIONAL {
    wd:Q541392 schema:description ?description .
    FILTER (LANG(?description) = "en")
  }

  OPTIONAL {
    wd:Q541392 wdt:P18 ?image .
  }

  OPTIONAL {
    ?wikipediaArticle schema:about wd:Q541392 ;
                    schema:inLanguage "en" ;
                    schema:isPartOf <https://en.wikipedia.org/> .
  }
}
ORDER BY ?order

Can you show me the labels for Bacalhau à Brás in English, French, and Italian, plus its description, image, and English Wikipedia page?

Please provide the multilingual labels (English, French, Italian) for the dish Bacalhau à Brás, its English description, the image from Wikimedia Commons, and its English Wikipedia article.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q541392> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var7 ) ) ) . VALUES ( ?var7 ?var8 ) { ( "en""1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "en""2"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "de""3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "fr""4"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "it""5"^^<http://www.w3.org/2001/XMLSchema#integer> ) } } OPTIONAL { <http://www.wikidata.org/entity/Q541392> <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q541392> <urn:dboabstract> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } OPTIONAL { <http://www.wikidata.org/entity/Q541392> <http://www.wikidata.org/prop/direct/P625> ?var4 . } OPTIONAL { ?var6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Article> ; <http://schema.org/about> <http://www.wikidata.org/entity/Q541392> ; <http://schema.org/inLanguage> "en"; <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } } ORDER BY ASC( ?var8 )


Question: English or German Wikipedia page for the movie with IMDb ID tt3013160

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?movie ?wikipediaPage WHERE {
  ?movie wdt:P345 "tt3013160" .
  ?wikipediaPage schema:about ?movie .
  {
    ?wikipediaPage schema:inLanguage "en" .
  } UNION {
    ?wikipediaPage schema:inLanguage "de" .
  }
}

What is the English or German Wikipedia page for the film Arrowhead (2015)?

Show me the Wikipedia pages in English or German for the movie identified by IMDb ID tt3013160.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt3013160". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Paintings made from oakwood on a painting support

SELECT ?painting ?paintingLabel ?supportLabel WHERE {  ?painting (wdt:P31/wdt:P279*) wd:Q3305213 ;           p:P186 [             ps:P186 wd:Q2075708 ;             pq:P518 wd:Q861259           ] .  wd:Q861259 rdfs:label ?supportLabel .  ?painting rdfs:label ?paintingLabel .  FILTER(LANG(?paintingLabel) = "en")  FILTER(LANG(?supportLabel) = "en")} LIMIT 2000

Which paintings are made from oakwood and applied on a painting support?

Show me the names of paintings that are constructed using oakwood as the material and have a painting support as the surface they are applied to.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q3305213> ; <http://www.wikidata.org/prop/P186> [ <http://www.wikidata.org/prop/statement/P186> <http://www.wikidata.org/entity/Q2075708> ; <http://www.wikidata.org/prop/qualifier/P518> <http://www.wikidata.org/entity/Q861259> ] . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 2000


Question: English label of artificial intelligence

SELECT DISTINCT ?label (LANG(?label) AS ?language) WHERE { wd:Q11660 rdfs:label ?label . FILTER(LANG(?label) = "en") }

What is the English label for the entity "artificial intelligence" on Wikidata?

Show me the English name of artificial intelligence and confirm its language is English.

SELECT DISTINCT ?var1 ( LANG ( ?var1 ) AS ?var2 ) WHERE { <http://www.wikidata.org/entity/Q11660> <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "en" ) ) ) . } LIMIT 100


Question: Poets from India, their birthplaces, names, and birth years.

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 ?birthPlace ?poet ?name ?birthYear WHERE {
  ?poet wdt:P106 wd:Q49757 .
  ?poet wdt:P19 ?birthPlace .
  ?birthPlace wdt:P17 wd:Q668 .
  ?poet rdfs:label ?name .
  OPTIONAL {
    ?poet wdt:P569 ?dateOfBirth .
  }
  BIND( YEAR( ?dateOfBirth ) AS ?birthYear ) .
  FILTER ( LANG( ?name ) = "en" ) .
}

Who are the poets born in India, and where and when were they born?

List the English names, birthplaces, and birth years of all poets from India.

SELECT ?var1 ?var2 ?var3Label ?var4 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q49757> . ?var2 <http://www.wikidata.org/prop/direct/P19> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q668> . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P569> ?var5 . } BIND ( YEAR ( ?var5 ) AS ?var4 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ml". } FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . }


Question: What class do both Hawaii and South Dakota belong to?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?class WHERE {
  wd:Q782 wdt:P31 ?class .
  wd:Q1211 wdt:P31 ?class .
}
LIMIT 1

Which category is shared by the U.S. states of Hawaii and South Dakota?

What is the most specific type that both Hawaii and South Dakota are examples of?

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q782> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q1211> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: What are the birth dates of people in Wikidata who have a WikiTree ID, and do they include approximate dates or date ranges?

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 wikibase: <http://wikiba.se/ontology#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
SELECT ?person ?personLabel ?wikiTreeId ?birthDate ?precision ?calendarModel ?earliestDate ?latestDate ?sourcingCircumstance ?sourcingCircumstanceLabel WHERE {
  ?person wdt:P2949 ?wikiTreeId .
  ?person p:P569 ?birthStatement .
  ?birthStatement psv:P569 ?birthValue .
  ?birthValue wikibase:timeValue ?birthDate ; wikibase:timePrecision ?precision ; wikibase:timeCalendarModel ?calendarModel .
  FILTER(?calendarModel = wd:Q1985727)
  OPTIONAL {
    ?birthStatement pq:P1319 ?earliestDate .
  }
  OPTIONAL {
    ?birthStatement pq:P1326 ?latestDate .
  }
  OPTIONAL {
    ?birthStatement pq:P1480 ?sourcingCircumstance .
    ?sourcingCircumstance rdfs:label ?sourcingCircumstanceLabel .
    FILTER(LANG(?sourcingCircumstanceLabel) = "en")
  }
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}
ORDER BY ASC(?person)
LIMIT 10

Show me people with WikiTree IDs, their exact birth dates, and any notes about uncertainty (like "circa") in their birth records.

List individuals linked to WikiTree with their birth details, including precision, calendar used, and any earliest/latest possible dates.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8Label ?var9 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P2949> ?var10 . ?var1 <http://www.wikidata.org/prop/P569> ?var3 . ?var1 ( <http://www.wikidata.org/prop/P569> / <http://www.wikidata.org/prop/statement/value/P569> ) ?var2 . ?var2 <http://wikiba.se/ontology#timePrecision> ?var5 . ?var2 <http://wikiba.se/ontology#timeValue> ?var4 . ?var2 <http://wikiba.se/ontology#timeCalendarModel> ?var9 . ?var2 <http://wikiba.se/ontology#timeCalendarModel> <http://www.wikidata.org/entity/Q1985786> . ?var2 <http://wikiba.se/ontology#Value> ?var3 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/qualifier/P1319> ?var6 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/qualifier/P580> ?var6 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/qualifier/P1326> ?var7 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/qualifier/P582> ?var7 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/qualifier/P1480> ?var8 . } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1 )


Question: Top countries by number of artists in Finnish National Gallery collection

SELECT ?countryLabel (COUNT(?artwork) AS ?count) WHERE { ?artwork wdt:P195 wd:Q2983474 . ?artwork wdt:P170 ?creator . ?creator wdt:P27 ?country . ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") } GROUP BY ?countryLabel ORDER BY DESC(?count) LIMIT 10

Which countries have the most artists whose works are held by the Finnish National Gallery?

Show me the countries whose artists contributed the most artworks to the Finnish National Gallery, ranked by count.

SELECT ?var1Label ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 <http://www.wikidata.org/prop/direct/P195> <http://www.wikidata.org/entity/Q2983474> . ?var2 <http://www.wikidata.org/prop/direct/P170> ?var4 . ?var4 <http://www.wikidata.org/prop/direct/P27> ?var1 . OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P4819> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fi", "en", "sv". } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var6 . } } GROUP BY ?var1Label ORDER BY DESC( ?var3 )


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

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

Image of Tadeusz Borowski (SNAC ARK ID w61w3c0s)

Show me the Wikimedia Commons image for the entity identified by SNAC ARK ID w61w3c0s.

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


Question: French label and Freebase ID of The Yellow Christ by Paul Gauguin

SELECT ?label ?freebaseId WHERE { wd:Q500951 rdfs:label ?label . FILTER (LANG(?label) = "fr") . wd:Q500951 wdt:P646 ?freebaseId . }

What is the French title of the painting "The Yellow Christ" and its Freebase ID?

Please provide the French name and Freebase identifier for Paul Gauguin’s painting "The Yellow Christ".

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 ?var12 ?var13 ?var14 ?var15 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q500951> <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "fr" ) ) ) . OPTIONAL { ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "fr" ) ) ) . OPTIONAL { ?var5 <http://www.wikidata.org/prop/direct/P646> ?var6 . } } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } }


Question: What is the name of the monument in the Netherlands with Rijksmonument ID 1275?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?monument ?monumentLabel ?rijksmonumentId WHERE {
  ?monument wdt:P359 ?rijksmonumentId .
  ?monument rdfs:label ?monumentLabel .
  FILTER ( ?rijksmonumentId = "1275" )
}
LIMIT 100

Which monument has the identifier 1275 in the Rijksmonument register?

Can you tell me the monument associated with Rijksmonument ID 1275?

SELECT ?var1 ?var1Label ?var2 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "nl,nl". } ?var1 <http://www.wikidata.org/prop/direct/P359> ?var2 . FILTER ( ( ( ?var2 = "1275" ) ) ) . } LIMIT 100


Question: What is the type of IBM according to Wikidata?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?item ?itemLabel ?type ?typeLabel WHERE {
  ?item rdfs:label "IBM" @en .
  ?item wdt:P31 wd:Q4830453 .
  ?article schema:about ?item ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> .
  ?item wdt:P31 ?type .
  ?item rdfs:label ?itemLabel .
  ?type rdfs:label ?typeLabel .
  FILTER(LANG(?itemLabel) = "en")
  FILTER(LANG(?typeLabel) = "en")
}

What are the categories or classes that IBM belongs to on Wikidata?

Show me the English label of IBM and its Wikidata types.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 WHERE { ?var1 ?var4Label "IBM"@en . ?var5 <http://schema.org/about> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P31> "business"@en . ?var5 <http://schema.org/inLanguage> "en". ?var5 <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> "en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . } }


Question: Wikidata items labeled "IBM" in English and their types

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item ?itemLabel ?type ?typeLabel ?page WHERE {
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en" && ?itemLabel = "IBM" @en)
  .
  OPTIONAL {
    ?item wdt:P31 ?type .
    ?type rdfs:label ?typeLabel .
    FILTER(LANG(?typeLabel) = "en")
  }
  OPTIONAL {
    ?item wdt:P304 ?page .
  }
}

What are the types of entities in Wikidata that are labeled "IBM" in English?

List all entities named "IBM" in English along with their categories and any cited page numbers.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 WHERE { ?var1 ?var4Label "IBM"@en . ?var5 <http://schema.org/about> ?var1 . ?var5 <http://schema.org/inLanguage> "en". ?var5 <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> "en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . } OPTIONAL { ?var5 <http://www.wikidata.org/prop/direct/P304> ?var3 . } }


Question: Image of Boris Artzybasheff with SNAC ARK ID w6223008

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

Is there an image available for Boris Artzybasheff, whose SNAC ARK ID is w6223008?

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

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