Question: U.S. presidents with daughters, their spouses, number of children, and start dates

SELECT ?presidentLabel ?spouseLabel ?presidentImage ?spouseImage ?daughterLabel ?numChildren ?startDate WHERE { ?president wdt:P31 wd:Q5 . ?president p:P39 ?stmt . ?stmt ps:P39 wd:Q11696 . ?stmt pq:P580 ?startDate . ?president wdt:P26 ?spouse . ?president wdt:P40 ?daughter . ?daughter wdt:P21 wd:Q6581072 . ?president wdt:P1971 ?numChildren . OPTIONAL { ?president wdt:P18 ?presidentImage . } OPTIONAL { ?spouse wdt:P18 ?spouseImage . } ?president rdfs:label ?presidentLabel . ?spouse rdfs:label ?spouseLabel . ?daughter rdfs:label ?daughterLabel . FILTER(LANG(?presidentLabel) = "en") FILTER(LANG(?spouseLabel) = "en") FILTER(LANG(?daughterLabel) = "en") } ORDER BY ASC(?startDate) LIMIT 5

Which U.S. presidents have daughters, who are their spouses, how many children do they have, and when did they start their presidency?

List U.S. presidents who have at least one daughter, along with their spouse’s name, number of children, and the start date of their presidency, sorted chronologically.

SELECT ?var1Label ?var2Label ?var3 ?var4 ?var5Label ?var6 ?var7 ?var8 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/P39> ?var9 . ?var9 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q11696> . ?var9 <http://www.wikidata.org/prop/qualifier/P580> ?var7 . ?var1 <http://www.wikidata.org/prop/direct/P1545> ?var8 . ?var1 <http://www.wikidata.org/prop/direct/P26> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P40> ?var10 . ?var1 <http://www.wikidata.org/prop/direct/P40> ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var1 <http://www.wikidata.org/prop/direct/P1971> ?var6 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var7 )


Question: List all Legislative Yuan constituencies in Taiwan in alphabetical order.

SELECT ?constituency ?constituencyLabel WHERE { ?constituency wdt:P31 wd:Q19409201 . ?constituency rdfs:label ?constituencyLabel . FILTER(LANG(?constituencyLabel) = "en") } ORDER BY ASC(?constituencyLabel)

What are the English names of all electoral districts for Taiwan’s Legislative Yuan, sorted alphabetically?

Show me the names of all constituencies used to elect members of Taiwan’s Legislative Yuan, ordered by name.

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


Question: List computer scientists with their DBLP IDs, birth dates, and images, sorted by birth year.

SELECT ?person ?personLabel ?dblpId ?birthDate ?image WHERE { ?person wdt:P106 / wdt:P279* wd:Q82594 . ?person wdt:P2456 ?dblpId . ?person wdt:P569 ?birthDate . OPTIONAL { ?person wdt:P18 ?image . } ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } ORDER BY ASC(?birthDate) LIMIT 50

Who are the oldest computer scientists in Wikidata, and what are their DBLP IDs and birth dates?

Show me the first 50 computer scientists ordered by birth date, including their DBLP author IDs and available images.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q82594> . ?var1 <http://www.wikidata.org/prop/direct/P2456> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var4 . } } ORDER BY ASC( ?var3 ) LIMIT 50


Question: Who is the person with Swedish National Biography ID 9004, and what is their English description?

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

What is the name and English description of the person identified by SBL ID 9004 in the Dictionary of Swedish National Biography?

Please provide the English name and description of the individual whose Dictionary of Swedish National Biography ID is 9004.

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


Question: What celestial body does Saturn orbit?

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 ?parentBody ?parentBodyLabel WHERE {
  ?parentBody wdt:P398 wd:Q193 .
  ?parentBody rdfs:label ?parentBodyLabel .
  FILTER ( LANG( ?parentBodyLabel ) = "en" )
}

Parent body of Saturn in the Solar System

Tell me which star Saturn is a child body of according to Wikidata.

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


Question: Children of U.S. presidents who have German Wikipedia pages, sorted by birth date.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?childLabel ?presidentLabel ?birthDate WHERE {
  ?president wdt:P39 wd:Q11696 .
  ?president wdt:P31 wd:Q5 .
  ?president wdt:P40 ?child .
  ?child wdt:P569 ?birthDate .
  ?childSchema schema:about ?child ; schema:inLanguage "de" ; schema:isPartOf <https://de.wikipedia.org/> .
  ?child rdfs:label ?childLabel .
  ?president rdfs:label ?presidentLabel .
  FILTER ( LANG( ?childLabel ) = "en" ) FILTER ( LANG( ?presidentLabel ) = "en" )
}
ORDER BY ASC ( ?birthDate )

Who are the children of U.S. presidents that have a German Wikipedia article, and when were they born?

List the names of children of U.S. presidents who have German Wikipedia pages, along with their birth dates and their parent’s name, ordered from oldest to youngest.

SELECT ?var1Label ?var2Label ?var3 WHERE { BIND ( <http://www.wikidata.org/entity/Q11696> AS ?var4 ). ?var2 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q11696> . ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var2 <http://www.wikidata.org/prop/direct/P40> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . ?var5 <http://schema.org/about> ?var1 . FILTER ( ( EXISTS { ?var6 <http://schema.org/about> ?var1 . ?var6 <http://schema.org/inLanguage> "de". ?var6 <http://schema.org/isPartOf> <https://de.wikipedia.org/> . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var2Label ?var1Label ?var3 ORDER BY ASC( ?var3 )


Question: List the heads of government of Taiwan’s special municipalities, provincial cities, and counties in English.

SELECT ?administrativeDivision ?administrativeDivisionLabel ?headOfGovernment ?headOfGovernmentLabel WHERE {  VALUES ?administrativeType { wd:Q2225003 wd:Q83020 wd:Q706447 }  ?administrativeDivision (wdt:P31/wdt:P279*) ?administrativeType ;                                       wdt:P6 ?headOfGovernment .  ?administrativeDivision rdfs:label ?administrativeDivisionLabel .  ?headOfGovernment rdfs:label ?headOfGovernmentLabel .  FILTER(LANG(?administrativeDivisionLabel) = "en")  FILTER(LANG(?headOfGovernmentLabel) = "en")}

Who are the current heads of government for Taiwan’s administrative divisions including special municipalities, provincial cities, and counties?

Show me the names of Taiwan’s administrative divisions (special municipalities, provincial cities, and counties) along with the names of their heads of government, using English labels.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q2225003> ) ( <http://www.wikidata.org/entity/Q83020> ) ( <http://www.wikidata.org/entity/Q706447> ) } ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var3 ; <http://www.wikidata.org/prop/direct/P6> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,zh". } }


Question: German labels of tennis tournaments with sub-event categories (e.g., singles, doubles, qualifying)

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 ?event ?label WHERE {
  ?event wdt:P31 wd:Q16510064 .
  ?event wdt:P641 wd:Q847 .
  ?event rdfs:label ?label .
  FILTER ( LANG( ?label ) = "de" && CONTAINS( STR( ?label ) , "/" ) )
}
ORDER BY ?label

What are the German-language names of tennis events that include sub-event details like singles or doubles, separated by slashes?

Show me the German names of tennis tournaments that specify categories such as men’s singles or qualifying rounds, using slash-separated formats.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q16510064> . ?var1 <http://www.wikidata.org/prop/direct/P641> <http://www.wikidata.org/entity/Q847> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "de" ) && CONTAINS ( STR ( ?var2 ) , "/" ) ) ) . }


Question: What are the moons and rings of Saturn?

SELECT ?item WHERE { ?item wdt:P397 wd:Q193 }

Which astronomical objects orbit Saturn?

List all known natural satellites and ring particles that are gravitationally bound to Saturn.

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


Question: Does the person with IMDb ID nm0322146 have a Wikidata entry?

ASK WHERE { ?item wdt:P345 "nm0322146" . }

Is there a Wikidata item for the IMDb identifier nm0322146?

Does Tom Hanks have a Wikidata page linked via his IMDb ID?

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


Question: Tram services and districts in Vienna that contain tram services

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?itemLabel WHERE {
  {
    ?item wdt:P31 wd:Q15145593 ; wdt:P131 + wd:Q1741 .
  } UNION {
    ?tram wdt:P31 wd:Q15145593 ; wdt:P131 ?item .
    ?item wdt:P131 + wd:Q1741 .
  }
}

What tram lines and administrative areas in Vienna are associated with tram services?

List all tram services located in Vienna (including those in districts) and all districts in Vienna that contain tram services.

SELECT ?var1 ?var1Label WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P131> + <http://www.wikidata.org/entity/Q1741> ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q15145593> . } UNION { [ <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q15145593> ] <http://www.wikidata.org/prop/direct/P131> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P131> + <http://www.wikidata.org/entity/Q1741> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } }


Question: What types of public transport stops is Tram stop Sacharovlaan classified as in Wikidata?

SELECT ?type ?typeLabel WHERE { wd:Q2218736 wdt:P31 ?type. ?type rdfs:label ?typeLabel FILTER(LANG(?typeLabel) = 'en') }

What are the English labels of the categories that Tram stop Sacharovlaan belongs to?

Is Tram stop Sacharovlaan a tram stop, metro station, or something else according to Wikidata?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q2218736> <https://www.wikidata.org/wiki/Property:P31> <http://www.wikidata.org/entity/Q13691604> . }


Question: List all White House Chiefs of Staff with their start and end dates, ordered by when they started.

SELECT ?person ?personLabel ?startDate ?endDate WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P39 wd:Q786242 . ?person p:P39 ?statement . ?statement ps:P39 wd:Q786242 ; pq:P580 ?startDate . OPTIONAL { ?statement pq:P582 ?endDate . } ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } ORDER BY ASC(?startDate)

Who have been the White House Chiefs of Staff, and when did their terms begin and end?

Show me the names of all people who have served as White House Chief of Staff, along with the start and end dates of their tenures, sorted by start date.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q786242> . ?var1 <http://www.wikidata.org/prop/P39> ?var5 . ?var5 <http://www.wikidata.org/prop/statement/P39> ?var6 ; <http://www.wikidata.org/prop/qualifier/P580> ?var2 . ?var6 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q786242> . OPTIONAL { ?var5 <http://www.wikidata.org/prop/qualifier/P582> ?var3 . } BIND ( FLOOR ( ( ?var3 - ?var2 ) ) AS ?var4 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "it,en". } } ORDER BY ASC( ?var4 )


Question: Businesses operating in Cameroon with source URLs or cited references

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
SELECT DISTINCT ?business ?businessLabel ?source ?sourceLabel WHERE {
  ?business wdt:P31 / wdt:P279 * wd:Q4830453 ; wdt:P2541 wd:Q668294 .
  ?business p:P2541 ?statement .
  ?statement prov:wasDerivedFrom ?reference .
  OPTIONAL {
    ?reference pr:P248 ?source .
    ?source rdfs:label ?sourceLabel .
    FILTER(LANG(?sourceLabel) = "en")
  }
  OPTIONAL {
    ?reference pr:P854 ?source .
    BIND(?source AS ?sourceLabel)
  }
  ?business rdfs:label ?businessLabel .
  FILTER(LANG(?businessLabel) = "en")
}
ORDER BY ASC(?businessLabel)

Which businesses that operate in Cameroon have publicly cited sources or reference URLs in their Wikidata entries?

List the English-named businesses that operate in Cameroon and show their reference sources, including URLs or published works.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var3Label WHERE { { SELECT ?var1 ?var3 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q4830453> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/P31> [ (( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P248> )|( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P854> )) ?var3 ] . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/2541> [ (( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P248> )|( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P854> )) ?var3 ] . } } } ?var1 <http://www.wikidata.org/prop/direct/P2541> <http://www.wikidata.org/entity/Q668294> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } } ORDER BY ASC( ?var1Label )


