question: Give me all cosmonauts.

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT DISTINCT ?uri WHERE { ?uri wdt:P106 wd:Q11631 . { ?uri wdt:P27 wd:Q15180 } UNION { ?uri wdt:P27 wd:Q159 } }


question: Give me the birthdays of all actors of the television show Charmed.

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?date WHERE { wd:Q162371 wdt:P161 / wdt:P569 ?date . }


question: Who is the daughter of Robert Kennedy married to?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?uri WHERE { wd:Q25310 wdt:P40 ?daughter . ?daughter wdt:P21 wd:Q6581072 . ?daughter wdt:P26 ?uri . }


question: Which river does the Brooklyn Bridge cross?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?uri WHERE { wd:Q125006 wdt:P177 ?uri . }


question: How many countries are there in Europe?

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT ( COUNT ( DISTINCT ?uri ) as ?c ) WHERE { ?uri wdt:P31 wd:Q6256 . ?uri wdt:P30 wd:Q46 . }


question: In which city did John F. Kennedy die?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?uri WHERE { wd:Q9696 wdt:P20 / wdt:P131 ?uri . ?uri wdt:P31 wd:Q515 . }


question: Does the Isar flow into a lake?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> ASK WHERE { wd:Q106588 wdt:P403 ?uri . ?uri wdt:P31 wd:Q23397 . }


question: Which countries have more than ten caves?

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT DISTINCT ?uri WHERE { ?uri wdt:P31 wd:Q6256 . ?cave wdt:P31 wd:Q35509 . { ?cave wdt:P17 ?uri . } UNION { ?cave wdt:P131 / wdt:P17 ?uri . } } GROUP BY ?uri HAVING ( COUNT ( DISTINCT ?cave ) > 10 )


question: Are tree frogs a type of amphibian?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> ASK WHERE { wd:Q53696 wdt:P171 * wd:Q10908 . }


question: Who created Goofy?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?uri WHERE { wd:Q111135 wdt:P170 ?uri . }


question: Give me the capitals of all countries in Africa.

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT DISTINCT ?uri WHERE { ?country wdt:P31 wd:Q6256 . ?country wdt:P30 wd:Q15 . ?country wdt:P36 ?uri . }


question: Give me all cities in New Jersey with more than 100000 inhabitants.

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT DISTINCT ?uri WHERE { ?uri wdt:P31 wd:Q515 . ?uri wdt:P131 + wd:Q1408 . ?uri wdt:P1082 ?population . FILTER ( ?population > 100000 ) }


question: Which museum exhibits The Scream by Munch?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?uri WHERE { wd:Q471379 wdt:P527 / wdt:P276 ?uri . ?uri wdt:P31 wd:Q207694 }


question: Is Egypts largest city also its capital?

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> ASK WHERE { { SELECT ?largest WHERE { ?largest wdt:P31 wd:Q515 . ?largest wdt:P17 wd:Q79 . ?largest wdt:P1082 ?population . } ORDER BY DESC ( ?population ) LIMIT 1 } wd:Q79 wdt:P36 ?largest . }


question: How many people live in the capital of Australia?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?number WHERE { wd:Q408 wdt:P36 ?uri . ?uri wdt:P1082 ?number . }


question: In which country is the Limerick Lake?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?uri WHERE { wd:Q6386177 wdt:P17 ?uri . }


question: Which television shows were created by John Cleese?

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT DISTINCT ?uri WHERE { ?uri wdt:P31 wd:Q5398426 . { ?uri wdt:P170 wd:Q25014 . } UNION { ?uri wdt:P170 / wdt:P527 wd:Q25014 . } }


question: Which mountain is the highest after the Annapurna?

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT DISTINCT ?uri WHERE { ?uri wdt:P31 wd:Q8502 . ?uri wdt:P2044 ?elevation . wd:Q16466024 wdt:P2044 ?elevation2 . FILTER ( ?elevation < ?elevation2 ) . } ORDER BY DESC ( ?elevation ) LIMIT 1


question: In which films directed by Garry Marshall was Julia Roberts starring?

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT DISTINCT ?uri WHERE { ?uri wdt:P31 wd:Q11424 . ?uri wdt:P57 wd:Q315087 . ?uri wdt:P161 wd:Q40523 . }


question: Was U.S. president Jackson involved in a war?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> ASK WHERE { wd:Q11817 wdt:P607 ?uri . }


question: Give me all communist countries.

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT DISTINCT ?uri WHERE { ?uri wdt:P31 wd:Q849866 . }


question: Which awards did Douglas Hofstadter win?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?uri WHERE { wd:Q319308 wdt:P166 ?uri . }


question: What is the currency of the Czech Republic?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?uri WHERE { wd:Q213 wdt:P38 ?uri . }


question: Which countries adopted the Euro?

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT DISTINCT ?uri WHERE { ?uri wdt:P31 wd:Q6256 . ?uri wdt:P38 wd:Q4916 . }


question: What is the area code of Berlin?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?string WHERE { wd:Q64 wdt:P473 ?string . }


