Question: Organizations with "greatlakes" in their website URL and English labels, along with their English or German Wikipedia pages.

SELECT ?item ?itemLabel ?website ?wikipedia WHERE { ?item wdt:P856 ?website . FILTER(CONTAINS(STR(?website), "greatlakes")) . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = 'en') . ?wikipedia schema:about ?item ; schema:inLanguage ?lang . FILTER(?lang IN ('en', 'de')) . }

Which organizations have websites containing "greatlakes" and are described in English on Wikipedia or German Wikipedia?

Show me the English names, official websites, and Wikipedia links (in English or German) for all entities whose website includes "greatlakes".

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.greatlakescruising.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.www.greatlakescruising.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.www.greatlakescruising.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.greatlakescruising.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.greatlakescruising.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.greatlakescruising.com> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.greatlakescruising.com> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://greatlakescruising.com> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://greatlakescruising.com> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://greatlakescruising.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://greatlakescruising.com/> . } ?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: People born in July in Dresden with their German occupations

SELECT ?personLabel (GROUP_CONCAT(DISTINCT ?occupationLabel; SEPARATOR=", ") AS ?occupations) WHERE { ?person wdt:P19 wd:Q1731 . ?person wdt:P569 ?birthDate . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "de") . ?person wdt:P106 ?occupation . ?occupation rdfs:label ?occupationLabel . FILTER(LANG(?occupationLabel) = "de") . FILTER(MONTH(?birthDate) = 7) . BIND(YEAR(NOW()) - YEAR(?birthDate) AS ?age) . OPTIONAL { ?person wdt:P570 ?deathDate . } } GROUP BY ?person ?personLabel ORDER BY DESC(?age) LIMIT 1000

Who were born in July in Dresden and what are their occupations in German?

List people born in July in Dresden along with their German-language occupations, sorted by age.

