Question: What are the tributaries of the Neches River, and what are their source waterbodies and drainage basins?

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 ?sourceWaterbody ?sourceWaterbodyLabel ?drainageBasin ?drainageBasinLabel ?tributary ?tributaryLabel WHERE {
  ?tributary wdt:P403 wd:Q964437 .
  ?tributary ( wdt:P31 / wdt:P279 * ) wd:Q355304 .
  ?tributary wdt:P4614 ?drainageBasin .
  ?sourceWaterbody wdt:P201 ?tributary .
  OPTIONAL {
    ?sourceWaterbody rdfs:label ?sourceWaterbodyLabel .
    FILTER ( LANG( ?sourceWaterbodyLabel ) = "en" )
  }
  OPTIONAL {
    ?drainageBasin rdfs:label ?drainageBasinLabel .
    FILTER ( LANG( ?drainageBasinLabel ) = "en" )
  }
  OPTIONAL {
    ?tributary rdfs:label ?tributaryLabel .
    FILTER ( LANG( ?tributaryLabel ) = "en" )
  }
}

Which rivers flow into the Neches River, and from which reservoirs or waterbodies do they originate, and in which drainage basin are they located?

Show me the upstream waterbody, drainage basin, and name of each river that flows into the Neches River.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label WHERE { ?var3 <http://www.wikidata.org/prop/direct/P403> * <http://www.wikidata.org/entity/Q964437> . ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q355304> . ?var3 <http://www.wikidata.org/prop/direct/P4614> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P201> ?var3 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P4614> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Citing works of "Feasibility of Active Machine Learning for Multiclass Compound Classification" grouped by publication year and authorship status.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?year(COUNT(DISTINCT ?citingWork) AS ?count) ?hasAuthor WHERE {
  BIND(wd:Q40134572 AS ?targetArticle)
  ?citingWork wdt:P2860 ?targetArticle .
  ?citingWork wdt:P577 ?citationDate .
  BIND(STR(YEAR(?citationDate)) AS ?year)
  OPTIONAL {
    BIND(IF(EXISTS {
      ?citingWork wdt:P50 []
    }
    , "has author" , "no author") AS ?hasAuthor)
  }
}
GROUP BY ?year ?hasAuthor
ORDER BY DESC(?year)

How many works citing the 2016 article on active machine learning were published each year, and do they have authors?

Show me the count of articles that cite the paper "Feasibility of Active Machine Learning for Multiclass Compound Classification", grouped by the year they were published and whether they have at least one author.

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


Question: What countries and administrative regions is the Val Grigna Natura 2000 site located in?

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

Which administrative and geographic entities are directly associated with Val Grigna?

Where is Val Grigna situated? List its country and province.

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


Question: What are some communes in France and their corresponding departments?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?commune ?department WHERE {
  ?commune wdt:P31 wd:Q484170 .
  ?commune wdt:P17 wd:Q142 .
  ?commune wdt:P131 ?department .
  ?department wdt:P31 wd:Q6465 .
}
LIMIT 10

Can you list communes located in France along with the French department they belong to?

Show me examples of French communes and the departments they are administratively part of.

SELECT( isIRI ( ?var1 ) AS ?var2 ) WHERE { { SELECT * WHERE { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q484170> . ?var3 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q142> . ?var3 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q17063> . ?var3 <http://www.wikidata.org/prop/direct/P131> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6465> . } } } LIMIT 1


Question: What are some key scientific discoveries related to energy, when were they discovered, and do they have associated images?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?itemLabel ?discoveryDate(SAMPLE(?image) AS ?sampleImage) WHERE {
  VALUES ?item {
    wd:Q35875 wd:Q1125947 wd:Q179380
  }
  .
  ?item wdt:P575 ?discoveryDate .
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = 'en')
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
}
GROUP BY ?item ?itemLabel ?discoveryDate

Show me the discovery dates and images for mass–energy equivalence, ocean thermal energy conversion, and the first law of thermodynamics.

Can you list energy-related scientific concepts with their discovery dates and one image each?

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


Question: List music albums with their performers, record labels, and release dates.

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 ?album ?albumLabel ?performer ?performerLabel ?label ?labelLabel ?releaseDate WHERE {
  ?album wdt:P31 wd:Q482994 .
  ?album wdt:P175 ?performer .
  ?album wdt:P264 ?label .
  ?album wdt:P577 ?releaseDate .
  ?album rdfs:label ?albumLabel .
  ?performer rdfs:label ?performerLabel .
  ?label rdfs:label ?labelLabel .
  FILTER(LANG(?albumLabel) = "en")
  FILTER(LANG(?performerLabel) = "en")
  FILTER(LANG(?labelLabel) = "en")
}
LIMIT 100

What are the albums, their performing artists, record labels, and when were they released?

Show me up to 100 English-labeled music albums, including the artist, record label, and publication date for each.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3Label ?var4Label ?var5 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q482994> . ?var1 <http://www.wikidata.org/prop/direct/P175> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P264> ?var3Label . ?var1 <http://www.wikidata.org/prop/direct/P577> ?var5 . } LIMIT 100


Question: What Wikimedia category has "ring" as its main topic?

SELECT DISTINCT ?category ?categoryLabel ?statement WHERE { ?category p:P301 ?statement . ?statement ps:P301 wd:Q161172 . ?category rdfs:label ?categoryLabel . FILTER(LANG(?categoryLabel) = "en") } LIMIT 101

Which Wikipedia category is primarily about mathematical rings?

Can you tell me the category that covers the concept of a ring in mathematics?

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


Question: List all language editions of Wiktionary.

SELECT DISTINCT ?wiktionary_site WHERE { ?wiktionary_site wikibase:wikiGroup "wiktionary" . }

What are the URLs for all the different language versions of Wiktionary?

Show me all the Wiktionary sites grouped under the wiktionary wiki group.

SELECT DISTINCT * WHERE { ?var1 <http://wikiba.se/ontology#wikiGroup> "wiktionary". }


Question: Image of Carl Wilhelmson with SNAC ARK ID w6032m4v

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

What is the Wikimedia Commons image of Carl Wilhelmson, identified by SNAC ARK ID w6032m4v?

Please provide the image linked to the SNAC ARK ID w6032m4v.

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


Question: Is Buster Stiggs an instance of a class that is a subclass of software?

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

Is Buster Stiggs classified under any category that descends from software?

Check whether Buster Stiggs can be considered a type of software through his class hierarchy.

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


Question: Which writers have had their manner of death recorded in Wikidata, and what were those manners?

SELECT ?writerLabel ?mannerOfDeathLabel WHERE { ?writer wdt:P106 wd:Q36180 ; wdt:P1196 ?mannerOfDeath . ?writer rdfs:label ?writerLabel . ?mannerOfDeath rdfs:label ?mannerOfDeathLabel . FILTER(LANG(?writerLabel) = "en") FILTER(LANG(?mannerOfDeathLabel) = "en") } LIMIT 100

List writers and their causes of death (e.g., suicide, euthanasia) from Wikidata.

Show me the names of writers and how they died, using English labels.

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


Question: Is VLC media player a type of software?

Does VLC media player belong to a category that is a subclass of software?

Is VLC media player classified as software in Wikidata?

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


Question: What is the title of the movie with IMDb ID tt0070856?

SELECT ?movie ?movieLabel WHERE { ?movie wdt:P345 "tt0070856" . ?movie rdfs:label ?movieLabel FILTER(LANG(?movieLabel) = "en") }

Which movie corresponds to the IMDb identifier tt0070856, and what is its English title?

Please provide the English title of the film identified by tt0070856 on IMDb.

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


Question: Which organizations or people on Wikidata have the Twitter handles 'eBay', 'Diddy', 'BBCEarth', 'kabtweet', or 'wnpa1938'?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitterHandle WHERE {
  ?item wdt:P2002 ?twitterHandle .
  FILTER(STR(?twitterHandle) IN('eBay' , 'Diddy' , 'BBCEarth' , 'kabtweet' , 'wnpa1938'))
}

Who are the Wikidata entities associated with the Twitter usernames eBay, Diddy, BBCEarth, kabtweet, and wnpa1938?

Show me the Wikidata items that are linked to the Twitter accounts eBay, Diddy, BBCEarth, kabtweet, and wnpa1938.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "natlpkbob" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "litterati" ) ( "string6" ) ( "sai" ) ( "ZilchUK" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "eBay" ) ( "WoodsyOwl" ) ( "string13" ) ( "string14" ) ( "kabtweet" ) ( "string15" ) ( "string16" ) ( "string17" ) ( "string18" ) ( "string19" ) ( "string20" ) ( "string21" ) ( "ZeroTrash" ) ( "string22" ) ( "wnpa1938" ) ( "string23" ) ( "BBCEarth" ) ( "Diddy" ) } }