question: Which countries have more than two official languages?

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT DISTINCT ?uri WHERE { ?uri wdt:P31 wd:Q6256 . ?uri wdt:P37 ?language . } GROUP BY ?uri HAVING ( COUNT ( ?language ) > 2 )


question: Who is the owner of Rolls-Royce?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?uri WHERE { wd:Q243278 wdt:P127 ?uri . }


question: Through which countries does the Yenisei river flow?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?uri WHERE { wd:Q78707 wdt:P17 ?uri . }


question: When did Latvia join the EU?

sparql: PREFIX p: <http://www.wikidata.org/prop/> PREFIX pq: <http://www.wikidata.org/prop/qualifier/> PREFIX wd: <http://www.wikidata.org/entity/> PREFIX ps: <http://www.wikidata.org/prop/statement/> SELECT DISTINCT ?date WHERE { wd:Q211 p:P463 ?membership . ?membership ps:P463 wd:Q458 . ?membership pq:P580 ?date . }


question: Which politicians were married to a German?

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT DISTINCT ?uri WHERE { ?uri wdt:P106 wd:Q82955 . ?uri wdt:P26 ?spouse . { ?spouse wdt:P27 wd:Q183 . } UNION { ?spouse wdt:P19 / wdt:P17 wd:Q183 } }


question: When was the Battle of Gettysburg?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?date WHERE { wd:Q33132 wdt:P580 ?date . }


question: What is the highest mountain in Australia?

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT DISTINCT ?uri WHERE { ?uri wdt:P31 wd:Q8502 . ?uri wdt:P30 wd:Q3960 . ?uri wdt:P2044 ?height . } ORDER BY DESC ( ?height ) LIMIT 1


question: Give me all soccer clubs in Spain.

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT DISTINCT ?uri WHERE { ?uri wdt:P31 wd:Q476028 . ?uri wdt:P17 wd:Q29 . }


question: What is the official language of Suriname?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?uri WHERE { wd:Q730 wdt:P37 ?uri . }


question: Who is the mayor of Tel Aviv?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?uri WHERE { wd:Q33935 wdt:P6 ?uri . }


question: Which telecommunications organizations are located in Belgium?

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT DISTINCT ?uri WHERE { { ?uri wdt:P31 wd:Q43229 } UNION { ?uri wdt:P31 / ( wdt:P279 * ) wd:Q43229 } . ?uri wdt:P452 wd:Q418 . ?uri wdt:P17 wd:Q31 . }


question: Is Frank Herbert still alive?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> ASK WHERE { wd:Q7934 wdt:P570 ?date . FILTER ( ! BOUND ( ?date ) ) }


question: What is the highest place of the Urals?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?uri WHERE { wd:Q35600 wdt:P610 ?uri . }


question: Who wrote the lyrics for the Polish national anthem?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?uri WHERE { wd:Q36 wdt:P85 / wdt:P676 ?uri . }


question: Give me all federal chancellors of Germany.

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT DISTINCT ?uri WHERE { ?uri wdt:P39 wd:Q4970706 . }


question: What is the official website of Tom Cruise?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?string WHERE { wd:Q37079 wdt:P856 ?string . }


question: List all episodes of the first season of the HBO television series The Sopranos.

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT DISTINCT ?uri WHERE { ?uri wdt:P31 wd:Q21191270 . ?uri wdt:P361 wd:Q5274359 }


question: Is there a video game called Battle Chess?

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> ASK WHERE { ?uri wdt:P31 wd:Q7889 . ?uri rdfs:label "Battle Chess" @en }


question: Give me the websites of companies with more than 500000 employees.

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT DISTINCT ?string WHERE { ?uri wdt:P31 / ( wdt:P279 * ) wd:Q4830453 . ?uri wdt:P1128 ?number . FILTER ( ?number > 500000 ) . ?uri wdt:P856 ?string . }


question: Which actors were born in Germany?

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT DISTINCT ?uri WHERE { ?uri wdt:P106 wd:Q10800557 . { ?uri wdt:P19 wd:Q183 . } UNION { ?uri wdt:P19 / wdt:P17 wd:Q183 . } }


question: Which instruments does Cat Stevens play?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?uri WHERE { wd:Q154216 wdt:P1303 ?uri . }


question: Give me all books written by Danielle Steel.

sparql: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT DISTINCT ?uri WHERE { ?uri wdt:P31 wd:Q571 . ?uri wdt:P50 wd:Q72653 . }


question: When did the Ming dynasty dissolve?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT DISTINCT ?date WHERE { wd:Q9903 wdt:P576 ?date . }


question: Is Lake Baikal bigger than the Great Bear Lake?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> ASK WHERE { wd:Q5513 wdt:P2046 ?area1 . wd:Q5525 wdt:P2046 ?area2 . FILTER ( ?area1 > ?area2 ) }


question: Was the Cuban Missile Crisis earlier than the Bay of Pigs Invasion?

sparql: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> ASK WHERE { wd:Q128160 wdt:P582 ?date1 . wd:Q191721 wdt:P580 ?date2 . FILTER ( ?date1 < ?date2 ) }