Question: German labels and descriptions of colors in Wikidata

SELECT ?color ?colorLabel ?colorDescription WHERE { ?item wdt:P462 ?color . ?color rdfs:label ?colorLabel . ?color schema:description ?colorDescription . FILTER(LANG(?colorLabel) = "de") FILTER(LANG(?colorDescription) = "de") } LIMIT 100

Which colors have German labels and descriptions in Wikidata?

Show me colors from Wikidata that are described and labeled in German.

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/P462> ?var1 . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "de" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "de" ) ) ) . } LIMIT 100


Question: What are the English-labeled properties of Rocket Lab and their corresponding values in different languages?

SELECT ?property ?propertyLabel ?value ?valueLabel WHERE { wd:Q116319 ?property ?value . ?propertyLabelItem ?propertyRelation ?property . ?propertyLabelItem rdfs:label ?propertyLabel . ?value rdfs:label ?valueLabel . FILTER (LANG(?propertyLabel) = "en") } ORDER BY ASC(?property) ASC(?value) LIMIT 200

Show me all the roles and locations associated with Rocket Lab, using English property names and labels in any language for the values.

List all the direct statements about Rocket Lab with their English property labels and the multilingual labels of their values.

SELECT ?var1 ?var2Label ?var3 ?var4Label WHERE { <http://www.wikidata.org/entity/Q116319> ?var1 ?var3 . ?var5 ?var6 ?var1 . ?var5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . } ORDER BY ASC( ?var1 )ASC( ?var3 ) LIMIT 200


Question: Humans with signature images and Swedish Wikipedia articles, ordered by number of articles, including birth/death dates and portraits.

SELECT ?person ?personLabel ?birthDate ?birthPrecision ?deathDate ?deathPrecision ?image ?sblUrl (COUNT(?svWikiPage) AS ?count) ?svWikiPage WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P109 ?signature . OPTIONAL { ?person wdt:P18 ?image . } OPTIONAL { ?person wdt:P3217 ?sblId . BIND( IRI( CONCAT( "https://sbl.sverige.se/sblartikel/", ?sblId ) ) AS ?sblUrl ) } ?person (p:P569/psv:P569) ?birthStatement . ?birthStatement wikibase:timeValue ?birthDate . ?birthStatement wikibase:timePrecision ?birthPrecision . OPTIONAL { ?person (p:P570/psv:P570) ?deathStatement . ?deathStatement wikibase:timeValue ?deathDate . ?deathStatement wikibase:timePrecision ?deathPrecision . } ?svWikiPage schema:about ?person ; schema:isPartOf <https://sv.wikipedia.org/> . } GROUP BY ?person ?personLabel ?sblUrl ?svWikiPage ?birthDate ?birthPrecision ?deathDate ?deathPrecision ?image ORDER BY DESC(?count)

Which humans have signature images and are linked to Swedish Wikipedia pages, and how many articles exist per person, along with their birth and death dates and portraits?

Show me a list of people with signature images who have Swedish Wikipedia articles, including their birth and death dates, portrait images, and the count of Swedish articles linked to them, sorted by the number of articles in descending order.

SELECT ?var1 ?var1Label ( SAMPLE ( ?var2 ) AS ?var2 )( SAMPLE ( ?var3 ) AS ?var3 )( SAMPLE ( ?var4 ) AS ?var4 )( SAMPLE ( ?var5 ) AS ?var5 )( SAMPLE ( ?var6 ) AS ?var6 )( COUNT ( ?var7 ) AS ?var8 ) ?var9 ?var10 ?var7 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P109> ?var11 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P3217> ?var12 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var6 . } BIND ( IRI ( CONCAT ( "string1", ?var12 ) ) AS ?var9 ). ?var1 ( <http://www.wikidata.org/prop/P569> / <http://www.wikidata.org/prop/statement/value/P569> ) ?var13 . ?var13 <http://wikiba.se/ontology#timeValue> ?var2 . ?var13 <http://wikiba.se/ontology#timePrecision> ?var3 . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P570> / <http://www.wikidata.org/prop/statement/value/P570> ) ?var14 . ?var14 <http://wikiba.se/ontology#timeValue> ?var4 . ?var14 <http://wikiba.se/ontology#timePrecision> ?var5 . } { ?var7 <http://schema.org/about> ?var1 ; <http://schema.org/isPartOf> <https://sv.wikipedia.org/> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sv", "en". } } GROUP BY ?var1 ?var1Label ?var10 ?var9 ?var7 ORDER BY DESC( ?var8 )


Question: Is there a person in Wikidata with IMDb ID nm3876383?

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

Who is the person associated with the IMDb ID nm3876383?

Show me the Wikidata entity for the IMDb ID nm3876383.

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


Question: Which property is most frequently used to classify entities as types of sport?

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

What property is used the most times to indicate that an entity is an instance of a type of sport?

Show me the property that assigns the most entities to the category "type of sport".

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/Q31629> . ?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 Rocket Lab's properties and their English-labeled objects, including its official website?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?propertyLabel ?item ?itemLabel WHERE {
  wd:Q116319 ?property ?item .
  ?propEntity wikibase:directClaim ?property .
  ?propEntity rdfs:label ?propertyLabel .
  OPTIONAL {
    ?item rdfs:label ?itemLabelOptional .
    FILTER ( LANG( ?itemLabelOptional ) = "en" )
  }
  BIND( IF( ?property = wdt:P856 , STR( ?item ) , COALESCE ( ?itemLabelOptional , "" ) ) AS ?itemLabel ) FILTER ( LANG( ?propertyLabel ) = "en" && ( ?itemLabel != "" || ?property = wdt:P856 ) )
}
ORDER BY ASC ( ?property ) ASC ( ?item )
LIMIT 200

Which entities are connected to Rocket Lab via direct properties, and what are the English labels of those properties and entities, including its official website URL?

List all the direct relationships of Rocket Lab with their English labels, and include the official website even though it doesn't have a label.

