Simple Question (Direct)
Simple Question
Q1153831
P25
Q502895
USER
Which female person was the parent of Pedro Henríquez Ureña ?
(Q1153831,P25,c(Q502895))
action filter_type
action find
entity Q1153831
relation P25
type Q502895
['Q1153831', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q1153831 property:P25 ?p }
Pedro Henríquez Ureña
action filter_type
action find
entity Pedro Henríquez Ureña
relation mother
type common name
['Pedro Henríquez Ureña', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:Pedro_Henríquez_Ureña property:mother ?p }
[]
common name
Q3445663
SYSTEM
Salomé Ureña
Q3445663
(Q1153831,P25,c(Q502895))
action filter_type
action find
entity Q1153831
relation P25
type Q502895
[ANSWER] was the parent of Pedro Henríquez Ureña
['Q1153831', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q1153831 property:P25 ?p }
Salomé Ureña
Salomé Ureña was the parent of Pedro Henríquez Ureña
Salomé Ureña
action filter_type
action find
entity Pedro Henríquez Ureña
relation mother
type common name
['Pedro Henríquez Ureña', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:Pedro_Henríquez_Ureña property:mother ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3445663
P1412
Q34770
USER
Which language is that person capable of writing ?
(Q3445663,P1412,c(Q34770))
action filter_type
action find
entity Q3445663
relation P1412
type Q34770
['Q3445663', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q3445663 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
Salomé Ureña
action filter_type
action find
entity Salomé Ureña
relation languages spoken, written or signed
type language
['Salomé Ureña', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Salomé_Ureña property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q3445663,P1412,c(Q34770))
action filter_type
action find
entity Q3445663
relation P1412
type Q34770
[ANSWER] is that person capable of writing
['Q3445663', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q3445663 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
Spanish
Spanish is that person capable of writing
Spanish
action filter_type
action find
entity Salomé Ureña
relation languages spoken, written or signed
type language
['Salomé Ureña', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Salomé_Ureña property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P35
Q502895 Q35798 Q15617994
USER
Which people are the heads of state of min number of executive branches or administrative territories ?
(c(Q35798)|c(Q15617994),P35,c(Q502895))
action argmin
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
[[{'concept': 'Q35798'}, {'concept': 'Q15617994'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?q ) { SELECT DISTINCT ?i ( COUNT ( ?e ) AS ?u ) WHERE { { ?e property:P35 ?i . ?i rdf:type ontology:Q502895 . ?e rdf:type ontology:Q35798 } UNION { ?e property:P35 ?i . ?i rdf:type ontology:Q502895 . ?e rdf:type ontology:Q15617994 } } GROUP BY ?i } } . { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?l ) WHERE { { ?b property:P35 ?d . ?d rdf:type ontology:Q502895 . ?b rdf:type ontology:Q35798 } UNION { ?d rdf:type ontology:Q502895 . ?b rdf:type ontology:Q15617994 . ?b property:P35 ?d } } GROUP BY ?d } . FILTER ( ?l = ?q ) }
action argmin
action union
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
[[{'concept': 'executive branch'}, {'concept': 'designation for an administrative territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?q ) { SELECT DISTINCT ?i ( COUNT ( ?e ) AS ?u ) WHERE { { ?e property:head_of_state ?i . ?i rdf:type ontology:common_name . ?e rdf:type ontology:executive_branch } UNION { ?e property:head_of_state ?i . ?i rdf:type ontology:common_name . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?i } } . { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?l ) WHERE { { ?b property:head_of_state ?d . ?d rdf:type ontology:common_name . ?b rdf:type ontology:executive_branch } UNION { ?d rdf:type ontology:common_name . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:head_of_state ?d } } GROUP BY ?d } . FILTER ( ?l = ?q ) }
[]
common name executive branch designation for an administrative territorial entity
Q352 Q2567 Q39619
SYSTEM
Adolf Hitler, Richard von Weizsäcker, Alī ibn Abī Ṭālib
Q2573 Q2571 Q19830768 Q19830761 Q2494376 Q67345 Q19464383 Q19830715 Q16105901 Q171977 Q151667 Q1359023 Q310775 Q157651 Q6809265 Q13631996 Q13014 Q78490 Q19831439 Q78492 Q19831437 Q152756 Q352200 Q19831432 Q151312 Q151087 Q267745 Q19810371 Q58056 Q400961 Q38987 Q94941 Q157812 Q444290 Q19216 Q16849387 Q20875 Q154444 Q2610 Q19831452 Q155002 Q250087 Q9439 Q1354851 Q335323 Q2542 Q2540 Q379203 Q735387 Q122304 Q154936 Q156617 Q555531 Q157789 Q976974 Q6707612 Q290786 Q773874 Q886786 Q7244117 Q502185 Q6127060 Q2594 Q570155 Q161958 Q154998 Q182266 Q2646 Q156187 Q151305 Q76437 Q189186 Q335310 Q157793 Q93427 Q19830746 Q3910 Q11753 Q57509 Q157099 Q34464 Q362618 Q334923 Q157776 Q2677 Q188409 Q102139 Q3518013 Q8467 Q2601 Q2602 Q2607 Q39619 Q270645 Q29213 Q570195 Q69569 Q156572 Q335033 Q163945 Q30487 Q223183 Q213791 Q2551 Q84204 Q156502 Q511888 Q257425 Q58600 Q468847 Q77233 Q160318 Q210329 Q84475 Q153940 Q57232 Q1455923 Q613051 Q6127112 Q19831185 Q19831184 Q19831183 Q154993 Q157121 Q354705 Q154041 Q19831457 Q2569 Q156494 Q2563 Q1982245 Q2567 Q152463 Q157781 Q1855372 Q299629 Q11726 Q17488307 Q1354229 Q187697 Q371854 Q72856 Q161059 Q62483 Q661663 Q19861344 Q7726 Q72898 Q150620 Q1260 Q313355 Q2582 Q6225811 Q17582456 Q541507 Q57360 Q172083 Q153586 Q704339 Q310000 Q2667 Q159585 Q450675 Q37731 Q154460 Q43915 Q1356927 Q334111 Q19628885 Q84263 Q2538 Q33168 Q296054 Q360462 Q57521 Q380187 Q352 Q233984 Q314464 Q1382174 Q1898405 Q130834 Q150652 Q150712 Q57634 Q19831445 Q22368 Q51672 Q333824 Q65917 Q2628 Q19831449
(c(Q35798)|c(Q15617994),P35,c(Q502895))
action argmin
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
[ANSWERS] are the heads of state of min number of executive branches or administrative territories
[[{'concept': 'Q35798'}, {'concept': 'Q15617994'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?q ) { SELECT DISTINCT ?i ( COUNT ( ?e ) AS ?u ) WHERE { { ?e property:P35 ?i . ?i rdf:type ontology:Q502895 . ?e rdf:type ontology:Q35798 } UNION { ?e property:P35 ?i . ?i rdf:type ontology:Q502895 . ?e rdf:type ontology:Q15617994 } } GROUP BY ?i } } . { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?l ) WHERE { { ?b property:P35 ?d . ?d rdf:type ontology:Q502895 . ?b rdf:type ontology:Q35798 } UNION { ?d rdf:type ontology:Q502895 . ?b rdf:type ontology:Q15617994 . ?b property:P35 ?d } } GROUP BY ?d } . FILTER ( ?l = ?q ) }
Gustav Heinemann Walter Scheel Thomas Currie Jonathan Lambert Edmund Lawrence John William, Duke of Jülich-Cleves-Berg John Woolley Robert Ben Madison Paul Delprat Tokugawa Ieyasu Ferdinand I of Bulgaria Raul Khadjimba Jean-Claude Duvalier Gustáv Husák Mehbooba Mufti Chennamaneni Vidyasagar Rao Franz Jonas Thomas Klestil Carlo I Bertoleoni Tomáš Garrigue Masaryk Paolo I Bertoleoni Frederick VIII of Denmark Charles II, Duke of Parma Giuseppe Bertoleoni Frederick IX of Denmark Jérôme Bonaparte William Deane Vít Jedlička Christopher of Bavaria Ahmad bin Yahya Tony Tan Keng Yam Frederick VII of Denmark Frederick III of Denmark Louis, King of Etruria Ma Ying-jeou Jam Nizamuddin II Edward VII Grand Duke Michael Alexandrovich of Russia Willi Stoph Carlo II Bertoleoni Frederick VI of Denmark Bill Hayden Queen Victoria John Kerr William Morrison, 1st Viscount Dunrossil Horst Köhler Christian Wulff Khieu Samphan William McKell Nitish Kumar Arnulf of Carinthia Christian X of Denmark Paddy Roy Bates Frederick I of Denmark Peter Cosgrove Lydia Emerencia Stefan Dragutin Maria I of Portugal Orélie-Antoine de Tounens Prince Karl Emich of Leiningen Andrey Vorobyov Jam Feruzudin Theodor Heuss John II, Duke of Cleves Eric of Pomerania Christian III of Denmark Xiang Yu Friedrich Ebert Frederick V of Denmark Christian IX of Denmark Karl Dönitz Zelman Cowen Richard Casey, Baron Casey Christian V of Denmark Archduke John of Austria King Louis I of Talossa Albert II Heinz Fischer Atifete Jahjaga Louis the Child Philip III of Spain Adolph I, Duke of Cleves Abu Bakr John, King of Denmark Wilhelm II Yevgeny Shevchuk Margrethe II of Denmark N. Chandrababu Naidu Umar ibn Al-Khattāb Manfred Gerlach Egon Krenz Erich Honecker Alī ibn Abī Ṭālib Rose Francine Rogombé Tarja Halonen John I, Duke of Cleves Sardar Muhammad Yaqoob Khan Christian VII of Denmark William Slim, 1st Viscount Slim Yahya Muhammad Hamid ed-Din Mikhail Gorbachev Peter II of Yugoslavia Eric Bloodaxe Johannes Rau Theodor Körner Emil Hácha Leonard Petrosyan Gojong of the Korean Empire Friedrich III of Germany Oswiu of Northumbria Frederick III, Elector of Saxony Norodom Sihanouk Yuan Shikai Michael Hainisch Christian I of Denmark Sabine Bergmann-Pohl Takakazu Ishii Robert Kocharyan Jam Unar Georgette Bertin-Pourchet Gabrielle Pourchet Georges Pourchet Christian VI of Denmark Conrad I of Germany Frederick Ballantyne Frederick II of Denmark Tonino Bertoleoni Karl Carstens Antonín Novotný Roman Herzog Ismail Shammout Richard von Weizsäcker Louis the German Christian VIII of Denmark Tamim bin Hamad Al Thani Léon M'ba Karl Renner Aleksandr Zakharchenko Peter Hollingworth François Duvalier Antonín Zápotocký Rudolf Kirchschläger Frederick IV of Denmark William, Duke of Jülich-Cleves-Berg Stephen Vladislav II of Syrmia Niels Vermeersch Joseph Bonaparte Adolf Schärf Henry I the Fowler Kurt Waldheim Alexander Ankvab Heinrich Lübke John Charlton Rudge Ihor Plotnytskiy Arkadi Ghukasyan Hamad bin Khalifa Al Thani Omar Bongo Christian IV of Denmark John III, Duke of Cleves Ludvík Svoboda Paul von Hindenburg Boris III of Bulgaria Francis Uthman ibn Affan Christian II of Denmark Otto I the Great Ninian Stephen Sunjong of the Korean Empire Michael Bates Wilhelm Miklas Joachim Gauck Kalvakuntla Chandrashekar Klement Gottwald Bako Sahakyan Ali Bongo Ondimba Ahmed Mahamoud Silanyo Adolf Hitler Tsai Ing-wen Tokugawa Hidetada Paul Hasluck Konijeti Rosaiah Francis I of Austria Wilhelm I of Germany Charles the Fat Hashim Thaçi Mariangela Bertoleoni Chen Shui-bian Herod the Great William Sidney, 1st Viscount De L'Isle Wilhelm Pieck Walter Ulbricht Paolo II Bertoleoni
Adolf Hitler, Richard von Weizsäcker and Alī ibn Abī Ṭālib are the heads of state of min number of executive branches or administrative territories
Adolf Hitler Richard von Weizsäcker Alī ibn Abī Ṭālib
action argmin
action union
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
[[{'concept': 'executive branch'}, {'concept': 'designation for an administrative territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?q ) { SELECT DISTINCT ?i ( COUNT ( ?e ) AS ?u ) WHERE { { ?e property:head_of_state ?i . ?i rdf:type ontology:common_name . ?e rdf:type ontology:executive_branch } UNION { ?e property:head_of_state ?i . ?i rdf:type ontology:common_name . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?i } } . { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?l ) WHERE { { ?b property:head_of_state ?d . ?d rdf:type ontology:common_name . ?b rdf:type ontology:executive_branch } UNION { ?d rdf:type ontology:common_name . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:head_of_state ?d } } GROUP BY ?d } . FILTER ( ?l = ?q ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P97
Q56061 Q82799
USER
How many administrative territories and names were held by that person ?
(Q39619,P97,c(Q56061)) (Q39619,P97,c(Q82799)) (Q352,P97,c(Q56061)) (Q352,P97,c(Q82799)) (Q2567,P97,c(Q56061)) (Q2567,P97,c(Q82799)) (Q39619,P97,c(Q56061)) (Q39619,P97,c(Q82799))
['Q39619', 'P97', {'concept': 'Q56061'}] ['Q39619', 'P97', {'concept': 'Q82799'}] ['Q352', 'P97', {'concept': 'Q56061'}] ['Q352', 'P97', {'concept': 'Q82799'}] ['Q2567', 'P97', {'concept': 'Q56061'}] ['Q2567', 'P97', {'concept': 'Q82799'}] ['Q39619', 'P97', {'concept': 'Q56061'}] ['Q39619', 'P97', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q39619 property:P97 ?z } UNION { resource:Q39619 property:P97 ?y } UNION { resource:Q352 property:P97 ?z } UNION { resource:Q352 property:P97 ?y } UNION { resource:Q2567 property:P97 ?z } UNION { resource:Q2567 property:P97 ?y } UNION { resource:Q39619 property:P97 ?z } UNION { resource:Q39619 property:P97 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q82799 }
['Alī ibn Abī Ṭālib', 'noble title', {'concept': 'administrative territorial entity'}] ['Alī ibn Abī Ṭālib', 'noble title', {'concept': 'name'}] ['Adolf Hitler', 'noble title', {'concept': 'administrative territorial entity'}] ['Adolf Hitler', 'noble title', {'concept': 'name'}] ['Richard von Weizsäcker', 'noble title', {'concept': 'administrative territorial entity'}] ['Richard von Weizsäcker', 'noble title', {'concept': 'name'}] ['Alī ibn Abī Ṭālib', 'noble title', {'concept': 'administrative territorial entity'}] ['Alī ibn Abī Ṭālib', 'noble title', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Alī_ibn_Abī_Ṭālib property:noble_title ?z } UNION { resource:Alī_ibn_Abī_Ṭālib property:noble_title ?y } UNION { resource:Adolf_Hitler property:noble_title ?z } UNION { resource:Adolf_Hitler property:noble_title ?y } UNION { resource:Richard_von_Weizsäcker property:noble_title ?z } UNION { resource:Richard_von_Weizsäcker property:noble_title ?y } UNION { resource:Alī_ibn_Abī_Ṭālib property:noble_title ?z } UNION { resource:Alī_ibn_Abī_Ṭālib property:noble_title ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:name }
[]
administrative territorial entity name
Quantitative|Count|Mult. entity type|Clarification
Q352
SYSTEM
Did you mean Adolf Hitler ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q39619 property:P97 ?z } UNION { resource:Q39619 property:P97 ?y } UNION { resource:Q352 property:P97 ?z } UNION { resource:Q352 property:P97 ?y } UNION { resource:Q2567 property:P97 ?z } UNION { resource:Q2567 property:P97 ?y } UNION { resource:Q39619 property:P97 ?z } UNION { resource:Q39619 property:P97 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q82799 }
Did you mean Adolf Hitler ?
Adolf Hitler
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Alī_ibn_Abī_Ṭālib property:noble_title ?z } UNION { resource:Alī_ibn_Abī_Ṭālib property:noble_title ?y } UNION { resource:Adolf_Hitler property:noble_title ?z } UNION { resource:Adolf_Hitler property:noble_title ?y } UNION { resource:Richard_von_Weizsäcker property:noble_title ?z } UNION { resource:Richard_von_Weizsäcker property:noble_title ?y } UNION { resource:Alī_ibn_Abī_Ṭālib property:noble_title ?z } UNION { resource:Alī_ibn_Abī_Ṭālib property:noble_title ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:name }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Alī ibn Abī Ṭālib. Could you tell me the answer for that?
(Q39619,P97,c(Q56061)) (Q39619,P97,c(Q82799)) (Q352,P97,c(Q56061)) (Q352,P97,c(Q82799)) (Q2567,P97,c(Q56061)) (Q2567,P97,c(Q82799)) (Q39619,P97,c(Q56061)) (Q39619,P97,c(Q82799))
Q39619
['Q39619', 'P97', {'concept': 'Q56061'}] ['Q39619', 'P97', {'concept': 'Q82799'}] ['Q352', 'P97', {'concept': 'Q56061'}] ['Q352', 'P97', {'concept': 'Q82799'}] ['Q2567', 'P97', {'concept': 'Q56061'}] ['Q2567', 'P97', {'concept': 'Q82799'}] ['Q39619', 'P97', {'concept': 'Q56061'}] ['Q39619', 'P97', {'concept': 'Q82799'}]
['Alī ibn Abī Ṭālib', 'noble title', {'concept': 'administrative territorial entity'}] ['Alī ibn Abī Ṭālib', 'noble title', {'concept': 'name'}] ['Adolf Hitler', 'noble title', {'concept': 'administrative territorial entity'}] ['Adolf Hitler', 'noble title', {'concept': 'name'}] ['Richard von Weizsäcker', 'noble title', {'concept': 'administrative territorial entity'}] ['Richard von Weizsäcker', 'noble title', {'concept': 'name'}] ['Alī ibn Abī Ṭālib', 'noble title', {'concept': 'administrative territorial entity'}] ['Alī ibn Abī Ṭālib', 'noble title', {'concept': 'name'}]
[]
SYSTEM
1 administrative territories and 1 names
Q2081829 Q3879448
(Q39619,P97,c(Q56061)) (Q39619,P97,c(Q82799)) (Q352,P97,c(Q56061)) (Q352,P97,c(Q82799)) (Q2567,P97,c(Q56061)) (Q2567,P97,c(Q82799)) (Q39619,P97,c(Q56061)) (Q39619,P97,c(Q82799))
[ANSWER]
['Q39619', 'P97', {'concept': 'Q56061'}] ['Q39619', 'P97', {'concept': 'Q82799'}] ['Q352', 'P97', {'concept': 'Q56061'}] ['Q352', 'P97', {'concept': 'Q82799'}] ['Q2567', 'P97', {'concept': 'Q56061'}] ['Q2567', 'P97', {'concept': 'Q82799'}] ['Q39619', 'P97', {'concept': 'Q56061'}] ['Q39619', 'P97', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q39619 property:P97 ?z } UNION { resource:Q39619 property:P97 ?y } UNION { resource:Q352 property:P97 ?z } UNION { resource:Q352 property:P97 ?y } UNION { resource:Q2567 property:P97 ?z } UNION { resource:Q2567 property:P97 ?y } UNION { resource:Q39619 property:P97 ?z } UNION { resource:Q39619 property:P97 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q82799 }
Amir al-Mu'minin Abu Turab
1 administrative territories and 1 names
['Alī ibn Abī Ṭālib', 'noble title', {'concept': 'administrative territorial entity'}] ['Alī ibn Abī Ṭālib', 'noble title', {'concept': 'name'}] ['Adolf Hitler', 'noble title', {'concept': 'administrative territorial entity'}] ['Adolf Hitler', 'noble title', {'concept': 'name'}] ['Richard von Weizsäcker', 'noble title', {'concept': 'administrative territorial entity'}] ['Richard von Weizsäcker', 'noble title', {'concept': 'name'}] ['Alī ibn Abī Ṭālib', 'noble title', {'concept': 'administrative territorial entity'}] ['Alī ibn Abī Ṭālib', 'noble title', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Alī_ibn_Abī_Ṭālib property:noble_title ?z } UNION { resource:Alī_ibn_Abī_Ṭālib property:noble_title ?y } UNION { resource:Adolf_Hitler property:noble_title ?z } UNION { resource:Adolf_Hitler property:noble_title ?y } UNION { resource:Richard_von_Weizsäcker property:noble_title ?z } UNION { resource:Richard_von_Weizsäcker property:noble_title ?y } UNION { resource:Alī_ibn_Abī_Ṭālib property:noble_title ?z } UNION { resource:Alī_ibn_Abī_Ṭālib property:noble_title ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q352
P27
Q7275 Q3024240
USER
How many states or former countries are Adolf Hitler a civilian of ?
(Q352,P27,c(Q7275)) (Q352,P27,c(Q3024240))
action count
action union
action filter_type
action find
entity Q352
relation P27
type Q7275
action filter_type
action find
entity Q352
relation P27
type Q3024240
['Q352', 'P27', {'concept': 'Q7275'}] ['Q352', 'P27', {'concept': 'Q3024240'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { { resource:Q352 property:P27 ?y . ?y rdf:type ontology:Q7275 } UNION { resource:Q352 property:P27 ?y . ?y rdf:type ontology:Q3024240 } }
Adolf Hitler
action count
action union
action filter_type
action find
entity Adolf Hitler
relation country of citizenship
type state
action filter_type
action find
entity Adolf Hitler
relation country of citizenship
type former country
['Adolf Hitler', 'country of citizenship', {'concept': 'state'}] ['Adolf Hitler', 'country of citizenship', {'concept': 'former country'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { { resource:Adolf_Hitler property:country_of_citizenship ?y . ?y rdf:type ontology:state } UNION { resource:Adolf_Hitler property:country_of_citizenship ?y . ?y rdf:type ontology:former_country } }
[]
state former country
SYSTEM
5
Q7318 Q28513 Q518101 Q41304 Q268970
(Q352,P27,c(Q7275)) (Q352,P27,c(Q3024240))
action count
action union
action filter_type
action find
entity Q352
relation P27
type Q7275
action filter_type
action find
entity Q352
relation P27
type Q3024240
[ANSWER]
['Q352', 'P27', {'concept': 'Q7275'}] ['Q352', 'P27', {'concept': 'Q3024240'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { { resource:Q352 property:P27 ?y . ?y rdf:type ontology:Q7275 } UNION { resource:Q352 property:P27 ?y . ?y rdf:type ontology:Q3024240 } }
Nazi Germany Austria-Hungary First Republic of Austria Weimar Republic Republic of German-Austria
5
action count
action union
action filter_type
action find
entity Adolf Hitler
relation country of citizenship
type state
action filter_type
action find
entity Adolf Hitler
relation country of citizenship
type former country
['Adolf Hitler', 'country of citizenship', {'concept': 'state'}] ['Adolf Hitler', 'country of citizenship', {'concept': 'former country'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { { resource:Adolf_Hitler property:country_of_citizenship ?y . ?y rdf:type ontology:state } UNION { resource:Adolf_Hitler property:country_of_citizenship ?y . ?y rdf:type ontology:former_country } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q352
P127
Q502895
USER
Which person is owned by Adolf Hitler ?
(c(Q502895),P127,Q352)
action filter_type
action find_reverse
entity Q352
relation P127
type Q502895
[{'concept': 'Q502895'}, 'P127', 'Q352']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P127 resource:Q352 }
Adolf Hitler
action filter_type
action find_reverse
entity Adolf Hitler
relation owned by
type common name
[{'concept': 'common name'}, 'owned by', 'Adolf Hitler']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:owned_by resource:Adolf_Hitler }
[]
common name
Q155695
SYSTEM
Blondi
Q155695
(c(Q502895),P127,Q352)
action filter_type
action find_reverse
entity Q352
relation P127
type Q502895
[ANSWER] is owned by Adolf Hitler
[{'concept': 'Q502895'}, 'P127', 'Q352']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P127 resource:Q352 }
Blondi
Blondi is owned by Adolf Hitler
Blondi
action filter_type
action find_reverse
entity Adolf Hitler
relation owned by
type common name
[{'concept': 'common name'}, 'owned by', 'Adolf Hitler']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:owned_by resource:Adolf_Hitler }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q352
P1038
Q502895
USER
Who are related to Adolf Hitler ?
(c(Q502895),P1038,Q352)
action filter_type
action find
entity Q352
relation P1038
type Q502895
[{'concept': 'Q502895'}, 'P1038', 'Q352']
SELECT DISTINCT ?k WHERE { resource:Q352 property:P1038 ?k . ?k rdf:type ontology:Q502895 }
Adolf Hitler
action filter_type
action find
entity Adolf Hitler
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'Adolf Hitler']
SELECT DISTINCT ?k WHERE { resource:Adolf_Hitler property:relative ?k . ?k rdf:type ontology:common_name }
[]
common name
Q6216378 Q2779550 Q22132490
SYSTEM
Johanna Hiedler, Maria Schicklgruber, Johann Baptist Pölzl
Q22116705 Q385804 Q1903961 Q22133397 Q22677145 Q6216378 Q698102 Q22090133 Q22085679 Q22086756 Q22117373 Q6001165 Q22087758 Q22121831 Q22092225 Q84642 Q22121817 Q22133423 Q22087732 Q22117389 Q85046 Q4613831 Q22116733 Q22572343 Q22132490 Q22132157 Q22132150 Q2779550 Q1165052 Q22101705 Q22114544 Q454576 Q22087804 Q22085545 Q64799
(c(Q502895),P1038,Q352)
action filter_type
action find
entity Q352
relation P1038
type Q502895
[ANSWERS] are related to Adolf Hitler
[{'concept': 'Q502895'}, 'P1038', 'Q352']
SELECT DISTINCT ?k WHERE { resource:Q352 property:P1038 ?k . ?k rdf:type ontology:Q502895 }
Viktoria Veit Johann Georg Hiedler Martin Heinrich Hammitzsch Peter Raubal Friedrich Braun Johanna Hiedler William Patrick Stuart-Houston Johanna Pölzl Anton Schmidt Elfriede Hochegger Josef Veit Ilse Braun Johann Schmidt Theresia Pfeisinger Eduard Schmidt Geli Raubal Johann Schicklgruber Heiner Hochegger Johann Schmidt junior Josefa Veit Leo Rudolf Raubal Franziska Braun Josepha Schicklgruber Hedwig Mickley Johann Baptist Pölzl Anna Maria Göschl Martin Hiedler Maria Schicklgruber Gretl Braun Adolf Koppensteiner Aloisia Veit Bridget Dowling Maria Koppensteiner Therese Schmidt Heinz Hitler
Johanna Hiedler, Maria Schicklgruber and Johann Baptist Pölzl are related to Adolf Hitler
Johanna Hiedler Maria Schicklgruber Johann Baptist Pölzl
action filter_type
action find
entity Adolf Hitler
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'Adolf Hitler']
SELECT DISTINCT ?k WHERE { resource:Adolf_Hitler property:relative ?k . ?k rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2779550
P26
Q502895
USER
Who is the spouse of that one ?
(c(Q502895),P26,Q2779550)
action filter_type
action find
entity Q2779550
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q2779550']
SELECT DISTINCT ?f WHERE { resource:Q2779550 property:P26 ?f . ?f rdf:type ontology:Q502895 }
Maria Schicklgruber
action filter_type
action find
entity Maria Schicklgruber
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Maria Schicklgruber']
SELECT DISTINCT ?f WHERE { resource:Maria_Schicklgruber property:spouse ?f . ?f rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q22132490
SYSTEM
Did you mean Johann Baptist Pölzl ?
Q6216378 Q2779550 Q22132490
(c(Q502895),P26,Q6216378) (c(Q502895),P26,Q2779550) (c(Q502895),P26,Q22132490)
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q6216378'] [{'concept': 'Q502895'}, 'P26', 'Q2779550'] [{'concept': 'Q502895'}, 'P26', 'Q22132490']
SELECT DISTINCT ?f WHERE { resource:Q2779550 property:P26 ?f . ?f rdf:type ontology:Q502895 }
Johanna Hiedler Maria Schicklgruber Johann Baptist Pölzl
Did you mean Johann Baptist Pölzl ?
Johann Baptist Pölzl
[{'concept': 'common name'}, 'spouse', 'Johanna Hiedler'] [{'concept': 'common name'}, 'spouse', 'Maria Schicklgruber'] [{'concept': 'common name'}, 'spouse', 'Johann Baptist Pölzl']
SELECT DISTINCT ?f WHERE { resource:Maria_Schicklgruber property:spouse ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Maria Schicklgruber. Could you tell me the answer for that?
(c(Q502895),P26,Q2779550)
Q2779550
[{'concept': 'Q502895'}, 'P26', 'Q2779550']
[{'concept': 'common name'}, 'spouse', 'Maria Schicklgruber']
[]
Q385804
SYSTEM
Johann Georg Hiedler
Q385804
(c(Q502895),P26,Q2779550)
action filter_type
action find
entity Q2779550
relation P26
type Q502895
The spouse of that one is born [ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q2779550']
SELECT DISTINCT ?f WHERE { resource:Q2779550 property:P26 ?f . ?f rdf:type ontology:Q502895 }
Johann Georg Hiedler
The spouse of that one is born Johann Georg Hiedler
Johann Georg Hiedler
action filter_type
action find
entity Maria Schicklgruber
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Maria Schicklgruber']
SELECT DISTINCT ?f WHERE { resource:Maria_Schicklgruber property:spouse ?f . ?f rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by atleast 1584 people ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1584
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?l ) AS ?b ) WHERE { ?l property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 } GROUP BY ?p } . FILTER ( ?b >= 1584 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1584
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?l ) AS ?b ) WHERE { ?l property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name } GROUP BY ?p } . FILTER ( ?b >= 1584 ) }
[]
musical instrument common name
SYSTEM
5
Q5994 Q8338 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1584
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?l ) AS ?b ) WHERE { ?l property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 } GROUP BY ?p } . FILTER ( ?b >= 1584 ) }
piano trumpet violin organ drum kit
5
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1584
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?l ) AS ?b ) WHERE { ?l property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name } GROUP BY ?p } . FILTER ( ?b >= 1584 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P941
Q502895 Q6619679 Q3305213
USER
Which people inspired min number of fictional humanoids and paintings ?
(c(Q6619679)|c(Q3305213),P941,c(Q502895))
action argmin
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q6619679
action find_reverse_tuple_counts
relation P941
type Q502895
type Q3305213
[[{'concept': 'Q6619679'}, {'concept': 'Q3305213'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) ?o WHERE { { ?n property:P941 ?o . ?o rdf:type ontology:Q502895 . ?n rdf:type ontology:Q3305213 } UNION { ?n property:P941 ?o . ?o rdf:type ontology:Q502895 . ?n rdf:type ontology:Q6619679 } } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?a WHERE { { ?t property:P941 ?a . ?a rdf:type ontology:Q502895 . ?t rdf:type ontology:Q6619679 } UNION { ?a rdf:type ontology:Q502895 . ?t rdf:type ontology:Q3305213 . ?t property:P941 ?a } } GROUP BY ?a } . FILTER ( ?l = ?f ) }
action argmin
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type fictional humanoid
action find_reverse_tuple_counts
relation inspired by
type common name
type painting
[[{'concept': 'fictional humanoid'}, {'concept': 'painting'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) ?o WHERE { { ?n property:inspired_by ?o . ?o rdf:type ontology:common_name . ?n rdf:type ontology:painting } UNION { ?n property:inspired_by ?o . ?o rdf:type ontology:common_name . ?n rdf:type ontology:fictional_humanoid } } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?a WHERE { { ?t property:inspired_by ?a . ?a rdf:type ontology:common_name . ?t rdf:type ontology:fictional_humanoid } UNION { ?a rdf:type ontology:common_name . ?t rdf:type ontology:painting . ?t property:inspired_by ?a } } GROUP BY ?a } . FILTER ( ?l = ?f ) }
[]
common name fictional humanoid painting
Q8016 Q352 Q1744
SYSTEM
Winston Churchill, Adolf Hitler, Madonna
Q207939 Q19738291 Q23380 Q3481979 Q40475 Q366380 Q334001 Q42229 Q5296307 Q19526 Q58801 Q129308 Q42305 Q558333 Q207447 Q560792 Q35548 Q1067550 Q2707376 Q180919 Q105719 Q205002 Q30755 Q37693 Q712955 Q302650 Q666171 Q531161 Q5383 Q8016 Q456270 Q127171 Q649801 Q43715 Q42786 Q5361548 Q312502 Q2864567 Q154545 Q5534471 Q1532260 Q892444 Q184226 Q228024 Q182450 Q183221 Q3047248 Q2617543 Q711129 Q81960 Q5592 Q352 Q145746 Q921798 Q7836 Q5594 Q538158 Q3984877 Q3741372 Q1508997 Q116462 Q357786 Q1779 Q310476 Q183458 Q34618 Q151573 Q3560424 Q947525 Q156268 Q56016 Q458779 Q73089 Q182462 Q1353414 Q575668 Q171745 Q100937 Q5669 Q5577 Q395274 Q272068 Q2437296 Q9077 Q443540 Q966425 Q1281170 Q47551 Q357951 Q676001 Q46373 Q5675905 Q267803 Q37079 Q103343 Q284047 Q464056 Q313270 Q48319 Q1288359 Q551643 Q2552694 Q3498875 Q273079 Q299271 Q9061 Q849 Q6577515 Q2975042 Q104109 Q16397 Q79031 Q150679 Q528428 Q177692 Q83359 Q2601617 Q6246943 Q163118 Q2402882 Q129429 Q5599 Q5545355 Q2121085 Q212531 Q5294232 Q463653 Q958996 Q483512 Q123075 Q835175 Q229432 Q123071 Q229437 Q44272 Q94002 Q49285 Q27429917 Q1744 Q1523 Q367447 Q5582 Q219640 Q5822 Q28493 Q5589 Q296 Q527735 Q352954 Q2181776 Q27429984 Q34013 Q2836532 Q712497 Q221464 Q263241 Q550426 Q356129 Q3925 Q34851 Q25328 Q26806 Q203219 Q983441 Q2552902 Q41554 Q83338 Q205365 Q624868 Q1953018 Q983352 Q255815 Q3036807 Q3290501 Q189067 Q1086874 Q471023 Q5432 Q2412941 Q297816 Q1896700 Q156622 Q354832 Q3525855 Q159907 Q210447 Q2373032 Q1401 Q3719992 Q199369 Q2110873 Q192222 Q83155 Q2965760 Q193406 Q3385369 Q733965 Q1278282 Q5053466 Q233845 Q3429566 Q513644 Q3047181 Q237813 Q44122 Q576222 Q578878
(c(Q6619679)|c(Q3305213),P941,c(Q502895))
action argmin
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q6619679
action find_reverse_tuple_counts
relation P941
type Q502895
type Q3305213
[ANSWERS] inspired min number of fictional humanoids and paintings
[[{'concept': 'Q6619679'}, {'concept': 'Q3305213'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) ?o WHERE { { ?n property:P941 ?o . ?o rdf:type ontology:Q502895 . ?n rdf:type ontology:Q3305213 } UNION { ?n property:P941 ?o . ?o rdf:type ontology:Q502895 . ?n rdf:type ontology:Q6619679 } } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?a WHERE { { ?t property:P941 ?a . ?a rdf:type ontology:Q502895 . ?t rdf:type ontology:Q6619679 } UNION { ?a rdf:type ontology:Q502895 . ?t rdf:type ontology:Q3305213 . ?t property:P941 ?a } } GROUP BY ?a } . FILTER ( ?l = ?f ) }
Alexander McQueen Walter O'Brien Jean Auguste Dominique Ingres Sherri Stoner Joan Crawford Allan Kaprow Thomas Cole Mel Gibson Donna Atwood Maya Angelou Conrad Veidt John of England Richard I of England Buddy Hackett Jean-Baptiste-Siméon Chardin Allan Ramsay Paul Cézanne Charmaine Craig Dick Jones Natalie Wood Jean Harlow Joe Grant Auguste Rodin Paul Gauguin Bobby Driscoll Tate Donovan John Marin Elizabeth Kenny David Bowie Winston Churchill Eleanor Audley Jean-Honoré Fragonard Fred Moore Vlad Tepes Audrey Hepburn Elisabeth Scott Fiorello H. La Guardia Art Stevens Léopold Sédar Senghor Geoffrey Bowers Al Hirschfeld Scott Weinger Gilles Deleuze John Smith George C. Scott Antoine Watteau Eddie Collins Marge Champion Terry-Thomas Robert Burns Michelangelo Adolf Hitler Joseph Sabu Dastagir René Magritte Antonello da Messina Balthasar Denner Jeffrey Stone Armand d'Athos Georges Manolescu Helen Gahagan Douglas Divine Louis Armstrong Fats Waller Andrea del Verrocchio Gustave Courbet Paul Signac Violet Gordon-Woodhouse Robert Gant Pierre Bourdieu Katharine Hepburn Kathryn Beaumont Gene Kelly Janet Gaynor Robert Gober Lionel Atwill Jeremy Irons Fred Astaire Sandro Botticelli Salvador Dalí Michael J. Fox Heather Angel Eric Larson Moses Ollie Johnston Charles Hubert Millevoye Frances Bavier Titian Mehran Karimi Nasseri Eugène Devéria Edgar Degas Andrés López Muñoz Spring Byington Tom Cruise Jennifer Connelly Christy Turlington Gala Dalí Jerome Kern Hans Holbein Félix González-Torres Jean Goujon Madge Blake Steve Carlson Cab Calloway Bahram V Karl Marx François Villon Samuel Claire Du Brey Mary Pickford Bruce Lee Mike Tyson Anthony van Dyck Douglas Fairbanks Jr Andrea Palladio James Dean Leonard Baskin John Martin Marguerite Yourcenar Helene Stanley Vivien Leigh Peter Paul Rubens George Turberville Walter Catlett Kate Moss Donald DeFreeze Marie-Thérèse Walter Irene Bedard Isadora Duncan Robert Walser Bernard Levin Lucretia Arnold Böcklin Donatella Versace Michel Foucault Barbara Stanwyck Sally Ride Michelle Stacy Madonna Ramesses II Louis Prima Vincent van Gogh Vincent Price Piero della Francesca Ralph Fiennes Henri Matisse Claude Monet Cedric Hardwicke Carel Fabritius Paul Collins John Culhane Georges Seurat Alice Ayres François Girardon Gilbert Gottfried Mary Wickes Jeffrey Katzenberg John Stamos Grace Kelly Elizabeth Taylor Antoni Gaudí Danny DeVito Boris Karloff Thomas Moran Hans Conried Nicolas Poussin Robin Williams Cain Charles Sheeler Pratibha Ray Il Pordenone Tallulah Bankhead Donnie Dunagan Margaret Kerry Alyssa Milano Christopher Newport Jimmy Durante Francisco de Goya The Fox and the Cat Sammy Davis, Jr. Marian Wright Edelman Giorgio de Chirico Pieter Claesz T. Hee David Hockney Mark Hamill Pierre Gringoire Petrarch Edward Maria Wingfield Naomi Campbell Natalie Venetia Belcon Lysippos Jacques-Louis David Christiane Faure Pocahontas Pierre Guillaume Jack Carlson Eastman Johnson Cathy McGowan Gale Sondergaard Rhoda Williams Ray Ventura Ed Kemmer Maila Nurmi Django Reinhardt Floris van Dyck Chief Powhatan
Winston Churchill, Adolf Hitler and Madonna inspired min number of fictional humanoids and paintings
Winston Churchill Adolf Hitler Madonna
action argmin
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type fictional humanoid
action find_reverse_tuple_counts
relation inspired by
type common name
type painting
[[{'concept': 'fictional humanoid'}, {'concept': 'painting'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) ?o WHERE { { ?n property:inspired_by ?o . ?o rdf:type ontology:common_name . ?n rdf:type ontology:painting } UNION { ?n property:inspired_by ?o . ?o rdf:type ontology:common_name . ?n rdf:type ontology:fictional_humanoid } } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?a WHERE { { ?t property:inspired_by ?a . ?a rdf:type ontology:common_name . ?t rdf:type ontology:fictional_humanoid } UNION { ?a rdf:type ontology:common_name . ?t rdf:type ontology:painting . ?t property:inspired_by ?a } } GROUP BY ?a } . FILTER ( ?l = ?f ) }
[]