Question: What are the birth and death dates of Karl Patterson Schmidt?

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 ?personLabel ?birthDate ?deathDate WHERE {
  wd:Q1397402 wdt:P31 wd:Q5 .
  OPTIONAL {
    wd:Q1397402 wdt:P569 ?birthDate .
  }
  OPTIONAL {
    wd:Q1397402 wdt:P570 ?deathDate .
  }
  wd:Q1397402 rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}

Can you tell me when Karl Patterson Schmidt was born and when he died?

Who is Karl Patterson Schmidt, and when were they born and died?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q15240355> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the birth and death dates of Hamar Bass?

SELECT ?personLabel ?birthDate ?deathDate WHERE { wd:Q5644068 rdfs:label ?personLabel . OPTIONAL { wd:Q5644068 wdt:P569 ?birthDate . } OPTIONAL { wd:Q5644068 wdt:P570 ?deathDate . } FILTER(LANG(?personLabel) = "en")}

Can you tell me the full name, date of birth, and date of death of the British politician Hamar Bass?

Who was Hamar Bass, and when was he born and when did he die?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q5644068> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Image of Samuel Garman with SNAC ARK ID w6rb9tpd

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

What is the image associated with the person having the SNAC ARK ID w6rb9tpd?

Show me the Wikimedia Commons image for the individual identified by the SNAC ARK ID w6rb9tpd.

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


Question: What journals or publications has Tom Vincent published in, and how many works did he publish in each?

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

List the publications where researcher Tom Vincent has authored articles, showing the count of his publications per journal, using the English name or abbreviation if available.

Which publications have featured work by Tom Vincent, ranked by how many of his works they contain?

SELECT ?var1 ?var2Label ( COUNT ( ?var3 ) AS ?var4 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q40309288> . ?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: Who is the French politician named François-Marie de la Fléchère?

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 DISTINCT ?person WHERE {
  ?person rdfs:label "François-Marie de la Fléchère" @fr .
  ?person wdt:P31 wd:Q5 .
}

What human entity has the French label "François-Marie de la Fléchère"?

Can you find the person in Wikidata whose name in French is François-Marie de la Fléchère?

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


Question: Films with their predecessor, successor, and IMDb 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 ?film ?predecessor ?predecessorLabel ?successor ?successorLabel ?imdbId WHERE {
  ?film wdt:P31 wd:Q11424 .
  OPTIONAL {
    ?film wdt:P155 ?predecessor .
    ?predecessor rdfs:label ?predecessorLabel .
    FILTER ( LANG( ?predecessorLabel ) = "en" )
  }
  OPTIONAL {
    ?film wdt:P156 ?successor .
    ?successor rdfs:label ?successorLabel .
    FILTER ( LANG( ?successorLabel ) = "en" )
  }
  OPTIONAL {
    ?film wdt:P345 ?imdbId .
  }
}
LIMIT 100

Which films have a predecessor or successor in a series, and what are their IMDb IDs?

Show me films, including their preceding and following films in a series, along with their IMDb identifiers.

SELECT ?var1 ?var2 ?var2Label ?var3 ?var3Label ?var4 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P155> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P156> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P345> ?var4 . } } LIMIT 100


Question: Which 3D file formats are supported by the most software programs?

SELECT ?fileFormat ?fileFormatLabel ( COUNT( ?software ) AS ?count ) (SAMPLE(?softwareLabel) AS ?sampleSoftware) WHERE { ?fileFormat wdt:P31 wd:Q235557 . ?fileFormat wdt:P366 wd:Q189177 . ?software wdt:P1072 ?fileFormat . ?fileFormat rdfs:label ?fileFormatLabel . ?software rdfs:label ?softwareLabel . FILTER(LANG(?fileFormatLabel) = "en") FILTER(LANG(?softwareLabel) = "en") } GROUP BY ?fileFormat ?fileFormatLabel ORDER BY DESC(?count)

What are the most commonly readable 3D file formats, and which software can open them?

List the 3D file formats ranked by how many software applications can read them, along with an example program for each.

SELECT ?var1 ?var1Label ?var2Label ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q235557> . ?var1 <http://www.wikidata.org/prop/direct/P366> <http://www.wikidata.org/entity/Q189177> . ?var2 <http://www.wikidata.org/prop/direct/P1072> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1 ?var1Label ?var2Label ORDER BY DESC( ?var3 )


Question: Movie with EDb ID t0001716

SELECT ?movie WHERE { ?movie wdt:P3141 "t0001716" . }

Which movie has the EDb film ID t0001716?

Tell me the movie that corresponds to the EDb ID t0001716.

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


Question: Is the academic article about Edgar Degas's painting "Repasseuses" classified as a human?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
ASK WHERE {
  wd:Q38414765 wdt:P31 / wdt:P279 * wd:Q5 .
}

Does the scholarly article on Edgar Degas’s artwork belong to the category of human beings?

Is "Edgar Degas, Repasseuses (women ironing) C.1884." a human according to Wikidata’s classification?

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


Question: Countries with their ISO codes, populations, capitals, and currencies.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?country ?isoCode ?population ?capital ?currency WHERE {
  ?country wdt:P31 wd:Q6256 .
  OPTIONAL {
    ?country wdt:P297 ?isoCode .
  }
  OPTIONAL {
    ?country wdt:P1082 ?population .
  }
  OPTIONAL {
    ?country wdt:P36 ?capital .
  }
  OPTIONAL {
    ?country wdt:P38 ?currency .
  }
}
LIMIT 50

What are the population, capital city, and currency of each country?

List all countries along with their two-letter ISO code, population, capital, and official currency.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ?var5 ?var5Label ?var6 ?var7 ?var8 ?var8Label ?var9 ?var9Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P297> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2561> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P36> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2046> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2131> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P38> ?var9 . } } LIMIT 1000


Question: What are the things in Wikidata that are labeled "walk" in English?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item WHERE {
  ?item rdfs:label "walk" @en .
}

Which entities or lexical items in Wikidata have the English label "walk"?

Can you list all concepts and software items named "walk" in English on Wikidata?

SELECT ?var1 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "walk"@en . }


Question: What organizations and awards are associated with Nitesh Chawla, where are they located, and what are their images?

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/>
SELECT DISTINCT ?image ?associatedEntity ?associatedEntityLabel ?locationCoordinate ?relationshipLabel WHERE {
  wd:Q47482977 ?relationshipProperty ?associatedEntity .
  ?associatedEntity rdfs:label ?associatedEntityLabel .
  FILTER(LANG(?associatedEntityLabel) = "en")
  ?propertyEntity wikibase:directClaim ?relationshipProperty .
  ?propertyEntity rdfs:label ?relationshipLabel .
  FILTER(LANG(?relationshipLabel) = "en")
  OPTIONAL {
    ?associatedEntity wdt:P18 ?image .
  }
  ?associatedEntity(p:P159 / pq:P625 | wdt:P276 / wdt:P625) ?locationCoordinate .
}

Can you list the entities (like awards or institutions) linked to Nitesh Chawla, their English labels, their geographic locations, the nature of the association, and any available images?

Show me all the entities connected to Nitesh Chawla — such as awards, employers, or universities — along with their locations, the type of connection (e.g., "educated at"), and their images if available.