SELECT ?var1 ?var2Label ?var3 ?var4Label WHERE { <http://www.wikidata.org/entity/Q116319> ?var1 ?var3 . ?var5 ?var6 ?var1 . ?var5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var5 <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" ) && ( LANG ( ?var2Label ) = "en" ) || ( ?var1 = <http://www.wikidata.org/prop/direct/P856> ) ) ) . } ORDER BY ASC( ?var1 )ASC( ?var3 ) LIMIT 200


Question: What are the English-named tram lines in Vienna?

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 ?var1 ?var1Label WHERE {
  ?var1 wdt:P31 wd:Q27997185 .
  ?var1 wdt:P361 wd:Q129612 .
  ?var1 rdfs:label ?var1Label .
  FILTER(LANG(?var1Label) = "en")
}
ORDER BY ASC(?var1Label)

Can you list the tram lines that are part of Vienna’s tram transport system and have English labels?

Show me the names of tram lines in Vienna’s tram network, using English labels.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q15145593> . ?var1 <http://www.wikidata.org/prop/direct/P361> <http://www.wikidata.org/entity/Q129612> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } } ORDER BY ASC( <http://www.w3.org/2001/XMLSchema#integer> ( ?var1Label ) )ASC( ?var1Label )


Question: What tennis tournaments (excluding players) are listed on Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ( wd:Q847 AS ?sport ) ( GROUP_CONCAT( CONCAT ( "[[" , SUBSTR( STR( ?event ) , 32 ) , "]]" ) ; SEPARATOR = " " ) AS ?events ) WHERE {
  ?event wdt:P641 wd:Q847 .
  FILTER ( NOT EXISTS {
    ?event wdt:P31 wd:Q5
  }
  )
}

Can you list the Wikidata IDs of all tennis events that are not human players?

Show me the MediaWiki-style links to all non-human entities associated with the sport of tennis.

SELECT( <http://www.wikidata.org/entity/Q847> AS ?var1 )( GROUP_CONCAT ( CONCAT ( "[[", SUBSTR ( STR ( ?var2 ) ,"32"^^<http://www.w3.org/2001/XMLSchema#integer> ) , "]]" ) ) AS ?var3 ) WHERE { ?var2 <http://www.wikidata.org/prop/direct/P641> <http://www.wikidata.org/entity/Q847> . FILTER ( ( NOT EXISTS { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . } ) ) . }


Question: Which Wikipedia language editions have articles about people listed in the Dictionary of Swedish National Biography, and how many per edition?

SELECT (COUNT(?item) AS ?count) ?wikipediaSite WHERE { ?item wdt:P3217 ?sblId . ?wikipediaPage schema:about ?item ; schema:isPartOf ?wikipediaSite . FILTER(?wikipediaSite != <https://commons.wikimedia.org/>) FILTER(STRSTARTS(STR(?wikipediaSite), "https://")) } GROUP BY ?wikipediaSite ORDER BY DESC(?count)

How many people with a Swedish National Biography ID have Wikipedia articles on each language edition, excluding Commons?

List the Wikipedia language editions that feature biographies of people from the Swedish National Biography, sorted by the number of such biographies in descending order.

SELECT( COUNT ( ?var1 ) AS ?var2 ) ?var3 WHERE { { SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3217> ?var4 ; <http://wikiba.se/ontology#sitelinks> ?var5 . OPTIONAL { [] <http://schema.org/about> ?var1 ; <http://schema.org/isPartOf> ?var3 . } FILTER ( ( NOT EXISTS { [] <http://schema.org/about> ?var1 ; <http://schema.org/isPartOf> <https://commons.wikimedia.org/> . } ) ) . } ORDER BY DESC( ?var5 )ASC( ?var1 ) } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sv,en". } } GROUP BY ?var3 ORDER BY DESC( ?var2 )


Question: What is the name of the institution with Freebase ID /m/01cf5?

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

Which entity in Wikidata is identified by the Freebase ID /m/01cf5?

Can you tell me the English label of the entity linked to Freebase ID /m/01cf5?

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P646> "/m/01cf5". SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Which districts of Vienna have tram services?

SELECT ?district ?districtLabel WHERE { ?tramService wdt:P31 wd:Q15145593 ; wdt:P131 ?district . ?district wdt:P131 wd:Q1741 . ?district rdfs:label ?districtLabel . FILTER(LANG(?districtLabel) = "en") }

In which administrative district of Vienna are tram services located?

List the districts within Vienna that include at least one tram line.

SELECT ?var1 ?var1Label ?var2 WHERE { [ <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q15145593> ] <http://www.wikidata.org/prop/direct/P131> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q1741> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } }


Question: French National Assembly members with occupations not related to politics

SELECT DISTINCT ?personLabel ?occupationLabel WHERE { ?person wdt:P27 wd:Q142 ; wdt:P39 wd:Q3044918 ; wdt:P106 ?occupation . MINUS { ?occupation wdt:P425 wd:Q7163 . } ?person rdfs:label ?personLabel . ?occupation rdfs:label ?occupationLabel . FILTER(LANG(?personLabel) = "en") FILTER(LANG(?occupationLabel) = "en") } LIMIT 100000

Who are the members of the French National Assembly whose occupations are not in the field of politics?

List the occupations of French members of the National Assembly that are not political.

SELECT DISTINCT ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q142> . ?var1 <http://www.wikidata.org/prop/direct/P106> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q3044918> . ?var1 <http://www.wikidata.org/prop/direct/P734> ?var3 . MINUS { ?var2 <http://www.wikidata.org/prop/direct/P425> <http://www.wikidata.org/entity/Q7163> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100000


Question: What are the Super Mario Bros. video games, their release dates, and English descriptions?

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 DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE {
  ?var1 wdt:P31 wd:Q7889 .
  ?var1 rdfs:label ?var1Label .
  FILTER(LANG(?var1Label) = "en")
  FILTER(REGEX(?var1Label , "Super Mario Bros." , "i"))
  OPTIONAL {
    ?var1 wdt:P18 ?var2 .
  }
  ?var3 schema:about ?var1 ; schema:description ?var4 ; schema:inLanguage "en" .
  ?var1 wdt:P577 ?var5 .
}
ORDER BY DESC(?var5)
LIMIT 100

Can you list the Super Mario Bros. games with their release dates, descriptions, and images, ordered from newest to oldest?

Show me the latest Super Mario Bros. games with their Wikipedia descriptions and official images.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q7889> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . FILTER ( ( REGEX ( ?var1Label , "string1" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } ?var3 <http://schema.org/about> ?var1 ; <http://schema.org/description> ?var4 . ?var3 <http://schema.org/inLanguage> "en". ?var1 <http://www.wikidata.org/prop/direct/P577> ?var5 . } ORDER BY DESC( ?var5 ) LIMIT 100


Question: Space probes, their launch dates, and images

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?probe ( SAMPLE( ?label ) AS ?probeLabel ) ?launchDate ( SAMPLE( ?image ) AS ?sampleImage ) WHERE {
  ?probe wdt:P31 wd:Q26529 .
  ?probe wdt:P619 ?launchDate .
  ?probe rdfs:label ?label .
  OPTIONAL {
    ?probe wdt:P18 ?image .
  }
}
GROUP BY ?probe ?launchDate

What are the space probes, when were they launched, and do they have any images?

List all space probes along with their launch dates and an associated image from Wikimedia Commons, if one exists.

SELECT ?var1 ?var1Label ?var2 ( SAMPLE ( ?var3 ) AS ?var3 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q26529> . ?var1 <http://www.wikidata.org/prop/direct/P619> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pt,en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } } GROUP BY ?var1 ?var1Label ?var2


Question: U.S. presidents with images of themselves and their spouses, and number of children

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 ?president ?presidentLabel ?spouseLabel ?presidentImage ?spouseImage ?children WHERE {
  ?president p:P39 ?presidencyStatement .
  ?presidencyStatement ps:P39 wd:Q11696 ; pq:P1545 ?ordinal .
  ?president wdt:P26 ?spouse ; wdt:P18 ?presidentImage ; wdt:P1971 ?children .
  ?spouse wdt:P18 ?spouseImage .
  ?president rdfs:label ?presidentLabel .
  ?spouse rdfs:label ?spouseLabel .
  FILTER(LANG(?presidentLabel) = "en" && LANG(?spouseLabel) = "en")
  FILTER(BOUND(?presidentImage) && BOUND(?spouseImage) && BOUND(?children))
}

Which U.S. presidents have publicly available images of themselves and their spouses, and how many children do they have?

Show me the names of U.S. presidents, their spouses, their images, their spouses' images, and how many children they had.

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q11696> ; <http://www.wikidata.org/prop/direct/P26> ?var2 ; <http://www.wikidata.org/prop/direct/P18> ?var3 . ?var2 <http://www.wikidata.org/prop/direct/P18> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P1971> ?var5 ; <http://www.wikidata.org/prop/direct/P39> ?var6 . ?var6 <http://www.wikidata.org/prop/P1545> ?var7 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Current manuscript collections (excluding Matenadaran) and coordinates of the collections and their parent institutions.

SELECT DISTINCT ?collection ?collectionLabel ?collectionCoords ?parentCoords WHERE { ?manuscript (wdt:P31/wdt:P279*) wd:Q87167 . ?manuscript p:P195 ?collectionStatement . ?collectionStatement ps:P195 ?collection . MINUS { ?collectionStatement pq:P582 [] } . ?collection wdt:P625 ?collectionCoords ; wdt:P361 ?parentInstitution . ?parentInstitution wdt:P625 ?parentCoords . MINUS { ?collectionStatement ps:P195 wd:Q1322278 } . ?collection rdfs:label ?collectionLabel . FILTER(LANG(?collectionLabel) = "en") }

Which current libraries or archives hold manuscripts, and what are the geographic coordinates of both the collection and the institution it belongs to, excluding Matenadaran?

Show me the names, locations, and parent institution locations of all active manuscript collections worldwide, except for Matenadaran.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var4 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q87167> . ?var4 <http://www.wikidata.org/prop/P195> ?var5 . ?var5 <http://www.wikidata.org/prop/statement/P195> ?var1 . MINUS { ?var5 <http://www.wikidata.org/prop/qualifier/P582> [] . } ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 ; <http://www.wikidata.org/prop/direct/P361> ?var6 . ?var6 <http://www.wikidata.org/prop/direct/P625> ?var3 . MINUS { ?var5 <http://www.wikidata.org/prop/statement/P195> <http://www.wikidata.org/entity/Q1322278> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the English labels of canonization statuses in Wikidata?

SELECT DISTINCT ?canonizationStatus ?canonizationStatusLabel WHERE { ?person wdt:P411 ?canonizationStatus . ?canonizationStatus rdfs:label ?canonizationStatusLabel . FILTER (LANG(?canonizationStatusLabel) = "en") } LIMIT 100

What are the different stages of sainthood in Christianity, as labeled in English in Wikidata?

List the English names of the formal stages in the process of becoming a saint, according to 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/P411> ?var1 . } 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: Which Wikidata item has the VIAF ID 3400151837987420520000?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item WHERE {
  ?item wdt:P214 "3400151837987420520000" .
}
LIMIT 1

Who is the person identified by the VIAF cluster ID 3400151837987420520000?

I need to find the entity in Wikidata linked to the Virtual International Authority File identifier 3400151837987420520000.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P214> "3400151837987420520000". } LIMIT 1


Question: Which Wikidata entity has the Freebase ID /m/02vps5x?

SELECT ?entity WHERE { ?entity wdt:P646 "/m/02vps5x" . }

What is the Wikidata item corresponding to the Freebase identifier /m/02vps5x?

Tell me the Wikidata entity linked to the Freebase ID /m/02vps5x.

SELECT ?var1 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P646> "/m/02vps5x". } } LIMIT 100


Question: Notable cats that are instances of house cats

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 ?cat ?catLabel WHERE {
  ?cat wdt:P31 wd:Q146 .
  ?cat rdfs:label ?catLabel .
  FILTER ( LANG( ?catLabel ) = 'en' )
}
LIMIT 10

What are some named cats that are classified as house cats?

List the English names of 10 individual cats that are instances of the house cat species.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q146> . } LIMIT 10


Question: Is there a football player with Transfermarkt ID 20417?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?player wdt:P2446 "20417" .
}

Does the player with Transfermarkt ID 20417 exist in Wikidata?

Confirm if Transfermarkt player ID 20417 corresponds to a known footballer in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2446> "20417". }


Question: American screenwriters born between 1968 and 1978 who have won awards but have no academic degrees.

SELECT ?screenwriter ?screenwriterLabel ?birthDate ?awardLabel WHERE { ?screenwriter wdt:P31 wd:Q5 ; wdt:P106 wd:Q28389 ; wdt:P569 ?birthDate ; wdt:P27 wd:Q30 ; wdt:P166 ?award . ?screenwriter rdfs:label ?screenwriterLabel . ?award rdfs:label ?awardLabel . FILTER ( NOT EXISTS { ?screenwriter wdt:P512 ?degree } ) . FILTER ( ?birthDate > "1968-01-17T00:00:00"^^xsd:dateTime ) . FILTER ( ?birthDate < "1978-01-17T00:00:00"^^xsd:dateTime ) . FILTER ( lang(?screenwriterLabel) = "en" ) . FILTER ( lang(?awardLabel) = "en" ) .}

Who are American screenwriters born between January 17, 1968 and January 17, 1978 who have received awards but no academic degrees?

List the names of American screenwriters born in the late 1960s and 1970s who have won awards and do not hold any academic degrees.

SELECT ?var1 ?var1Label ?var2 ?var3Label 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/Q28389> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q30> . FILTER ( ( EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P166> ?var3 . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P512> ?var4 . } ) ) . FILTER ( ( ( ?var2 < "1978-01-17T00:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . FILTER ( ( ( ?var2 > "1968-01-17T00:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What is the English name of the geographical location with GeoNames ID 7535797?

SELECT ?place ?placeLabel WHERE { ?place wdt:P1566 "7535797" . ?place rdfs:label ?placeLabel . FILTER(LANG(?placeLabel) = "en") }

Which place has the GeoNames identifier 7535797, and what is its English label?

Find the English name of the location identified as 7535797 in GeoNames.

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


Question: What is the English name of the place with GeoNames ID 7532824?

SELECT ?item ?label WHERE { ?item wdt:P1566 "7532824" . ?item rdfs:label ?label . FILTER(LANG(?label) = "en")}

Find the English name of the geographical entity with GeoNames ID 7532824.

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


Question: Who is the person with IMDb ID nm2629157?

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 "nm2629157" .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}

What is the name of the person identified by the IMDb identifier nm2629157?

Find the English name of the person whose IMDb ID is nm2629157.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "nm2629157". } ORDER BY ASC( ?var1 )


Question: Does the VIAF ID 18145971483932331761 exist in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P214 "18145971483932331761" .
}

Is there a Wikidata item associated with the VIAF cluster ID 18145971483932331761?

Confirm if the Virtual International Authority File identifier 18145971483932331761 is registered in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P214> "18145971483932331761". }


Question: U.S. presidents, their spouses, number of children, start dates, and images

SELECT ?presidentLabel ?spouseLabel ?children ?start ?presidentImage ?spouseImage WHERE { ?president p:P39 ?statement . ?statement ps:P39 wd:Q11696 . ?statement pq:P580 ?start . OPTIONAL { ?president wdt:P26 ?spouse . } OPTIONAL { ?president wdt:P1971 ?children . } OPTIONAL { ?president wdt:P18 ?presidentImage . } OPTIONAL { ?spouse wdt:P18 ?spouseImage . } ?president rdfs:label ?presidentLabel . FILTER(LANG(?presidentLabel) = "en") OPTIONAL { ?spouse rdfs:label ?spouseLabel . FILTER(LANG(?spouseLabel) = "en") } } ORDER BY ASC(?start) LIMIT 50

Who are the U.S. presidents, who did they marry, how many children did they have, when did they take office, and what are their photos and their spouses' photos?

List the first 50 U.S. presidents in chronological order along with their spouses, number of children, start dates of presidency, and images of both the president and spouse.

SELECT ?var1Label ?var2Label ?var3 ?var4 ?var5 ?var6 WHERE { { BIND ( <http://www.wikidata.org/entity/Q30> AS ?var7 ). ?var7 ( <http://www.wikidata.org/prop/P6> / <http://www.wikidata.org/prop/statement/P6> ) ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P26> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P1971> ?var5 . ?var1 <http://www.wikidata.org/prop/P39> ?var8 . ?var8 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q11696> . ?var8 <http://www.wikidata.org/prop/qualifier/P580> ?var6 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . ?var2 <http://www.wikidata.org/prop/direct/P18> ?var4 . } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var9 ) LIMIT 50


Question: What is the English name of Roberto Jaguaribe Gomes de Mattos, and which political party is he a member of?

SELECT ?person ?personLabel ?party ?partyLabel WHERE { wd:Q18044225 wdt:P27 wd:Q155 . wd:Q18044225 rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") . OPTIONAL { wd:Q18044225 wdt:P102 ?party . ?party rdfs:label ?partyLabel . FILTER(LANG(?partyLabel) = "en") . } }

Is Roberto Jaguaribe a member of any political party in Brazil?

Tell me the name of the Brazilian diplomat Roberto Jaguaribe and his political affiliation.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1448> <http://www.wikidata.org/entity/Q18044225> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q155> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pt". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P102> ?var2 . } }


Question: Who are the 10 oldest DBLP-authors and when were they born?

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 ?dblpId ?birthDate WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P2456 ?dblpId .
  ?person wdt:P569 ?birthDate .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}
ORDER BY ASC ( ?birthDate )
LIMIT 10

What are the names, DBLP IDs, and birth dates of the 10 oldest humans listed in DBLP?

List the 10 earliest-born scientists in DBLP with their English names and birth dates.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P2456> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } } ORDER BY ASC( ?var3 ) LIMIT 10


Question: What breweries produce beer, and in which countries are they located or who founded them?

SELECT ?brewery ?country ?founder WHERE { ?brewery wdt:P1056 wd:Q44 . OPTIONAL { ?brewery wdt:P17 ?country . } OPTIONAL { ?brewery wdt:P112 ?founder . } }

Which entities produce beer, and what are their countries of operation and founders, if known?

List all beer-producing breweries along with their countries and founders.

SELECT * WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "lfn,en". } ?var1 <http://www.wikidata.org/prop/direct/P1056> <http://www.wikidata.org/entity/Q44> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P112> ?var3 . } }


Question: Publisher of Z1 Battle Royale

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 ?publisher ?publisherLabel WHERE {
  wd:Q23013631 wdt:P123 ?publisher .
  ?publisher rdfs:label ?publisherLabel .
  FILTER(LANG(?publisherLabel) = "en")
}

Who published the video game Z1 Battle Royale?

What is the English name of the company that published Z1 Battle Royale?

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


Question: What celestial objects are part of the Local Interstellar Cloud?

SELECT DISTINCT ?item ?itemLabel WHERE { ?item wdt:P361 wd:Q817157 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } LIMIT 10

List the stars and systems located within the Local Interstellar Cloud.

Which astronomical entities belong to the Local Interstellar Cloud?

SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/P361> ?var2 . ?var2 <http://www.wikidata.org/prop/statement/P361> <http://www.wikidata.org/entity/Q817157> . } LIMIT 10


Question: Who has the Dictionary of Swedish National Biography ID 15970?

SELECT ?person WHERE { ?person wdt:P3217 "15970" . }

Which person is identified by the SBL ID 15970 in the Dictionary of Swedish National Biography?

Find the Wikidata item for the individual with SBL ID 15970.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3217> "15970". } LIMIT 1