SELECT ?var1 ( GROUP_CONCAT ( DISTINCT ?var2 ; SEPARATOR = ", " ) AS ?var3 ) WHERE { BIND ( "7"^^<http://www.w3.org/2001/XMLSchema#integer> AS ?var4 ). ?var5 ( <http://www.wikidata.org/prop/direct/P569> | <http://www.wikidata.org/prop/direct/P570> ) ?var6 . ?var5 ( <http://www.wikidata.org/prop/direct/P19> | <http://www.wikidata.org/prop/direct/P20> ) <http://www.wikidata.org/entity/Q1731> . ?var5 <http://www.wikidata.org/prop/direct/P21> ?var7 . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var8 . FILTER ( ( ( LANG ( ?var8 ) = "de" ) ) ) . ?var5 <http://www.wikidata.org/prop/direct/P569> ?var9 . ?var5 <http://www.wikidata.org/prop/direct/P570> ?var10 . ?var5 <http://www.wikidata.org/prop/direct/P106> ?var11 . ?var11 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "de" ) ) ) . FILTER ( ( ( MONTH ( ?var6 ) = ?var4 ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } BIND ( CONCAT ( "* ", STR ( ( YEAR ( NOW ( ) ) - YEAR ( ?var6 ) ) ) , " [[", STR ( ?var8 ) , "]] (", STR ( YEAR ( ?var9 ) ) , "-", STR ( YEAR ( ?var10 ) ) , "), " ) AS ?var1 ). } GROUP BY ?var1 LIMIT 1000


Question: What are the top journals where Kypros Kypri has published the most articles, and how many publications does each have?

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

Which journals have published the most work by researcher Kypros Kypri, showing either their full name or abbreviated title?

Can you list the journals that have featured Kypros Kypri’s research, ranked by publication count, with preferred abbreviated names where available?

SELECT ?var1 ?var2Label ( COUNT ( ?var3 ) AS ?var4 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q41433020> . ?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: Athletes born after 1900 and their countries of citizenship

SELECT ?athleteLabel ?countryLabel WHERE { ?athlete wdt:P31 wd:Q5 . ?athlete wdt:P106 wd:Q2066131 . ?athlete wdt:P569 ?birthDate . FILTER ( YEAR(?birthDate) > 1900 ) . ?athlete wdt:P27 ?country . ?athlete rdfs:label ?athleteLabel . ?country rdfs:label ?countryLabel . FILTER ( LANG(?athleteLabel) = "en" ) . FILTER ( LANG(?countryLabel) = "en" ) } LIMIT 10000

Who are the athletes born after 1900, and what countries are they citizens of?

List the names of athletes born after 1900 along with their nationalities.

SELECT ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q2066131> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,fr". } ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . FILTER ( ( ( YEAR ( ?var2 ) > "1900"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q231002> . } LIMIT 10000


Question: Most frequently used Wikidata property to classify entities as chef-lieu

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

Which Wikidata property is most commonly used to state that an entity is a chef-lieu?

Show me the Wikidata property that is used the most to link entities to the concept of chef-lieu, along with how many times it’s used.

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/Q956214> . ?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: What are the English-labeled values associated with Gustav Mahler, and what images do they have?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?property ?value ?valueLabel ?image WHERE {
  wd:Q7304 ?property ?value .
  ?value rdfs:label ?valueLabel .
  FILTER ( LANG( ?valueLabel ) = "en" ) OPTIONAL {
    ?value wdt:P18 ?image .
  }
}
ORDER BY ASC ( ?property ) ASC ( ?value )
LIMIT 200

Show me all the properties and their English-labeled objects for Gustav Mahler, along with any images of those objects.

List all entities linked to Gustav Mahler that have English labels, and include their images if available.

SELECT ?var1 ?var2Label ?var3 ?var4Label ?var5 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { BIND ( <http://www.wikidata.org/entity/Q7304> AS ?var3 ). BIND ( "N/A" AS ?var1 ). BIND ( "identity"@en AS ?var2Label ). } UNION { <http://www.wikidata.org/entity/Q7304> ?var1 ?var3 . ?var6 ?var7 ?var1 . ?var6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P18> ?var5 . } FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . } ORDER BY ASC( ?var1 )ASC( ?var3 ) LIMIT 200


Question: Theatre buildings in New York City and their administrative locations (e.g., Manhattan).

SELECT ?theatre ?theatreLabel ?location ?locationLabel WHERE { { ?theatre wdt:P31 wd:Q24354 . ?theatre wdt:P131 wd:Q60 . ?theatre rdfs:label ?theatreLabel . wd:Q60 rdfs:label ?locationLabel . BIND(wd:Q60 AS ?location) FILTER(LANG(?theatreLabel) = "en") FILTER(LANG(?locationLabel) = "en") } UNION { ?theatre wdt:P31 wd:Q24354 . ?theatre wdt:P131 ?location . ?location wdt:P131 wd:Q60 . ?theatre rdfs:label ?theatreLabel . ?location rdfs:label ?locationLabel . FILTER(LANG(?theatreLabel) = "en") FILTER(LANG(?locationLabel) = "en") } } LIMIT 10000

What are the theatre buildings in New York City, and in which boroughs or districts are they located?

List all theatre buildings located in New York City or its administrative subdivisions like Manhattan, along with their English labels and locations.

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


Question: Number of events organized by the United Kingdom

SELECT (COUNT(?event) AS ?count) WHERE { ?event wdt:P664 wd:Q145 . }

How many events have been organized by the United Kingdom?

List the count of events organized by the United Kingdom.

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


Question: What properties are associated with West syndrome in Wikidata?

SELECT DISTINCT ?property WHERE { ?subject ?property wd:Q1041258 . }

Which properties link other entities to West syndrome?

Show all the properties that have West syndrome as their object, including both direct and statement properties.

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


Question: Number of subclasses of choreatic disease in Wikidata

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

How many types of choreatic disease are there in Wikidata?

List the count of known subclasses of choreatic disease.

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


Question: List of football players who have won the Ballon d'Or.

SELECT ?player WHERE { ?player wdt:P166 wd:Q166177 .}

Which football players have received the Ballon d'Or award?

Show me all the winners of the Ballon d'Or.

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


Question: What institutions has Paula Martínez-Lavanchy been affiliated with or employed by, along with their images, start and end dates, and any academic degrees held during those affiliations?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
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 p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?image ?institution ?institutionLabel ?startDate ?endDate ?degreeLabel WHERE {
  wd:Q42411158(p:P1416 | p:P108) ?statement .
  ?statement ps:P1416 | ps:P108 ?institution .
  ?institution rdfs:label ?institutionLabel .
  FILTER(LANG(?institutionLabel) = "en")
  OPTIONAL {
    ?institution wdt:P18 ?image .
  }
  OPTIONAL {
    ?statement pq:P580 ?startDate .
  }
  OPTIONAL {
    ?statement pq:P582 ?endDate .
  }
  OPTIONAL {
    ?statement pq:P512 ?degree .
    ?degree rdfs:label ?degreeLabel .
    FILTER(LANG(?degreeLabel) = "en")
  }
}

Can you list all the universities and research centers Paula Maria Martínez-Lavanchy has been associated with, including when she started and ended each affiliation, any images of the institutions, and the academic degrees she earned during those periods?

Show me the institutional affiliations and employment history of Paula Martínez-Lavanchy, including the start and end dates, images of the institutions, and any academic degrees linked to those roles, all in English.

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


Question: What types of sports use a racket as equipment?

SELECT ?sport WHERE { ?sport wdt:P31 wd:Q31629 ; wdt:P2283 wd:Q240502 . }

Which sports are classified as racket sports?

List all sport types that involve the use of a racket.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q2312410> ; <http://www.wikidata.org/prop/direct/P641> <http://www.wikidata.org/entity/Q240502> . }


Question: List of publications in English

SELECT ?publication ?publicationLabel WHERE { ?publication wdt:P31 wd:Q732577 . ?publication rdfs:label ?publicationLabel . FILTER(LANG(?publicationLabel) = "en") } ORDER BY ASC(LCASE(?publicationLabel)) LIMIT 200

What are some examples of publications listed in Wikidata with English labels?

Show me 200 publications from Wikidata, sorted alphabetically by their English titles.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q732577> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY ASC( LCASE ( ?var1Label ) ) LIMIT 200 OFFSET 3200


Question: What treatments are predicted to be effective for genetic variants of the BRCA2 gene with Ensembl ID ENSG00000139618?

SELECT ?treatment ?gene ?variant ?ensemblId WHERE { ?gene wdt:P594 "ENSG00000139618" . ?gene wdt:P31 wd:Q7187 . ?variant wdt:P3433 ?gene . ?variant wdt:P3354 ?treatment . BIND("ENSG00000139618" AS ?ensemblId) }

Which drugs have a positive therapeutic predictor for variants of the BRCA2 gene?

List the treatments associated with biological variants of the human BRCA2 gene, identified by its Ensembl ID.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P594> <https://query.wikidata.org/bigdata/namespace/wdq/sparql#has_assembly_common_nameCategory> . ?var3 <http://www.wikidata.org/prop/direct/P3433> ?var4 ; <http://www.wikidata.org/prop/direct/P31> ?var2 ; <http://www.wikidata.org/prop/direct/P3354> ?var1 . ?var2 <http://www.wikidata.org/prop/direct/P2888> <http://purl.obolibrary.org/obo/SO_0001583> . FILTER ( ( !( isLITERAL ( <https://query.wikidata.org/bigdata/namespace/wdq/sparql#has_assembly_common_nameCategory> ) ) ) ) . }


Question: What are the locations, images, and Commons categories of places in Pakistan?

SELECT ?item ?itemLabel ?location ?image ?commonsCategory ?postalCode WHERE {
  ?item wdt:P625 ?location .
  ?item (wdt:P131*|wdt:P17) wd:Q843 .  # Pakistan
  OPTIONAL { ?item wdt:P18 ?image . }
  OPTIONAL { ?item wdt:P373 ?commonsCategory . }
  OPTIONAL { ?item wdt:P969 ?postalCode . }
}
LIMIT 3000

Show me entities in Pakistan with their coordinates, associated images, Wikimedia Commons categories, and postal codes.

List up to 3000 geographic locations in Pakistan along with their images, Commons categories, and postal codes if available.

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


Question: Images related to Aletta Bonn’s research works and co-authors.

SELECT DISTINCT ?image WHERE { { wd:Q17521147 wdt:P18 ?image . } UNION { ?work wdt:P50 wd:Q17521147 . ?work wdt:P921 ?topic . ?topic wdt:P18 ?image . } UNION { ?work wdt:P50 wd:Q17521147 . ?coauthor wdt:P50 ?work . ?coauthor wdt:P18 ?image . FILTER (?coauthor != wd:Q17521147) } }

What images are associated with the works authored by Aletta Bonn or her co-authors?

Show me images of the main topics of publications by Aletta Bonn and images of her co-authors.

SELECT DISTINCT ?var1 WHERE { { <http://www.wikidata.org/entity/Q17521147> <http://www.wikidata.org/prop/direct/P18> ?var1 . } UNION { <http://www.wikidata.org/entity/Q17521147> !( <http://www.wikidata.org/prop/direct/P1889> ) ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . FILTER ( ( ( ?var2 != <http://www.wikidata.org/entity/Q5> ) ) ) . } UNION { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q17521147> . { ?var3 <http://www.wikidata.org/prop/direct/P921> [ <http://www.wikidata.org/prop/direct/P18> ?var1 ] . } UNION { ?var4 <http://www.wikidata.org/prop/direct/P50> ?var3 . ?var4 <http://www.wikidata.org/prop/direct/P18> ?var1 . } } }


Question: Parts of the Swiss Alps

SELECT ?part WHERE { ?part wdt:P361 wd:Q25220 . }

What mountain peaks are part of the Swiss Alps?

List the individual components that constitute the Swiss Alps.

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


Question: What are the streets in the Czech Republic between longitude 13 and 17 and latitude 49 and 50, excluding those with a Wikimedia Commons category?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?var1 ?var1Label ?var2 ?var3 ?var6 ?var7 WHERE {
  ?var1 wdt:P31 wd:Q79007 .
  ?var1 wdt:P17 wd:Q213 .
  ?var1 wdt:P625 ?var2 .
  BIND(STRBEFORE(STRAFTER(STR(?var2) , "POINT(") , " ") AS ?lonStr)
  BIND(STRBEFORE(STRAFTER(STR(?var2) , " ") , ")") AS ?latStr)
  BIND(xsd:double(?lonStr) AS ?lon)
  BIND(xsd:double(?latStr) AS ?lat)
  FILTER(?lon >= 13 && ?lon <= 17 && ?lat >= 49 && ?lat <= 50) MINUS {
    ?var1 wdt:P373 ?var8 .
  }
  OPTIONAL {
    ?var1 wdt:P18 ?var3 .
  }
  OPTIONAL {
    ?var1 wdt:P373 ?var6 .
  }
  OPTIONAL {
    ?var1 wdt:P969 ?var7 .
  }
  OPTIONAL {
    ?var1 rdfs:label ?var1Label .
    FILTER(LANG(?var1Label) = "en")
  }
}
LIMIT 300

Show me streets in central Czech Republic (around Prague) that don’t have a Commons category, along with their images and addresses if available.

List English-named streets in the Czech Republic within the bounding box of 13°–17°E and 49°–50°N, and include any associated images or addresses, but skip streets with a Commons category.

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


Question: Image of Oliver Otis Howard with SNAC ARK ID w6vx0kbd

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

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

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

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


Question: Multilingual definitions of asymmetry in Wikidata

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?description WHERE {
  wd:Q752641 schema:description ?description .
}

What are the descriptions of asymmetry in different languages?

Show me how asymmetry is defined in various languages according to Wikidata.

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


Question: What are the key details about autoimmune disease of the musculoskeletal system, including its classification, identifiers, and descriptions?

SELECT ?propertyLabel ?value WHERE { wd:Q18553609 ?property ?value . FILTER(STRSTARTS(STR(?property), "http://www.wikidata.org/prop/direct/") || ?property = schema:description) . VALUES (?property ?propertyLabel) { (wdt:P31 "instance of") (wdt:P699 "Disease Ontology ID") (wdt:P927 "anatomical location") (wdt:P5270 "Mondo ID") (wdt:P5008 "on focus list of Wikimedia project") (schema:description "description") } } ORDER BY ?propertyLabel

Can you list the Disease Ontology ID, Mondo ID, and multilingual descriptions for autoimmune disease of the musculoskeletal system?

Tell me about the autoimmune disease of the musculoskeletal system — what is it classified as, where does it affect, and what are its definitions in different languages?

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


Question: List of instrumentalists who are human.

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 ?person ?personLabel WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P106 wd:Q1278335 .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}
LIMIT 1000

Who are some humans that work as instrumentalists?

Give me the names of people whose occupation is instrumentalist.

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


Question: Municipalities in Argentina with English names, Commons categories, and images

SELECT ?municipality ?municipalityLabel ?category ?image WHERE { ?municipality wdt:P31 wd:Q15284 ; wdt:P17 wd:Q414 . OPTIONAL { ?municipality wdt:P373 ?category . } OPTIONAL { ?municipality wdt:P18 ?image . } ?municipality rdfs:label ?municipalityLabel . FILTER(LANG(?municipalityLabel) = "en") }

What are the English-named municipalities in Argentina, and what are their Wikimedia Commons categories and images?

List the English labels, Commons categories, and images for all municipalities in Argentina.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es,en". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q15284> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q414> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } }


Question: Who is the person with Collective Biographies of Women ID 20277, and what is their English description?

SELECT ?person ?personLabel ?description WHERE { ?person wdt:P4539 "20277" . ?person rdfs:label ?personLabel . FILTER (LANG(?personLabel) = "en") . OPTIONAL { ?person schema:description ?description . FILTER (LANG(?description) = "en") } }

What is the name and English description of the person identified as 20277 in the Collective Biographies of Women database?

Please provide the English name and description of the person whose Collective Biographies of Women ID is 20277.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P4539> "20277". 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: Self-citations by Kathrine Skak Madsen over time, grouped by year

SELECT ?year (COUNT(DISTINCT ?citingWork) AS ?count) ?citationType WHERE { ?citedWork wdt:P50 wd:Q27229804 . ?citingWork wdt:P2860 ?citedWork . OPTIONAL { ?citingWork wdt:P577 ?pubDate . BIND(STR(YEAR(?pubDate)) AS ?year) } BIND(IF(EXISTS { ?citingWork wdt:P50 wd:Q27229804 }, "self-citation", "other-citation") AS ?citationType) } GROUP BY ?year ?citationType ORDER BY DESC(?year)

How many works cite Kathrine Skak Madsen’s publications, and how many of those are self-citations, grouped by publication year?

Show the count of works citing Kathrine Skak Madsen’s research, distinguishing between self-citations and other citations, grouped by year, with missing years shown as blank.

SELECT ?var1 ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) ?var4 WHERE { BIND ( IF ( EXISTS { ?var2 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q27229804> . } , "string1", "string2" ) AS ?var4 ). BIND ( STR ( YEAR ( ?var5 ) ) AS ?var1 ). ?var6 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q27229804> . ?var2 <http://www.wikidata.org/prop/direct/P2860> ?var6 . ?var2 <http://www.wikidata.org/prop/direct/P577> ?var5 . } GROUP BY ?var1 ?var4 ORDER BY DESC( ?var1 )


Question: Entities that are instances of brother

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

What are the things classified as "brother" in Wikidata?

List the English labels of all entities that are instances of the concept "brother".

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


Question: What are the capitals and their coordinates of African countries that are sovereign states?

SELECT ?country ?countryLabel ?capital ?capitalLabel ?coordinates WHERE { ?country wdt:P31 wd:Q3624078 . ?country wdt:P30 wd:Q15 . ?country wdt:P36 ?capital . ?capital wdt:P625 ?coordinates . ?country rdfs:label ?countryLabel . ?capital rdfs:label ?capitalLabel . FILTER(LANG(?countryLabel) = "en") . FILTER(LANG(?capitalLabel) = "en") }

Can you list the names of African nations, their capitals, and the geographic coordinates of those capitals?

Show me the countries in Africa, their capitals, and the latitude and longitude of each capital city.

SELECT ?var1 ?var1Label ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q160016> . ?var1 <http://www.wikidata.org/prop/direct/P30> <http://www.wikidata.org/entity/Q15> . ?var1 <http://www.wikidata.org/prop/direct/P36> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P625> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What are the labels, images, and Wikipedia articles for puff pastry in German, English, French, and Italian?

SELECT ?label ?image ?wikipediaArticle WHERE { wd:Q29221 rdfs:label ?label . FILTER (LANG(?label) IN ("de", "en", "fr", "it")) OPTIONAL { wd:Q29221 wdt:P18 ?image . } VALUES (?langCode ?wikipediaSite ?sortOrder) { ("de" <https://de.wikipedia.org/> 1) ("en" <https://en.wikipedia.org/> 2) ("fr" <https://fr.wikipedia.org/> 3) ("it" <https://it.wikipedia.org/> 4) } FILTER (LANG(?label) = ?langCode) ?wikipediaArticle schema:about wd:Q29221 ; schema:inLanguage ?langCode ; schema:isPartOf ?wikipediaSite . } ORDER BY ?sortOrder

Can you show me the official names of puff pastry in German, English, French, and Italian, along with their corresponding images and Wikipedia pages?

Please list the multilingual labels for puff pastry, their associated images from Wikimedia Commons, and the links to their language-specific Wikipedia articles, sorted by language priority: German first, then English, French, and Italian.

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


Question: Which film has the The Numbers movie ID 'Mama'?

SELECT ?film WHERE { ?film wdt:P3808 "Mama" . }

What film is identified by the string 'Mama' in The Numbers database on Wikidata?

Find the film in Wikidata whose The Numbers ID is 'Mama'.

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


Question: Main subjects of works by Joaquin Quiñonero Candela, ranked by number of works.

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 ?count ?mainSubjectLabel WHERE {
  {
    SELECT ?mainSubject(COUNT(?work) AS ?count) WHERE {
      ?work wdt:P50 wd:Q29509405 .
      ?work wdt:P921 ?mainSubject .
    }
    GROUP BY ?mainSubject
    ORDER BY DESC(?count)
  }
  ?mainSubject rdfs:label ?mainSubjectLabel .
  FILTER(LANG(?mainSubjectLabel) = "en")
}

What are the most common research topics in the academic publications of Joaquin Quiñonero Candela, and how many works are there for each?

Show me the main topics of Joaquin Quiñonero Candela’s publications, with the count of works per topic, sorted from most to least frequent.

SELECT ?var1 ?var2Label ?var3Label WHERE { { SELECT ?var4 ( COUNT ( ?var5 ) AS ?var1 ) WHERE { ?var5 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q29509405> . ?var5 <http://www.wikidata.org/prop/direct/P921> ?var4 . } GROUP BY ?var4 ORDER BY DESC( ?var1 ) } BIND ( SUBSTR ( ?var6Label ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"60"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var3Label ). ?var5 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q29509405> . ?var5 <http://www.wikidata.org/prop/direct/P921> ?var4 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . FILTER ( ( ( LANG ( ?var6Label ) = "en" ) ) ) . }


Question: What are recent events and their host countries, along with the year they occurred?

SELECT ?event ?eventLabel (SUBSTR(STR(?date), 1, 4) AS ?year) ?countryLabel WHERE { ?event (wdt:P31/wdt:P279*) wd:Q1190554 ; wdt:P585 ?date ; wdt:P17 ?country . ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") . ?event rdfs:label ?eventLabel . FILTER(LANG(?eventLabel) = "en") } ORDER BY DESC(?date)

List events (like sports or elections) with their English labels, the year they took place, and the country where they happened, sorted by most recent first.

Show me events classified as occurrences, including their country and year, ordered from newest to oldest.

SELECT ?var1 ?var1Label ( SUBSTR ( GROUP_CONCAT ( DISTINCT ?var2 ) ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ,"11"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var2 )( GROUP_CONCAT ( DISTINCT ?var3Label ) AS ?var3 ) WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q491040> ; <http://www.wikidata.org/prop/direct/P585> ?var2 ; <http://www.wikidata.org/prop/direct/P17> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . } GROUP BY ?var1 ?var1Label ORDER BY DESC( ?var2 )


Question: French labels and descriptions of properties related to "adjacent station" (P197)

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/>
PREFIX schema: <http://schema.org/>
SELECT ?relatedProperty ?label ?description WHERE {
  wd:P197 wdt:P1659 ?relatedProperty .
  ?relatedProperty rdfs:label ?label .
  ?relatedProperty schema:description ?description .
  FILTER(LANG(?label) = "fr")
  FILTER(LANG(?description) = "fr")
}

What are the French-language labels and descriptions of properties that provide additional context to the "adjacent station" property on Wikidata?

Show me the French descriptions of the qualifier properties used with "adjacent station" to indicate previous and next stations in a service.

SELECT ?var1 ?var2Label ?var3 WHERE { BIND ( <http://www.wikidata.org/prop/direct/P197> AS ?var4 ). ?var5 ?var6 ?var4 . ?var5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var5 <http://www.wikidata.org/prop/direct/P1659> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "fr" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "fr" ) ) ) . }


Question: Which film has the Cineplex Germany film ID 162384?

SELECT ?film WHERE { ?film wdt:P3077 "162384" . }

What is the Wikidata item for the movie identified by Cineplex Germany as 162384?

Find the movie in Wikidata that corresponds to the Cineplex ID 162384.

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


Question: What properties are used to describe Abraham Lincoln, and what are their English labels and descriptions?

SELECT ?property ?propertyLabel ?description WHERE { wd:Q91 ?p ?value . ?property wikibase:directClaim ?p . ?property a wikibase:Property . ?property rdfs:label ?propertyLabel . ?property schema:description ?description . FILTER(LANG(?propertyLabel) = "en") FILTER(LANG(?description) = "en") } LIMIT 100

Show me the English labels and descriptions of all properties that have statements about Abraham Lincoln.

List the properties linked to Abraham Lincoln with their English names and meanings.

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


Question: What are the subclasses of organization that include 'university' in their name?

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 ?subclass ?subclassLabel WHERE {
  ?subclass wdt:P279 wd:Q43229 .
  ?subclass rdfs:label ?subclassLabel .
  FILTER ( LANG( ?subclassLabel ) = 'en' ) FILTER ( CONTAINS( LCASE( ?subclassLabel ) , "university" ) )
}

Which organizations are subclasses of 'organization' and have 'university' in their label?

List all subclasses of organization whose English labels contain the word 'university'.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q43229> . FILTER ( ( CONTAINS ( LCASE ( ?var1Label ) , "string1" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: Instances of yard in Wikidata with English labels

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 ?yard ?yardLabel WHERE {
  ?yard wdt:P31 wd:Q1623285 .
  ?yard rdfs:label ?yardLabel .
  FILTER ( LANG( ?yardLabel ) = "en" )
}
LIMIT 100

What are some examples of yards (as in outdoor areas next to buildings) that have English labels in Wikidata?

List the English-labeled places that are classified as yards in Wikidata.

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


Question: People from the United States with their first and last names.

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 ?person ?givenNameLabel ?familyNameLabel WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P735 ?givenName .
  ?person wdt:P734 ?familyName .
  ?person wdt:P27 wd:Q30 .
  ?givenName rdfs:label ?givenNameLabel .
  ?familyName rdfs:label ?familyNameLabel .
  FILTER(LANG(?givenNameLabel) = "en")
  FILTER(LANG(?familyNameLabel) = "en")
}

Who are some American individuals and what are their given and family names?

List the first and last names of people who are citizens of the United States.

SELECT ?var1 ?var2Label ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P735> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P734> ?var3 . { { { ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q3> . } } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the nu-funk bands and their official websites, Facebook usernames, countries of origin, MusicBrainz IDs, and images?

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 ?groupLabel ?website ?facebookUsername ?countryLabel ?musicBrainzId ?image WHERE {
  ?group wdt:P31 wd:Q215380 .
  ?group wdt:P136 wd:Q7067688 .
  OPTIONAL {
    ?group wdt:P856 ?website .
  }
  OPTIONAL {
    ?group wdt:P2013 ?facebookUsername .
  }
  OPTIONAL {
    ?group wdt:P495 ?country .
  }
  OPTIONAL {
    ?group wdt:P434 ?musicBrainzId .
  }
  OPTIONAL {
    ?group wdt:P18 ?image .
  }
  ?group rdfs:label ?groupLabel .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?groupLabel) = "en")
  FILTER(LANG(?countryLabel) = "en")
}
LIMIT 10000

Can you show me the details of nu-funk musical groups, including their official websites and Facebook profiles?

Which musical groups are classified as nu-funk, and what are their country of origin, MusicBrainz ID, and image?

SELECT ?var1Label ?var2 ?var3 ?var4Label ?var5 ?var6 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q215380> . ?var1 <http://www.wikidata.org/prop/direct/P136> <http://www.wikidata.org/entity/Q7067688> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2013> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P4003> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P495> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P434> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var6 . } } LIMIT 10000


Question: What are the different types or genres that fall under musical theater?

SELECT DISTINCT ?instance ?instanceLabel ?subclass ?subclassLabel WHERE { { ?instance wdt:P31 wd:Q1370345 . OPTIONAL { ?instance rdfs:label ?instanceLabel . FILTER(LANG(?instanceLabel) = "en") } } UNION { ?subclass wdt:P279 wd:Q1370345 . OPTIONAL { ?subclass rdfs:label ?subclassLabel . FILTER(LANG(?subclassLabel) = "en") } } }

List musical theater productions and their subgenres, including their names in English.

Which specific musical theater shows and related categories are documented in Wikidata?

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


Question: What are the descendants of Werner Heisenberg up to four generations, and who are their children?

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 ?descendant ?descendantLabel ?child WHERE {
  {
    wd:Q40904 wdt:P40 ?descendant .
  } UNION {
    wd:Q40904 wdt:P40 / wdt:P40 ?descendant .
  } UNION {
    wd:Q40904 wdt:P40 / wdt:P40 / wdt:P40 ?descendant .
  } UNION {
    wd:Q40904 wdt:P40 / wdt:P40 / wdt:P40 / wdt:P40 ?descendant .
  }
  ?descendant rdfs:label ?descendantLabel .
  FILTER(LANG(?descendantLabel) = "en")
  OPTIONAL {
    ?descendant wdt:P40 ?child .
  }
}

Can you list the English names of Werner Heisenberg’s grandchildren, great-grandchildren, and great-great-grandchildren, along with their own children?

Show me the family tree of Werner Heisenberg’s descendants up to four levels deep, including their offspring.

SELECT ?var1 ?var1Label ?var2 WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q40904> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "4"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P40> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P40> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are some examples of groups of works in Wikidata, along with their labels?

SELECT ?workGroup ?workGroupLabel WHERE { ?workGroup wdt:P31 wd:Q17489659 . ?workGroup rdfs:label ?workGroupLabel . } LIMIT 100

List all known collections of creative works and their names in any language.

Show me items that are instances of a group of works, including their labels if available.

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


Question: What are the instances of artificial selection?

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

Which techniques are classified as examples of artificial selection?

List the methods that are considered instances of artificial selection in Wikidata.

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


Question: People buried in Paris and their grave images

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?graveImage WHERE {
  ?item wdt:P131 wd:Q90 ; wdt:P31 wd:Q5 .
  OPTIONAL {
    ?item wdt:P1442 ?graveImage .
  }
}
LIMIT 100

Who are the people buried in Paris, and do any of them have images of their graves?

List humans located in Paris along with any available images of their graves.

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


Question: Plants with IPNI IDs and their associated Wikipedia and Wikimedia links.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?ipniId ?plant ?externalLink WHERE {
  ?plant wdt:P961 ?ipniId .
  ?externalLink ?property ?plant .
}
LIMIT 10

What external links (like Wikipedia pages) are associated with plants that have an IPNI plant ID?

Show me the IPNI IDs of plants along with all external web links connected to them.

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


Question: Human settlements in the United Kingdom with English descriptions and coordinates

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item ?itemLabel ?description ?coord WHERE {
  VALUES ?item {
    wd:Q3399533 wd:Q7857445 wd:Q17826728
  }
  ?item ( wdt:P31 / wdt:P279 * ) wd:Q486972 .
  ?item wdt:P131 * wd:Q145 .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" ) .
  ?item schema:description ?description .
  FILTER ( LANG( ?description ) = "en" ) .
  ?item wdt:P625 ?coord .
}

What are the English-named villages in the UK and their geographic coordinates?

Show me the names, English descriptions, and locations of human settlements in the United Kingdom, specifically Twatt in Shetland and Twatt in Orkney.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q3399533> ) ( <http://www.wikidata.org/entity/Q7857445> ) ( <http://www.wikidata.org/entity/Q17826728> ) ( <http://www.wikidata.org/entity/Q1174927> ) } ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q486972> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> * ?var4 . } FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q145> ) ) ) . 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> "[AUTO_LANGUAGE],en". } ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . }


Question: Movie with IMDb ID tt4490762

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

What is the title of the movie with IMDb ID tt4490762?

Tell me the name of the film identified by tt4490762 on IMDb.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt4490762". SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } }


Question: What images or artworks depict candy?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item ?itemLabel ?image WHERE {
  ?item p:P180 ?statement .
  ?statement ps:P180 wd:Q185583 .
  ?item rdfs:label ?itemLabel .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
}
LIMIT 101

Show me pictures of candy, including their titles and where to find the images.

Which paintings or media items feature sweets or confectionery?

SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/P180> ?var2 . ?var2 <http://www.wikidata.org/prop/statement/P180> <http://www.wikidata.org/entity/Q185583> . } LIMIT 101


Question: Surnames that are both instances and subclasses of family name

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?surname ?surnameLabel WHERE {
  ?surname wdt:P31 wd:Q101352 ; wdt:P279 wd:Q101352 .
}

Which surnames are incorrectly modeled as both an instance and a subclass of "family name" in Wikidata?

List all family names in Wikidata that are also classified as subclasses of family name.

SELECT ?var1 ?var1Label WHERE { BIND ( <http://www.wikidata.org/entity/Q101352> AS ?var2 ). ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 ; <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> "en,en". } }


Question: How many Highlander immortals died by decapitation?

SELECT ?causeOfDeath ?causeLabel (COUNT(*) AS ?count) WHERE { ?immortal wdt:P31 wd:Q17560936 . ?immortal wdt:P509 ?causeOfDeath . OPTIONAL { ?causeOfDeath rdfs:label ?causeLabel . FILTER(LANG(?causeLabel) = "en") } } GROUP BY ?causeOfDeath ?causeLabel ORDER BY DESC(?count) ASC(?causeLabel) LIMIT 50

What is the most common cause of death among immortal characters from the Highlander franchise?

List the causes of death for Highlander immortals, ranked by frequency, with English labels.

SELECT ?var1 ?var2 ( COUNT (* ) AS ?var3 ) WHERE { BIND ( <http://www.wikidata.org/entity/Q17560936> AS ?var4 ). ?var5 <http://www.wikidata.org/prop/direct/P31> ?var4 . ?var5 <http://www.wikidata.org/prop/direct/P509> ?var1 . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } } GROUP BY ?var1 ?var2 ORDER BY DESC( ?var3 )ASC( ?var2 ) LIMIT 50


Question: List Italian communes by population, showing which province each is the capital of.

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 ?commune ?communeLabel ?province ?provinceLabel ?population WHERE {
  ?commune wdt:P31 wd:Q747074 .
  ?commune wdt:P1376 ?province .
  ?province wdt:P31 wd:Q15089 .
  ?commune wdt:P1082 ?population .
  FILTER(LANG(?communeLabel) = "en")
  FILTER(LANG(?provinceLabel) = "en")
  ?commune rdfs:label ?communeLabel .
  ?province rdfs:label ?provinceLabel .
}
ORDER BY DESC(?population)

Which Italian communes are provincial capitals, and what are their populations, sorted from largest to smallest?

Show me the largest Italian communes that serve as provincial capitals, along with the names of the provinces they govern and their populations.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q747074> . ?var1 <http://www.wikidata.org/prop/direct/P1376> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q15089> . ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "it,en". } } ORDER BY DESC( ?var3 )


Question: What Wikidata item is categorized under the Wikimedia category "Facades"?

SELECT DISTINCT ?item ?itemLabel WHERE { ?item wdt:P910 wd:Q8952318 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

Which topic on Wikidata has "Facades" as its main Wikimedia category?

Show me the Wikidata item that is linked to the Commons category "Facades" as its main category.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/P910> <http://www.wikidata.org/entity/Q183061> . }


Question: Japanese companies, businesses, or supermarket chains with Japanese labels.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?label ?sitelinks WHERE {
  ?item wdt:P17 wd:Q17 .
  {
    ?item wdt:P31 / wdt:P279 * wd:Q891723 .
  } UNION {
    ?item wdt:P31 wd:Q4830453 .
  } UNION {
    ?item wdt:P31 wd:Q18043413 .
  }
  OPTIONAL {
    ?item wikibase:sitelinks ?sitelinks .
  }
  ?item rdfs:label ?label .
  FILTER(LANG(?label) = "ja")
}
ORDER BY DESC(?sitelinks)

What are Japanese businesses (including public companies and supermarket chains) that have labels in Japanese?

List all business entities in Japan — such as public companies, general businesses, or supermarket chains — that have Japanese-language labels, sorted by how many Wikipedia language versions they have (most linked first).

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q17> . { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q891723> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4830453> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q18043413> . } OPTIONAL { ?var1 <http://wikiba.se/ontology#sitelinks> ?var3 . } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "ja" ) ) ) . } GROUP BY ?var1 ?var2Label ?var3 ORDER BY DESC( ?var3 )


Question: Who are the composers with a Carnegie Hall agent ID who have won the Pulitzer Prize for Music, and in what years did they win?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT DISTINCT ?item ?itemLabel ?date ( YEAR( ?date ) AS ?year ) ?image WHERE {
  ?item wdt:P4104 ?carnegieId .
  ?item p:P166 ?statement .
  ?statement ps:P166 wd:Q1783509 .
  ?statement pq:P585 ?date .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  FILTER ( LANG( ?itemLabel ) = "en" ) .
  ?item rdfs:label ?itemLabel .
}

List Pulitzer Prize for Music winners who are associated with Carnegie Hall, including the year they won and their images if available.

Which musicians received the Pulitzer Prize for Music and have a Carnegie Hall ID? Show their names, award year, and photos.

SELECT DISTINCT ?var1 ?var1Label ?var2 ( YEAR ( ?var2 ) AS ?var3 ) ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P4104> ?var5 . ?var1 <http://www.wikidata.org/prop/direct/P166> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P166> <http://www.wikidata.org/entity/Q1783509> . ?var6 <http://www.wikidata.org/prop/qualifier/P585> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var7 <http://www.wikidata.org/prop/direct/P18> ?var4 . } }


Question: Image of Wallace Walter Atwood (SNAC ARK ID: w67p9jpw)

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

What is the image of the person with SNAC ARK ID w67p9jpw?

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

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


Question: What are the definitions of extraterrestrial life in different languages?

PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?description WHERE {
  wd:Q181508 schema:description ?description .
}

Can you show me how "extraterrestrial life" is described in various languages?

In which languages is extraterrestrial life defined, and what are those definitions?

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


Question: What are the names of donkeys that are named after a person or entity, and who are they named after?

SELECT ?donkey ?donkeyLabel ?donkeyImage ?namedAfterLabel ?namedAfter WHERE { ?donkey wdt:P31 wd:Q3537778 . OPTIONAL { ?donkey wdt:P18 ?donkeyImage . } ?donkey wdt:P138 ?namedAfter . ?donkey rdfs:label ?donkeyLabel . ?namedAfter rdfs:label ?namedAfterLabel . FILTER(LANG(?donkeyLabel) = "en") FILTER(LANG(?namedAfterLabel) = "en") }

Can you list donkeys along with the people or things they are named after, and show their images if available?

Which real donkeys have been named after notable figures, and what are the names of those figures? Include images of the donkeys if they exist.

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


Question: Which historical periods include the Hellenistic period as a part?

SELECT ?item ?itemLabel WHERE { ?item p:P527 ?statement . ?statement ps:P527 wd:Q428995 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

What cultural or historical entities are composed of the Hellenistic period?

List all periods that have the Hellenistic period as one of their components.

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


Question: Films with their duration, release date, and official website.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?film ?filmTitle ?duration ?releaseDate ?officialWebsite WHERE {
  ?film wdt:P31 wd:Q11424 .
  OPTIONAL {
    ?film wdt:P2047 ?duration .
  }
  OPTIONAL {
    ?film wdt:P577 ?releaseDate .
  }
  OPTIONAL {
    ?film wdt:P856 ?officialWebsite .
  }
  OPTIONAL {
    ?film wdt:P1476 ?filmTitle .
  }
}
LIMIT 10

What are the titles, durations, release dates, and official websites of films in Wikidata?

Can you list up to 10 films along with their titles, how long they last in minutes, when they were released, and their official websites?

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . 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/P2047> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P577> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var4 . } } LIMIT 10


Question: Most used properties linking items to Society of Authors ZAiKS with count > 1

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?prop ?propLabel ( COUNT( ?item ) AS ?count ) WHERE {
  ?item ?directProp wd:Q135924 .
  ?prop wikibase:directClaim ?directProp .
  ?prop rdfs:label ?propLabel .
  FILTER ( LANG( ?propLabel ) = "en" )
}
GROUP BY ?prop ?propLabel
HAVING ( ?count > 1 )
ORDER BY DESC ( ?count )

What properties are used more than once to connect items to the Society of Authors ZAiKS, and how many times are they used?

List the properties and their labels that are used to associate items with the Society of Authors ZAiKS, showing only those used more than once, sorted by frequency.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { SELECT ?var1 ( COUNT ( ?var4 ) AS ?var3 ) WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q135924> . ?var1 <http://wikiba.se/ontology#directClaim> ?var5 . } GROUP BY ?var1 ?var1Label HAVING ( ( ?var3 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pl,en". } } ORDER BY DESC( ?var3 )


Question: English and German names of language subfamilies

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 DISTINCT ?subfamilyLabel ?subfamilyLabelDE WHERE {
  ?subfamily wdt:P279 ?family .
  ?family wdt:P31 wd:Q25295 .
  ?subfamily rdfs:label ?subfamilyLabel .
  FILTER(LANG(?subfamilyLabel) = "en")
  .
  ?subfamily rdfs:label ?subfamilyLabelDE .
  FILTER(LANG(?subfamilyLabelDE) = "de")
}

What are the English and German labels for language subfamilies in Wikidata?

Show me the names of language subfamilies in both English and German, where each subfamily is a type of language family.

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


Question: Who are French football players whose fathers played for Real Madrid?

SELECT ?player ?playerLabel ?image WHERE { ?player wdt:P31 wd:Q5 ; wdt:P106 wd:Q937857 ; wdt:P27 wd:Q142 ; wdt:P18 ?image ; wdt:P22 ?father . ?father wdt:P106 wd:Q937857 ; wdt:P54 wd:Q8682 . ?player rdfs:label ?playerLabel . FILTER(LANG(?playerLabel) = "en")}

Can you list the French football players who have a father that played for Real Madrid and is also a footballer?

Show me the image and name of French football players whose dads were Real Madrid players.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q937857> ; <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q142> ; <http://www.wikidata.org/prop/direct/P18> ?var2 ; <http://www.wikidata.org/prop/direct/P22> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q937857> ; <http://www.wikidata.org/prop/direct/P54> <http://www.wikidata.org/entity/Q8682> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Who are the football players who played for Real Madrid and won the Ballon d'Or?

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 ?player ?playerLabel WHERE {
  ?player wdt:P31 wd:Q5 ; wdt:P106 wd:Q937857 ; wdt:P54 wd:Q8682 ; wdt:P166 wd:Q166177 .
  ?player rdfs:label ?playerLabel .
  FILTER ( LANG( ?playerLabel ) = "en" )
}

Which humans, who are association football players, have won the Ballon d'Or and played for Real Madrid?

List all footballers who played for Real Madrid, have the occupation of football player, and have received the Ballon d'Or award.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q937857> ; <http://www.wikidata.org/prop/direct/P54> <http://www.wikidata.org/entity/Q8682> ; <http://www.wikidata.org/prop/direct/P166> <http://www.wikidata.org/entity/Q166177> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Nobel Prize winners with their religion and image

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 ?laureate ?laureateLabel ?image ?religion WHERE {
  VALUES ?nobelPrize {
    wd:Q35637 wd:Q37922 wd:Q38104 wd:Q44585 wd:Q80061
  }
  ?laureate wdt:P31 wd:Q5 ; wdt:P166 ?nobelPrize .
  OPTIONAL {
    ?laureate wdt:P18 ?image .
  }
  OPTIONAL {
    ?laureate wdt:P140 ?religion .
  }
  ?laureate rdfs:label ?laureateLabel .
  FILTER(LANG(?laureateLabel) = "en")
}

Who are the Nobel Prize laureates who are human, and what are their religions and images?

List all human Nobel Prize recipients along with their religious beliefs and associated images from Wikimedia Commons.

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


Question: What are the rural districts in North Rhine-Westphalia?

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 ?district WHERE {
  ?district wdt:P131 wd:Q1198 ; rdfs:label ?label .
  FILTER ( LANG( ?label ) = 'de' ) .
  FILTER ( CONTAINS( LCASE( ?label ) , 'landkreis' ) )
}

Can you list the administrative districts in North Rhine-Westphalia that are called "Landkreis" in German?

Show me the German rural districts located in North Rhine-Westphalia.

SELECT ?var1 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". ?var1 <http://www.wikidata.org/prop/direct/P131> * <http://www.wikidata.org/entity/Q1198> ; ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q15630906> . }


Question: Image of the person with SNAC ARK ID w66n65mn

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

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

Show me the picture of the individual identified by the SNAC ARK ID w66n65mn.

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


Question: What are all the categories that the Howdah pistol belongs to, including broader classifications?

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 DISTINCT ?superclass ?superclassLabel WHERE {
  wd:Q2503810 wdt:P279 * ?superclass .
  ?superclass rdfs:label ?superclassLabel .
  FILTER(LANG(?superclassLabel) = 'en')
}
LIMIT 100

Can you list the hierarchical superclass categories of the Howdah pistol in English?

Show me the full classification tree of the Howdah pistol up to general categories like weapon or equipment.

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


Question: Image of Dale Evans with SNAC ARK ID w6jx0zz7

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

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

Show me the Wikimedia Commons image for the person identified by the SNAC ARK ID w6jx0zz7.

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


Question: South Africa flag image, English Wikipedia article, and labels in English, German, French, and Italian.

SELECT ?label ?image ?wikipediaArticle WHERE { wd:Q160250 rdfs:label ?label . FILTER(LANG(?label) IN ("en", "de", "fr", "it")) OPTIONAL { wd:Q160250 wdt:P18 ?image . } OPTIONAL { ?wikipediaArticle schema:about wd:Q160250 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . } VALUES (?lang ?sortOrder) { ("en" 1) ("de" 2) ("fr" 3) ("it" 4) } FILTER(LANG(?label) = ?lang) } ORDER BY ?sortOrder

What is the official flag of South Africa, what does it look like, and how is it called in English, German, French, and Italian?

Show me the flag of South Africa with its image and its name in English, German, French, and Italian, along with the English Wikipedia page about it.

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


Question: Image of Bath, UK

SELECT ?image WHERE { wd:Q22889 wdt:P18 ?image .}

What is the image associated with the city of Bath on Wikidata?

Show me the main photograph of Bath, Somerset, as stored in Wikidata.

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


Question: Humans born in La Hulpe, Belgium

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 ?person ?personLabel WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P19 wd:Q670407 .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}

Who are the people born in La Hulpe, Belgium?

List the names of all humans who were born in La Hulpe.

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


Question: List presidents with their date of birth and when they started their term.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?person ?personLabel ?birthDate ?startDate WHERE {
  ?person p:P39 ?statement .
  ?statement ps:P39 wd:Q30461 .
  ?statement pq:P580 ?startDate .
  ?person wdt:P569 ?birthDate .
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}

Who are the people who held the position of president, what are their birth dates, and when did they begin their presidency?

Show me the names, birth dates, and start dates of all individuals who have served as president.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q37845759> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . ?var4 <http://www.wikidata.org/prop/direct/P580> <http://www.wikidata.org/entity/Q37845759> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pl". } }


Question: What are the artistic genres in Portuguese that have both a label and a description in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
SELECT ?genre ?label ?description WHERE {
  ?work wdt:P136 ?genre .
  ?genre rdfs:label ?label .
  ?genre schema:description ?description .
  FILTER(LANG(?label) = "pt")
  FILTER(LANG(?description) = "pt")
}
LIMIT 100

Show me the Portuguese names and descriptions of genres used in creative works.

Which genres have Portuguese labels and descriptions in Wikidata?

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P136> ?var1 . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "pt" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "pt" ) ) ) . } LIMIT 100


Question: Which film has Cineplex Germany film ID 129750?

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

What film is identified by the Cineplex ID 129750?

Tell me the film associated with the Cineplex Germany film ID 129750.

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


Question: Works about anorexia nervosa

SELECT ?work WHERE { ?work wdt:P921 wd:Q131749 . } LIMIT 10000

What scholarly articles or publications have anorexia nervosa as their main subject?

Show me all the research works that focus primarily on anorexia nervosa.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P921> <http://www.wikidata.org/entity/Q131749> . } LIMIT 10000


Question: Average number of pages per scholarly article by authors affiliated with Institut Louis-Malardé.

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 ?authorLabel ( ( SUM( ?pages ) / COUNT( ?article ) ) AS ?avgPagesPerArticle ) WHERE {
  {
    ?author wdt:P108 wd:Q19375720 .
  } UNION {
    ?author wdt:P1416 wd:Q19375720 .
  } UNION {
    ?author wdt:P1416 ?org .
    ?org wdt:P361 wd:Q19375720 .
  }
  ?article wdt:P50 ?author .
  ?article wdt:P31 wd:Q13442814 .
  ?article wdt:P1104 ?pages .
  ?author rdfs:label ?authorLabel .
  FILTER ( LANG( ?authorLabel ) = "en" )
}
GROUP BY ?author ?authorLabel
ORDER BY ASC ( ?authorLabel )

What is the average number of pages per article published by each author associated with Institut Louis-Malardé?

Show me the average article length (in pages) for each author who works at or is affiliated with Institut Louis-Malardé.

SELECT ?var1 ( SUM ( ?var2 ) AS ?var3 ) ?var4Label WHERE { { SELECT ?var4Label ?var5 ?var1 ( ( SAMPLE ( ?var6 )/COUNT ( ?var7 ) ) AS ?var2 ) WHERE { { ?var8 <http://www.wikidata.org/prop/direct/P108> <http://www.wikidata.org/entity/Q19375720> . } UNION { ?var8 <http://www.wikidata.org/prop/direct/P1416> <http://www.wikidata.org/entity/Q19375720> . } UNION { ?var8 <http://www.wikidata.org/prop/direct/P1416> ?var9 . ?var9 <http://www.wikidata.org/prop/direct/P361> <http://www.wikidata.org/entity/Q19375720> . } BIND ( STR ( YEAR ( ?var10 ) ) AS ?var1 ). ?var5 ( <http://www.wikidata.org/prop/direct/P50> | <http://www.wikidata.org/prop/direct/P2093> ) ?var7 . ?var5 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q13442814> . ?var5 <http://www.wikidata.org/prop/direct/P50> ?var8 . ?var5 <http://www.wikidata.org/prop/direct/P1104> ?var6 . ?var5 <http://www.wikidata.org/prop/direct/P577> ?var10 . ?var8 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . } GROUP BY ?var5 ?var4Label ?var1 } } GROUP BY ?var1 ?var4Label ORDER BY ASC( ?var1 )


Question: Films starting from the 8001st entry, with their English titles.

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 ?filmLabel WHERE {
  ?film wdt:P31 wd:Q11424 .
  ?film rdfs:label ?filmLabel .
  FILTER ( LANG( ?filmLabel ) = "en" )
}
ORDER BY ASC ( ?film )
LIMIT 200
OFFSET 8000

What are the English titles of the 200 films listed from the 8001st to the 8200th in Wikidata?

Please list 200 films (starting from the 8001st) along with their English names from Wikidata.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } } ORDER BY ASC( ?var1 ) LIMIT 200 OFFSET 8000


Question: List all diseases in English with their ICD-10, DiseasesDB, and OMIM identifiers and alternative names.

SELECT DISTINCT ?disease ?label ?icd10 ?diseasesdb ?omim ?altLabel WHERE { ?disease wdt:P31 wd:Q12136 . ?disease rdfs:label ?label . FILTER (LANG(?label) = "en") . OPTIONAL { ?disease wdt:P494 ?icd10 . } OPTIONAL { ?disease wdt:P557 ?diseasesdb . } OPTIONAL { ?disease wdt:P492 ?omim . } OPTIONAL { ?disease skos:altLabel ?altLabel . FILTER (LANG(?altLabel) = "en") . } }

What are the English names of diseases in Wikidata, along with their ICD-10 codes, DiseasesDB IDs, OMIM numbers, and alternative labels?

Please provide a list of diseases classified in Wikidata, showing their English labels, any associated ICD-10, DiseasesDB, or OMIM identifiers, and their English alternative names.

SELECT * WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q12136> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P494> ?var2 . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P557> ?var3 . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P492> ?var4 . } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . FILTER ( ( ( LANG ( ?var5Label ) = "en" ) ) ) . OPTIONAL { ?var1 <http://www.w3.org/2004/02/skos/core#altLabel> ?var6 . FILTER ( ( ( LANG ( ?var6 ) = "en" ) ) ) . } }


Question: List 200 English-language films starting from the 37,401st in alphabetical order.

SELECT ?film ?filmLabel WHERE { ?film wdt:P31 wd:Q11424 . ?film rdfs:label ?filmLabel . FILTER(LANG(?filmLabel) = "en") } ORDER BY ASC(?film) LIMIT 200 OFFSET 37400

What are the 200 English-language films listed from position 37,401 to 37,600 in Wikidata, sorted alphabetically?

Please provide a list of 200 English film titles from Wikidata, beginning at the 37,401st entry when sorted by entity ID.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } } ORDER BY ASC( ?var1 ) LIMIT 200 OFFSET 37400


Question: What are some films listed in Wikidata?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?film ?filmLabel WHERE {
  ?film wdt:P31 wd:Q11424 .
  ?film rdfs:label ?filmLabel .
  FILTER ( LANG( ?filmLabel ) = "en" ) FILTER ( STRLEN( ?filmLabel ) > 2 ) FILTER ( ! CONTAINS( ?filmLabel , "?" ) ) FILTER ( ! CONTAINS( ?filmLabel , "..." ) )
}
ORDER BY ASC ( ?filmLabel )
LIMIT 200

Can you list English titles of movies from Wikidata?

Show me films with English labels from Wikidata, sorted alphabetically.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } } ORDER BY ASC( ?var1 ) LIMIT 200 OFFSET 54000


Question: List all scholarly works by Nina Jeliazkova, including their publication dates, journal names, and types, sorted by most recent first.

SELECT ?work ?workLabel ?publicationDate ?workTypeLabel ?numberOfPages ?publishedIn ?publishedInLabel ?authorLabel WHERE { ?work wdt:P50 wd:Q27061849 . ?work rdfs:label ?workLabel . FILTER(LANG(?workLabel) = "en") . ?work wdt:P577 ?publicationDate . OPTIONAL { ?work wdt:P31 ?workType . ?workType rdfs:label ?workTypeLabel . FILTER(LANG(?workTypeLabel) = "en") } OPTIONAL { ?work wdt:P1104 ?numberOfPages . } OPTIONAL { ?work wdt:P1433 ?publishedIn . ?publishedIn rdfs:label ?publishedInLabel . FILTER(LANG(?publishedInLabel) = "en") } wd:Q27061849 rdfs:label ?authorLabel . FILTER(LANG(?authorLabel) = "en") } ORDER BY DESC(?publicationDate)

What are the titles, publication dates, journals, and types of all publications authored by Nina Jeliazkova, ordered from newest to oldest?

Please provide a list of Nina Jeliazkova’s publications with their titles, publication years, the journals they appeared in, and their categories (e.g., scholarly article), sorted by date in descending order.

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


Question: What is the WikiPathways ID for the pathway associated with Homo sapiens that is identified as WP3297?

SELECT ?pathwayId WHERE { ?pathway wdt:P2410 ?pathwayId ; wdt:P703 wd:Q15978631 . FILTER(?pathwayId = "WP3297") }

Which WikiPathways identifier corresponds to the human (Homo sapiens) pathway WP3297?

Find the WikiPathways ID of the biological pathway in humans with the identifier WP3297.

SELECT ?var1 WHERE { <http://identifiers.org/wikipathways/WP3297_r88048> <http://www.wikidata.org/prop/direct/P2410> ?var1 ; <http://www.wikidata.org/prop/direct/P703> <http://www.wikidata.org/entity/Q15978631> . }


Question: List of historical countries that no longer exist.

SELECT ?historicalCountry ?historicalCountryLabel WHERE { ?historicalCountry wdt:P31 wd:Q3024240 . ?historicalCountry rdfs:label ?historicalCountryLabel . FILTER(LANG(?historicalCountryLabel) = "en") }

What are some former countries or defunct states in history?

Show me the names of all historical countries in English.

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


Question: List 200 films starting from the 103,400th entry in Wikidata, showing their English titles.

SELECT ?film ?filmLabel WHERE { ?film wdt:P31 wd:Q11424 . ?film rdfs:label ?filmLabel . FILTER(LANG(?filmLabel) = "en") } ORDER BY ASC(?film) LIMIT 200 OFFSET 103400

What are the English titles of the films that come after the first 103,400 films in Wikidata, limited to the next 200?

Please retrieve the next 200 films in Wikidata (after skipping 103,400), along with their English labels.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } } ORDER BY ASC( ?var1 ) LIMIT 200 OFFSET 103400


Question: What are the taxonomic ranks of Asclepias syriaca?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?taxon WHERE {
  wd:Q158295 wdt:P171 * ?taxon .
}

What is the full taxonomic hierarchy of the common milkweed plant?

List all parent taxa of Asclepias syriaca up to the root of the plant kingdom.

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


Question: List 200 films starting from the 152,001st film in alphabetical order, showing their titles.

SELECT ?film ?title WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P1476 ?title . } ORDER BY ASC(?film) LIMIT 200 OFFSET 152000

What are the titles of the films from position 152,001 to 152,200 in Wikidata’s list of all films?

Please retrieve the next 200 films after skipping the first 152,000, along with their titles.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } } ORDER BY ASC( ?var1 ) LIMIT 200 OFFSET 152000


Question: List of films with their English titles

SELECT ?film (STR(?label) AS ?filmLabel) WHERE { ?film wdt:P31 wd:Q11424 . ?film rdfs:label ?label . FILTER(LANG(?label) = "en") } ORDER BY ASC(?film) LIMIT 200 OFFSET 151600

What are some films and their English names?

Show me 200 films in English, starting from the 151,600th entry.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } } ORDER BY ASC( ?var1 ) LIMIT 200 OFFSET 151600


Question: Films that are instances of cinematic works

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 ?filmLabel WHERE {
  ?film wdt:P31 wd:Q11424 .
  ?film rdfs:label ?filmLabel .
  FILTER ( LANG( ?filmLabel ) = "en" )
}
LIMIT 200

What are some films listed in Wikidata with their English titles?

List up to 200 films with their English names from Wikidata.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } } ORDER BY ASC( ?var1 ) LIMIT 200 OFFSET 153600


Question: List of films

SELECT ?film ?filmLabel WHERE { ?film wdt:P31 wd:Q11424 . ?film rdfs:label ?filmLabel . FILTER(LANG(?filmLabel) = "en") } LIMIT 200

Can you show me 200 English-language films?

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } } ORDER BY ASC( ?var1 ) LIMIT 200 OFFSET 171000


Question: What properties are associated with type-1 diabetes in Wikidata?

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

Which properties link other entities to type-1 diabetes?

Show all properties (including statement properties like ps:Pxxx) that have type-1 diabetes as their object in Wikidata.

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


Question: Japanese creative works from 1990 onwards, grouped by year and genre, with more than 30 works per group.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?year(COUNT(?work) AS ?count) ?genreLabel WHERE {
  ?work wdt:P495 wd:Q17 .
  ?work wdt:P577 ?date .
  ?work wdt:P136 ?genre .
  ?genre rdfs:label ?genreLabel .
  FILTER(LANG(?genreLabel) = "en")
  FILTER(?date >= "1990-01-01T00:00:00Z" ^^ xsd:dateTime)
  BIND(STR(YEAR(?date)) AS ?year)
}
GROUP BY ?year ?genre ?genreLabel
HAVING(?count > 30)

What are the genres of Japanese films, games, and anime released since 1990 that have more than 30 works per year?

Show me the number of Japanese creative works by genre and year since 1990, but only include genres with more than 30 works per year.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 )( SAMPLE ( ?var2Label ) AS ?var4Label )( ?var1 AS ?var5 ) WHERE { BIND ( STR ( YEAR ( ?var6 ) ) AS ?var1 ). ?var7 <http://www.wikidata.org/prop/direct/P495> <http://www.wikidata.org/entity/Q17> . ?var7 <http://www.wikidata.org/prop/direct/P577> ?var6 . ?var7 <http://www.wikidata.org/prop/direct/P136> ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . FILTER ( ( ( ?var6 >= "1990-00-00T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . } GROUP BY ?var2Label ?var1 HAVING ( ( ?var3 > "30"^^<http://www.w3.org/2001/XMLSchema#integer> ) )


Question: What are the English titles and genres of Japanese films released between 2016 and 2017?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?publicationDate ?filmLabel ?genreLabel WHERE {
  ?film wdt:P31 wd:Q11424 .
  ?film wdt:P136 ?genre .
  ?film wdt:P577 ?publicationDate .
  ?film wdt:P495 wd:Q17 .
  ?film wdt:P1476 ?filmLabel .
  ?genre rdfs:label ?genreLabel .
  FILTER(?publicationDate >= "2016-01-01T00:00:00Z" ^^ xsd:dateTime)
  FILTER(?publicationDate <= "2017-12-31T00:00:00Z" ^^ xsd:dateTime)
  FILTER(LANG(?filmLabel) = "en")
  FILTER(LANG(?genreLabel) = "en")
}

List Japanese movies from 2016–2017 along with their genres.

Can you show me the titles and genres of films from Japan that came out in 2016 and 2017?

SELECT DISTINCT ?var1 ?var2Label ?var3Label WHERE { BIND ( STR ( YEAR ( ?var4 ) ) AS ?var5 ). ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var2 <http://www.wikidata.org/prop/direct/P136> ?var3 . ?var2 <http://www.wikidata.org/prop/direct/P577> ?var1 . ?var2 <http://www.wikidata.org/prop/direct/P495> <http://www.wikidata.org/entity/Q17> . FILTER ( ( ( ?var1 >= "2016-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var1 <= "2017-12-31T00: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> "es,en". } }


Question: Paintings that depict pipes or pipe types

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?painting ?paintingLabel WHERE {
  ?painting wdt:P31 wd:Q3305213 .
  ?painting wdt:P180 ?pipe .
  ?pipe wdt:P279 * wd:Q104526 .
}

Which paintings show objects that are types of pipes?

List all paintings that feature any kind of pipe, including subclasses like clay pipe or opium pipe.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3305213> . ?var1 <http://www.wikidata.org/prop/direct/P180> ?var2 . ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q104526> . }


Question: Paintings that depict a pipe and their creators and images

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?painting ?paintingLabel ?image ?creator WHERE {
  ?painting wdt:P31 wd:Q3305213 .
  ?painting wdt:P180 ?depictedItem .
  ?depictedItem wdt:P279 * wd:Q104526 .
  OPTIONAL {
    ?painting wdt:P18 ?image .
  }
  OPTIONAL {
    ?painting wdt:P170 ?creator .
  }
}

Which paintings show a pipe or smoking pipe, and who painted them?

List paintings of pipes along with their artists and available images.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3305213> . ?var1 <http://www.wikidata.org/prop/direct/P180> ?var4 . ?var4 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q104526> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P170> ?var3 . } }