Question: What are the five longest English labels for entities that are either cities or subclasses of cities in Wikidata?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?var1Label WHERE {
  ?var1 ( wdt:P31 / wdt:P279 * ) wd:Q515 .
  ?var1 rdfs:label ?var1Label .
  FILTER ( LANG( ?var1Label ) = "en" )
}
ORDER BY DESC ( STRLEN( STR( ?var1Label ) ) )
LIMIT 5

Longest-named city subclasses in English on Wikidata

Show me the top 5 longest English labels for things classified as cities or their subtypes in Wikidata.

SELECT DISTINCT ?var1Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q515> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( STRLEN ( STR ( ?var1Label ) ) ) LIMIT 5


Question: Wikisource pages about rules in English

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/>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT DISTINCT ?item ?itemLabel ?page WHERE {
  ?item wdt:P31 wd:Q1151067 .
  ?page schema:isPartOf [ wikibase:wikiGroup "wikisource" ] ; schema:about ?item .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}
ORDER BY ASC ( ?itemLabel )

What are the rules in Wikidata that have corresponding pages on Wikisource, and what are those pages?

List all rules (such as laws or regulations) from Wikidata that are linked to Wikisource pages, along with the page titles and their English labels.

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1151067> . ?var2 <http://schema.org/isPartOf> [ <http://wikiba.se/ontology#wikiGroup> "wikisource" ] ; <http://schema.org/inLanguage> "ru"; <http://schema.org/about> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ru, en". } } ORDER BY ASC( ?var1Label )


Question: What places in southern Egypt (between 32°E and 33°E longitude, and 25.5°N to 26.5°N latitude) have images, Wikimedia Commons categories, or street addresses listed?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
SELECT ?item ?itemLabel ?coord ?image ?commonsCategory ?address WHERE {
  ?item wdt:P625 ?coord .
  FILTER(geof:longitude(?coord) >= 32 && geof:longitude(?coord) <= 33 && geof:latitude(?coord) >= 25.5 && geof:latitude(?coord) <= 26.5)
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory .
  }
  OPTIONAL {
    ?item wdt:P969 ?address .
  }
}
LIMIT 3000

Show me locations near Thebes and Luxor with their associated photos, Commons categories, and addresses.

List archaeological sites and landmarks in the Nile Valley between 32–33°E and 25.5–26.5°N, including any available images and Wikimedia Commons links.

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


Question: Is the scholarly article "A bovine cell line that can be infected by natural sheep scrapie prions" classified as software?

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

Does the article describing a bovine cell line infected by scrapie prions belong to the category of software?

Is a scientific paper about a bovine cell line considered a type of computer software?

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


Question: What is the French label and description of the commune Montfermier?

PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?label ?description WHERE {
  wd:Q1426364 rdfs:label ?label .
  wd:Q1426364 schema:description ?description .
  FILTER ( LANG( ?label ) = "fr" ) FILTER ( LANG( ?description ) = "fr" )
}

Can you show me the French name and description of Montfermier in France?

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


Question: Who has the IMDb ID nm5196481?

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

Which Wikidata entity is associated with the IMDb identifier nm5196481?

Find the person in Wikidata whose IMDb ID is nm5196481.

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


Question: What are the names and descriptions of the Auckland Institute and Museum in different languages?

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?value WHERE {
  wd:Q16949336 ?property ?value .
  FILTER(! STRSTARTS(STR(?property) , "http://www.wikidata.org/prop/"))
}
ORDER BY ?property

What metadata is available for the Auckland Institute and Museum on Wikidata?

Can you list the alternative and preferred labels for the Auckland Institute and Museum?

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


Question: Scottish writers

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?personLabel WHERE {
  ?person wdt:P106 wd:Q36180 .
  ?person wdt:P27 wd:Q22 .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}
LIMIT 100

List the names of people who are writers and have Scotland as their country of citizenship.

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


Question: What property is related to architectural style and has an English label and description?

SELECT ?relatedProperty ?label ?description WHERE { ?relatedProperty wdt:P1659 wd:P149 . ?relatedProperty rdf:type wikibase:Property . ?relatedProperty rdfs:label ?label . ?relatedProperty schema:description ?description . FILTER (LANG(?label) = "en") . FILTER (LANG(?description) = "en") . }

Which property is listed as related to architectural style (P149) in Wikidata, and what is its English label and description?

Show me the English label and description of any property that is related to architectural style.

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


Question: Most frequently used property linking to IU Indianapolis University Library

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

Which property is used most often to connect items to the IU Indianapolis University Library?

Show me the property that has the highest number of connections to the IU Indianapolis University Library.

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/Q5975426> . ?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: Turkish-labeled properties in Wikidata with Turkish descriptions

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX schema: <http://schema.org/>
SELECT ?property ?label ?description WHERE {
  ?property rdf:type wikibase:Property .
  ?property rdfs:label ?label .
  ?property schema:description ?description .
  FILTER(LANG(?label) = "tr")
  .
  FILTER(LANG(?description) = "tr")
}
LIMIT 100

Which properties in Wikidata have both Turkish labels and Turkish descriptions?

List all properties in Wikidata that have Turkish labels and descriptions.

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


Question: Who were born in the same city as Elon Musk?