Question: Screenwriters of films

SELECT ?film ?screenwriter ?screenwriterLabel WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P58 ?screenwriter . ?screenwriter rdfs:label ?screenwriterLabel . FILTER(LANG(?screenwriterLabel) = "en") }

List films along with the names of their screenwriters in English.

SELECT ?var1 ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P58> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE], en". } } LIMIT 200 OFFSET 33600


Question: Does the IMDb ID nm5727469 exist in Wikidata?

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

Is there a person in Wikidata with the IMDb identifier nm5727469?

Check if the IMDb ID nm5727469 is linked to any entity in Wikidata.

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


Question: What film has the elFilm ID 1148665?

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

Which movie on Wikidata is identified by the elFilm ID 1148665?

Find the Wikidata item for the Arabic movie database (elFilm) entry with ID 1148665.

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


Question: Is there a person or organization in Wikidata with the GND ID 135964459?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P227 "135964459" .
}

Does the German National Library ID 135964459 correspond to any entity in Wikidata?

Can you find an item in Wikidata that has the GND identifier 135964459?

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "135964459". }


Question: What are the Art & Architecture Thesaurus IDs for items in Wikidata?

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

Which entities in Wikidata have an Art & Architecture Thesaurus ID, and what are their English labels and corresponding AAT identifiers?