SELECT DISTINCT ?var1 ?var2 ?var2Label ?var3 ( ?var4Label AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q47482977> ?var6 ?var2 . ?var2 (( <http://www.wikidata.org/prop/P159> / <http://www.wikidata.org/prop/qualifier/P625> )|( <http://www.wikidata.org/prop/direct/P276> */ <http://www.wikidata.org/prop/direct/P625> )) ?var3 . ?var7 <http://wikiba.se/ontology#directClaim> ?var6 . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,da,de,es,fr,jp,nl,no,ru,sv,zh". } ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . }


Question: What are some entities that have an ISNI (International Standard Name Identifier) assigned to them?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?isni WHERE {
  ?item wdt:P213 ?isni
}
LIMIT 5

Can you list entities along with their ISNI numbers?

Show me examples of people or organizations that have an ISNI identifier.


Question: What is the English and French name of the United Nations?

SELECT ?enLabel ?frLabel WHERE { wd:Q1065 rdfs:label ?enLabel FILTER(LANGMATCHES(LANG(?enLabel), "EN")) . wd:Q1065 rdfs:label ?frLabel FILTER(LANGMATCHES(LANG(?frLabel), "FR")) } LIMIT 10

Show me the English and French labels for the United Nations.

SELECT DISTINCT( <http://www.w3.org/2001/XMLSchema#string> ( ?var1 ) AS ?var2 )( <http://www.w3.org/2001/XMLSchema#string> ( ?var3 ) AS ?var4 ) WHERE { <http://www.wikidata.org/entity/Q3245720> <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . <http://www.wikidata.org/entity/Q3245720> <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . FILTER ( ( LANGMATCHES ( LANG ( ?var1 ) , "FR" ) ) ) . FILTER ( ( LANGMATCHES ( LANG ( ?var3 ) , "EN" ) ) ) . } LIMIT 10


Question: Lists with main topic human

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 ?var1 ?label WHERE {
  ?var1 wdt:P360 wd:Q5 .
  ?var1 rdfs:label ?label .
}
LIMIT 100

What are the lists that have humans as their main topic?

Show me the names of all lists that are primarily about humans.

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


Question: Type of Poblenou Cemetery, its location, and the administrative hierarchy above it.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?cemeteryTypeLabel ?cityTypeLabel ?cityLabel ?regionTypeLabel ?regionLabel WHERE {
  BIND( wd:Q5668717 AS ?cemetery ) .
  ?cemetery wdt:P31 ?cemeteryType .
  ?cemetery wdt:P131 ?city .
  ?city wdt:P31 ?cityType .
  ?city wdt:P131 ?region .
  ?region wdt:P31 ?regionType .
  OPTIONAL {
    ?cemeteryType rdfs:label ?cemeteryTypeLabel .
    FILTER ( LANG( ?cemeteryTypeLabel ) = "en" )
  }
  OPTIONAL {
    ?cityType rdfs:label ?cityTypeLabel .
    FILTER ( LANG( ?cityTypeLabel ) = "en" )
  }
  OPTIONAL {
    ?city rdfs:label ?cityLabel .
    FILTER ( LANG( ?cityLabel ) = "en" )
  }
  OPTIONAL {
    ?regionType rdfs:label ?regionTypeLabel .
    FILTER ( LANG( ?regionTypeLabel ) = "en" )
  }
  OPTIONAL {
    ?region rdfs:label ?regionLabel .
    FILTER ( LANG( ?regionLabel ) = "en" )
  }
}

What type of place is Poblenou Cemetery, and what is its administrative location chain up to the regional level?

Show me the classification and administrative hierarchy of Poblenou Cemetery, including the type and name of the place it’s in and the type and name of the region above that.

SELECT DISTINCT ?var1Label ?var2Label ?var3Label ?var4Label ?var5Label WHERE { BIND ( <http://www.wikidata.org/entity/Q5668717> AS ?var6 ). ?var6 <http://www.wikidata.org/prop/direct/P31> ?var1 . ?var6 <http://www.wikidata.org/prop/direct/P131> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var3 <http://www.wikidata.org/prop/direct/P131> ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P31> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Administrative regions and country of the Bauhaus World Heritage Site

SELECT DISTINCT ?admin ?country ?continent WHERE { wd:Q14863645 wdt:P527 ?part . ?part wdt:P131 ?admin . ?part wdt:P17 ?country . ?country wdt:P30 ?continent .}

In which countries and administrative regions are the Bauhaus sites located?

List the countries and administrative divisions where the Bauhaus World Heritage Site's components are situated.

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


Question: What are some examples of stone arrangements that are types of stone settings?

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 ?subclass ?subclassLabel WHERE {
  ?subclass wdt:P279 wd:Q2341654 .
  ?subclass rdfs:label ?subclassLabel .
  FILTER(LANG(?subclassLabel) = "en")
}
LIMIT 11

Can you list the subclasses of "stone setting" in archaeology?

What are specific kinds of prehistoric stone structures related to stone settings?

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


Question: Wikimedia usernames of German citizens with their English names

SELECT ?person ?personLabel ?username WHERE { ?person wdt:P4174 ?username ; wdt:P27 wd:Q183 . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } LIMIT 1000

Who are the German citizens on Wikimedia projects, and what are their usernames and English names?

Show me the English names and Wikimedia usernames of people who are citizens of Germany.

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


Question: What is the classification of the book "Women Painters of the World" in Wikidata?

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

Is there a list of women painters in Wikidata, and if so, what type of item is it?

What type of work is "Women Painters of the World" — is it a list or a catalogue?

SELECT ?var1 WHERE { <http://dbpedia.org/resource/Emijrp/List_of_women_painters> <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3305213> . }


Question: Publication years and truncated titles of Marta Sales-Pardo's works with page counts.

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 ?year ?titlePrefix WHERE {
  ?work wdt:P50 wd:Q25432128 ; wdt:P577 ?pubDate ; wdt:P1104 ?pages ; rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  BIND(YEAR(?pubDate) AS ?year)
  BIND(SUBSTR(?label , 1 , 20) AS ?titlePrefix)
}
ORDER BY ?year

What are the publication years and first 20 characters of the English titles of Marta Sales-Pardo's published works that have a known number of pages?

Show me the years and shortened titles (first 20 characters) of Marta Sales-Pardo's academic publications that include page numbers.

SELECT ?var1 ?var2 ?var3Label WHERE { { SELECT ?var1 ( SAMPLE ( ?var4 ) AS ?var2 ) ?var3Label WHERE { { SELECT( STR ( ?var5 ) AS ?var1 )( "0"^^<http://www.w3.org/2001/XMLSchema#integer> AS ?var4 )( "_" AS ?var3Label ) WHERE { BIND ( YEAR ( ?var6 ) AS ?var5 ). ?var7 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q577> . ?var7 <http://www.wikidata.org/prop/direct/P585> ?var6 . { SELECT( MIN ( ?var5 ) AS ?var8 )( MAX ( ?var5 ) AS ?var9 ) WHERE { BIND ( YEAR ( ?var10 ) AS ?var5 ). ?var11 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q25432128> . ?var11 <http://www.wikidata.org/prop/direct/P577> ?var10 . } } FILTER ( ( ( ?var5 >= ?var8 ) && ( ?var5 <= ?var9 ) ) ) . } } UNION { BIND ( SUBSTR ( ?var12Label ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"20"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var3Label ). BIND ( STR ( YEAR ( ?var6 ) ) AS ?var1 ). ?var11 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q25432128> . ?var11 <http://www.wikidata.org/prop/direct/P1104> ?var4 . ?var11 <http://www.wikidata.org/prop/direct/P577> ?var6 . ?var11 <http://www.w3.org/2000/01/rdf-schema#label> ?var12Label . FILTER ( ( ( LANG ( ?var12Label ) = "en" ) ) ) . } } GROUP BY ?var1 ?var11 ?var3Label ORDER BY ASC( ?var1 ) } }


Question: Humans who died on February 8, 1858, with their birth dates, English names, and English Wikipedia descriptions.

SELECT DISTINCT ?person ?birthDate ?deathDate ?label ?description ?wikipediaPage WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P569 ?birthDate . ?person wdt:P570 ?deathDate . FILTER (?deathDate = "1858-02-08T00:00:00Z"^^xsd:dateTime) ?person rdfs:label ?label . FILTER (lang(?label) = "en") OPTIONAL { ?wikipediaPage schema:about ?person ; schema:inLanguage "en" ; schema:name ?pageTitle ; schema:description ?description . FILTER (regex(str(?wikipediaPage), "en.wikipedia.org")) } } LIMIT 50

Who were the people born in the 18th century who died on February 8, 1858, and what are their English Wikipedia article titles and descriptions?

List all humans who died on February 8, 1858, including their birth dates, English labels, and the English Wikipedia page and description if available.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var1Label ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P570> ?var3 . OPTIONAL { ?var1 <http://schema.org/description> ?var4 . ?var5 <http://schema.org/inLanguage> "en". ?var5 <http://schema.org/about> ?var1 . } FILTER ( ( ( ?var3 = "1858-02-08T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 50


Question: Wikidata item matching WordNet synset 03291819-n

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item WHERE {
  ?item wdt:P2888 <http://wordnet-rdf.princeton.edu/wn30/03291819-n> .
}

What Wikidata item is exactly the same as the WordNet concept for "envelope"?

Show me the Wikidata entity that corresponds precisely to the WordNet noun "envelope".

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2888> <http://wordnet-rdf.princeton.edu/wn30/03291819-n> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "da". } }


Question: What are all the superclass categories of the honorary doctor of the Hebrew University of Jerusalem?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?superclass WHERE {
  wd:Q28861731 wdt:P279 * ?superclass .
}
LIMIT 100

Can you list all the broader academic or categorical classifications that include the honorary doctorate awarded by the Hebrew University of Jerusalem?

What categories does the honorary doctor of the Hebrew University of Jerusalem belong to, including indirect parent classes?

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


Question: German municipalities with population and subdivisions

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 ?municipality ?municipalityLabel ?population ?subdivision WHERE {
  ?municipality wdt:P31 wd:Q262166 .
  OPTIONAL {
    ?municipality wdt:P1082 ?population .
  }
  OPTIONAL {
    ?municipality wdt:P150 ?subdivision .
  }
  ?municipality rdfs:label ?municipalityLabel .
  FILTER(LANG(?municipalityLabel) = "en")
}

What are the German municipalities, their populations, and the administrative entities they contain?

List all municipalities in Germany, including their English names, population numbers, and any directly contained administrative subdivisions.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q262166> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P150> ?var3 . } }


Question: What are the chemical identifiers (InChIKey, PubChem CID, ChemSpider ID) for the drug imatinib?

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 ?compoundLabel ?inchikey ?pubchem ?chemspider WHERE {
  wd:Q177094 wdt:P235 ?inchikey ; wdt:P662 ?pubchem ; wdt:P661 ?chemspider ; rdfs:label ?compoundLabel .
  FILTER(LANG(?compoundLabel) = "en")
}

Show me the InChIKey, PubChem ID, and ChemSpider ID for the chemical compound imatinib.

Can you find the standard identifiers for imatinib, including its InChIKey and database IDs?

SELECT DISTINCT ?var1 ?var2 ?var1Label ?var3 ?var4 WHERE { { SELECT * WHERE { VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q29005907> ) ( <http://www.wikidata.org/entity/Q177094> ) ( <http://www.wikidata.org/entity/Q24683037> ) ( <http://www.wikidata.org/entity/Q40617346> ) ( <http://www.wikidata.org/entity/Q24799983> ) ( <http://www.wikidata.org/entity/Q40108106> ) ( <http://www.wikidata.org/entity/Q27325747> ) } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11173> . } } UNION { SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P235> ?var2 . FILTER ( ( STRSTARTS ( ?var2 , "GLEEVEC" ) ) ) . } } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P662> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P661> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P235> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the colors of the flags of each country, grouped by country and flag?

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 ?country ?flag(GROUP_CONCAT(?colorLabel ; SEPARATOR = ", ") AS ?colors) WHERE {
  ?country wdt:P31 wd:Q6256 ; wdt:P163 ?flag .
  ?flag wdt:P462 ?color .
  ?color rdfs:label ?colorLabel .
  FILTER(LANG(?colorLabel) = "en")
}
GROUP BY ?country ?flag

List each country with its flag and the English names of all colors used in that flag.

Can you show me which colors appear on each national flag, with the colors concatenated into a single string per flag?

SELECT ?var1 ?var2 ( GROUP_CONCAT ( ?var3 ) AS ?var4 ) WHERE { ?var5 <http://www.wikidata.org/prop/direct/P163> ?var6 ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . ?var6 <http://www.wikidata.org/prop/direct/P462> ?var7 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . } } GROUP BY ?var1 ?var2


Question: Municipalities with population over 1 million and their postal codes.

SELECT ?municipality ?population ?postalCode WHERE { ?municipality wdt:P31 wd:Q15284 . OPTIONAL { ?municipality wdt:P1082 ?population . } OPTIONAL { ?municipality wdt:P281 ?postalCode . } FILTER ( ?population > 1000000 ) }

Which municipalities have a population greater than 1 million, and what are their postal codes?

List all municipalities with more than one million residents, along with their postal codes if available.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q15284> . FILTER ( ( ( ?var2 > "1000000"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P281> ?var3 . } }


Question: What are the municipalities with a population over 500,000, and what are their populations?

SELECT ?municipalityLabel ?population WHERE { ?municipality wdt:P31 wd:Q15284 . ?municipality wdt:P1082 ?population . ?municipality rdfs:label ?municipalityLabel . FILTER ( ?population > 500000 ) }

List all municipalities with more than half a million residents along with their population figures.

Which cities or towns classified as municipalities have a population exceeding 500,000?

SELECT ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/gemeinde> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var2 . } FILTER ( ( ( ?var2 > "500000"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . }


Question: List all humans with French names starting with 'Cécile'.

SELECT DISTINCT ?item WHERE { ?item rdfs:label ?label . FILTER(LANG(?label) = "fr") . FILTER(STRSTARTS(STR(?label), "Cécile")) . ?item wdt:P31 wd:Q5 }

Who are the people named Cécile in French-speaking contexts?

Show me all individuals in Wikidata who have a French label beginning with 'Cécile' and are classified as human.

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


Question: What are the labels and instance types of the Deutsche Bank Twin Towers in different languages?

SELECT ?label ?instanceType WHERE { wd:Q701538 wdt:P31 ?instanceType ; rdfs:label ?label .}

In what languages is the Deutsche Bank Twin Towers labeled, and what building types is it classified as?

Show me all the language labels for the Deutsche Bank Twin Towers along with their class types (e.g., office building, building complex).

SELECT ?var1Label ?var2 WHERE { <http://www.wikidata.org/entity/Q701538> <http://www.wikidata.org/prop/direct/P31> ?var2 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . }


Question: What is the English name and type of Peel Field?

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

English label and instance of type for Peel Field

Show me the English name and category of Peel Field.

SELECT ?var1Label ?var2 WHERE { <http://www.wikidata.org/entity/Q7160212> <http://www.wikidata.org/prop/direct/P31> ?var2 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( "en" = LANG ( ?var1Label ) ) ) ) . }


Question: What is the English label and type of the list of protected heritage sites in Mons?

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

What class does the item 'list of protected heritage sites in Mons' belong to, and what is its English name?

Can you tell me the English name and instance type of the Wikidata item for heritage sites in Mons?

SELECT ?var1Label ?var2 WHERE { <http://www.wikidata.org/entity/Q3096751> <http://www.wikidata.org/prop/direct/P31> ?var2 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( "en" = LANG ( ?var1Label ) ) ) ) . }


Question: List English-labeled universities and higher education institutions with their country, administrative location, headquarters, website, and founding year.

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 ?institutionLabel ?typeLabel ?countryLabel ?adminAreaLabel ?hqLabel ?coords ?website ?inception ?viaf ?isni ?funderId WHERE {
  {
    ?institution wdt:P31 wd:Q38723 .
  } UNION {
    ?institution wdt:P31 wd:Q3918 .
  }
  OPTIONAL {
    ?institution rdfs:label ?institutionLabel .
    FILTER ( LANG( ?institutionLabel ) = "en" )
  }
  OPTIONAL {
    ?institution wdt:P31 ?type .
    ?type rdfs:label ?typeLabel .
    FILTER ( LANG( ?typeLabel ) = "en" )
  }
  OPTIONAL {
    ?institution wdt:P17 ?country .
    ?country rdfs:label ?countryLabel .
    FILTER ( LANG( ?countryLabel ) = "en" )
  }
  OPTIONAL {
    ?institution wdt:P131 ?adminArea .
    ?adminArea rdfs:label ?adminAreaLabel .
    FILTER ( LANG( ?adminAreaLabel ) = "en" )
  }
  OPTIONAL {
    ?institution wdt:P159 ?hq .
    ?hq rdfs:label ?hqLabel .
    FILTER ( LANG( ?hqLabel ) = "en" )
  }
  OPTIONAL {
    ?institution wdt:P625 ?coords
  }
  OPTIONAL {
    ?institution wdt:P856 ?website
  }
  OPTIONAL {
    ?institution wdt:P571 ?inception
  }
  OPTIONAL {
    ?institution wdt:P214 ?viaf
  }
  OPTIONAL {
    ?institution wdt:P213 ?isni
  }
  OPTIONAL {
    ?institution wdt:P3153 ?funderId
  }
  FILTER ( EXISTS {
    ?institution rdfs:label ?institutionLabel .
    FILTER ( LANG( ?institutionLabel ) = "en" )
  }
  )
}
LIMIT 100

What are the names, types, countries, and locations of universities and higher education institutions, along with their official websites and founding dates?

Please provide a list of up to 100 universities and higher education institutions in English, including their type, country, administrative region, headquarters, website, founding date, and identifiers like ISNI and VIAF.

SELECT ?var1Label ?var1 ?var2Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8Label ?var8 ?var9Label ?var9 ?var10 ?var11Label ?var11 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q38723> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3918> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var10 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,de". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P571> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P3153> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P213> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var9 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P159> ?var11 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P214> ?var5 . } } LIMIT 100


Question: What is Fisher Body, and what type of entity is it?

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

What is the English label of Fisher Body and the class it is an instance of?

Can you tell me the name of Fisher Body and its category in English?

SELECT ?var1 ?var2Label WHERE { <http://www.wikidata.org/entity/Q1420686> <http://www.wikidata.org/prop/direct/P31> ?var3 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( "en" = LANG ( ?var2Label ) ) ) ) . FILTER ( ( ( "en" = LANG ( ?var1 ) ) ) ) . }


Question: What is Dora Bakoyannis's profession or category according to Wikidata, and what is her name?

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 ?instanceTypeLabel ?personLabel WHERE {
  wd:Q464862 wdt:P31 ?instanceType ; rdfs:label ?personLabel .
  ?instanceType rdfs:label ?instanceTypeLabel .
  FILTER ( LANG( ?personLabel ) = "en" ) FILTER ( LANG( ?instanceTypeLabel ) = "en" )
}

Is Dora Bakoyannis classified as a human in Wikidata, and what is her full name in English?

What type of entity is Dora Bakoyannis, and what is her English label?

SELECT ?var1 ?var2Label WHERE { <http://www.wikidata.org/entity/Q464862> <http://www.wikidata.org/prop/direct/P31> ?var3 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( "en" = LANG ( ?var2Label ) ) ) ) . FILTER ( ( ( "en" = LANG ( ?var1 ) ) ) ) . }


Question: What are the types of Pandroseion in English, and what is its label?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?typeLabel ?itemLabel WHERE {
  wd:Q2204137 wdt:P31 ?type ; rdfs:label ?itemLabel .
  ?type rdfs:label ?typeLabel .
  FILTER(LANG(?itemLabel) = "en")
  FILTER(LANG(?typeLabel) = "en")
}

What English labels describe the types that Pandroseion belongs to, and what is its own English name?

Show me the English names of the categories that Pandroseion is classified under, along with its own English name.

SELECT ?var1 ?var2Label WHERE { <http://www.wikidata.org/entity/Q2204137> <http://www.wikidata.org/prop/direct/P31> ?var3 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( "en" = LANG ( ?var2Label ) ) ) ) . FILTER ( ( ( "en" = LANG ( ?var1 ) ) ) ) . }


Question: What are the types of Nikaia Municipal Stadium in English?

SELECT ?typeLabel ?stadiumLabel WHERE { wd:Q7034714 wdt:P31 ?type ; rdfs:label ?stadiumLabel . ?type rdfs:label ?typeLabel . FILTER(LANG(?stadiumLabel) = "en") FILTER(LANG(?typeLabel) = "en") }

What is Nikaia Municipal Stadium called, and what categories does it belong to, in English?

Can you list the English labels for the classes that Nikaia Municipal Stadium is an instance of?

SELECT ?var1 ?var2Label WHERE { <http://www.wikidata.org/entity/Q7034714> <http://www.wikidata.org/prop/direct/P31> ?var3 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( "en" = LANG ( ?var2Label ) ) ) ) . FILTER ( ( ( "en" = LANG ( ?var1 ) ) ) ) . }


Question: Type of Trams in Athens and its label in English

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?classLabel ?entityLabel WHERE {
  wd:Q17513364 wdt:P31 ?class ; rdfs:label ?entityLabel .
  ?class rdfs:label ?classLabel .
  FILTER ( LANG( ?entityLabel ) = "en" ) FILTER ( LANG( ?classLabel ) = "en" )
}

What class does Trams in Athens belong to, and what is its English label?

Show me the English label of Trams in Athens and the English name of its type.

SELECT ?var1 ?var2Label WHERE { <http://www.wikidata.org/entity/Q17513364> <http://www.wikidata.org/prop/direct/P31> ?var3 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( "en" = LANG ( ?var2Label ) ) ) ) . FILTER ( ( ( "en" = LANG ( ?var1 ) ) ) ) . }


Question: What is Mount Everest and what type of entity is it?

SELECT ?typeLabel ?mountainLabel WHERE { wd:Q513 wdt:P31 ?type ; rdfs:label ?mountainLabel . ?type rdfs:label ?typeLabel . FILTER (LANG(?mountainLabel) = "en") FILTER (LANG(?typeLabel) = "en") }

Show the English label of Mount Everest and its classification.

What are the English labels for Mount Everest and its type in Wikidata?

SELECT ?var1 ?var2Label WHERE { <http://www.wikidata.org/entity/Q4588332> <http://www.wikidata.org/prop/direct/P31> ?var3 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( "en" = LANG ( ?var2Label ) ) ) ) . FILTER ( ( ( "en" = LANG ( ?var1 ) ) ) ) . }


Question: Image of Jean Anthelme Brillat-Savarin (SNAC ARK ID: w6qj7xz7)

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

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

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

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


Question: Number of citizens of Timor-Leste

SELECT (COUNT(DISTINCT ?person) AS ?count) WHERE { ?person wdt:P27 wd:Q574 . }

How many people are citizens of Timor-Leste?

Tell me how many individuals have Timor-Leste as their country of citizenship.

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


Question: What are the names and ISO codes of all U.S. states and territories in English?

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 ?state ?label ?isoCode WHERE {
  ?state wdt:P17 wd:Q30 ; wdt:P300 ?isoCode ; rdfs:label ?label .
  FILTER NOT EXISTS {
    ?state wdt:P576 ?dissolved .
  }
  FILTER ( LANG( ?label ) = "en" )
}
LIMIT 100

Can you list the English labels and ISO 3166-2 codes for active U.S. administrative subdivisions?

Show me the states and territories of the United States with their official ISO codes, using English names only.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 WHERE { BIND ( <http://www.wikidata.org/entity/Q30> AS ?var6 ). ?var1 <http://www.wikidata.org/prop/P300> ?var7 ; <http://www.wikidata.org/prop/direct/P17> ?var6 ; <http://www.wikidata.org/prop/direct/P131> + ?var8 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . ?var7 <http://www.wikidata.org/prop/statement/P300> ?var3 . FILTER ( ( NOT EXISTS { ?var7 <http://www.wikidata.org/prop/qualifier/P582> ?var9 . } ) ) . FILTER ( ( NOT EXISTS { ?var8 <http://www.wikidata.org/prop/direct/P576> ?var10 . } ) ) . ?var6 <http://www.wikidata.org/prop/direct/P37> ?var11 . ?var11 <http://www.wikidata.org/prop/direct/P424> ?var12 . FILTER ( ( LANG ( ?var2 ) IN ( STR ( ?var12 ) , "en" ) ) ) . OPTIONAL { ?var8 <http://www.wikidata.org/prop/direct/P300> ?var4 . } OPTIONAL { ?var1 <http://www.w3.org/2004/02/skos/core#altLabel> ?var5 . FILTER ( ( LANG ( ?var5 ) IN ( STR ( ?var12 ) , "en" ) ) ) . } }


Question: How many geographic features have their topographic isolation measured in each unit (metre, kilometre, mile)?

PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?unit ?unitLabel ( COUNT( DISTINCT ?feature ) AS ?count ) WHERE {
  ?feature p:P2659 / psv:P2659 [ wikibase:quantityUnit ?unit ] .
  ?unit rdfs:label ?unitLabel .
  FILTER ( LANG( ?unitLabel ) = "en" )
}
GROUP BY ?unit ?unitLabel

What are the most common units used to express topographic isolation on Wikidata, and how many features use each?

Can you show me the count of peaks or mountains with topographic isolation recorded in metres, kilometres, and miles?

SELECT ?var1 ?var1Label ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) WHERE { ?var2 ( <http://www.wikidata.org/prop/P2659> / <http://www.wikidata.org/prop/statement/value/P2659> ) [ <http://wikiba.se/ontology#quantityUnit> ?var1 ] . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1 ?var1Label


Question: Image of Henry James Sumner Maine with SNAC ARK ID w6b584c8

SELECT ?image WHERE { wd:Q1195523 wdt:P3430 "w6b584c8" . OPTIONAL { wd:Q1195523 wdt:P18 ?image . } }

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

Please provide the Wikimedia Commons image for the person identified by the SNAC ARK ID w6b584c8.

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


Question: List the ISO 3166-2 codes for all regions of Chile.

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 ?region ?regionLabel ?isoCode WHERE {
  ?region wdt:P31 wd:Q590080 .
  ?region wdt:P300 ?isoCode .
  ?region rdfs:label ?regionLabel .
  FILTER ( LANG( ?regionLabel ) = "en" )
}

What are the English names and ISO 3166-2 codes of the administrative regions of Chile?

Can you show me the names and ISO codes of Chile’s first-level administrative regions?

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


Question: List all ČSFD person IDs in Wikidata.

SELECT DISTINCT ?csfdId WHERE { ?person wdt:P2605 ?csfdId . }

What are all the ČSFD identifiers assigned to people in Wikidata?

Can you provide a complete list of the ČSFD IDs used to link film professionals in Wikidata to the Czech and Slovak film database?

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


Question: Image of Jean Price-Mars with SNAC ARK ID w66t8hsh

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

What is the Wikimedia Commons image for Jean Price-Mars, identified by SNAC ARK ID w66t8hsh?

Show me the image linked to the SNAC ARK ID w66t8hsh.

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


Question: Celebrities with birth name, date of birth, occupation, gender, and death date

SELECT ?person ?birthName ?birthDate ?occupation ?occupationLabel ?deathDate ?gender ?genderLabel WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P106 ?occupation . FILTER(?occupation IN (wd:Q33999, wd:Q177220, wd:Q36180, wd:Q45664, wd:Q1052281, wd:Q245068, wd:Q134678, wd:Q18624488, wd:Q1628115)) OPTIONAL { ?person wdt:P1477 ?birthName . } OPTIONAL { ?person wdt:P569 ?birthDate . } OPTIONAL { ?person wdt:P570 ?deathDate . } OPTIONAL { ?person wdt:P21 ?gender . } OPTIONAL { ?occupation rdfs:label ?occupationLabel . FILTER(LANG(?occupationLabel) = "en") } OPTIONAL { ?gender rdfs:label ?genderLabel . FILTER(LANG(?genderLabel) = "en") } FILTER(?gender IN (wd:Q6581097, wd:Q6581072)) } LIMIT 100

Who are some famous people (like actors or singers), and what are their birth names, birth dates, occupations, genders, and death dates?

List up to 100 notable people such as actors, singers, and writers, along with their birth names, dates of birth, occupations, genders, and dates of death, where gender is male or female.

SELECT ?var1 ?var2 ?var3 ?var4 ?var4Label ?var5 ?var6 ?var6Label ?var5Label ?var7 ?var7Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1477> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P106> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var6 . } ?var7 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q211236> . } LIMIT 100


Question: What is the English name and description of the entry with ID 2096101 in the Great Russian Encyclopedia Online (old version)?

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

Can you tell me the English label and description for the fossil plant order identified as 2096101 in the Great Russian Encyclopedia?

Show me the English name and definition of the taxon linked to the Great Russian Encyclopedia ID 2096101.

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


Question: What are the titles and creation years of paintings by King Charles XV of Sweden?

SELECT ?painting ?paintingLabel ?property ?propertyLabel ?value ?valueLabel WHERE { ?painting wdt:P170 wd:Q52925 ; ?property ?value . FILTER(?property IN (wdt:P1476, wdt:P571)) OPTIONAL { ?painting rdfs:label ?paintingLabel . FILTER(LANG(?paintingLabel) = "en") } OPTIONAL { ?property rdfs:label ?propertyLabel . FILTER(LANG(?propertyLabel) = "en") } OPTIONAL { ?value rdfs:label ?valueLabel . FILTER(LANG(?valueLabel) = "en") } }

List the paintings created by Charles XV of Sweden along with their English titles and when they were created.

Show me the artwork titles and inception dates for all paintings by the Swedish king Charles XV.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var4Label WHERE { ?var3 <http://wikiba.se/ontology#claim> ?var5 . ?var3 <http://wikiba.se/ontology#statementProperty> ?var6 . ?var3 <http://wikiba.se/ontology#qualifier> ?var7 . ?var3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var4 <http://wikiba.se/ontology#claim> ?var8 . ?var4 <http://wikiba.se/ontology#qualifier> ?var9 . ?var4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var1 ?var5 ?var10 . ?var10 ?var6 ?var2 . ?var10 ?var9 <http://www.wikidata.org/entity/Q18601662> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Films featuring Kevin Bacon as an actor.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?film WHERE {
  ?film wdt:P161 wd:Q3454165 .
  ?film ( wdt:P31 / wdt:P279 * ) wd:Q11424 .
}

Which movies has Kevin Bacon appeared in?

List all films where Kevin Bacon was a cast member.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P161> <http://www.wikidata.org/entity/Q3454165> . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Films starring Kevin Bacon

SELECT ?film ?filmTitle WHERE { ?film wdt:P161 wd:Q3454165 . ?film (wdt:P31/wdt:P279*) wd:Q11424 . ?film wdt:P1476 ?filmTitle .}

What are the titles of all films in which Kevin Bacon has appeared?

List the titles of movies and film genres where Kevin Bacon acted.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P161> <http://www.wikidata.org/entity/Q3454165> . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q11424> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the most common entities associated with tennis players, and how many players are linked to each?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?var1 ( COUNT( DISTINCT ?var2 ) AS ?var3 ) WHERE {
  ?var2 wdt:P641 wd:Q847 ; ?var4 ?var1 .
  FILTER ( isIRI( ?var1 ) )
}
GROUP BY ?var1
HAVING ( ?var3 > 100 )
ORDER BY DESC ( ?var3 )
LIMIT 50

Which countries, tournaments, or sports are linked to over 100 tennis players?

Show the top 50 entities that are connected to the most tennis players.

SELECT ?var1 ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". ?var2 <http://www.wikidata.org/prop/direct/P641> <http://www.wikidata.org/entity/Q847> ; ?var4 ?var1 . ?var5 <http://wikiba.se/ontology#directClaim> ?var4 ; <http://wikiba.se/ontology#propertyType> <http://wikiba.se/ontology#WikibaseItem> . } GROUP BY ?var1 HAVING ( ( ?var3 > "100"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ORDER BY DESC( ?var3 ) LIMIT 50


Question: What scholarly articles cite the paper "Mitochondria-Targeted Lupane Triterpenoid Derivatives and Their Selective Apoptosis-Inducing Anticancer Mechanisms"?

SELECT ?citedArticle ?title WHERE { ?citedArticle wdt:P2860 wd:Q46341422 . ?citedArticle wdt:P1476 ?title . FILTER(LANG(?title) = "en") }

Which research papers reference this study on lupane triterpenoid derivatives as anticancer agents?

Show me the titles of articles that cite the 2017 paper on mitochondria-targeted triterpenoids.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var4Label WHERE { ?var3 <http://wikiba.se/ontology#claim> ?var5 . ?var3 <http://wikiba.se/ontology#statementProperty> ?var6 . ?var3 <http://wikiba.se/ontology#qualifier> ?var7 . ?var3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var4 <http://wikiba.se/ontology#claim> ?var8 . ?var4 <http://wikiba.se/ontology#qualifier> ?var9 . ?var4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var1 ?var5 ?var10 . ?var10 ?var6 ?var2 . ?var10 ?var9 <http://www.wikidata.org/entity/Q46341422> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Which articles are cited by the paper "Use of genes encoding cellobiohydrolase-C and topoisomerase ... for phylogenetic analysis and identification of Fusarium"?

SELECT ?citedArticle ?citedArticleLabel ?property ?propertyLabel WHERE { ?citedArticle wdt:P2860 wd:Q42627141 . ?property wikibase:directClaim wdt:P2860 . OPTIONAL { ?citedArticle rdfs:label ?citedArticleLabel . FILTER(LANG(?citedArticleLabel) = "en") } OPTIONAL { ?property rdfs:label ?propertyLabel . FILTER(LANG(?propertyLabel) = "en") } } LIMIT 100

Articles cited in the study on Fusarium identification using cellobiohydrolase-C and topoisomerase genes

List the scholarly works referenced by the 2004 paper on Fusarium phylogenetic analysis.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ?var3 <http://www.wikidata.org/entity/Q42627141> . ?var2 <http://wikiba.se/ontology#directClaim> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100


Question: What academic articles cite the study on magnetic resonance spectroscopy and diffusion-weighted imaging in brain pathology?

SELECT ?citingArticle ?citingArticleLabel WHERE { ?citingArticle wdt:P2860 wd:Q36695416 . ?citingArticle rdfs:label ?citingArticleLabel . FILTER(LANG(?citingArticleLabel) = "en") }

List the titles of papers that reference the 1993 article on brain biochemistry using MRI techniques.

Which scholarly works cite the article titled "Applications of magnetic resonance spectroscopy and diffusion-weighted imaging to the study of brain biochemistry and pathology"?

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var4Label WHERE { ?var3 <http://wikiba.se/ontology#claim> ?var5 . ?var3 <http://wikiba.se/ontology#statementProperty> ?var6 . ?var3 <http://wikiba.se/ontology#qualifier> ?var7 . ?var3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var4 <http://wikiba.se/ontology#claim> ?var8 . ?var4 <http://wikiba.se/ontology#qualifier> ?var9 . ?var4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var1 ?var5 ?var10 . ?var10 ?var6 ?var2 . ?var10 ?var9 <http://www.wikidata.org/entity/Q36695416> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Properties and values of the village Khomartaj in Iran

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?propertyLabel ?value ?valueLabel WHERE {
  wd:Q5818092 ?property ?value .
  OPTIONAL {
    ?property rdfs:label ?propertyLabel FILTER ( LANG( ?propertyLabel ) = "en" )
  }
  OPTIONAL {
    ?value rdfs:label ?valueLabel FILTER ( LANG( ?valueLabel ) = "en" )
  }
}
LIMIT 100

What are the properties and their values for the village Khomartaj?

Show me all the information known about Khomartaj, including property names and their values.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ?var3 <http://www.wikidata.org/entity/Q5818092> . ?var2 <http://wikiba.se/ontology#directClaim> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100


Question: List of military air bases in Wikidata with English labels.

SELECT ?airbaseLabel ?airbase WHERE { ?airbase wdt:P31 wd:Q695850 . ?airbase rdfs:label ?airbaseLabel . FILTER(LANG(?airbaseLabel) = "en") } LIMIT 100

What are some examples of air bases that are instances of military aerodromes in Wikidata, along with their English names?

Show me the names of air bases in English from Wikidata that are used by military forces for aircraft operations.

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


Question: How many times is the United States Public Law (P3837) used in statements, references, and qualifiers, and what are the rank distributions?

PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?usageType ?rank ?count WHERE {
  {
    SELECT ( wikibase:statementProperty AS ?usageType ) ?rank ( COUNT( DISTINCT ?item ) AS ?count ) WHERE {
      ?item p:P3837 ?stmt .
      OPTIONAL {
        ?stmt wikibase:rank ?rank
      }
    }
    GROUP BY ?rank
  } UNION {
    VALUES ( ?usageType ?rank ) {
      ( wikibase:reference "none" )
    }
    {
      SELECT ( COUNT( DISTINCT ?item ) AS ?count ) WHERE {
        ?item pr:P3837 ?ref .
      }
    }
  } UNION {
    VALUES ( ?usageType ?rank ) {
      ( wikibase:qualifier "none" )
    }
    {
      SELECT ( COUNT( DISTINCT ?item ) AS ?count ) WHERE {
        ?item pq:P3837 ?qual .
      }
    }
  }
}
ORDER BY DESC ( ?usageType ) DESC ( ?count ) ASC ( ?rank )

What is the count of distinct items using United States Public Law (P3837) as a statement (by rank), as a reference, and as a qualifier?

Show me the usage statistics of the United States Public Law property (P3837), broken down by whether it's used in statements (with rank), references, or qualifiers.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { { SELECT( <http://wikiba.se/ontology#statementProperty> AS ?var1 )( COUNT ( DISTINCT ?var5 ) AS ?var3 )( COUNT ( ?var6 ) AS ?var4 ) WHERE { ?var5 <http://www.wikidata.org/prop/P3837> ?var6 . } } UNION { SELECT( <http://wikiba.se/ontology#statementProperty> AS ?var1 )( <http://wikiba.se/ontology#BestRank> AS ?var2 )( COUNT ( DISTINCT ?var5 ) AS ?var3 )( COUNT ( ?var7 ) AS ?var4 ) WHERE { ?var5 <http://www.wikidata.org/prop/direct/P3837> ?var7 . } } UNION { SELECT( <http://wikiba.se/ontology#statementProperty> AS ?var1 ) ?var2 ( COUNT ( DISTINCT ?var5 ) AS ?var3 )( COUNT ( ?var8 ) AS ?var4 ) WHERE { ?var5 <http://www.wikidata.org/prop/P3837> ?var8 . ?var8 <http://wikiba.se/ontology#rank> ?var2 . } GROUP BY ?var2 } UNION { SELECT( <http://wikiba.se/ontology#reference> AS ?var1 )( COUNT ( DISTINCT ?var5 ) AS ?var3 )( COUNT ( ?var6 ) AS ?var4 ) WHERE { ?var5 <http://www.wikidata.org/prop/reference/P3837> ?var6 . } } UNION { SELECT( <http://wikiba.se/ontology#qualifier> AS ?var1 )( COUNT ( DISTINCT ?var5 ) AS ?var3 )( COUNT ( ?var6 ) AS ?var4 ) WHERE { ?var5 <http://www.wikidata.org/prop/qualifier/P3837> ?var6 . } } } ORDER BY DESC( ?var1 ) DESC( ?var3 )ASC( ?var2 )


Question: What protein is encoded by the CT_842 gene in Chlamydia trachomatis?

SELECT DISTINCT ?gene ?protein WHERE { ?taxon wdt:P685 "272561" . ?gene wdt:P2393 "CT_842" ; wdt:P703 ?taxon ; wdt:P688 ?protein . }

Which protein does the gene with NCBI locus tag CT_842 encode in Chlamydia trachomatis?

Find the protein product of the CT_842 gene in Chlamydia trachomatis.

SELECT DISTINCT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P685> "272561". ?var1 <http://www.wikidata.org/prop/direct/P2393> "CT_842"; <http://www.wikidata.org/prop/direct/P703> ?var3 ; <http://www.wikidata.org/prop/direct/P688> ?var2 . }


Question: What Gene Ontology terms and categories (molecular function, biological process, or cellular component) are associated with the UniProt protein O84849?

SELECT DISTINCT
  ?goTermLabel
  ?goId
  ?goCategoryLabel
WHERE {
  # Find protein by UniProt ID
  ?protein wdt:P352 "O84849" .

  # Link to GO annotation statements (P680, P681, P682)
  ?protein p:P680|p:P681|p:P682 ?goStatement .

  # Extract GO term
  ?goStatement ps:P680|ps:P681|ps:P682 ?goTerm .

  # Get GO ID
  ?goTerm wdt:P686 ?goId .

  # Get category (subclass of: molecular function, biological process, cellular component)
  ?goTerm wdt:P279* ?goCategory .
  VALUES ?goCategory { wd:Q2996394 wd:Q5058355 wd:Q14860489 }

  # Get labels in English
  OPTIONAL { ?goTerm rdfs:label ?goTermLabel . FILTER(LANG(?goTermLabel) = "en") }
  OPTIONAL { ?goCategory rdfs:label ?goCategoryLabel . FILTER(LANG(?goCategoryLabel) = "en") }
}
ORDER BY ?goId

For the protein with UniProt ID O84849, what are its annotated Gene Ontology functions and processes, and which broader categories do they belong to?

List all Gene Ontology annotations (with GO IDs and whether they are molecular functions, biological processes, or cellular components) for the protein identified by UniProt ID O84849.

SELECT DISTINCT ?var1Label ?var2 ?var1 ?var3 ?var4Label ?var5Label ?var6Label ?var7 WHERE { ?var8 <http://www.wikidata.org/prop/direct/P352> "O84849". { ?var8 <http://www.wikidata.org/prop/P680> ?var9 . } UNION { ?var8 <http://www.wikidata.org/prop/P681> ?var9 . } UNION { ?var8 <http://www.wikidata.org/prop/P682> ?var9 . } ?var9 <http://www.wikidata.org/prop/qualifier/P459> ?var4 . ?var9 ( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P248> ) ?var5 . ?var9 ( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P813> ) ?var6 . OPTIONAL { ?var9 ( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P698> ) ?var10 . } { ?var9 <http://www.wikidata.org/prop/statement/P680> ?var1 . } UNION { ?var9 <http://www.wikidata.org/prop/statement/P681> ?var1 . } UNION { ?var9 <http://www.wikidata.org/prop/statement/P682> ?var1 . } ?var1 <http://www.wikidata.org/prop/direct/P279> * ?var3 ; <http://www.wikidata.org/prop/direct/P686> ?var2 . FILTER ( ( ( ?var3 = <http://www.wikidata.org/entity/Q2996394> ) || ( ?var3 = <http://www.wikidata.org/entity/Q5058355> ) || ( ?var3 = <http://www.wikidata.org/entity/Q14860489> ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P591> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the most commonly used property in Wikidata to link items to the chemical formula property (P199)?

SELECT ?directProperty (COUNT(?directProperty) AS ?count) WHERE { ?item ?statementProperty wd:P199 . ?directProperty wikibase:directClaim ?statementProperty . ?directProperty rdf:type wikibase:Property . } GROUP BY ?directProperty ORDER BY DESC(?count) LIMIT 1

Which direct claim property appears most often when the object of a statement is the property "chemical formula"?

Among all properties used to assert "chemical formula" as an object, which one is used the most?

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


Question: List all Van Gogh paintings with JH catalog numbers and indicate which ones have images on Wikimedia Commons.

SELECT ?catalogCode ?painting ?hasImage WHERE { ?painting wdt:P31 wd:Q3305213 . ?painting p:P528 ?statement . ?statement ps:P528 ?catalogCode . ?statement pq:P972 wd:Q19833315 . OPTIONAL { ?painting wdt:P18 ?image . } BIND( IF( BOUND(?image), 1, 0 ) AS ?hasImage ) }

Which of Van Gogh’s paintings are listed in the Jan Hulsker catalog (JH numbers), and do they have images available on Commons?

Show me the JH catalog codes for Van Gogh’s paintings, the painting items, and a flag indicating whether each has a corresponding image on Wikimedia Commons.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3305213> . ?var3 <http://www.wikidata.org/prop/P528> ?var5 . ?var5 <http://www.wikidata.org/prop/statement/P528> ?var2 . ?var5 <http://www.wikidata.org/prop/qualifier/P972> <http://www.wikidata.org/entity/Q19833315> . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P18> ?var6 . } BIND ( IF ( BOUND ( ?var6 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var4 ). }


Question: What are the RKY national heritage IDs for lighthouses in Sweden, including those part of larger heritage sites?

SELECT ?lighthouse ?rkyId WHERE { ?lighthouse wdt:P31 wd:Q39715 . { ?lighthouse wdt:P361 ?heritageSite . ?heritageSite wdt:P4009 ?rkyId . } UNION { ?lighthouse wdt:P4009 ?rkyId . } }

Which lighthouses in Sweden have an RKY national built heritage environment ID, either directly or through being part of a larger heritage site?

List all lighthouses and their corresponding RKY heritage identifiers, whether they are individually registered or part of a registered heritage complex.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q39715> . { ?var1 <http://www.wikidata.org/prop/direct/P361> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P4009> ?var2 . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P4009> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fi". } }


Question: Who is the French person named Jean Olié?

SELECT DISTINCT ?person WHERE { ?person rdfs:label "Jean Olié" @fr . ?person wdt:P31 wd:Q5 .}

Find the human with the French label "Jean Olié".

Tell me the Wikidata item for the French soldier Jean Olié.

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


Question: What countries, cities, and continents is the Le Méridien Kota Kinabalu located in?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?location ?locationLabel WHERE {
  {
    wd:Q41799055(wdt:P17 | wdt:P131) ?location .
  } UNION {
    wd:Q41799055 wdt:P17 ?country .
    ?country wdt:P30 ?location .
  }
  ?location rdfs:label ?locationLabel .
  FILTER(LANG(?locationLabel) = "en")
}

Can you tell me the administrative and geographic hierarchy of the Le Méridien Kota Kinabalu hotel, including its country and continent?

Which geographic entities such as city, country, and continent are associated with the Le Méridien Kota Kinabalu?

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


Question: People who died today, and the year they died

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?personLabel(YEAR(?deathDate) AS ?deathYear) WHERE {
  ?person wdt:P570 ?deathDate .
  FILTER(MONTH(?deathDate) = MONTH(NOW ()) && DAY(?deathDate) = DAY(NOW ()))
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}
LIMIT 10

Who died on this day in history, and in what year?

Show me the names and death years of people who died on today’s date.

SELECT ?var1Label ( YEAR ( ?var2 ) AS ?var3 ) WHERE { BIND ( MONTH ( NOW ( ) ) AS ?var4 ). BIND ( DAY ( NOW ( ) ) AS ?var5 ). ?var1 <http://www.wikidata.org/prop/direct/P570> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( ( MONTH ( ?var2 ) = ?var4 ) && ( DAY ( ?var2 ) = ?var5 ) ) ) . } LIMIT 10


Question: What film has the EDb ID t0012785?

SELECT ?film WHERE { ?film wdt:P3141 "t0012785" . }

Which movie is identified by the EDb film ID t0012785?

I’m looking for the movie in Wikidata that corresponds to the EDb identifier t0012785.

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


Question: What film has the Russian Ministry of Culture ID 110202558?

SELECT ?film WHERE { ?film wdt:P2636 "110202558" . }

Which movie is identified by the code 110202558 in Russia’s official film register?

Find the film in Wikidata that is listed with the MKRF ID 110202558.

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


Question: Film with Scope.dk ID 1125

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

Which film has the Scope.dk film ID 1125?

Tell me the film that is identified as 1125 on Scope.dk.

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


Question: Image of the person with SNAC ARK ID w6jq3380

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

What is the image associated with Maria Montessori’s SNAC ARK ID (w6jq3380)?

Show me the Wikimedia Commons image for the individual identified by the SNAC ARK ID w6jq3380.

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


Question: What films has Tom Hanks acted in, and what are their titles?

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 ?film ?filmLabel ?title WHERE {
  ?film wdt:P161 wd:Q2263 .
  OPTIONAL {
    ?film wdt:P1476 ?title .
  }
  ?film rdfs:label ?filmLabel .
  FILTER ( LANG( ?filmLabel ) = "en" )
}

List all movies featuring Tom Hanks along with their English titles and official titles.

Show me the English titles and official titles of films where Tom Hanks was a cast member.

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


Question: List UK railway stations and their CRS codes.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?station ?stationLabel ?crsCode WHERE {
  ?station wdt:P4755 ?crsCode .
  ?station rdfs:label ?stationLabel .
  FILTER ( LANG( ?stationLabel ) = "en" )
}
LIMIT 1000

What are the English names and three-letter codes of UK railway stations?

Can you provide a list of UK railway stations with their official CRS codes and their English labels?

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


Question: What film has the Russiancinema.ru ID 3274?

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

Which movie on Wikidata is associated with the Russiancinema.ru identifier 3274?

Find the Wikidata item for the film with Russiancinema.ru ID 3274.

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


Question: Which properties link entities to British Ice Skating, and how often, excluding statement properties?

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ( COUNT( ?item ) AS ?count ) WHERE {
  ?item ?property wd:Q16258020 .
  FILTER ( STRSTARTS( STR( ?property ) , "http://www.wikidata.org/prop/direct/" ) || STRSTARTS( STR( ?property ) , "http://schema.org/" ) )
}
GROUP BY ?property
HAVING ( ?count > 1 )
ORDER BY DESC ( ?count )

What are the most common properties used to connect other items to British Ice Skating on Wikidata, and how many times are they used?

Show me the properties that relate other entities to British Ice Skating, but only include those used more than once, ordered by frequency.

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


Question: French-labeled human named Yves Pujol

SELECT DISTINCT ?person WHERE { ?person rdfs:label "Yves Pujol" @fr . ?person wdt:P31 wd:Q5 .}

Who is the human named Yves Pujol in French?

Find the Wikidata item for the person named Yves Pujol with a French label.

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


Question: Who is a human named "דוד" in Hebrew, and where were they born?

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 ?human ?birthPlace ?birthPlaceLabel WHERE {
  ?human rdfs:label "דוד" @he .
  ?human wdt:P31 wd:Q5 .
  OPTIONAL {
    ?human wdt:P19 ?birthPlace .
    ?birthPlace rdfs:label ?birthPlaceLabel .
  }
}

Find all people with the Hebrew name "דוד" and their places of birth.

What is the birthplace of the person named David in Hebrew (דוד)?

SELECT ?var1 ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 ?var3Label "string1"@he . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "he". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var2 . } }


Question: Underground stations with "io" in their English name

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 ?var1 ?var1Label WHERE {
  ?var1 wdt:P31 wd:Q22808403 .
  ?var1 rdfs:label ?var1Label .
  FILTER ( LANG( ?var1Label ) = "en" ) .
  FILTER ( REGEX( STR( ?var1Label ) , "io" , "i" ) ) .
}
LIMIT 20000

Which underground stations have "io" in their English name?

List all underground stations whose English names contain the letters "io".

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q22808403> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( REGEX ( STR ( ?var1 ) , "io", "i" ) ) ) . } LIMIT 20000


Question: Which Wikidata items have the Twitter usernames "Hindawi" or "evamen"?

SELECT ?item ?username WHERE { ?item wdt:P2002 ?username . VALUES ?username { "Hindawi" "evamen" } }

Who on Wikidata uses the Twitter handle "evamen"?

Find the person or organization associated with the Twitter username "evamen" — and check if "Hindawi" is also linked to any entity.

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


Question: Films released in 2015 with their titles, directors, genres, and English labels.

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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 ?film ?filmLabel ?director ?genre ?title ?date WHERE {
  ?film wdt:P31 wd:Q11424 ; wdt:P577 ?date ; wdt:P1476 ?title .
  OPTIONAL {
    ?film wdt:P57 ?director .
  }
  OPTIONAL {
    ?film wdt:P136 ?genre .
  }
  OPTIONAL {
    ?film rdfs:label ?filmLabel .
    FILTER ( LANG( ?filmLabel ) = "en" )
  }
  FILTER ( ?date >= "2015-01-01T00:00:00Z" ^^ xsd:dateTime && ?date < "2016-01-01T00:00:00Z" ^^ xsd:dateTime )
}
LIMIT 100

What are the films released in 2015, along with their English titles, directors, and genres?

Show me up to 100 films from 2015, including their English names, directors, genres, and release dates.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var5 ?var6 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> ; <http://www.wikidata.org/prop/direct/P577> ?var6 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P57> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P136> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1476> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P577> ?var6 . } FILTER ( ( ( "2015-01-01"^^<http://www.w3.org/2001/XMLSchema#dateTime> <= ?var6 ) && ( ?var6 < "2016-01-01"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "uk,en". } } LIMIT 100


Question: What pairs of topics (other than XBRL) are associated with documents that have XBRL as a main subject?

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 ?subject1 ?subject1Label ?subject2 ?subject2Label WHERE {
  ?item wdt:P921 wd:Q959950 .
  ?item wdt:P921 ?subject1 .
  ?item wdt:P921 ?subject2 .
  FILTER ( ?subject1 != wd:Q959950 ) .
  FILTER ( ?subject2 != wd:Q959950 ) .
  FILTER ( ?subject1 != ?subject2 ) .
  OPTIONAL {
    ?subject1 rdfs:label ?subject1Label .
    FILTER ( lang( ?subject1Label ) = 'en' )
  }
  .
  OPTIONAL {
    ?subject2 rdfs:label ?subject2Label .
    FILTER ( lang( ?subject2Label ) = 'en' )
  }
}

Which combinations of data standards like linked data and open data appear together as main subjects in publications about XBRL?

Show all unique pairs of non-XBRL main subjects shared by works that are primarily about XBRL.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label WHERE { { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P31> */ <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q959950> . } UNION { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P361> +) <http://www.wikidata.org/entity/Q959950> . } UNION { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P1269> +) <http://www.wikidata.org/entity/Q959950> . } ?var3 <http://www.wikidata.org/prop/direct/P921> ?var1 , ?var2 . FILTER ( ( ( <http://www.wikidata.org/entity/Q959950> != ?var1 ) && ( <http://www.wikidata.org/entity/Q959950> != ?var2 ) && ( ?var1 != ?var2 ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr,de,ru,es,zh,jp". } }


Question: Branches of science and their parent categories in English

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?branch ?branchLabel ?parent ?parentLabel WHERE {
  ?branch wdt:P31 wd:Q2465832 .
  ?branch rdfs:label ?branchLabel .
  FILTER ( LANG( ?branchLabel ) = "en" ) OPTIONAL {
    ?branch wdt:P279 ?parent .
    ?parent rdfs:label ?parentLabel .
    FILTER ( LANG( ?parentLabel ) = "en" )
  }
}
ORDER BY ?branchLabel

What are the scientific disciplines and what broader fields do they belong to?

List all branches of science along with their parent scientific fields, using English labels.

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


Question: What entities are labeled "Chanson" in French?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item WHERE {
  ?item rdfs:label "Chanson" @fr .
}

Can you list all items in Wikidata that have the French label "Chanson"?

What does "Chanson" refer to in French on Wikidata?

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


Question: What are the names of all districts in the city of Zürich?

SELECT ?district (SAMPLE(?districtLabel) AS ?label) WHERE { ?district wdt:P31 wd:Q19644409 . ?district rdfs:label ?districtLabel . } GROUP BY ?district

List the administrative districts of Zürich along with their labels.

Which districts make up the city of Zürich, and what are they called?

SELECT ?var1 ?var2 ?var2Label WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q19644409> . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P1545> ?var1 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: What are the official websites of the company Muchosol, and are there English or German Wikipedia articles about it?

SELECT ?item ?website ?wikipediaUrl WHERE { ?item wdt:P856 ?website . FILTER(CONTAINS(STR(?website), "muchosol")) . OPTIONAL { ?wikipediaPage schema:about ?item ; schema:inLanguage ?lang ; schema:url ?wikipediaUrl . FILTER(?lang IN ("en", "de")) } }

Find all entities with "muchosol" in their official website URL and show any associated English or German Wikipedia pages.

Can you find the official websites for Muchosol and check if there are any Wikipedia articles in English or German about them?

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.muchosol.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.www.muchosol.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.www.muchosol.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.muchosol.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.muchosol.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.muchosol.de> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.muchosol.de> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://muchosol.de> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://muchosol.de> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://muchosol.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://muchosol.de/> . } ?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/P856> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What Apple products are named after the McIntosh apple, and when were they released?

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 ?itemLabel ?publicationDate ?image ?item WHERE {
  ?item wdt:P138 wd:Q1144556 ; wdt:P577 ?publicationDate .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}

Show me the Macintosh computers and operating systems named after the McIntosh apple, along with their release dates and images.

Which technology items derived their name from the McIntosh apple cultivar, and what are their release dates and associated images?

SELECT DISTINCT ?var1Label ?var2 ?var3 ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P138> <http://www.wikidata.org/entity/Q1144556> ; <http://www.wikidata.org/prop/direct/P577> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Items with birthday (day and month) and English labels, sorted alphabetically.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?itemLabel ?birthday WHERE {
  ?item wdt:P3150 ?birthday .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}
ORDER BY ASC ( ?itemLabel )
LIMIT 1000

What are the top 1000 entities in Wikidata that have a known day and month of birth, along with their English names?

List up to 1000 English-labeled items that have a birthday specified as a day and month, ordered by their names.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3150> ?var2 ; <http://wikiba.se/ontology#statements> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . } LIMIT 1000 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ja,en". } } ORDER BY DESC( ?var3 )ASC( ?var1 )


Question: What events occurred on May 31, 1984?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?event WHERE {
  ?event wdt:P585 | wdt:P606 | wdt:P619 | wdt:P620 | wdt:P621 | wdt:P622 | wdt:P729 | wdt:P1191 ?date .
  FILTER(?date >= "1984-05-31T00:00:00Z" ^^ xsd:dateTime && ?date <= "1984-05-31T23:59:59Z" ^^ xsd:dateTime)
  FILTER NOT EXISTS {
    ?event wdt:P31 / wdt:P279 * wd:Q186408 .
  }
}

Which sports events, spacecraft missions, or military operations had their first performance, launch, service entry, or other key event on May 31, 1984?

List all notable events from May 31, 1984, such as premieres, flights, or service entries, excluding date entities themselves.

SELECT DISTINCT ?var1 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P585> | <http://www.wikidata.org/prop/direct/P606> | <http://www.wikidata.org/prop/direct/P619> | <http://www.wikidata.org/prop/direct/P620> | <http://www.wikidata.org/prop/direct/P621> | <http://www.wikidata.org/prop/direct/P622> | <http://www.wikidata.org/prop/direct/P729> | <http://www.wikidata.org/prop/direct/P1191> ) ?var2 . FILTER ( ( ( ?var2 >= "1984-05-31T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "1984-05-31T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . }


Question: What is the image associated with the person having SNAC ARK ID w6d225m4?

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

Can you find an image for Forrest Reid using his SNAC ARK ID?

Show the Wikimedia Commons image for the entity identified by SNAC ARK ID w6d225m4, if it exists.

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


Question: Wikidata items modified after the first 10, with their last modification dates.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?date WHERE {
  ?item wdt:P5017 ?date .
}
OFFSET 10
LIMIT 1000

What are the 1000 Wikidata items (after skipping the first 10) and when were they last modified?

Show me the next 1000 Wikidata items after the first 10, along with the date they were last edited.

SELECT ?var1 ?var2 WHERE { ?var1 <http://schema.org/dateModified> ?var2 . { SELECT ?var1 ?var2 WHERE { ?var1 <http://schema.org/dateModified> ?var2 . } OFFSET 10 LIMIT 1000 } }


Question: What are the different types of bagels listed in Wikidata?

SELECT DISTINCT ?subclass ?subclassLabel WHERE { ?subclass wdt:P279 wd:Q272502 . ?subclass rdfs:label ?subclassLabel . FILTER (LANG(?subclassLabel) = "en") }

Can you list the English names of all subclasses of bagel?

Show me the varieties of bagels such as Montreal-style, pizza, and New York-style, along with their labels.

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q272502> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . }


Question: Who are the people named Samson in French?

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 ?person WHERE {
  ?person rdfs:label "Samson" @fr .
  ?person wdt:P31 wd:Q5 .
}

Which humans have the French name 'Samson'?

List all individuals classified as human beings whose name in French is 'Samson'.

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


Question: What properties and values describe the pseudogene Gm20164 (Q18322733), with their English labels?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?object ?objectLabel ?property ?propertyLabel WHERE {
  wd:Q18322733 ?propertyUri ?object .
  ?property wikibase:directClaim ?propertyUri .
  ?property rdfs:label ?propertyLabel .
  FILTER ( LANG( ?propertyLabel ) = "en" ) OPTIONAL {
    ?object rdfs:label ?objectLabel .
    FILTER ( LANG( ?objectLabel ) = "en" )
  }
}

For the mouse pseudogene Q18322733, what are the properties used to describe it and their English labels?

List all the English-labeled properties and their corresponding values for the pseudogene Q18322733.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ?var3 <http://www.wikidata.org/entity/Q18322733> . ?var2 <http://wikiba.se/ontology#directClaim> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100


Question: What properties are used to describe Mother's Wax Museum, and what are their values?

SELECT ?property ?propertyLabel ?value (SAMPLE(?valueLabelAlt) AS ?valueLabel) WHERE { wd:Q22079942 ?propertyClaim ?value . ?property wikibase:directClaim ?propertyClaim . ?property rdfs:label ?propertyLabel . OPTIONAL { ?value rdfs:label ?valueLabelAlt . FILTER(LANG(?valueLabelAlt) = "en") } FILTER(LANG(?propertyLabel) = "en") } GROUP BY ?property ?propertyLabel ?value LIMIT 100

Can you list the direct properties of Mother's Wax Museum in English, along with their labels and the values they point to?

Show me the English labels of all properties associated with Mother's Wax Museum and the corresponding values, including labels for those values if available.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ?var3 <http://www.wikidata.org/entity/Q22079942> . ?var2 <http://wikiba.se/ontology#directClaim> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100


Question: Academic articles that cite "Predictive models to assess risk of type 2 diabetes using national health data from Kuwait—a cohort study"

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?article ?title WHERE {
  ?article wdt:P2860 wd:Q30626855 .
  ?article wdt:P1476 ?title .
}
LIMIT 100

Which research papers cite the study on predictive models for type 2 diabetes risk using Kuwaiti health data?

Show me the titles of scholarly articles that reference the 2013 Kuwait cohort study on type 2 diabetes prediction.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ?var3 <http://www.wikidata.org/entity/Q30626855> . ?var2 <http://wikiba.se/ontology#directClaim> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100


Question: Ferry ports in Italy with coordinates and images

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?port ?portLabel ?coord ?image WHERE {
  ?port wdt:P31 wd:Q1478783 .
  ?port wdt:P17 wd:Q38 .
  ?port wdt:P625 ?coord .
  OPTIONAL {
    ?port wdt:P18 ?image
  }
  .
  ?port rdfs:label ?portLabel .
  FILTER ( LANG( ?portLabel ) = "en" )
}
ORDER BY ASC ( ?portLabel )

What are the ferry ports in Italy, and what are their locations and images?

List all ferry terminals in Italy along with their geographic coordinates and associated images.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q20630238> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q38> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,nb,nn,en,fi". } } ORDER BY ASC( ?var1Label )


Question: What is the instance type of Neeliyar Bhagavathi that is labeled "Theyyam" in English?

SELECT ?instanceType WHERE { wd:Q6986813 wdt:P31 ?instanceType . ?instanceType rdfs:label "Theyyam"@en . }

Which category does Neeliyar Bhagavathi belong to, if its label is "Theyyam"?

Find the Wikidata item representing the type "Theyyam" that Neeliyar Bhagavathi is an instance of.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q6986813> <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> "string1"@en . FILTER ( ( ( "en" = LANG ( "string1"@en ) ) ) ) . }


Question: What are the occupations of Leonardo da Vinci, and what are their English labels and images?

SELECT ?occupation ?occupationLabel ?occupationImage ?leonardoImage WHERE { wd:Q762 wdt:P106 ?occupation . ?occupation rdfs:label ?occupationLabel . FILTER(LANG(?occupationLabel) = "en") OPTIONAL { ?occupation wdt:P18 ?occupationImage . } OPTIONAL { wd:Q762 wdt:P18 ?leonardoImage . } }

Can you list all the jobs Leonardo da Vinci had, along with their descriptions in English and pictures of those professions? Also, show his portrait if available.

Show me the English names of Leonardo da Vinci’s professions, their associated images on Wikimedia Commons, and his own portrait.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label ?var4 ?var5 ?var6 WHERE { { BIND ( <http://www.wikidata.org/entity/Q762> AS ?var1 ). ?var1 ?var7 ?var8 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } ?var3 ?var9 ?var7 . ?var3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . FILTER ( ( STRSTARTS ( STR ( ?var8 ) , "string1" ) ) ) . FILTER ( ( STRSTARTS ( STR ( ?var3 ) , "string2" ) ) ) . } UNION { BIND ( "EFFBD8" AS ?var5 ). <http://www.wikidata.org/entity/Q762> ?var7 ?var3 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P18> ?var4 . } ?var1 ?var9 ?var7 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . FILTER ( ( STRSTARTS ( STR ( ?var3 ) , "string1" ) ) ) . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . ?var3 <http://www.wikidata.org/prop/direct/P18> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } ?var6 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q2> . }


Question: Musical groups that performed on the album "Feeding Fingers"

SELECT ?item ?itemLabel ?property WHERE { ?item ?property wd:Q5441229 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } LIMIT 100

Which musical groups are credited as performers on the album "Feeding Fingers"?

List the musical groups that have "Feeding Fingers" as one of their works.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ?var3 <http://www.wikidata.org/entity/Q5441229> . ?var2 <http://wikiba.se/ontology#directClaim> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100