SELECT ?person ?personLabel ?birthplace WHERE { wd:Q317521 wdt:P19 ?place . ?person wdt:P19 ?place . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") OPTIONAL { ?person wdt:P19 ?birthplace } }

Can you list people who share Pretoria as their birthplace with Elon Musk, along with their names and birth locations?

What are the names and birthplaces of all individuals born in Pretoria, the birthplace of Elon Musk?

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


Question: Image of the person with SNAC ARK ID w6wh2vtx

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

What is the image associated with Peter the Great in Wikidata?

Show me the Wikimedia Commons image linked to the entity identified by SNAC ARK ID w6wh2vtx.

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


Question: List airports with their IATA codes and coordinates.

SELECT ?airport ?label ?iataCode ?coordinates WHERE { ?airport wdt:P31 wd:Q1248784 . ?airport wdt:P238 ?iataCode . OPTIONAL { ?airport wdt:P625 ?coordinates . } ?airport rdfs:label ?label . FILTER(LANG(?label) = "en") }

What are the English names, IATA codes, and geographic coordinates of all airports in Wikidata?

Show me the English labels, IATA codes, and coordinates of all airports.

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


Question: Who is the author of the paper "Bit-Scalable Deep Hashing With Regularized Similarity Learning for Image Retrieval and Person Re-Identification", and what is their ORCID ID?

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 ?author ?authorLabel(COALESCE(?orcid , ENCODE_FOR_URI(?authorLabel)) AS ?fallback) WHERE {
  wd:Q38412584 wdt:P50 ?author .
  OPTIONAL {
    ?author wdt:P496 ?orcid .
  }
  ?author rdfs:label ?authorLabel .
  FILTER(LANG(?authorLabel) = "en")
}

Author and ORCID of "Bit-Scalable Deep Hashing With Regularized Similarity Learning for Image Retrieval and Person Re-Identification"

Give me the name of the author of the paper "Bit-Scalable Deep Hashing With Regularized Similarity Learning for Image Retrieval and Person Re-Identification" and their ORCID if available; otherwise, return the URL-encoded name.

SELECT ?var1 ?var1Label ( COALESCE ( ?var2 , CONCAT ( "string1", ENCODE_FOR_URI ( ?var1Label ) ) ) AS ?var3 ) WHERE { <http://www.wikidata.org/entity/Q38412584> <http://www.wikidata.org/prop/direct/P50> ?var1 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P496> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en,da,de,es,fr,nl,no,ru,sv,zh". } }


Question: All language labels for Teeraphong Utaida on Wikidata.

SELECT ?entity ?label WHERE { VALUES ?entity { wd:Q20562084 } ?entity rdfs:label ?label .}

What are the different language versions of Teeraphong Utaida’s name on Wikidata?

Show me all the labels (in different languages) for the boxer Teeraphong Utaida.

SELECT * WHERE { VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q40006707> ) ( <http://www.wikidata.org/entity/Q20562084> ) } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . }


Question: What are the most common properties linking entities to the city of Liège, and how many times are they used?

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

Which relationships (properties) connect the most people or things to Liège, excluding those used only once?

Show me the top properties associated with Liège, ordered by frequency, where each property links to at least two entities.

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


Question: What is Gabriela Chico-Barba's occupation?

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 ?occupationLabel WHERE {
  wd:Q47160143 wdt:P106 ?occupation .
  ?occupation rdfs:label ?occupationLabel .
  FILTER(LANG(?occupationLabel) = "en")
}

What field does Gabriela Chico-Barba work in?

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


Question: Is Camille Raynes-Greenow a software developer, software engineer, or programmer?

ASK WHERE { wd:Q47160586 wdt:P106 ?occupation . ?occupation wdt:P279* ?softwareOccupation . VALUES ?softwareOccupation { wd:Q183888 wd:Q1709010 wd:Q5482740 } }

Does Camille Raynes-Greenow’s occupation belong to the category of software-related professions such as software development or engineering?

Check whether Camille Raynes-Greenow works in a software-related field based on her occupation.

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


Question: What source information is stored in the Wikidata reference imported from German Wikipedia?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ref: <http://www.wikidata.org/reference/>
SELECT ?property ?value ?valueLabel WHERE {
  ref:0000244a703955f6284bb3b8ef26b4c11bad8d6a ?property ?value .
  OPTIONAL {
    ?value rdfs:label ?valueLabel .
    FILTER(LANG(?valueLabel) = "en")
  }
}

Show the properties and values of the reference that cites content from the German Wikipedia.

Which entity does this Wikidata reference point to as its source, and what other metadata does it contain?

SELECT * WHERE { <http://www.wikidata.org/reference/9a24f7c0208b05d6be97077d855671d1dfdbc0dd> ?var1 ?var2 . } LIMIT 1000


Question: Wikimedia pages about botanical fruits and their source plants on the same website.

SELECT * WHERE { ?fruit wdt:P1582 ?plant . ?fruit wdt:P31 wd:Q1364 . ?fruitPage schema:about ?fruit ; schema:isPartOf ?site . ?plantPage schema:about ?plant ; schema:isPartOf ?site . } LIMIT 10

On which Wikimedia sites are there articles or categories about both a fruit and the plant it comes from?

Show me pairs of Wikipedia or Commons pages, on the same language site, that discuss a fruit and the plant species that produces it.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1582> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1364> . ?var3 <http://schema.org/about> ?var1 ; <http://schema.org/isPartOf> ?var4 . ?var5 <http://schema.org/about> ?var2 ; <http://schema.org/isPartOf> ?var4 . } LIMIT 10


Question: Is Justus van Egmont considered a type of software?

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

Was Justus van Egmont an instance of a class that is a subclass of software?

Does Justus van Egmont belong to any category that falls under software?

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


Question: What are all the administrative and geographic regions that the Arrondissement of Antwerp belongs to, including its country and continent?

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

List all entities connected to the Arrondissement of Antwerp through administrative divisions, country, or continent relationships.

Starting from the Arrondissement of Antwerp, what higher-level geographic and political entities can you reach by following administrative divisions, countries, and continents?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q90895> 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: Image of David Bradley with SNAC ARK ID w6514vrf

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

Is there an image available for David Bradley in Wikidata, given his SNAC ARK ID is w6514vrf?

Show me the Wikimedia Commons image associated with the SNAC ARK ID w6514vrf.

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


Question: Is Barbara Duda-Król a type of software?

Does Barbara Duda-Król belong to a category that is a subclass of software?

Is Barbara Duda-Król classified under any category that software is a superclass of?

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


Question: What are the different language labels for the autoregressive model?

SELECT ?label WHERE { wd:Q2202883 rdfs:label ?label .}

In which languages is the term 'autoregressive model' labeled in Wikidata?

Show me all the translated labels of the autoregressive model in different languages.

SELECT * WHERE { <http://www.wikidata.org/entity/Q2202883> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . }


Question: Is Peggy Stolt-Bergner classified under a category that is a type of software?

Is Peggy Stolt-Bergner an instance of a class that is a subclass of software?

Check whether Peggy Stolt-Bergner’s type or any of its superclasses is software.

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


Question: Is Laura M König a researcher in software?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
ASK WHERE {
  wd:Q47168197 wdt:P101 ?field .
  ?field wdt:P279 * wd:Q7397 .
}

Does Laura M König work in a field that is a type of software?

Check whether Laura M König’s research area is related to software.

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


Question: What type of administrative division is Mont-Louis?

SELECT ?entity ?entityLabel ?type ?typeLabel WHERE { BIND( wd:Q622422 AS ?entity ) . ?entity wdt:P31 ?type . ?entity rdfs:label ?entityLabel . ?type rdfs:label ?typeLabel . FILTER(LANG(?entityLabel) = "en") FILTER(LANG(?typeLabel) = "en") }

Is Mont-Louis a commune, and if so, what is its classification in France?

What is the category or class that Mont-Louis belongs to in Wikidata?

SELECT ?var1 ?var1Label ?var2 WHERE { BIND ( <http://www.wikidata.org/entity/Q622422> AS ?var1 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1> . }


Question: List countries with their ISO 3166-1 alpha-2 codes in English.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?country ?countryLabel ?isoCode WHERE {
  ?country wdt:P31 wd:Q6256 .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?countryLabel) = "en")
  OPTIONAL {
    ?country wdt:P297 ?isoCode .
  }
}
LIMIT 10

What are the English names and ISO 3166-1 alpha-2 codes of some countries?

Show me up to 10 countries along with their English names and two-letter ISO country codes.

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


Question: Which film has the AFI Catalog ID 19662?

SELECT ?film WHERE { ?film wdt:P3593 "19662" . }

What is the title of the film identified by the AFI Catalog number 19662?

Find the Wikidata item for the film with AFI Catalog ID 19662.

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


Question: List of current prefectures of Japan with population data.

SELECT DISTINCT ?prefecture WHERE { ?prefecture wdt:P31 wd:Q50337 ; wdt:P1082 ?pop . FILTER NOT EXISTS { ?prefecture wdt:P576 ?dissolved } }

What are the 47 current prefectures of Japan, excluding those that have been abolished?

Show me all the officially recognized prefectures of Japan that still exist today.

SELECT DISTINCT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q50337> . }


Question: What OpenStreetMap tags are linked to Wikidata items, and what Chinese Wikipedia pages describe them?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?osmTag ?item ?itemLabel ?chinesePage WHERE {
  ?item wdt:P1282 ?osmTag .
  OPTIONAL {
    ?chinesePage schema:about ?item ; schema:inLanguage "zh" .
  }
}

Which OpenStreetMap keys and tags correspond to Wikidata items, and are there Chinese-language articles about those items?

List all OpenStreetMap tags, the Wikidata items they refer to, and any Chinese-language pages about those items.

SELECT ?var1 ?var2 ?var2Label ?var3 ?var4 ?var5 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P1282> ?var1 . OPTIONAL { ?var5 <http://schema.org/about> ?var2 . ?var5 <http://schema.org/inLanguage> "zh". } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "zh". } } GROUP BY ?var1 ?var2 ?var2Label ?var3 ?var4 ?var5


Question: Ancestors of creative work and their direct superclasses in Wikidata.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?ancestor ?ancestorLabel ?parent ?parentLabel WHERE {
  VALUES ?ancestor {
    wd:Q17537576 wd:Q15621286 wd:Q386724 wd:Q16686448 wd:Q488383 wd:Q35120
  }
  ?ancestor rdfs:label ?ancestorLabel .
  FILTER ( LANG( ?ancestorLabel ) = "en" ) OPTIONAL {
    ?ancestor wdt:P279 ?parent .
    ?parent rdfs:label ?parentLabel .
    FILTER ( LANG( ?parentLabel ) = "en" )
  }
}

What are the hierarchical superclass relationships starting from creative work up to entity?

Show me the full subclass hierarchy of creative work, including each class and its immediate parent.

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


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

SELECT ?film WHERE { ?film wdt:P2678 "5223" . }

Which movie on Wikidata is associated with the Russiancinema.ru film ID "5223"?

I’m looking for the Wikidata item for the film identified as "5223" on Russiancinema.ru.

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


Question: Is verse a type of software?

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

Is the literary form known as a verse classified as software?

Confirm whether verse falls under the category of software.

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


Question: Subclasses of concerto and their sub-subclasses in Wikidata.

SELECT ?subclass ?subsubclass WHERE { wd:Q9748 wdt:P279* ?subclass . OPTIONAL { ?subclass wdt:P279 ?subsubclass . } }

What are all the classes that concerto belongs to, and what are the subclasses of those classes?

Show me the full hierarchy of classes that concerto is a part of, including the immediate subclasses of each class in that hierarchy.

SELECT ?var1 ?var2 WHERE { VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q9748> ) } ?var4 <http://www.wikidata.org/prop/direct/P279> * ?var1 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P279> ?var2 . } }


Question: Microscopes with their invention dates and images

SELECT ?microscope ?microscopeLabel ?inceptionDate ?image WHERE { ?microscope wdt:P31 wd:Q196538 ; wdt:P571 ?inceptionDate . OPTIONAL { ?microscope (wdt:P18 | wdt:P154) ?image . } ?microscope rdfs:label ?microscopeLabel . FILTER(LANG(?microscopeLabel) = "en") }

What are the microscopes, when were they invented, and do they have associated images?

List all microscopes with their English names, creation years, and any available images or logos.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q196538> ; <http://www.wikidata.org/prop/direct/P571> ?var2 . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/direct/P18> | <http://www.wikidata.org/prop/direct/P154> ) ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en, fr, de". } }


Question: French female celebrities with no French Wikipedia page and the most Wikimedia Commons images.

SELECT DISTINCT ?imageCount ?person ?personLabel ?frDescription ?image WHERE { { SELECT ?person (COUNT(DISTINCT ?image) AS ?imageCount) WHERE { ?person wdt:P31 wd:Q5 ; wdt:P21 wd:Q6581072 ; wdt:P27 wd:Q142 ; wdt:P18 ?image . FILTER NOT EXISTS { ?wikipedia schema:about ?person ; schema:isPartOf <https://fr.wikipedia.org/> . } } GROUP BY ?person } OPTIONAL { ?person schema:description ?frDescription . FILTER (LANG(?frDescription) = "fr") } ?person rdfs:label ?personLabel . FILTER (LANG(?personLabel) = "en") } ORDER BY DESC(?imageCount)

Who are the French women who have many photos on Wikimedia Commons but no French Wikipedia article, and what are their descriptions in French?

List French female humans who are not featured on French Wikipedia, sorted by how many images they have on Commons, along with their English names and French biographical descriptions.

SELECT DISTINCT ?var1 ?var2 ?var2Label ?var3 ?var4Label ?var5 WHERE { { SELECT ?var2 ?var4 ?var5 ( COUNT ( DISTINCT ?var6 ) AS ?var1 ) WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var2 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var2 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q142> . ?var2 <http://www.wikidata.org/prop/direct/P18> ?var5 . OPTIONAL { ?var7 <http://schema.org/about> ?var2 . ?var7 <http://schema.org/inLanguage> "fr". } FILTER ( ( !( BOUND ( ?var7 ) ) ) ) . ?var6 <http://schema.org/about> ?var2 . } GROUP BY ?var2 ?var4 ?var5 } OPTIONAL { ?var2 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var3 ) = "fr" ) ) ) . } OPTIONAL { ?var2 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } } ORDER BY DESC( ?var1 )


Question: Image of John Everett Millais with SNAC ARK ID w6zw1sxg

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

What is the image of John Everett Millais, identified by the SNAC ARK ID w6zw1sxg?

Show me the Wikimedia Commons image of the person whose SNAC ARK ID is w6zw1sxg.

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


Question: List all scholarly works by Pierre Lindenbaum, including their publication venues, types, co-authors, and publication dates, sorted from newest to oldest.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ( MIN( ?pubDate ) AS ?earliestPubDate ) ?work ?workLabel ( GROUP_CONCAT( DISTINCT ?typeLabel ; SEPARATOR = ", " ) AS ?types ) ( SAMPLE( ?numPages ) AS ?sampledPages ) ?venue ?venueLabel ( GROUP_CONCAT( DISTINCT ?authorLabel ; SEPARATOR = ", " ) AS ?allAuthors ) WHERE {
  ?work wdt:P50 wd:Q47195137 .
  OPTIONAL {
    ?work wdt:P577 ?pubDateRaw .
    BIND( xsd:date ( ?pubDateRaw ) AS ?pubDate )
  }
  OPTIONAL {
    ?work wdt:P31 ?type .
    ?type rdfs:label ?typeLabel .
    FILTER ( LANG( ?typeLabel ) = "en" )
  }
  OPTIONAL {
    ?work wdt:P1104 ?numPages .
  }
  OPTIONAL {
    ?work wdt:P1433 ?venue .
    ?venue rdfs:label ?venueLabel .
    FILTER ( LANG( ?venueLabel ) = "en" )
  }
  OPTIONAL {
    ?work wdt:P50 ?author .
    ?author rdfs:label ?authorLabel .
    FILTER ( LANG( ?authorLabel ) = "en" )
  }
}
GROUP BY ?work ?workLabel ?venue ?venueLabel
ORDER BY DESC ( ?earliestPubDate )

What are the most recent publications by Pierre Lindenbaum, and who are the co-authors and venues for each?

Show me a list of all works authored by Pierre Lindenbaum, with their publication dates, types (e.g., article or chapter), publication venues, number of pages, and full lists of authors — ordered with the newest first.

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


Question: What is the Japanese Wikipedia page for Haneda Airport Terminal 2 Station?

PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?stationLabel ?page WHERE {
  wd:Q5647754 rdfs:label ?stationLabel .
  FILTER ( LANG( ?stationLabel ) = "ja" ) .
  ?page schema:about wd:Q5647754 ; schema:inLanguage "ja" .
}

What is the Japanese name of Haneda Airport Terminal 2 Station, and where can I find its Wikipedia article?

Show me the Japanese label and Wikipedia link for Haneda Airport Terminal 2 Station.

SELECT DISTINCT ?var1Label ?var2 WHERE { ?var2 <http://schema.org/about> <http://www.wikidata.org/entity/Q5647754> . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "ja". FILTER ( ( ( SUBSTR ( STR ( ?var2 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"25"^^<http://www.w3.org/2001/XMLSchema#integer> ) = "string1" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ja,en". } }


Question: Who has the IMDb ID nm2524192?

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

Which person is associated with the IMDb identifier nm2524192?

Tell me the name of the person with IMDb ID nm2524192.

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


Question: Rijksmuseum items with SK-A- inventory numbers, sorted by number.

SELECT ?item ?inventory WHERE { ?item wdt:P195 wd:Q190804 . ?item wdt:P217 ?inventory . FILTER(STRSTARTS(?inventory, "SK-A-")) } ORDER BY ASC(xsd:integer(REPLACE(?inventory, "SK-A-", ""))) LIMIT 2000

What artworks in the Rijksmuseum have inventory numbers starting with SK-A-, and what are their numbers?

List all items in the Rijksmuseum collection that have inventory numbers beginning with SK-A-, ordered by the numeric part after the prefix.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/P195> ?var3 . ?var3 <http://www.wikidata.org/prop/statement/P195> <http://www.wikidata.org/entity/Q190804> . ?var1 <http://www.wikidata.org/prop/direct/P217> ?var2 . FILTER ( ( REGEX ( ?var2 , "string1" ) ) ) . } ORDER BY ASC( <http://www.w3.org/2001/XMLSchema#integer> ( REPLACE ( ?var2 , "SK-A-", "" ) ) ) LIMIT 2000


Question: What software running on Unix-like systems have Ubuntu package names, version numbers, and official websites?

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 ?software ( SAMPLE( ?label ) AS ?softwareLabel ) ( GROUP_CONCAT( DISTINCT ?version ; SEPARATOR = ", " ) AS ?versions ) ( GROUP_CONCAT( DISTINCT ?website ; SEPARATOR = ", " ) AS ?websites ) ( SAMPLE( ?ubuntu_package ) AS ?ubuntuPackage ) WHERE {
  ?software wdt:P306 wd:Q14656 .
  ?software wdt:P348 ?version .
  OPTIONAL {
    ?software wdt:P856 ?website .
  }
  ?software rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" ) .
  ?software wdt:P3473 ?ubuntu_package .
}
GROUP BY ?software

List Unix-like compatible software with their Ubuntu package names, versions, and websites, grouped by software.

Show me the Ubuntu packages, versions, and websites for all software that supports Unix-like operating systems.

SELECT ?var1 ?var1Label ( GROUP_CONCAT ( DISTINCT ?var2 ; SEPARATOR = ", " ) AS ?var3 )( GROUP_CONCAT ( DISTINCT ?var4 ; SEPARATOR = ", " ) AS ?var5 )( SAMPLE ( ?var6 ) AS ?var6 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P306> <http://www.wikidata.org/entity/Q14656> . ?var1 <http://www.wikidata.org/prop/direct/P348> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var4 . } ?var1 <http://www.wikidata.org/prop/direct/P3473> ?var6 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1 ?var1Label


Question: Institutions associated with Cecilia Engel Thomas, their locations, images, and whether she was educated there or employed there.

SELECT DISTINCT ?image ?institution ?institutionLabel ?locationCoord ?relationshipLabel WHERE { wd:Q29090849 ?relationshipProp ?institution . ?institution wdt:P625 ?locationCoord . ?relationshipPropEntity wikibase:directClaim ?relationshipProp . ?relationshipPropEntity rdfs:label ?relationshipLabel . FILTER(LANG(?relationshipLabel) = "en") . OPTIONAL { ?institution wdt:P18 ?image . } ?institution rdfs:label ?institutionLabel . FILTER(LANG(?institutionLabel) = "en") . }

Which institutions did Cecilia Engel Thomas attend or work for, where are they located, what do they look like, and what is the nature of her association with each?

Show me the institutions linked to Cecilia Engel Thomas, including their English names, geographic coordinates, images, and whether she was educated at or employed by them.

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


Question: List English labels of all social roles such as mayor, president, or citizen in Wikidata.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?role ?roleLabel WHERE {
  ?role ( wdt:P31 * | wdt:P279 * ) wd:Q214339 .
  ?role rdfs:label ?roleLabel .
  FILTER ( LANG( ?roleLabel ) = "en" )
}
LIMIT 100

What are some examples of social roles (like mayor or citizen) that have English labels in Wikidata?

Show me the English names of all positions or roles that are classified as social roles in Wikidata.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> *| <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q214339> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var3 <http://www.wikidata.org/prop/direct/P39> * ?var1 . ?var2 <http://www.wikidata.org/prop/P39> * ?var3 . } LIMIT 100


Question: What are the subclasses of spring up to three levels deep, and what are their immediate parent classes?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?subclass ?subclassLabel ?parent ?parentLabel WHERE {
  {
    wd:Q124714 wdt:P279 ?subclass .
    ?subclass wdt:P279 ?parent .
  } UNION {
    wd:Q124714 wdt:P279 ?parent .
    ?parent wdt:P279 ?subclass .
  } UNION {
    wd:Q124714 wdt:P279 ?parent1 .
    ?parent1 wdt:P279 ?parent .
    ?parent wdt:P279 ?subclass .
  }
  ?subclass rdfs:label ?subclassLabel .
  ?parent rdfs:label ?parentLabel .
  FILTER(LANG(?subclassLabel) = "en")
  FILTER(LANG(?parentLabel) = "en")
}

Can you list all the subclasses of a natural spring, up to three generations removed, along with each one’s direct superclass?

Show me the taxonomy of spring types in Wikidata, including all subclasses up to depth 3 and their direct parent categories.

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


Question: What types of monuments in the Czech Republic have between 6 and 49 entries in the Czech Monument Catalogue, ranked by frequency?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?monumentType ?monumentTypeLabel(COUNT(?monumentType) AS ?count) WHERE {
  ?monument wdt:P4075 [] .
  ?monument wdt:P31 ?monumentType .
  ?monumentType rdfs:label ?monumentTypeLabel .
  FILTER(LANG(?monumentTypeLabel) = "en")
}
GROUP BY ?monumentType ?monumentTypeLabel
HAVING(?count > 5 && ?count < 50)
ORDER BY DESC(?count)
LIMIT 30

Which classes of structures (like restaurants or fortifications) are most commonly listed as Czech monuments, with counts between 6 and 49?

Show me the top 30 most common types of Czech monuments, excluding those with fewer than 6 or more than 49 entries, along with their English labels.

SELECT ?var1 ?var1Label ( COUNT ( ?var1 ) AS ?var2 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P4075> [] . ?var3 <http://www.wikidata.org/prop/direct/P31> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } } GROUP BY ?var1 ?var1Label HAVING ( ( ?var2 > "5"^^<http://www.w3.org/2001/XMLSchema#integer> ) && ( ?var2 < "50"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ORDER BY DESC( ?var2 ) LIMIT 30


Question: Self-citations and non-self-citations of "Structured sparse CCA for brain imaging genetics via graph OSCAR" by year.

SELECT ?year (COUNT(DISTINCT ?citing_work) AS ?count) ?citation_type WHERE { wd:Q36120510 wdt:P50 ?original_author . ?citing_work wdt:P2860 wd:Q36120510 . ?citing_work wdt:P577 ?pubdate . BIND(STR(YEAR(?pubdate)) AS ?year) . BIND(IF(EXISTS { ?citing_work wdt:P50 ?original_author }, "self-citation", "non-self-citation") AS ?citation_type) } GROUP BY ?year ?citation_type ORDER BY DESC(?year)

How many times has the article "Structured sparse CCA for brain imaging genetics via graph OSCAR" been cited each year, and how many of those citations were by its own authors?

Show me the number of citations received by the article "Structured sparse CCA for brain imaging genetics via graph OSCAR" grouped by year, distinguishing between citations from its own authors and others.

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


Question: What characters and locations are part of the Marvel Cinematic Universe?

SELECT ?entity ?entityLabel ?universeLabel WHERE { ?entity wdt:P1080 wd:Q642878 . ?entity rdfs:label ?entityLabel . wd:Q642878 rdfs:label ?universeLabel . FILTER(LANG(?entityLabel) = "en") FILTER(LANG(?universeLabel) = "en") }

List all entities that appear in the Marvel Cinematic Universe along with their names.

Which fictional entities are set in the Marvel Cinematic Universe?

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


Question: What are the most commonly used properties (via qualifiers or references) that link entities to Sheffield, and how many times are they used?

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

Which administrative or jurisdictional relationships are most frequently associated with Sheffield through qualifiers or references in Wikidata?

How many times are properties like 'located in' or 'applies to jurisdiction' used as qualifiers to connect items to Sheffield?

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


Question: What are the places associated with Paul Liston (like birthplace, death place, education), their coordinates, and the properties linking them?

SELECT DISTINCT ?image ?location ?locationLabel ?locationCoordinates ?propertyLabel WHERE { wd:Q26997944 ?directProperty ?location . ?propertyItem wikibase:directClaim ?directProperty . ?location wdt:P625 ?locationCoordinates . OPTIONAL { ?location wdt:P18 ?image . } ?propertyItem rdfs:label ?propertyLabel . FILTER (LANG(?propertyLabel) = "en") . ?location rdfs:label ?locationLabel . FILTER (LANG(?locationLabel) = "en") }

Where was Paul Liston born, died, educated, and what country is he a citizen of, along with the coordinates of those places and the names of the relationships?

Show me the locations connected to Paul Liston (such as place of birth and education), including their English labels, geographic coordinates, images if available, and the English labels of the properties that link him to those locations.

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


Question: What are the Spanish labels and descriptions of common properties used to describe humans in Wikidata?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?propertyItem ?label ?description WHERE {
  VALUES ?propertyItem {
    wd:P106 wd:P19 wd:P20 wd:P569 wd:P570
  }
  .
  ?propertyItem rdfs:label ?label .
  ?propertyItem schema:description ?description .
  FILTER(LANG(?label) = "es")
  FILTER(LANG(?description) = "es")
}
LIMIT 100

Show me the Spanish labels and descriptions for properties like occupation, place of birth, and date of birth.

Which properties related to humans have Spanish labels and descriptions in Wikidata?

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


Question: Geographic features in Antarctica with coordinates

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?feature ?coordinates WHERE {
  wd:Q51 ^ ( wdt:P361 | wdt:P4552 | wdt:P4688 ) + ?feature .
  ?feature wdt:P31 / wdt:P279 * wd:Q271669 .
  OPTIONAL {
    ?feature wdt:P625 ?coordinates .
  }
}
LIMIT 10000

What landforms are part of Antarctica, and where are they located?

List all islands and landforms that belong to Antarctica along with their geographic coordinates.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { <http://www.wikidata.org/entity/Q51> ^( <http://www.wikidata.org/prop/direct/P361> | <http://www.wikidata.org/prop/direct/P4552> | <http://www.wikidata.org/prop/direct/P4688> )+ ?var1 . <http://www.wikidata.org/entity/Q271669> (^ <http://www.wikidata.org/prop/direct/P279> */^ <http://www.wikidata.org/prop/direct/P31> ) ?var1 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs,en". } } LIMIT 10000


Question: What are the geographic coordinates of Charleroi and its country's ISO 3166-1 alpha-3 code?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?coordinates ?isoCode WHERE {
  wd:Q81046 wdt:P625 ?coordinates .
  wd:Q81046 wdt:P17 / wdt:P298 ?isoCode .
}

Can you tell me the location of Charleroi in coordinates and the three-letter country code for Belgium?

Give me the coordinates of Charleroi and the ISO country code for the country it belongs to.

SELECT ?var1 ?var2 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q81046> <http://www.wikidata.org/prop/direct/P625> ?var1 . } OPTIONAL { <http://www.wikidata.org/entity/Q81046> <http://www.wikidata.org/prop/direct/P17> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P298> ?var2 . } }


Question: What are the names, coordinates, and images of all airports in Cameroon?

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

Can you list the English names and locations of airports in Cameroon, along with any available images?

Show me the geographic coordinates of every airport in Cameroon, including their names and any associated Wikimedia Commons images.

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


Question: List all music videos and their types in English.

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

What are the music videos and their subclasses with English labels?

Show me all English-labeled items that are either music videos or types of music videos.

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


Question: Who was elected as a member of the House of Representatives of Japan in the 2017 Japanese general election in Osaka 10th district?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?person ?personLabel ?positionLabel ?electionLabel ?districtLabel ?start ?partyLabel WHERE {
  ?person p:P39 ?statement .
  ?statement ps:P39 ?position ; pq:P2715 ?election ; pq:P768 ?district ; pq:P580 ?start ; pq:P4100 ?party .
  ?position rdfs:label ?positionLabel .
  ?election rdfs:label ?electionLabel .
  ?district rdfs:label ?districtLabel .
  ?party rdfs:label ?partyLabel .
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
  FILTER(LANG(?positionLabel) = "en")
  FILTER(LANG(?electionLabel) = "en")
  FILTER(LANG(?districtLabel) = "en")
  FILTER(LANG(?partyLabel) = "en")
  FILTER(?position = wd:Q17506823)
  FILTER(?election = wd:Q20983100)
  FILTER(?district = wd:Q7105539)
}

Show me the details of the person who joined the Constitutional Democratic Party of Japan after winning the Osaka 10th district seat in the 2017 Japanese general election.

In the 2017 Japanese general election, who won the Osaka 10th district and became a member of Japan’s House of Representatives, starting their term on October 22, 2017?

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/statement/Q405533-97E17C0D-2E4D-4085-A0E8-5164AA119CEB> ?var1 ?var2 . }


Question: Entities with official names in Spanish

SELECT ?item ?officialName WHERE { ?item wdt:P1448 ?officialName . FILTER (LANG(?officialName) = "es") }

Which entities have an official name in Spanish?

Show me the items and their official names in Spanish from Wikidata.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1448> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "es" ) ) ) . }


Question: What are the official names and continents of all United Nations member states?

SELECT ?country ?officialName ?continent WHERE { ?country wdt:P463 wd:Q1065 . ?country wdt:P1448 ?officialName . ?country wdt:P30 ?continent . }

List the countries that are members of the United Nations along with their official names and the continents they belong to.

Show me the official names and continents of every country that is a member of the UN.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1448> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q160016> . ?var1 <http://www.wikidata.org/prop/direct/P30> ?var3 . }


Question: List subclasses of gene and their statement nodes in Wikidata.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?subclass ?statement WHERE {
  ?subclass p:P279 ?statement .
  ?statement ps:P279 wd:Q7187 .
}
LIMIT 101

What are the subclasses of the gene class in Wikidata, and what statement nodes represent those relationships?

Show me up to 101 entities that are subclasses of gene, along with the statement nodes used to assert those subclass relationships.

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


Question: Is Ágost Pákay a type of software?

Does Ágost Pákay belong to the category of software or any of its subclasses?

Is Ágost Pákay classified as software according to Wikidata’s ontology?

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


Question: Is Lisa Kresse classified as software or any of its subclasses?

Is the German actress Lisa Kresse an instance of software or a type derived from software?

Confirm whether Lisa Kresse’s type hierarchy includes software.

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


Question: Is Edouard Myin a type of software?

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

Does Edouard Myin belong to a category that is a subclass of software?

Confirm whether Edouard Myin, as a human and athlete, can be classified under software.

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


Question: Is Tim Frawley a software developer?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
ASK WHERE {
  wd:Q9358714 wdt:P106 ?occupation .
  ?occupation wdt:P279 * wd:Q183888 .
}

Tim Frawley occupation software developer?

Check if Tim Frawley works as a software developer.

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


Question: Is Thomas Nguyễn Văn Đệ a type of software?

Does Thomas Nguyễn Văn Đệ belong to any class that is a subclass of software?

Check if Thomas Nguyễn Văn Đệ is categorized as software or any of its subcategories.

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


Question: Is Lucas Phạm Trọng Thìn a type of software?

Does Lucas Phạm Trọng Thìn belong to a category that is a subclass of software?

Confirm whether Lucas Phạm Trọng Thìn is classified as software or any of its subclasses.

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


Question: List fashion designers and models from Wikidata with their Vogue Paris IDs.

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

Who are the fashion figures listed on Vogue Paris, and what are their identifiers?

Show me the English names of people in Wikidata who have a Vogue Paris ID, along with those IDs.

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


Question: Is Maria Śleżańska a type of software?

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

Does Maria Śleżańska belong to the class of software through her type or subclass hierarchy?

Confirm whether Maria Śleżańska is classified as software or a subclass of software.

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


Question: Is Charles Deckert classified as a type of software?

Does Charles Deckert belong to any category that is a subclass of software?

Is software a parent category in the classification hierarchy of Charles Deckert?

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


Question: What is the English name of the airline whose official website is http://www.nordwindairlines.ru?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?airline ?airlineLabel ?website WHERE {
  ?airline wdt:P856 <http://www.nordwindairlines.ru> .
  OPTIONAL {
    ?airline rdfs:label ?airlineLabel .
    FILTER(LANG(?airlineLabel) = "en")
  }
}

Which airline uses www.nordwindairlines.ru as its official website?

Can you find the official website and English label for the airline linked to http://www.nordwindairlines.ru?

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


Question: Communes in Eure-et-Loir, France, with their French names and department name.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?commune ?communeLabel ?departmentLabel WHERE {
  ?commune wdt:P31 wd:Q484170 .
  ?commune wdt:P131 wd:Q3377 .
  ?commune wdt:P17 wd:Q142 .
  wd:Q3377 rdfs:label ?departmentLabel .
  ?commune rdfs:label ?communeLabel .
  FILTER(LANG(?communeLabel) = "fr")
  FILTER(LANG(?departmentLabel) = "fr")
}

What are the communes in the French department of Eure-et-Loir, and what are their French names and the department’s name?

List all communes located in Eure-et-Loir, France, along with their French labels and the label of the department.

SELECT ?var1 ?var1Label ?var2 ?var3Label WHERE { { SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q484170> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q142> . ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q3377> . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6465> . } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } }


Question: List members of the 11th Parliament of Northern Cyprus with their parliamentary party, Twitter handle, and Facebook username, ordered by start date.

SELECT ?member (SAMPLE(?ml) AS ?memberLabel) ?party (SAMPLE(?pl) AS ?partyLabel) ?twitter ?facebook WHERE {
  ?member p:P39 ?statement .
  ?statement ps:P39 wd:Q47167922 ;
             pq:P580 ?startDate .

  OPTIONAL {
    ?member wdt:P2002 ?twitter .
  }
  OPTIONAL {
    ?member wdt:P2013 ?facebook .
  }
  OPTIONAL {
    ?statement pq:P4100 ?party .
  }

  OPTIONAL {
    ?member rdfs:label ?ml .
  }
  OPTIONAL {
    ?party rdfs:label ?pl .
  }
}
GROUP BY ?member ?party ?twitter ?facebook
ORDER BY ASC(?startDate)

Who are the members of the 11th Parliament of Northern Cyprus, what parties do they belong to, and what are their Twitter and Facebook handles?

Please provide a list of all members of the 11th Parliament of Northern Cyprus, including their party affiliation and social media usernames (Twitter and Facebook), sorted by when they began their term.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/P39> ?var5 . ?var5 ( <http://www.wikidata.org/prop/statement/P39> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q47167922> ; <http://www.wikidata.org/prop/qualifier/P580> ?var6 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2013> ?var4 . } OPTIONAL { ?var5 <http://www.wikidata.org/prop/qualifier/P4100> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY ASC( ?var6 )ASC( ?var7 )


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

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

Can you show me the Wikimedia Commons image for New York University, identified by its SNAC ARK ID?

Show the image of the institution that has the SNAC ARK ID w6k96xpm.

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


Question: What books did Carter Brown write?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?work ?workLabel WHERE {
  ?work wdt:P50 wd:Q709012 .
  ?work rdfs:label ?workLabel .
  FILTER ( LANG( ?workLabel ) = "en" )
}

Which works are authored by the English writer Carter Brown?

List the English titles of all works written by Carter Brown.

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


Question: Was Jun'ichirō Koizumi a politician?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  wd:Q130852 wdt:P39 ?position .
  ?position wdt:P279 * wd:Q82955 .
}

Did Jun'ichirō Koizumi hold any position that is a subclass of politician?

Check if Jun'ichirō Koizumi is classified as a politician based on the positions he held.

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


Question: What philosophical concepts have Hebrew labels and descriptions?

PREFIX schema: <http://schema.org/>
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 ?item ?label ?description WHERE {
  ?item wdt:P31 wd:Q5891 ; rdfs:label ?label ; schema:description ?description .
  FILTER ( LANG( ?label ) = "he" && LANG( ?description ) = "he" )
}
LIMIT 100

Can you list the schools of philosophy in Hebrew, along with their descriptions?

Show me philosophical topics that are labeled and described in Hebrew.

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


Question: Humans with known birth dates but unknown death dates and places

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 ?human ?humanLabel ?birthDate WHERE {
  ?human wdt:P31 wd:Q5 .
  ?human wdt:P569 ?birthDate .
  FILTER NOT EXISTS {
    ?human wdt:P20 []
  }
  FILTER NOT EXISTS {
    ?human wdt:P570 []
  }
  ?human rdfs:label ?humanLabel .
  FILTER(LANG(?humanLabel) = "en")
}
LIMIT 3

Who are some humans whose date and place of death are not recorded in Wikidata, but whose birth dates are known?

List three people with known birth years but no recorded death information (date or place).

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var4Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P20> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P570> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var4 . FILTER ( ( isBLANK ( ?var3 ) ) ) . FILTER ( ( isBLANK ( ?var2 ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 3


Question: What countries, administrative regions, or locations is the Maison Naville building located in?

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 ?location ?locationLabel WHERE {
  wd:Q29711741 ( wdt:P30 | wdt:P17 | wdt:P131 | wdt:P376 | wdt:P501 ) ?location .
  ?location rdfs:label ?locationLabel .
  FILTER ( LANG( ?locationLabel ) = "en" )
}

Which geographic and political entities directly contain the architectural structure known as Maison Naville?

Show me the administrative division, country, and municipality where Maison Naville is situated.

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q29711741> 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: Most frequently used properties linking entities to Swansea

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

Which properties are most commonly used to associate people or things with Swansea, and how many times are they used?

Show me the properties that connect items to Swansea, sorted by how often they’re used, along with their English labels and counts.

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


Question: Is digiKam classified as an application?

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

Does digiKam belong to the category of applications through its class hierarchy?

Confirm whether digiKam is an instance of a subclass of application.

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


Question: Properties and descriptions of Hamburg University of Technology in Wikidata

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?propEntity ?propEntityLabel ?propEntityDescription WHERE {
  wd:Q1060 ?prop ?value .
  ?propEntity wikibase:directClaim ?prop .
  ?propEntity rdfs:label ?propEntityLabel .
  ?propEntity schema:description ?propEntityDescription .
  FILTER ( LANG( ?propEntityLabel ) = "en" ) FILTER ( LANG( ?propEntityDescription ) = "en" )
}
LIMIT 100

What properties are used to describe the Hamburg University of Technology, and what are their English labels and descriptions?

Show me the English labels and descriptions of all properties that are used to describe the Hamburg University of Technology.

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


Question: What are the scientific names of all subfamilies and genera in the Tinamidae bird family, and do they have any associated images?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?taxon ?taxonName ?image WHERE {
  ?taxon wdt:P171 wd:Q19172 .
  ?taxon wdt:P225 ?taxonName .
  OPTIONAL {
    ?taxon wdt:P18 ?image .
  }
}
ORDER BY ?taxonName

List the taxa directly descended from Tinamidae, including their Latin names and images if available.

Show me the members of the tinamou family with their scientific names and pictures from Wikimedia Commons.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P171> <http://www.wikidata.org/entity/Q19172> . ?var1 <http://www.wikidata.org/prop/direct/P225> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } } ORDER BY ASC( ?var2 )


Question: What are the Russian-language labels and descriptions of properties related to the Canadian Geographical Names Database ID?

SELECT ?relatedProperty ?label ?description WHERE { wd:P821 wdt:P1659 ?relatedProperty . ?relatedProperty rdfs:label ?label . ?relatedProperty schema:description ?description . FILTER (LANG(?label) = "ru") . FILTER (LANG(?description) = "ru") . }

Which properties are linked to CGNDB ID (P821) via "see also", and what are their Russian names and descriptions?

In Russian, what are the names and descriptions of Wikidata properties that provide alternative identifiers for Canadian geographical features, similar to CGNDB?

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


Question: What are the most common properties associated with Amsterdam in Wikidata, and how often are they used?

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?prop ?count WHERE {
  {
    SELECT ?prop(COUNT(?item) AS ?count) WHERE {
      ?item ?propStmt wd:Q727 .
      ?prop wikibase:directClaim ?propStmt .
    }
    GROUP BY ?prop
    HAVING(?count > 1)
  }
}
ORDER BY DESC(?count)

Which properties link the most entities to Amsterdam, and how many times do they appear?

Show me the top properties connected to Amsterdam, excluding those used only once.

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


Question: Most frequently used properties linking items to Irkutsk Oblast, with counts

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

Which properties are most commonly used to associate entities with Irkutsk Oblast, and how many times are they used?

Show me the top properties connected to Irkutsk Oblast, including their labels and how often they appear, sorted by frequency.

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