List all Wikidata items with their English names and Art & Architecture Thesaurus IDs.

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


Question: Finnish bands that play subgenres of heavy metal.

SELECT DISTINCT ?band ?bandLabel WHERE { ?subgenre wdt:P279 wd:Q38848 . ?band wdt:P136 ?subgenre . ?band wdt:P495 wd:Q33 . ?band rdfs:label ?bandLabel . FILTER(LANG(?bandLabel) = "en") } ORDER BY ASC(?bandLabel)

Which bands from Finland have a music genre that is a subgenre of heavy metal?

List all Finnish heavy metal subgenre bands in alphabetical order.

SELECT DISTINCT ?var1 ?var1Label ?var2Label ?var3 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q38848> . ?var1 <http://www.wikidata.org/prop/direct/P136> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P495> <http://www.wikidata.org/entity/Q33> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,de,en". } } ORDER BY ASC( ?var1Label )


Question: Top universities educating scientists from Russia, Soviet Union, and Russian Empire

SELECT ( COUNT( ?institution ) AS ?count ) ?institutionLabel WHERE { ?scientist wdt:P106 wd:Q901 . ?scientist wdt:P27 ?country . FILTER ( ?country IN ( wd:Q34266, wd:Q15180, wd:Q159 ) ) OPTIONAL { ?scientist wdt:P69 ?institution . ?institution rdfs:label ?institutionLabel . FILTER ( LANG(?institutionLabel) = "en" ) } } GROUP BY ?institution ?institutionLabel ORDER BY DESC(?count)

Which universities educated the most scientists who were citizens of Russia, the Soviet Union, or the Russian Empire?

List the educational institutions attended by scientists from Russia, the Soviet Union, or the Russian Empire, ranked by the number of scientists.

SELECT( COUNT ( ?var1Label ) AS ?var2 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q901> . ?var3 <http://www.wikidata.org/prop/direct/P27> ?var4 . FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q34266> ) || ( ?var4 = <http://www.wikidata.org/entity/Q15180> ) || ( ?var4 = <http://www.wikidata.org/entity/Q159> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P69> ?var1 . } } GROUP BY ?var1


Question: English names of all cats that are instances of house cats.

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

What are the English labels of entities that are instances of the house cat?

List the English names of all known cats classified as house cats.

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


Question: Does the GND ID 1154541010 exist in Wikidata?

Is there a Wikidata item associated with the German National Library ID 1154541010?

Can you confirm that Hans-Joachim Martens is represented in Wikidata using the GND ID 1154541010?

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "1154541010". }


Question: Does Sylvain Tesson have a GND ID of 137884990?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P227 "137884990" .
}

Is there a Wikidata item for Sylvain Tesson with the German National Library ID 137884990?

Confirm that the GND identifier 137884990 corresponds to Sylvain Tesson in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "137884990". }


Question: Does the football player with Transfermarkt ID 52031 exist in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?player wdt:P2446 "52031" .
}

Is there a record in Wikidata for the footballer associated with the Transfermarkt ID 52031?

Can you confirm that Tim Krumpen is listed in Wikidata with the Transfermarkt player ID 52031?

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2446> "52031". }


Question: Bridges with known locations and English names

SELECT ?bridge ?label WHERE {
  ?bridge wdt:P31 wd:Q12280 .
  ?bridge wdt:P276 ?location .
  ?bridge rdfs:label ?label .
  FILTER(LANG(?label) = "en")
}

What are the English names of bridges that have a recorded location?

List all bridges with known locations and their English names.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q12280> . ?var1 <http://www.wikidata.org/prop/direct/P276> ?var2 . }


Question: What is the image of Amsterdam Amstel railway station?

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

Can you show me the photo of Amsterdam Amstel station, which is a station building?

Show the Wikimedia Commons image associated with the Amsterdam Amstel train station.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1339195> . ?var1 <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> "nl,en". } FILTER ( ( ?var1 IN ( <http://www.wikidata.org/entity/Q50720> ) ) ) . }


Question: Metro stations in Amsterdam on the Noord/Zuidlijn (Line 52)

SELECT ?station ?stationLabel ?coordinates ?line ?lineLabel WHERE {
  ?station wdt:P31 wd:Q928830 .
  ?station wdt:P131 wd:Q9899 .
  ?station wdt:P625 ?coordinates .
  ?station p:P197 ?adjacentStatement .
  ?adjacentStatement pq:P81 ?line .
  ?line rdfs:label ?lineLabel .
  ?station rdfs:label ?stationLabel .
  FILTER (?line = wd:Q2466115)
  FILTER (LANG(?stationLabel) = "en")
  FILTER (LANG(?lineLabel) = "en")
}

Which metro stations in Amsterdam are part of the Noord/Zuidlijn (Line 52)?

List the names, coordinates, and line information for all metro stations in Amsterdam that are connected to the Noord/Zuidlijn.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var4Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q928830> . ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q9899> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . ?var1 <http://www.wikidata.org/prop/P197> ?var3 . ?var3 <http://www.wikidata.org/prop/qualifier/P81> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "nl,en". } FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q2466115> ) ) ) . }


Question: Show the labels for macaron in English, German, French, and Italian, along with its image and Wikipedia link.

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

What are the labels for macaron in different languages (English, German, French, Italian), and what is its image and Wikipedia page?

Retrieve the macaron’s name in English, German, French, and Italian, its image from Wikimedia Commons, and its corresponding English Wikipedia article, ordered by language preference.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q12478> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var5 ) ) ) . VALUES ( ?var5 ?var6 ) { ( "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/Q12478> <http://www.wikidata.org/prop/direct/P18> ?var2 . } OPTIONAL { <http://www.wikidata.org/entity/Q12478> <http://www.wikidata.org/prop/direct/P625> ?var3 . } 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/Q12478> ; <http://schema.org/inLanguage> "en"; <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } } ORDER BY ASC( ?var6 )


Question: What are some Swedish heavy metal bands, and where were they formed?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?var1 ?var4 WHERE {
  {
    ?var1 wdt:P31 wd:Q215380
  } UNION {
    ?var1 wdt:P31 wd:Q1056545
  }
  .
  ?var1 wdt:P136 wd:Q38848 .
  ?var1 wdt:P495 wd:Q34 .
  OPTIONAL {
    ?var1 wdt:P740 ?var3 .
    ?var3 wdt:P625 ?var4 .
  }
}
ORDER BY ASC(?var1)
LIMIT 50

Can you list heavy metal bands from Sweden along with the geographic coordinates of where they were formed?

Show me bands from Sweden that play heavy metal music and their formation locations.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3Label ?var4 WHERE { ?var1 ( <http://www.wikidata.org/prop/P31> / <http://www.wikidata.org/prop/statement/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q215380> . ?var1 ( <http://www.wikidata.org/prop/P136> / <http://www.wikidata.org/prop/statement/P136> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q38848> . ?var1 <http://www.wikidata.org/prop/direct/P495> <http://www.wikidata.org/entity/Herkunftsland> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P740> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P625> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,de,en". } } ORDER BY ASC( ?var1Label )


Question: List all subclasses of drink in English.

SELECT DISTINCT ?drink ?drinkLabel WHERE { ?drink wdt:P279 wd:Q40050 . ?drink rdfs:label ?drinkLabel . FILTER (LANG(?drinkLabel) = "en") }

What are the different types of drinks classified in Wikidata with English labels?

Show me all English-named beverage subclasses under the category of drink.

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


Question: What major events include tennis as a sub-event but are not themselves sports participants?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?event ?tennisEvent ?tennisEventType WHERE {
  ?tennisEvent wdt:P641 wd:Q847 .
  ?event wdt:P527 ?tennisEvent .
  ?tennisEvent ( wdt:P31 | wdt:P279 ) ?tennisEventType .
  FILTER NOT EXISTS {
    ?event wdt:P641 []
  }
  FILTER NOT EXISTS {
    ?event wdt:P31 wd:Q5
  }
}

Which tournaments or competitions have tennis events as parts, but are not humans or athletes?

List events such as the Olympics that feature tennis matches, but do not themselves play any sport.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ( STRAFTER ( STR ( ?var1 ) , "y/" ) AS ?var4 )( "P641" AS ?var5 )( STRAFTER ( STR ( <http://www.wikidata.org/entity/Q847> ) , "y/" ) AS ?var6 ) WHERE { ?var2 <http://www.wikidata.org/prop/direct/P641> <http://www.wikidata.org/entity/Q847> . ?var1 <http://www.wikidata.org/prop/direct/P527> ?var2 . ?var2 ( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P279> ) ?var3 . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P641> [] . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en,it,de,fr,es". } }


Question: List ski jumpers with their birth places and dates of birth.

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 ?skiJumper ?skiJumperLabel ?birthPlaceLabel ?birthDate WHERE {
  ?skiJumper wdt:P106 wd:Q13382603 ; wdt:P19 ?birthPlace ; wdt:P569 ?birthDate .
  ?skiJumper rdfs:label ?skiJumperLabel .
  ?birthPlace rdfs:label ?birthPlaceLabel .
  FILTER ( LANG( ?skiJumperLabel ) = "en" ) FILTER ( LANG( ?birthPlaceLabel ) = "en" )
}

Who are the ski jumpers, where were they born, and when were they born?

Provide the names, birth locations, and birth dates of all people whose occupation is ski jumping, with labels in English.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q13382603> ; <http://www.wikidata.org/prop/direct/P19> ?var2 ; <http://www.wikidata.org/prop/direct/P569> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pl,en". } }


Question: What works did Alois Jirásek write as a screenwriter?

SELECT ?work ?workLabel ?image WHERE { ?work wdt:P58 wd:Q161368 . OPTIONAL { ?work rdfs:label ?workLabel . FILTER(LANG(?workLabel) = "en") } OPTIONAL { ?work wdt:P18 ?image . } } LIMIT 100

Can you list the English titles of books or films for which Alois Jirásek wrote the screenplay, along with any available images?

Which creative works are credited to Alois Jirásek as a screenwriter, and do they have images on Wikimedia Commons?

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P58> <http://www.wikidata.org/entity/Q161368> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } } LIMIT 100


Question: Coordinates of Evangelical Church of Czech Brethren churches (kirch) not located in Pustá Rybná.

SELECT DISTINCT ?churchLabel ?coordinates WHERE { ?church wdt:P31 wd:Q1989839 . ?church wdt:P140 wd:Q782911 . ?church wdt:P263 ?residence . ?residence wdt:P625 ?coordinates . MINUS { ?church wdt:P131 wd:Q1809746 . } ?church rdfs:label ?churchLabel . FILTER(LANG(?churchLabel) = "en") }

Where are the official residences of churches belonging to the Evangelical Church of Czech Brethren, excluding those in Pustá Rybná?

Please list the names and geographic coordinates of all churches of the Evangelical Church of Czech Brethren that are not in Pustá Rybná.

SELECT DISTINCT ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1989839> . ?var1 <http://www.wikidata.org/prop/direct/P140> <http://www.wikidata.org/entity/Q782911> . ?var1 <http://www.wikidata.org/prop/direct/P263> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P625> ?var2 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q1809746> . } OPTIONAL { ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/inLanguage> "cs". } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } }


Question: List entities with old National Library of Israel IDs and their English labels.

SELECT ?item ?itemLabel ?nliId WHERE { ?item wdt:P949 ?nliId . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

Which entities have been assigned an old National Library of Israel identifier (P949), and what are their English names?

Show me the English names of all items that previously had a National Library of Israel ID (P949), along with the ID values.

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


Question: Streets in Sweden named after people with their Dictionary of Swedish National Biography IDs, images, and Wikipedia links.

SELECT ?street ?coordinates ?streetImage ?personImage ?wikipediaPage ?streetLabel ?person ?personLabel ?sblId WHERE { ?street wdt:P31 wd:Q79007 . ?street wdt:P17 wd:Q34 . ?street wdt:P138 ?person . ?person wdt:P3217 ?sblId . OPTIONAL { ?street wdt:P625 ?coordinates . } OPTIONAL { ?street wdt:P18 ?streetImage . } OPTIONAL { ?person wdt:P18 ?personImage . } OPTIONAL { ?wikipediaPage schema:about ?street ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . } OPTIONAL { ?wikipediaPage schema:about ?street ; schema:inLanguage "de" ; schema:isPartOf <https://de.wikipedia.org/> . } ?street rdfs:label ?streetLabel . ?person rdfs:label ?personLabel . FILTER(LANG(?streetLabel) = "en") FILTER(LANG(?personLabel) = "en") } ORDER BY ASC(?personLabel)

Which streets in Sweden are named after individuals listed in the Dictionary of Swedish National Biography, and what are their coordinates, images, and Wikipedia pages?

List all streets in Sweden that are named after people, including the person’s name, their SBL ID, images of the street and the person, and links to their English and German Wikipedia pages.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var1Label ?var6 ?var7 ?var7Label ?var8 WHERE { ?var7 <http://www.wikidata.org/prop/direct/P3217> ?var8 . ?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/Q34> . ?var1 <http://www.wikidata.org/prop/direct/P138> ?var7 . ?var7 <http://www.wikidata.org/prop/direct/P3217> ?var8 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/direct/P18> ?var4 . } OPTIONAL { ?var5 <http://schema.org/about> ?var1 . ?var5 <http://schema.org/inLanguage> "en". ?var5 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } OPTIONAL { ?var5 <http://schema.org/about> ?var1 . ?var5 <http://schema.org/inLanguage> "de". ?var5 <http://schema.org/isPartOf> <https://de.wikipedia.org/> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en", "sp", "no", "da", "de", "pl", "sv". } } ORDER BY ASC( ?var7Label )


Question: South Korean councilors and their corresponding legislatures and administrative divisions

SELECT DISTINCT ?councilMember ?councilMemberLabel ?legislature ?legislatureLabel ?administrativeDivision ?administrativeDivisionLabel WHERE { ?councilMember wdt:P31 wd:Q4164871 . ?councilMember rdfs:label ?label FILTER(CONTAINS(LCASE(?label), "councilor") && LANG(?label) = "en") . ?legislature wdt:P527 ?councilMember . ?legislature wdt:P31/wdt:P279* wd:Q11204 . ?legislature wdt:P1001 ?administrativeDivision . ?administrativeDivision wdt:P31/wdt:P279* wd:Q10864048 . ?administrativeDivision wdt:P17 wd:Q884 . MINUS { ?councilMember wdt:P576 [] . } OPTIONAL { ?councilMember rdfs:label ?councilMemberLabel FILTER(LANG(?councilMemberLabel) = "en") } OPTIONAL { ?legislature rdfs:label ?legislatureLabel FILTER(LANG(?legislatureLabel) = "en") } OPTIONAL { ?administrativeDivision rdfs:label ?administrativeDivisionLabel FILTER(LANG(?administrativeDivisionLabel) = "en") } } ORDER BY ?councilMember

Who are the councilors in South Korea’s provincial and metropolitan legislatures, and which cities or provinces do they represent?

List all council members in South Korea’s first-level administrative divisions along with the legislatures they serve in and the regions they represent.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var7Label WHERE { VALUES ( ?var8 ) { ( <http://www.wikidata.org/entity/Q50258518> ) } VALUES ( ?var4 ) { ( <http://www.wikidata.org/entity/Q4925355> ) ( <http://www.wikidata.org/entity/Q11279677> ) ( <http://www.wikidata.org/entity/Q29045219> ) ( <http://www.wikidata.org/entity/Q16181672> ) ( <http://www.wikidata.org/entity/Q482821> ) } ?var7 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q708492> . ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q10864048> ; <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q884> . ?var3 <http://www.wikidata.org/prop/direct/P31> ?var4 . ?var6 <http://www.wikidata.org/prop/direct/P1001> ?var3 ; ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q11204> ; <http://www.wikidata.org/prop/direct/P527> ?var7 . MINUS { ?var6 <http://www.wikidata.org/prop/direct/P576> [] . } ?var9 <http://www.wikidata.org/prop/statement/P279> ?var8 ; <http://www.wikidata.org/prop/qualifier/P642> ?var6 . ?var5 <http://www.wikidata.org/prop/P279> ?var9 . ?var1 <http://www.wikidata.org/prop/direct/P31> ?var5 . FILTER ( ( ?var1 IN ( <http://www.wikidata.org/entity/Q50737825> , <http://www.wikidata.org/entity/Q50737937> , <http://www.wikidata.org/entity/Q50737036> , <http://www.wikidata.org/entity/Q50739772> , <http://www.wikidata.org/entity/Q50738590> , <http://www.wikidata.org/entity/Q50739662> , <http://www.wikidata.org/entity/Q50737653> , <http://www.wikidata.org/entity/Q50738033> , <http://www.wikidata.org/entity/Q50737718> , <http://www.wikidata.org/entity/Q50739265> , <http://www.wikidata.org/entity/Q50739972> , <http://www.wikidata.org/entity/Q50736686> , <http://www.wikidata.org/entity/Q50739120> , <http://www.wikidata.org/entity/Q50737263> , <http://www.wikidata.org/entity/Q50736662> , <http://www.wikidata.org/entity/Q50739830> , <http://www.wikidata.org/entity/Q50738092> ) ) ) . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P576> [] . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ko". } } ORDER BY ASC( ?var1 )


Question: Female sitters in the National Portrait Gallery without photos, ordered by birth date (newest first).

SELECT ?person ?personLabel ?npgId ?birthDate WHERE {  ?person (wdt:P21/wdt:P279*) wd:Q6581072 .  ?person wdt:P1816 ?npgId .  MINUS {    ?person wdt:P18 ?image .  }  OPTIONAL {    ?person wdt:P569 ?birthDate .  }  ?person rdfs:label ?personLabel .  FILTER(LANG(?personLabel) = "en")} ORDER BY DESC(?birthDate)

Who are the female individuals in the National Portrait Gallery’s collection that don’t have an image on Wikimedia Commons, and when were they born?

List the names and birth dates of women represented in the National Portrait Gallery (London) who don’t have a photo on Commons, sorted by birth year from most recent to oldest.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P21> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q6581072> . ?var1 <http://www.wikidata.org/prop/direct/P1816> ?var3 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var4 )


Question: Does the GND ID 135160049 exist in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P227 "135160049" .
}

Is there a Wikidata item associated with the German National Library ID 135160049?

Confirm whether the identifier 135160049 from the German National Library is linked to any entity in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "135160049". }


Question: Who are the current mayors and city councillors of Rome, Milan, and Roma Capitale, along with their start dates, political parties, and Facebook profiles?

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?person ?personLabel ?city ?position ?electoral_district ?district_type ?start_date ?parliamentary_group ?facebook_username WHERE {
  VALUES ?city {
    wd:Q220 wd:Q490 wd:Q3940419
  }
  ?city wdt:P17 wd:Q38 .
  ?city wdt:P194 ?legislative_body .
  ?legislative_body wdt:P1001 ?city .
  {
    ?city wdt:P1313 ?position .
  } UNION {
    ?position wdt:P279 * wd:Q4175034 .
    ?position wdt:P361 ?legislative_body .
  }
  ?person p:P39 ?statement .
  ?statement ps:P39 ?position .
  OPTIONAL {
    ?statement pq:P580 ?start_date .
  }
  OPTIONAL {
    ?statement pq:P4100 ?parliamentary_group .
  }
  OPTIONAL {
    ?statement pq:P768 ?electoral_district .
    ?electoral_district wdt:P31 ?district_type .
  }
  OPTIONAL {
    ?person wdt:P2013 ?facebook_username .
  } MINUS {
    ?statement pq:P582 [] .
  }
}
ORDER BY ASC ( ?person )

Which people currently hold the positions of mayor or city councillor in Rome, Milan, or Roma Capitale, and what are their parliamentary affiliations and Facebook usernames?

List all current officeholders in Rome, Milan, and Roma Capitale who are either mayors or city councillors, including their start dates, political groups, and Facebook handles.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 WHERE { VALUES ( ?var2 ) { ( <http://www.wikidata.org/entity/Q490> ) ( <http://www.wikidata.org/entity/Q220> ) ( <http://www.wikidata.org/entity/Q3940419> ) } ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q515> ; <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q38> ; <http://www.wikidata.org/prop/direct/P1313> ?var10 ; <http://www.wikidata.org/prop/direct/P194> ?var11 . ?var11 <http://www.wikidata.org/prop/direct/P1001> ?var2 . ?var12 <http://www.wikidata.org/prop/direct/P361> ?var11 ; <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q4175034> . MINUS { ?var12 <http://www.wikidata.org/prop/direct/P576> [] . } MINUS { ?var13 <http://www.wikidata.org/prop/direct/P576> [] . } MINUS { ?var11 <http://www.wikidata.org/prop/direct/P576> [] . } { ?var14 <http://www.wikidata.org/prop/statement/P39> ?var12 . } UNION { ?var14 <http://www.wikidata.org/prop/statement/P39> ?var10 . } OPTIONAL { ?var14 <http://www.wikidata.org/prop/qualifier/P4100> ?var8 . } OPTIONAL { ?var14 <http://www.wikidata.org/prop/qualifier/P580> ?var6 . } OPTIONAL { ?var14 <http://www.wikidata.org/prop/qualifier/P768> ?var4 . ?var4 <http://www.wikidata.org/prop/direct/P31> ?var5 . } MINUS { ?var14 <http://www.wikidata.org/prop/qualifier/P582> [] . } ?var14 <http://www.wikidata.org/prop/statement/P39> ?var3 . ?var1 <http://www.wikidata.org/prop/P39> ?var14 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2013> ?var9 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY ASC( ?var1 )


Question: What countries, administrative regions, or continents is Kane's Bridge directly connected to?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?connectedEntity WHERE {
  wd:Q33190821 ( wdt:P30 | wdt:P17 | wdt:P131 | wdt:P376 | wdt:P501 ) ?connectedEntity .
}

Which entities such as country or city are directly linked to Kane's Bridge via location or territorial relations?

Show me all the places that Kane's Bridge is part of, including its country and administrative areas.

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


Question: How many paintings of dogs have a known artist?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ( COUNT( DISTINCT ?painting ) AS ?count ) WHERE {
  ?painting wdt:P170 ?artist .
  ?painting wdt:P31 wd:Q3305213 ; wdt:P180 wd:Q144 .
  OPTIONAL {
    ?painting wdt:P18 ?image .
  }
}

What is the number of artworks depicting a dog that are classified as paintings and have a creator?

Can you tell me how many dog-themed paintings exist in Wikidata with identified artists?

SELECT( COUNT ( DISTINCT ?var1 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P170> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3305213> ; <http://www.wikidata.org/prop/direct/P180> <http://www.wikidata.org/entity/Q144> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var4 . } }


Question: Is there a person on Wikidata with IMDb ID nm1472652?

ASK WHERE { ?person wdt:P345 "nm1472652" . }

Does the IMDb identifier nm1472652 correspond to a person in Wikidata?

Check if the IMDb ID nm1472652 is linked to any person in Wikidata.

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


Question: What are all the known planets and planetary bodies classified as subclasses of planet?

SELECT ?instance ?instanceLabel ?subclass ?subclassLabel WHERE { ?subclass wdt:P279 wd:Q634 . ?instance wdt:P31 ?subclass . }

List all celestial objects that are instances of any type of planet, such as terrestrial planets or exoplanets.

Which objects are classified as members of any subclass of the category "planet"?

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


Question: Does Project Runeberg have the GND ID 6095827-3?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
ASK WHERE {
  wd:Q933290 wdt:P227 "6095827-3" .
}

Is the German National Library identifier (GND ID) for Project Runeberg 6095827-3?

Confirm that the website Project Runeberg is identified in the GND authority file with the ID 6095827-3.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "6095827-3". }


Question: Lakes in Latvia with Latvian Wikipedia pages but no Russian ones.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?lake ?lakeLabel WHERE {
  ?lake wdt:P31 wd:Q23397 .
  ?lake wdt:P17 wd:Q211 .
  ?lake rdfs:label ?lakeLabel .
  FILTER ( LANG( ?lakeLabel ) = "lv" ) .
  ?lvPage schema:about ?lake ; schema:inLanguage "lv" .
  FILTER NOT EXISTS {
    ?ruPage schema:about ?lake ; schema:inLanguage "ru" .
  }
}

Which lakes in Latvia have Wikipedia articles in Latvian but not in Russian?

Show me the names of lakes located in Latvia that are documented on the Latvian Wikipedia but do not have corresponding pages on the Russian Wikipedia.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . FILTER ( ( ( ?var2 = <http://www.wikidata.org/entity/Q23397> ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var3 . FILTER ( ( ( ?var3 = <http://www.wikidata.org/entity/Q211> ) ) ) . FILTER ( ( EXISTS { ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/inLanguage> "lv". } ) ) . FILTER ( ( NOT EXISTS { ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/inLanguage> "ru". } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ru,uk,be,tg,kk,ky,uz,tk,az,et,lt,lv,ro,ka,hy". } }


Question: List of real-world entities including QWERTY keyboard, Lumen Field, Qwest Records, and other specific items from Wikidata.

Which of these Wikidata items are real-world entities and not Wikimedia internal pages like templates or disambiguation pages?

SELECT DISTINCT ?var1 WHERE { ?var1 ?var2 ?var3 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4167410> . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q17633526> . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11266439> . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4167836> . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q14204246> . } VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q253> ) ( <http://www.wikidata.org/entity/Q612736> ) ( <http://www.wikidata.org/entity/Q4356801> ) ( <http://www.wikidata.org/entity/Q2887436> ) ( <http://www.wikidata.org/entity/Q7273149> ) ( <http://www.wikidata.org/entity/Q2467506> ) ( <http://www.wikidata.org/entity/Q21963122> ) ( <http://www.wikidata.org/entity/Q3414893> ) ( <http://www.wikidata.org/entity/Q31696483> ) ( <http://www.wikidata.org/entity/Q3414891> ) ( <http://www.wikidata.org/entity/Q20888402> ) ( <http://www.wikidata.org/entity/Q20657645> ) ( <http://www.wikidata.org/entity/Q16221123> ) ( <http://www.wikidata.org/entity/Q17014795> ) ( <http://www.wikidata.org/entity/Q7273147> ) ( <http://www.wikidata.org/entity/Q7273150> ) ( <http://www.wikidata.org/entity/Q7273146> ) ( <http://www.wikidata.org/entity/Q7265621> ) ( <http://www.wikidata.org/entity/Q149289> ) ( <http://www.wikidata.org/entity/Q18614404> ) ( <http://www.wikidata.org/entity/Q7273145> ) ( <http://www.wikidata.org/entity/Q7273148> ) ( <http://www.wikidata.org/entity/Q7273152> ) ( <http://www.wikidata.org/entity/Q765680> ) } }


Question: What type of cat is Gladstone, the Chief Mouser of the UK Treasury?

SELECT ?catLabel WHERE { wd:Q27190410 wdt:P31 ?cat . ?cat rdfs:label ?catLabel . FILTER(LANG(?catLabel) = "en")}

What is the species or breed of the cat named Gladstone who lives at 11 Downing Street?

Tell me the name of the cat category that Gladstone belongs to.

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


Question: Cats that have been Chief Mousers of the HM Treasury

SELECT ?cat ?catLabel WHERE { ?cat wdt:P106 wd:Q104551794 ; wdt:P108 wd:Q578269 . ?cat rdfs:label ?catLabel . FILTER(LANG(?catLabel) = "en") }

Which cats have served as Chief Mousers of the UK Treasury?

List the names of cats employed by HM Treasury as mousers.

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


Question: Does Wikidata have an entry for the GND ID 118704583?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P227 "118704583" .
}

Is there a Wikidata item associated with the German National Library ID 118704583?

Confirm whether the person with GND ID 118704583 is represented in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "118704583". }


Question: Does the German National Library ID "189486422" correspond to a known person in Wikidata?

Is there a Wikidata entry for the individual with GND ID 189486422?

Can you confirm that the person identified by the GND number 189486422 is listed in Wikidata?

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "189486422". }


Question: What are the parts of the categories that a star belongs to?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?var1Label ?var2Label ?var1 WHERE {
  wd:Q523 wdt:P31 ?var2 .
  ?var2 wdt:P279 * ?var3 .
  ?var3 wdt:P527 ?var1 .
  ?var1 rdfs:label ?var1Label .
  ?var2 rdfs:label ?var2Label .
  FILTER(LANG(?var1Label) = "en")
  FILTER(LANG(?var2Label) = "en")
}

What components make up the classes that include stars as instances?

List the parts of the superclasses of the class that a star is an instance of.

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


Question: Who were the mayors of Amsterdam?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person WHERE {
  ?person wdt:P39 wd:Q13423495 .
}

Which individuals have held the position of mayor of Amsterdam?

List all people who served as mayor of Amsterdam.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q2161427> <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q13423495> . }


Question: Philosophers born after 1888

SELECT ?philosopher ?birthYear WHERE { ?philosopher wdt:P31 wd:Q5 . ?philosopher wdt:P106 wd:Q4964182 . ?philosopher wdt:P569 ?birthDate . BIND(YEAR(?birthDate) AS ?birthYear) FILTER(?birthYear >= 1888) } LIMIT 5

Who are some philosophers born in or after 1888?

List philosophers who were born in 1888 or later.

ASK WHERE { BIND ( YEAR ( ?var1 ) AS ?var2 ). <https://af.wikipedia.org/wiki/Filosofie> <http://schema.org/about> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var3 <http://www.wikidata.org/prop/direct/P569> ?var1 . FILTER ( ( ( ?var2 >= "1888"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . }


Question: Who has the GND ID 117260266?

SELECT ?person WHERE { ?person wdt:P227 "117260266" . }

Which person is identified by the German National Library ID 117260266?

Find the Wikidata item for the individual with GND ID 117260266.

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


Question: Did Cornelis Kruseman serve as mayor of Amsterdam?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  wd:Q3815623 wdt:P39 wd:Q13423495 .
}

Was Cornelis Kruseman ever the mayor of Amsterdam?

Check if Cornelis Kruseman held the position of mayor of Amsterdam.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q3815623> <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q13423495> . }


Question: Films and their screenwriters

SELECT ?film ?screenwriter ?screenwriterLabel WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P58 ?screenwriter . ?screenwriter rdfs:label ?screenwriterLabel . FILTER(LANG(?screenwriterLabel) = "en") }

List films along with the names of the people who wrote their screenplays.

SELECT ?var1 ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P58> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE], en". } } LIMIT 200 OFFSET 76400


Question: Humans with lifestyle information not sourced from any Wikipedia edition.

SELECT DISTINCT ?human WHERE { ?human wdt:P31 wd:Q5 ; p:P1576 ?stmt . FILTER NOT EXISTS { ?stmt prov:wasDerivedFrom ?ref . ?ref pr:P143 ?wikipedia . ?wikipedia wdt:P31 wd:Q10876391 . } }

Which humans have a lifestyle recorded in Wikidata but without any reference to a Wikipedia language edition?

Show me people who have a documented lifestyle, but whose data isn't cited from any Wikipedia version.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/P1576> ?var2 ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var2 <http://www.w3.org/ns/prov#wasDerivedFrom> ?var3 . ?var3 ?var4 ?var5 . FILTER ( ( NOT EXISTS { ?var5 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q10876391> . } ) ) . } FILTER ( ( !( BOUND ( ?var3 ) ) ) ) . }


Question: Is Christian Stegmann listed in Wikidata with GND ID 132514842?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P227 "132514842" .
}

Does the German National Library ID 132514842 correspond to an entity in Wikidata?

Confirm if the person with GND ID 132514842 exists in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "132514842". }


Question: What is the English label and description of the entity with Great Russian Encyclopedia Online ID 1931465?

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

What is the name and description in English of the creature identified as 1931465 in the Great Russian Encyclopedia Online?

Please provide the English name and description of the entity linked to the Great Russian Encyclopedia Online ID 1931465.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2924> "1931465". 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: Organizations formed in Ukraine

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?organization ?organizationLabel WHERE {
  ?organization p:P740 ?statement .
  ?statement ps:P740 wd:Q212 .
  ?organization rdfs:label ?organizationLabel .
  FILTER(LANG(?organizationLabel) = "en")
}
ORDER BY ?organizationLabel

Which organizations were formed in Ukraine?

List the names of groups and organizations that originated in Ukraine.

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


Question: What are some properties and values associated with the Bundesliga?

SELECT ?property ?value WHERE { wd:Q82595 ?property ?value . } LIMIT 10

Can you show me information about the German football league?

Tell me about the Bundesliga — what data is available for it in Wikidata?

SELECT ?var1 WHERE { ?var2 ?var3 ?var4 . FILTER ( ( ( ?var2 = <https://www.wikidata.org/wiki/Q1906840> ) ) ) . } LIMIT 10


Question: What are the first-level administrative divisions and cities with over 250,000 people in South Korea, along with their active legislative bodies?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?place ?type ?legislativeBody WHERE {
  {
    ?place wdt:P17 wd:Q884 ;(wdt:P31 / wdt:P279 *) wd:Q10864048 .
    VALUES ?type {
      wd:Q10864048
    }
  } UNION {
    ?place wdt:P17 wd:Q884 ;(wdt:P31 / wdt:P279 *) wd:Q515 ; wdt:P1082 ?population .
    FILTER(?population > 250000)
    VALUES ?type {
      wd:Q515
    }
  } UNION {
    VALUES(?place ?type) {(wd:Q884 wd:Q6256)
    }
  }
  OPTIONAL {
    ?place(wdt:P194 | wdt:P527 / wdt:P194) ?legislativeBody .
    FILTER(NOT EXISTS {
      ?legislativeBody wdt:P576 ?dissolvedDate .
      FILTER(?dissolvedDate < NOW ())
    })
  }
}
ORDER BY ?place ?type ?legislativeBody

Which cities and administrative regions in South Korea have a population greater than 250,000, and what legislative bodies govern them today?

List all major cities (population > 250k), first-level administrative divisions, and the country of South Korea, showing their currently active legislative bodies.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var4Label WHERE { { ?var2 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q884> ; ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q10864048> . VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q10864048> ) } } UNION { ?var2 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q884> ; ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q515> ; <http://www.wikidata.org/prop/direct/P1082> ?var5 . FILTER ( ( ( ?var5 > "250000"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q515> ) } } UNION { VALUES ( ?var2 ?var3 ) { ( <http://www.wikidata.org/entity/Q884> <http://www.wikidata.org/entity/Q6256> ) } } OPTIONAL { ?var2 ( <http://www.wikidata.org/prop/direct/P194> / <http://www.wikidata.org/prop/direct/P527> ?) ?var4 . FILTER ( ( NOT EXISTS { ?var4 <http://www.wikidata.org/prop/direct/P576> ?var6 . FILTER ( ( ( ?var6 < NOW ( ) ) ) ) . } ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1 )ASC( ?var3 )ASC( ?var4 )ASC( ?var7 )


Question: What is the start time of the Syrian Civil War, and when did it end?

SELECT ?startTime ?endTime WHERE { wd:Q178810 wdt:P580 ?startTime . OPTIONAL { wd:Q178810 wdt:P582 ?endTime . } }

When did the Syrian Civil War begin, and is it still ongoing?

Provide the start and end dates of the Syrian Civil War.

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


Question: Does the German National Library ID 135498503 exist in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P227 "135498503" .
}

Is there a Wikidata item for the American pianist Lawrence Fields, identified by GND ID 135498503?

Confirm that the GND identifier 135498503 is linked to a person in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "135498503". }