Simple Question (Direct)
Simple Question
Q4695746
P21
Q290
USER
What is the sex of Ahmed Ali ?
(Q4695746,P21,c(Q290))
action filter_type
action find
entity Q4695746
relation P21
type Q290
['Q4695746', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q4695746 property:P21 ?c . ?c rdf:type ontology:Q290 }
Ahmed Ali
action filter_type
action find
entity Ahmed Ali
relation gender
type sex
['Ahmed Ali', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Ahmed_Ali property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4695746,P21,c(Q290))
action filter_type
action find
entity Q4695746
relation P21
type Q290
The sex of Ahmed Ali is a [ANSWER]
['Q4695746', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q4695746 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
The sex of Ahmed Ali is a male
male
action filter_type
action find
entity Ahmed Ali
relation gender
type sex
['Ahmed Ali', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Ahmed_Ali property:gender ?c . ?c rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7937619 Q4695746
P27 P17
Q15617994
USER
Which administrative territories are Ahmed Ali an inhabitant of or are Vivekananda Institute of Professional Studies a part of ?
OR((Q4695746,P27,c(Q15617994)), (Q7937619,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q4695746
relation P27
action find
entity Q7937619
relation P17
type Q15617994
{'OR': [['Q4695746', 'P27', {'concept': 'Q15617994'}], ['Q7937619', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q7937619 property:P17 ?y } UNION { resource:Q4695746 property:P27 ?y } } . ?y rdf:type ontology:Q15617994 }
Vivekananda Institute of Professional Studies Ahmed Ali
action filter_type
action union
action find
entity Ahmed Ali
relation country of citizenship
action find
entity Vivekananda Institute of Professional Studies
relation country
type designation for an administrative territorial entity
{'OR': [['Ahmed Ali', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Vivekananda Institute of Professional Studies', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Vivekananda_Institute_of_Professional_Studies property:country ?y } UNION { resource:Ahmed_Ali property:country_of_citizenship ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q79 Q668
SYSTEM
Egypt, India
Q79 Q668
OR((Q4695746,P27,c(Q15617994)), (Q7937619,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q4695746
relation P27
action find
entity Q7937619
relation P17
type Q15617994
[ANSWERS] are Ahmed Ali an inhabitant of or are Vivekananda Institute of Professional Studies a part of
{'OR': [['Q4695746', 'P27', {'concept': 'Q15617994'}], ['Q7937619', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q7937619 property:P17 ?y } UNION { resource:Q4695746 property:P27 ?y } } . ?y rdf:type ontology:Q15617994 }
Egypt India
Egypt and India are Ahmed Ali an inhabitant of or are Vivekananda Institute of Professional Studies a part of
Egypt India
action filter_type
action union
action find
entity Ahmed Ali
relation country of citizenship
action find
entity Vivekananda Institute of Professional Studies
relation country
type designation for an administrative territorial entity
{'OR': [['Ahmed Ali', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Vivekananda Institute of Professional Studies', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Vivekananda_Institute_of_Professional_Studies property:country ?y } UNION { resource:Ahmed_Ali property:country_of_citizenship ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q444380
P825
Q502895 Q16970 Q4989906
USER
Which people are approximately the same number of churches and monuments dedicated to as Imogen Holst ?
(c(Q16970)|c(Q4989906),P825,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q16970
action find_reverse_tuple_counts
relation P825
type Q502895
type Q4989906
action count
action filter_multi_types
action find_reverse
entity Q444380
relation P825
type Q16970
type Q4989906
[[{'concept': 'Q16970'}, {'concept': 'Q4989906'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?m ) WHERE { ?o rdf:type ?a . VALUES ( ?a ) { ( ontology:Q16970 ) ( ontology:Q4989906 ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { ?h property:P825 resource:Q444380 . { { ?h rdf:type ontology:Q16970 } UNION { ?h rdf:type ontology:Q4989906 } } } } . FILTER ( ?m = ?k ) }
Imogen Holst
action approx
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type church
action find_reverse_tuple_counts
relation dedicated to
type common name
type monument
action count
action filter_multi_types
action find_reverse
entity Imogen Holst
relation dedicated to
type church
type monument
[[{'concept': 'church'}, {'concept': 'monument'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?m ) WHERE { ?o rdf:type ?a . VALUES ( ?a ) { ( ontology:church ) ( ontology:monument ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { ?h property:dedicated_to resource:Imogen_Holst . { { ?h rdf:type ontology:church } UNION { ?h rdf:type ontology:monument } } } } . FILTER ( ?m = ?k ) }
[]
common name church monument
Q8016 Q937 Q8023
SYSTEM
Winston Churchill, Albert Einstein, Nelson Mandela
Q101698 Q152457 Q7402197 Q282498 Q4304989 Q4452364 Q7859824 Q181707 Q360420 Q1357149 Q318636 Q4218975 Q249719 Q18684004 Q534049 Q16846308 Q983142 Q314700 Q676555 Q392 Q11403872 Q85210 Q312747 Q12688 Q336692 Q770633 Q611078 Q207113 Q20748855 Q44344 Q16202312 Q184935 Q65318 Q658756 Q1774929 Q183126 Q382053 Q88927 Q572684 Q17812378 Q3190301 Q93373 Q457863 Q43675 Q150767 Q2575112 Q989 Q3109901 Q157176 Q2288858 Q44047 Q352978 Q2959487 Q972905 Q448890 Q937 Q935 Q849 Q283447 Q179718 Q2974965 Q7593283 Q1948037 Q747 Q5858974 Q173061 Q607495 Q235863 Q8605 Q19629510 Q5147053 Q43999 Q295090 Q18412922 Q351670 Q683792 Q3348840 Q2639031 Q685156 Q888326 Q62068 Q297 Q2959955 Q171411 Q558261 Q87621 Q94316 Q1236699 Q458014 Q11074321 Q7683954 Q7401372 Q93341 Q4218947 Q442516 Q313548 Q935496 Q461258 Q151967 Q132684 Q45380 Q192236 Q4130411 Q4127503 Q14345 Q38337 Q7446899 Q1398314 Q732526 Q200895 Q65290 Q1889720 Q55398 Q1394 Q22985873 Q43945 Q1064 Q4275175 Q1284971 Q5561411 Q612390 Q44039 Q44032 Q20643690 Q9025343 Q37693 Q704817 Q1666 Q120180 Q41117 Q174231 Q23900430 Q200188 Q170547 Q43399 Q417686 Q276404 Q541634 Q244383 Q460876 Q5249703 Q8023 Q155540 Q381815 Q878671 Q6699463 Q443559 Q535 Q2381536 Q115550 Q9439 Q539 Q42887 Q272899 Q170726 Q187550 Q2594000 Q313942 Q464192 Q379753 Q461104 Q298185 Q966298 Q1196817 Q433995 Q43600 Q271651 Q244852 Q5593 Q183085 Q57240 Q737198 Q466428 Q1246313 Q2376505 Q85760 Q160257 Q284560 Q314846 Q41568 Q20173462 Q697765 Q25089 Q20683560 Q724153 Q160614 Q369691 Q313093 Q43982 Q44248 Q1078192 Q32613 Q66005 Q454840 Q20644286 Q236326 Q42511 Q3719466 Q44258 Q18363 Q3401960 Q163900 Q4340905 Q7179512 Q11633375 Q499022 Q719428 Q237149 Q17590 Q311080 Q6695484 Q37064 Q160445 Q5623897 Q7732 Q1288566 Q541694 Q152727 Q29179 Q313970 Q6918007 Q3262373 Q7327 Q35548 Q570845 Q231690 Q6527 Q8195163 Q18535501 Q502943 Q44024 Q44020 Q77187 Q6955878 Q5837054 Q9455 Q2573616 Q313196 Q691402 Q369668 Q1714244 Q297483 Q1380238 Q1496 Q1036864 Q102527 Q51056 Q3392202 Q15432686 Q3398098 Q539427 Q462255 Q1088014 Q20757530 Q314802 Q2454699 Q8016 Q8018 Q645141 Q215333 Q272280 Q2853967 Q165274 Q700317 Q171977 Q316599 Q1398704 Q11403852 Q5318618 Q13132095 Q311791 Q4161262 Q167477 Q501 Q297742 Q2093405 Q183332 Q12872638 Q19595674 Q269520 Q2722964 Q204503 Q78657 Q234908 Q71231 Q7402252 Q4893207 Q27036912 Q727717 Q17308940 Q1132756 Q35149 Q23892327 Q636533 Q11619989 Q154353 Q2360522 Q13131020 Q119957 Q2025679 Q160149 Q382005 Q3401592 Q3770666 Q154232 Q551735 Q3618054 Q354519 Q349287 Q537553 Q154045 Q3399340 Q457433 Q767 Q552220 Q215572 Q3099236 Q157100 Q160435 Q3398315 Q472635 Q92467 Q316658 Q23894387 Q23991012 Q711836 Q3069570 Q6258837 Q1016482 Q709118 Q328341 Q581537 Q93362 Q538335 Q179971 Q11368835 Q773580 Q164294 Q164522 Q117710 Q11403867 Q461600 Q712653 Q23559 Q7401328 Q130777 Q130805 Q1268 Q504529 Q603655 Q352748 Q163366 Q6108547 Q20643663 Q6804706 Q1153323 Q17509259 Q11107790 Q43669 Q18126070 Q558148 Q289215 Q351715 Q33477 Q149727 Q7349 Q468122 Q16859956 Q1834624 Q503886 Q444380 Q1183310 Q360798 Q3372785 Q310462 Q10881970 Q170842 Q12718 Q132232 Q47120 Q63070 Q87567 Q216873 Q232803 Q238090 Q374467 Q3781346 Q174367 Q6203829 Q680538 Q179858 Q894757 Q5992912 Q3395811 Q7110271 Q45682 Q472851 Q982696 Q317997 Q221263 Q51885 Q123062 Q181689 Q964608 Q218690 Q80513 Q469572 Q5984068 Q151803 Q16766274 Q1293017 Q743830 Q3405091 Q16636868 Q82122 Q299179 Q836214 Q1337419 Q13132105 Q3305109 Q5623522 Q41309 Q354786
(c(Q16970)|c(Q4989906),P825,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q16970
action find_reverse_tuple_counts
relation P825
type Q502895
type Q4989906
action count
action filter_multi_types
action find_reverse
entity Q444380
relation P825
type Q16970
type Q4989906
[ANSWERS] are approximately the same number of churches and monuments dedicated to as Imogen Holst
[[{'concept': 'Q16970'}, {'concept': 'Q4989906'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?m ) WHERE { ?o rdf:type ?a . VALUES ( ?a ) { ( ontology:Q16970 ) ( ontology:Q4989906 ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { ?h property:P825 resource:Q444380 . { { ?h rdf:type ontology:Q16970 } UNION { ?h rdf:type ontology:Q4989906 } } } } . FILTER ( ?m = ?k ) }
Gaetano Donizetti Saint Roch Saint Sulien Gaspar Melchor de Jovellanos Mawgan Tathan Tyfrydog Charles Fourier Serge Lifar Giacomo Bassi Neville Marriner Saint Keyne Yui Caroline Weber Saint Petroc Saint Rhian Julian the Hospitaller Joachim Francis of Assisi Bob Dylan Kitabatake Akiyoshi Karl Ritter von Stremayr Leopoldo Alas Jean Jaurès Rodolphe Kreutzer Padarn António José de Ávila, 1st Duke of Ávila and Bolama Hippolytus Llawddog Hilary of Poitiers Nidan Mihai Eminescu Kibitsuhiko-no-mikoto Alof de Wignacourt Ferreolus Ramakrishna Antonio Sant'Elia Louis de Montfort Thomas-Alexandre Dumas Francisco Pintado Fe Just of Lyon Archduke Rudolf of Austria Ingeborg Bronsart von Schellendorf Philip the Apostle Benjamin Britten Winefride John Paul II Gohard Władysław Szpilman Moriyoshi-shinnō James, son of Alphaeus Antoine Wiertz Charles Joseph Lenoir Léon Goossens Charlotte Saunders Cushman Albert Einstein Isaac Newton François Villon Lambert of Maastricht Catherine of Alexandria Clair of Nantes St Govan Moritz Reichsgraf von Fries Pierre Corneille Fermín Canella Secades Syd Barrett Giuseppe De Nittis Genevieve Simón Bolívar Saint Goustan Collet Barker James Léon Gambetta Johann Georg von Browne-Camus Komitas Vardapet Kitabatake Chikafusa Octave Gréard Illtud Karl Alois, Prince Lichnowsky Bob Wills Princess Augusta of Hesse-Kassel Diego Velázquez Charles Panzéra Oda Nobunaga Saint Servatius Antonie Brentano Kikuchi Taketoki Giuseppe Sinigaglia Ottaviano Petrucci Kaneyoshi-shinnō Tanwg Iestyn Miles Davis Ceidio ap Einion Germanus of Auxerre Absalon Abundius Yamato Takeru Saint Blaise Saint-John Perse John Lewis Thomas Becket Anastasia Vyaltseva Ferrutio Roh Moo-hyun Alexandre Dumas Seiriol Paul Ladmirault José Guadalupe Posada Agatha of Sicily Constantine, Prince of Hohenzollern-Hechingen Cadoc Bernadette Soubirous Vladimir Lenin Elizabeth Jean Scott Jude the Apostle Alessandro Manzoni Maethlu Victor Maurus José Tartiere y Lenegre Beuno Ludwig II of Bavaria Egon Schiele Claude-Emma Debussy Luis Riera Posada Paul Gauguin Gorgonius Jacques Brel Alexander III of Russia Kim Il-sung Meiji Gwenog Jimmu Anthony the Great Andrew Nazarius Takeda Shingen Bobby Bland Rose of Lima Lenny Bruce Decuman Nelson Mandela Hans von Bülow Edmund the Martyr Untash-Napirisha Ludwika Jędrzejewicz Elizabeth Sprague Coolidge Victor Hugo Brynach Nicholas of Flüe Queen Victoria Giuseppe Diego Garibaldi Pacheco Clement I Sebastian of Portugal Enrico Caruso Toyotomi Hideyoshi Diego Brosset Go-Daigo Vladimir Stasov Benito Jerónimo Feijóo y Montenegro Jaroslav Vrchlický Samuel Sánchez Kusunoki Masatsura Maeda Toshiie Fujiwara no Kamatari Matthew the Apostle Michel Eugène Chevreul Gediminas Pablo Picasso Isabella II of Spain Ernst Bloch Kevin of Glendalough Philomena Dorothea von Ertmann Edith Cowan Giulietta Guicciardi Wanda Landowska Manuel Puig Emperor Kammu Michel de Montaigne Natalia Vladimirovna Trouhanowa Rudolf Maister Woody Allen Saeran Jesse Lauriston Livermore Skanderbeg Saint Ursula Herman Boerhaave Bartholomew the Apostle Jerome Dubricius Minamoto no Yoshiie Margrave Christian Ludwig of Brandenburg-Schwedt William Cullen Bryant Mathilde Zemlinsky Columba H. G. Wells Edmund Clarence Stedman Basil of Caesarea Alfonso XIII of Spain Fagan Saint Francis Xavier Bridget O'Connor Peulan Prince Toyokiirihiko Emmanuel Fremiet William Michael Rossetti Ida Rubinstein Lawrence of Rome Uesugi Kenshin Trillo Alexander Fleming Saint Boniface Gwynno Louis XVI of France Len Lye Joseph Merk Frederick William, Elector of Brandenburg Francisco Franco Anton Arensky Motoharu Sano Louis Jou Yuri Gagarin Paul Cézanne Joseph Franz von Lobkowitz B. R. Ambedkar Jean-Jacques Rousseau Alfonso Iglesias Celynnin Andrey Razumovsky Athanasius of Alexandria Saint Matthias Ferdinand von Hompesch zu Bolheim Defendens Ernesto Winter Blanco Vallabhbhai Patel Eric Fletcher Waters Louis Desaix Philip IV of Spain William Osler Justin the Confessor Ferdinando I de' Medici, Grand Duke of Tuscany Hugh d'Avranches, 1st Earl of Chester Ferdinand Magellan Kitabatake Akiie Robert Falcon Scott Franz Joseph I of Austria Plechelm Georges Vallet Sadwrn Johann Jacob Bach Marino Lejarreta Tewdrig Madame Autard de Bragard Tenji Cadwaladr Winston Churchill Augustine of Hippo Armando Palacio Valdés Carl Czerny Æthelwold Antoine Gailleton Jacques Prévert Yasuhito Chichibu Tokugawa Ieyasu Saint Maurice Alexander Wilhelm Gottschalg Kitabatake Morichika Dyfodwg Tybïe Nikolai Rubinstein Dyfnan Anthony of Padua Charles Baudelaire Margaret the Virgin Digain Saint Sebastian David of Euboea Tyfei Shōken Albinus of Angers Pablo Martín Melitón de Sarasate y Navascués Alfred Grünfeld Nezami| Charles the Bald Twrog Sabino Fernández Campo, 1st Count of Latores Cwyfan Ramón Pérez de Ayala James William Davison Sakai Tadatsugu Wilhelm Röntgen Morhaiarn Pedro Rodríguez, Conde de Campomanes Prince Uji no Wakiiratsuko François Arago Anna Petrovna Kern Rhidian Alexis Roland-Manuel Albert Thomas Mark Rothko Sugawara no Michizane Cynllo Giuseppe Ghislanzoni Alexander Suvorov Edgar Quinet Annibale Cressoni Charley Patton Sutoku Ludwig Schuncke Alexei Nikolaevich Cybi Sara Dylan Stéphane Mallarmé Giuseppe Zanardelli Felix Nussbaum Minamoto no Tsunemoto Margaret of Austria, Duchess of Savoy Gerrit Rietveld Tudno Gustav, Prince of Vasa Theodor Avé-Lallemant Go-Toba Rhwydrus Senwyr Philippe Pot Fernando de Valdés y Salas John Thomas Stanley, 1st Baron Stanley of Alderley Burkhard Nadolny Tim Birkin Robert Smithson Saint Cadfan Archduke Maximilian Francis of Austria Marianne Kirchgessner Chūai Shizuko Nogi Gianni Brera Saint Anna Hieda no Are Lorin Maazel Kitabatake Akinobu Teréz Brunszvik Henri Vernes Benito Mussolini Gredifael Kazimir Malevich George I of Great Britain Frédéric Chopin Theodore of Tarsus Fidelis of Como John Spencer Ezra Pound Ricardo Vázquez-Prada Blanco Hélène Bardac Mechell Danguolė Rasalaitė Saint Elli Kristjan Cavazza Thomas the Apostle Isan Leonard of Noblac Alejandro Boliviano Fruela I of Asturias Eugène Delacroix Saint Giles Joseph Haydn Nogi Maresuke Cawrdaf Gummarus Sterling Morrison Imogen Holst Deiniol Saint Eligius Paulino Vicente (padre) Saigō Takamori Itsuse no Mikoto Sergei Koroliov Auguste Comte Clara Schumann David Oistrakh Mary Magdalene Anton Rubinstein Pierre Puvis de Chavannes Empress Jingu Sholem Aleichem Gabriel of Our Lady of Sorrows Aida Lafuente Penaos Djoser Jiří Tancibudek Saint Teilo Urho Kekkonen Botwulf of Thorney Manuel Fernández Avello Dolores Medio Oudoceus Jean Sibelius Count Ferdinand Ernst Gabriel von Waldstein Bassel Khartabil Ōjin Philibert II, Duke of Savoy Thecla Jacques Necker Blind Willie McTell Lucien Pissarro Raymond Queneau Saint Cecilia John Nicholson Luis Noval Ferrao Piet Mondrian Michelle Vian Tysilio Wulfram of Sens Dyfan Crallo Jean-Baptiste de Lamarck Kōmei Princess Tōchi Emilio Alarcos Llorach Tysul Donatus of Evorea Gwenllwyfo Franz Liszt Jean-Louis-Ernest Meissonier
Winston Churchill, Albert Einstein and Nelson Mandela are approximately the same number of churches and monuments dedicated to as Imogen Holst
Winston Churchill Albert Einstein Nelson Mandela
action approx
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type church
action find_reverse_tuple_counts
relation dedicated to
type common name
type monument
action count
action filter_multi_types
action find_reverse
entity Imogen Holst
relation dedicated to
type church
type monument
[[{'concept': 'church'}, {'concept': 'monument'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?m ) WHERE { ?o rdf:type ?a . VALUES ( ?a ) { ( ontology:church ) ( ontology:monument ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { ?h property:dedicated_to resource:Imogen_Holst . { { ?h rdf:type ontology:church } UNION { ?h rdf:type ontology:monument } } } } . FILTER ( ?m = ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q336692
P825
Q502895 Q16970 Q4989906
USER
And what about Rodolphe Kreutzer?
(c(Q16970)|c(Q4989906),P825,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q16970
action find_reverse_tuple_counts
relation P825
type Q502895
type Q4989906
action count
action filter_multi_types
action find_reverse
entity Q336692
relation P825
type Q16970
type Q4989906
[[{'concept': 'Q16970'}, {'concept': 'Q4989906'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { ?h property:P825 resource:Q336692 . { { ?h rdf:type ontology:Q16970 } UNION { ?h rdf:type ontology:Q4989906 } } } } . FILTER ( ?p = ?o ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?r WHERE { { ?g property:P825 ?r . ?r rdf:type ontology:Q502895 . ?g rdf:type ontology:Q16970 } UNION { ?g property:P825 ?r . ?r rdf:type ontology:Q502895 . ?g rdf:type ontology:Q4989906 } } GROUP BY ?r } }
Rodolphe Kreutzer
action approx
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type church
action find_reverse_tuple_counts
relation dedicated to
type common name
type monument
action count
action filter_multi_types
action find_reverse
entity Rodolphe Kreutzer
relation dedicated to
type church
type monument
[[{'concept': 'church'}, {'concept': 'monument'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { ?h property:dedicated_to resource:Rodolphe_Kreutzer . { { ?h rdf:type ontology:church } UNION { ?h rdf:type ontology:monument } } } } . FILTER ( ?p = ?o ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?r WHERE { { ?g property:dedicated_to ?r . ?r rdf:type ontology:common_name . ?g rdf:type ontology:church } UNION { ?g property:dedicated_to ?r . ?r rdf:type ontology:common_name . ?g rdf:type ontology:monument } } GROUP BY ?r } }
[]
common name church monument
Q8016 Q937 Q8023
SYSTEM
Winston Churchill, Albert Einstein, Nelson Mandela
Q101698 Q152457 Q7402197 Q282498 Q4304989 Q4452364 Q7859824 Q181707 Q360420 Q1357149 Q318636 Q4218975 Q249719 Q18684004 Q534049 Q16846308 Q983142 Q314700 Q676555 Q392 Q11403872 Q85210 Q312747 Q12688 Q336692 Q770633 Q611078 Q207113 Q20748855 Q44344 Q16202312 Q184935 Q65318 Q658756 Q1774929 Q183126 Q382053 Q88927 Q572684 Q17812378 Q3190301 Q93373 Q457863 Q43675 Q150767 Q2575112 Q989 Q3109901 Q157176 Q2288858 Q44047 Q352978 Q2959487 Q972905 Q448890 Q937 Q935 Q849 Q283447 Q179718 Q2974965 Q7593283 Q1948037 Q747 Q5858974 Q173061 Q607495 Q235863 Q8605 Q19629510 Q5147053 Q43999 Q295090 Q18412922 Q351670 Q683792 Q3348840 Q2639031 Q685156 Q888326 Q62068 Q297 Q2959955 Q171411 Q558261 Q87621 Q94316 Q1236699 Q458014 Q11074321 Q7683954 Q7401372 Q93341 Q4218947 Q442516 Q313548 Q935496 Q461258 Q151967 Q132684 Q45380 Q192236 Q4130411 Q4127503 Q14345 Q38337 Q7446899 Q1398314 Q732526 Q200895 Q65290 Q1889720 Q55398 Q1394 Q22985873 Q43945 Q1064 Q4275175 Q1284971 Q5561411 Q612390 Q44039 Q44032 Q20643690 Q9025343 Q37693 Q704817 Q1666 Q120180 Q41117 Q174231 Q23900430 Q200188 Q170547 Q43399 Q417686 Q276404 Q541634 Q244383 Q460876 Q5249703 Q8023 Q155540 Q381815 Q878671 Q6699463 Q443559 Q535 Q2381536 Q115550 Q9439 Q539 Q42887 Q272899 Q170726 Q187550 Q2594000 Q313942 Q464192 Q379753 Q461104 Q298185 Q966298 Q1196817 Q433995 Q43600 Q271651 Q244852 Q5593 Q183085 Q57240 Q737198 Q466428 Q1246313 Q2376505 Q85760 Q160257 Q284560 Q314846 Q41568 Q20173462 Q697765 Q25089 Q20683560 Q724153 Q160614 Q369691 Q313093 Q43982 Q44248 Q1078192 Q32613 Q66005 Q454840 Q20644286 Q236326 Q42511 Q3719466 Q44258 Q18363 Q3401960 Q163900 Q4340905 Q7179512 Q11633375 Q499022 Q719428 Q237149 Q17590 Q311080 Q6695484 Q37064 Q160445 Q5623897 Q7732 Q1288566 Q541694 Q152727 Q29179 Q313970 Q6918007 Q3262373 Q7327 Q35548 Q570845 Q231690 Q6527 Q8195163 Q18535501 Q502943 Q44024 Q44020 Q77187 Q6955878 Q5837054 Q9455 Q2573616 Q313196 Q691402 Q369668 Q1714244 Q297483 Q1380238 Q1496 Q1036864 Q102527 Q51056 Q3392202 Q15432686 Q3398098 Q539427 Q462255 Q1088014 Q20757530 Q314802 Q2454699 Q8016 Q8018 Q645141 Q215333 Q272280 Q2853967 Q165274 Q700317 Q171977 Q316599 Q1398704 Q11403852 Q5318618 Q13132095 Q311791 Q4161262 Q167477 Q501 Q297742 Q2093405 Q183332 Q12872638 Q19595674 Q269520 Q2722964 Q204503 Q78657 Q234908 Q71231 Q7402252 Q4893207 Q27036912 Q727717 Q17308940 Q1132756 Q35149 Q23892327 Q636533 Q11619989 Q154353 Q2360522 Q13131020 Q119957 Q2025679 Q160149 Q382005 Q3401592 Q3770666 Q154232 Q551735 Q3618054 Q354519 Q349287 Q537553 Q154045 Q3399340 Q457433 Q767 Q552220 Q215572 Q3099236 Q157100 Q160435 Q3398315 Q472635 Q92467 Q316658 Q23894387 Q23991012 Q711836 Q3069570 Q6258837 Q1016482 Q709118 Q328341 Q581537 Q93362 Q538335 Q179971 Q11368835 Q773580 Q164294 Q164522 Q117710 Q11403867 Q461600 Q712653 Q23559 Q7401328 Q130777 Q130805 Q1268 Q504529 Q603655 Q352748 Q163366 Q6108547 Q20643663 Q6804706 Q1153323 Q17509259 Q11107790 Q43669 Q18126070 Q558148 Q289215 Q351715 Q33477 Q149727 Q7349 Q468122 Q16859956 Q1834624 Q503886 Q444380 Q1183310 Q360798 Q3372785 Q310462 Q10881970 Q170842 Q12718 Q132232 Q47120 Q63070 Q87567 Q216873 Q232803 Q238090 Q374467 Q3781346 Q174367 Q6203829 Q680538 Q179858 Q894757 Q5992912 Q3395811 Q7110271 Q45682 Q472851 Q982696 Q317997 Q221263 Q51885 Q123062 Q181689 Q964608 Q218690 Q80513 Q469572 Q5984068 Q151803 Q16766274 Q1293017 Q743830 Q3405091 Q16636868 Q82122 Q299179 Q836214 Q1337419 Q13132105 Q3305109 Q5623522 Q41309 Q354786
(c(Q16970)|c(Q4989906),P825,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q16970
action find_reverse_tuple_counts
relation P825
type Q502895
type Q4989906
action count
action filter_multi_types
action find_reverse
entity Q336692
relation P825
type Q16970
type Q4989906
[ANSWERS]
[[{'concept': 'Q16970'}, {'concept': 'Q4989906'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { ?h property:P825 resource:Q336692 . { { ?h rdf:type ontology:Q16970 } UNION { ?h rdf:type ontology:Q4989906 } } } } . FILTER ( ?p = ?o ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?r WHERE { { ?g property:P825 ?r . ?r rdf:type ontology:Q502895 . ?g rdf:type ontology:Q16970 } UNION { ?g property:P825 ?r . ?r rdf:type ontology:Q502895 . ?g rdf:type ontology:Q4989906 } } GROUP BY ?r } }
Gaetano Donizetti Saint Roch Saint Sulien Gaspar Melchor de Jovellanos Mawgan Tathan Tyfrydog Charles Fourier Serge Lifar Giacomo Bassi Neville Marriner Saint Keyne Yui Caroline Weber Saint Petroc Saint Rhian Julian the Hospitaller Joachim Francis of Assisi Bob Dylan Kitabatake Akiyoshi Karl Ritter von Stremayr Leopoldo Alas Jean Jaurès Rodolphe Kreutzer Padarn António José de Ávila, 1st Duke of Ávila and Bolama Hippolytus Llawddog Hilary of Poitiers Nidan Mihai Eminescu Kibitsuhiko-no-mikoto Alof de Wignacourt Ferreolus Ramakrishna Antonio Sant'Elia Louis de Montfort Thomas-Alexandre Dumas Francisco Pintado Fe Just of Lyon Archduke Rudolf of Austria Ingeborg Bronsart von Schellendorf Philip the Apostle Benjamin Britten Winefride John Paul II Gohard Władysław Szpilman Moriyoshi-shinnō James, son of Alphaeus Antoine Wiertz Charles Joseph Lenoir Léon Goossens Charlotte Saunders Cushman Albert Einstein Isaac Newton François Villon Lambert of Maastricht Catherine of Alexandria Clair of Nantes St Govan Moritz Reichsgraf von Fries Pierre Corneille Fermín Canella Secades Syd Barrett Giuseppe De Nittis Genevieve Simón Bolívar Saint Goustan Collet Barker James Léon Gambetta Johann Georg von Browne-Camus Komitas Vardapet Kitabatake Chikafusa Octave Gréard Illtud Karl Alois, Prince Lichnowsky Bob Wills Princess Augusta of Hesse-Kassel Diego Velázquez Charles Panzéra Oda Nobunaga Saint Servatius Antonie Brentano Kikuchi Taketoki Giuseppe Sinigaglia Ottaviano Petrucci Kaneyoshi-shinnō Tanwg Iestyn Miles Davis Ceidio ap Einion Germanus of Auxerre Absalon Abundius Yamato Takeru Saint Blaise Saint-John Perse John Lewis Thomas Becket Anastasia Vyaltseva Ferrutio Roh Moo-hyun Alexandre Dumas Seiriol Paul Ladmirault José Guadalupe Posada Agatha of Sicily Constantine, Prince of Hohenzollern-Hechingen Cadoc Bernadette Soubirous Vladimir Lenin Elizabeth Jean Scott Jude the Apostle Alessandro Manzoni Maethlu Victor Maurus José Tartiere y Lenegre Beuno Ludwig II of Bavaria Egon Schiele Claude-Emma Debussy Luis Riera Posada Paul Gauguin Gorgonius Jacques Brel Alexander III of Russia Kim Il-sung Meiji Gwenog Jimmu Anthony the Great Andrew Nazarius Takeda Shingen Bobby Bland Rose of Lima Lenny Bruce Decuman Nelson Mandela Hans von Bülow Edmund the Martyr Untash-Napirisha Ludwika Jędrzejewicz Elizabeth Sprague Coolidge Victor Hugo Brynach Nicholas of Flüe Queen Victoria Giuseppe Diego Garibaldi Pacheco Clement I Sebastian of Portugal Enrico Caruso Toyotomi Hideyoshi Diego Brosset Go-Daigo Vladimir Stasov Benito Jerónimo Feijóo y Montenegro Jaroslav Vrchlický Samuel Sánchez Kusunoki Masatsura Maeda Toshiie Fujiwara no Kamatari Matthew the Apostle Michel Eugène Chevreul Gediminas Pablo Picasso Isabella II of Spain Ernst Bloch Kevin of Glendalough Philomena Dorothea von Ertmann Edith Cowan Giulietta Guicciardi Wanda Landowska Manuel Puig Emperor Kammu Michel de Montaigne Natalia Vladimirovna Trouhanowa Rudolf Maister Woody Allen Saeran Jesse Lauriston Livermore Skanderbeg Saint Ursula Herman Boerhaave Bartholomew the Apostle Jerome Dubricius Minamoto no Yoshiie Margrave Christian Ludwig of Brandenburg-Schwedt William Cullen Bryant Mathilde Zemlinsky Columba H. G. Wells Edmund Clarence Stedman Basil of Caesarea Alfonso XIII of Spain Fagan Saint Francis Xavier Bridget O'Connor Peulan Prince Toyokiirihiko Emmanuel Fremiet William Michael Rossetti Ida Rubinstein Lawrence of Rome Uesugi Kenshin Trillo Alexander Fleming Saint Boniface Gwynno Louis XVI of France Len Lye Joseph Merk Frederick William, Elector of Brandenburg Francisco Franco Anton Arensky Motoharu Sano Louis Jou Yuri Gagarin Paul Cézanne Joseph Franz von Lobkowitz B. R. Ambedkar Jean-Jacques Rousseau Alfonso Iglesias Celynnin Andrey Razumovsky Athanasius of Alexandria Saint Matthias Ferdinand von Hompesch zu Bolheim Defendens Ernesto Winter Blanco Vallabhbhai Patel Eric Fletcher Waters Louis Desaix Philip IV of Spain William Osler Justin the Confessor Ferdinando I de' Medici, Grand Duke of Tuscany Hugh d'Avranches, 1st Earl of Chester Ferdinand Magellan Kitabatake Akiie Robert Falcon Scott Franz Joseph I of Austria Plechelm Georges Vallet Sadwrn Johann Jacob Bach Marino Lejarreta Tewdrig Madame Autard de Bragard Tenji Cadwaladr Winston Churchill Augustine of Hippo Armando Palacio Valdés Carl Czerny Æthelwold Antoine Gailleton Jacques Prévert Yasuhito Chichibu Tokugawa Ieyasu Saint Maurice Alexander Wilhelm Gottschalg Kitabatake Morichika Dyfodwg Tybïe Nikolai Rubinstein Dyfnan Anthony of Padua Charles Baudelaire Margaret the Virgin Digain Saint Sebastian David of Euboea Tyfei Shōken Albinus of Angers Pablo Martín Melitón de Sarasate y Navascués Alfred Grünfeld Nezami| Charles the Bald Twrog Sabino Fernández Campo, 1st Count of Latores Cwyfan Ramón Pérez de Ayala James William Davison Sakai Tadatsugu Wilhelm Röntgen Morhaiarn Pedro Rodríguez, Conde de Campomanes Prince Uji no Wakiiratsuko François Arago Anna Petrovna Kern Rhidian Alexis Roland-Manuel Albert Thomas Mark Rothko Sugawara no Michizane Cynllo Giuseppe Ghislanzoni Alexander Suvorov Edgar Quinet Annibale Cressoni Charley Patton Sutoku Ludwig Schuncke Alexei Nikolaevich Cybi Sara Dylan Stéphane Mallarmé Giuseppe Zanardelli Felix Nussbaum Minamoto no Tsunemoto Margaret of Austria, Duchess of Savoy Gerrit Rietveld Tudno Gustav, Prince of Vasa Theodor Avé-Lallemant Go-Toba Rhwydrus Senwyr Philippe Pot Fernando de Valdés y Salas John Thomas Stanley, 1st Baron Stanley of Alderley Burkhard Nadolny Tim Birkin Robert Smithson Saint Cadfan Archduke Maximilian Francis of Austria Marianne Kirchgessner Chūai Shizuko Nogi Gianni Brera Saint Anna Hieda no Are Lorin Maazel Kitabatake Akinobu Teréz Brunszvik Henri Vernes Benito Mussolini Gredifael Kazimir Malevich George I of Great Britain Frédéric Chopin Theodore of Tarsus Fidelis of Como John Spencer Ezra Pound Ricardo Vázquez-Prada Blanco Hélène Bardac Mechell Danguolė Rasalaitė Saint Elli Kristjan Cavazza Thomas the Apostle Isan Leonard of Noblac Alejandro Boliviano Fruela I of Asturias Eugène Delacroix Saint Giles Joseph Haydn Nogi Maresuke Cawrdaf Gummarus Sterling Morrison Imogen Holst Deiniol Saint Eligius Paulino Vicente (padre) Saigō Takamori Itsuse no Mikoto Sergei Koroliov Auguste Comte Clara Schumann David Oistrakh Mary Magdalene Anton Rubinstein Pierre Puvis de Chavannes Empress Jingu Sholem Aleichem Gabriel of Our Lady of Sorrows Aida Lafuente Penaos Djoser Jiří Tancibudek Saint Teilo Urho Kekkonen Botwulf of Thorney Manuel Fernández Avello Dolores Medio Oudoceus Jean Sibelius Count Ferdinand Ernst Gabriel von Waldstein Bassel Khartabil Ōjin Philibert II, Duke of Savoy Thecla Jacques Necker Blind Willie McTell Lucien Pissarro Raymond Queneau Saint Cecilia John Nicholson Luis Noval Ferrao Piet Mondrian Michelle Vian Tysilio Wulfram of Sens Dyfan Crallo Jean-Baptiste de Lamarck Kōmei Princess Tōchi Emilio Alarcos Llorach Tysul Donatus of Evorea Gwenllwyfo Franz Liszt Jean-Louis-Ernest Meissonier
Winston Churchill Albert Einstein Nelson Mandela
action approx
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type church
action find_reverse_tuple_counts
relation dedicated to
type common name
type monument
action count
action filter_multi_types
action find_reverse
entity Rodolphe Kreutzer
relation dedicated to
type church
type monument
[[{'concept': 'church'}, {'concept': 'monument'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { ?h property:dedicated_to resource:Rodolphe_Kreutzer . { { ?h rdf:type ontology:church } UNION { ?h rdf:type ontology:monument } } } } . FILTER ( ?p = ?o ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?r WHERE { { ?g property:dedicated_to ?r . ?r rdf:type ontology:common_name . ?g rdf:type ontology:church } UNION { ?g property:dedicated_to ?r . ?r rdf:type ontology:common_name . ?g rdf:type ontology:monument } } GROUP BY ?r } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P180
Q838948 Q18783400
USER
How many works of art or genres of sculpture demonstrate that person ?
(c(Q838948),P180,Q8016) (c(Q18783400),P180,Q8016) (c(Q838948),P180,Q8016) (c(Q18783400),P180,Q8016) (c(Q838948),P180,Q937) (c(Q18783400),P180,Q937) (c(Q838948),P180,Q8023) (c(Q18783400),P180,Q8023)
[{'concept': 'Q838948'}, 'P180', 'Q8016'] [{'concept': 'Q18783400'}, 'P180', 'Q8016'] [{'concept': 'Q838948'}, 'P180', 'Q8016'] [{'concept': 'Q18783400'}, 'P180', 'Q8016'] [{'concept': 'Q838948'}, 'P180', 'Q937'] [{'concept': 'Q18783400'}, 'P180', 'Q937'] [{'concept': 'Q838948'}, 'P180', 'Q8023'] [{'concept': 'Q18783400'}, 'P180', 'Q8023']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P180 resource:Q2916076 } UNION { ?y property:P180 resource:Q2916076 } UNION { ?z property:P180 resource:Q2916076 } UNION { ?y property:P180 resource:Q2916076 } UNION { ?z property:P180 resource:Q13426745 } UNION { ?y property:P180 resource:Q13426745 } UNION { ?z property:P180 resource:Q10797487 } UNION { ?y property:P180 resource:Q10797487 } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q18783400 }
[{'concept': 'work of art'}, 'depicts', 'Winston Churchill'] [{'concept': 'genre of sculpture'}, 'depicts', 'Winston Churchill'] [{'concept': 'work of art'}, 'depicts', 'Winston Churchill'] [{'concept': 'genre of sculpture'}, 'depicts', 'Winston Churchill'] [{'concept': 'work of art'}, 'depicts', 'Albert Einstein'] [{'concept': 'genre of sculpture'}, 'depicts', 'Albert Einstein'] [{'concept': 'work of art'}, 'depicts', 'Nelson Mandela'] [{'concept': 'genre of sculpture'}, 'depicts', 'Nelson Mandela']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:depicts resource:Winston_Churchill } UNION { ?y property:depicts resource:Winston_Churchill } UNION { ?z property:depicts resource:Winston_Churchill } UNION { ?y property:depicts resource:Winston_Churchill } UNION { ?z property:depicts resource:Albert_Einstein } UNION { ?y property:depicts resource:Albert_Einstein } UNION { ?z property:depicts resource:Nelson_Mandela } UNION { ?y property:depicts resource:Nelson_Mandela } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:genre_of_sculpture }
[]
work of art genre of sculpture
Quantitative|Count|Mult. entity type|Clarification
Q8023
SYSTEM
Did you mean Nelson Mandela ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P180 resource:Q2916076 } UNION { ?y property:P180 resource:Q2916076 } UNION { ?z property:P180 resource:Q2916076 } UNION { ?y property:P180 resource:Q2916076 } UNION { ?z property:P180 resource:Q13426745 } UNION { ?y property:P180 resource:Q13426745 } UNION { ?z property:P180 resource:Q10797487 } UNION { ?y property:P180 resource:Q10797487 } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q18783400 }
Did you mean Nelson Mandela ?
Nelson Mandela
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:depicts resource:Winston_Churchill } UNION { ?y property:depicts resource:Winston_Churchill } UNION { ?z property:depicts resource:Winston_Churchill } UNION { ?y property:depicts resource:Winston_Churchill } UNION { ?z property:depicts resource:Albert_Einstein } UNION { ?y property:depicts resource:Albert_Einstein } UNION { ?z property:depicts resource:Nelson_Mandela } UNION { ?y property:depicts resource:Nelson_Mandela } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:genre_of_sculpture }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Winston Churchill. Could you tell me the answer for that?
(c(Q838948),P180,Q8016) (c(Q18783400),P180,Q8016) (c(Q838948),P180,Q8016) (c(Q18783400),P180,Q8016) (c(Q838948),P180,Q937) (c(Q18783400),P180,Q937) (c(Q838948),P180,Q8023) (c(Q18783400),P180,Q8023)
Q8016
[{'concept': 'Q838948'}, 'P180', 'Q8016'] [{'concept': 'Q18783400'}, 'P180', 'Q8016'] [{'concept': 'Q838948'}, 'P180', 'Q8016'] [{'concept': 'Q18783400'}, 'P180', 'Q8016'] [{'concept': 'Q838948'}, 'P180', 'Q937'] [{'concept': 'Q18783400'}, 'P180', 'Q937'] [{'concept': 'Q838948'}, 'P180', 'Q8023'] [{'concept': 'Q18783400'}, 'P180', 'Q8023']
[{'concept': 'work of art'}, 'depicts', 'Winston Churchill'] [{'concept': 'genre of sculpture'}, 'depicts', 'Winston Churchill'] [{'concept': 'work of art'}, 'depicts', 'Winston Churchill'] [{'concept': 'genre of sculpture'}, 'depicts', 'Winston Churchill'] [{'concept': 'work of art'}, 'depicts', 'Albert Einstein'] [{'concept': 'genre of sculpture'}, 'depicts', 'Albert Einstein'] [{'concept': 'work of art'}, 'depicts', 'Nelson Mandela'] [{'concept': 'genre of sculpture'}, 'depicts', 'Nelson Mandela']
[]
SYSTEM
2
Q7604505 Q1524036
(c(Q838948),P180,Q8016) (c(Q18783400),P180,Q8016) (c(Q838948),P180,Q8016) (c(Q18783400),P180,Q8016) (c(Q838948),P180,Q937) (c(Q18783400),P180,Q937) (c(Q838948),P180,Q8023) (c(Q18783400),P180,Q8023)
[ANSWER]
[{'concept': 'Q838948'}, 'P180', 'Q8016'] [{'concept': 'Q18783400'}, 'P180', 'Q8016'] [{'concept': 'Q838948'}, 'P180', 'Q8016'] [{'concept': 'Q18783400'}, 'P180', 'Q8016'] [{'concept': 'Q838948'}, 'P180', 'Q937'] [{'concept': 'Q18783400'}, 'P180', 'Q937'] [{'concept': 'Q838948'}, 'P180', 'Q8023'] [{'concept': 'Q18783400'}, 'P180', 'Q8023']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P180 resource:Q2916076 } UNION { ?y property:P180 resource:Q2916076 } UNION { ?z property:P180 resource:Q2916076 } UNION { ?y property:P180 resource:Q2916076 } UNION { ?z property:P180 resource:Q13426745 } UNION { ?y property:P180 resource:Q13426745 } UNION { ?z property:P180 resource:Q10797487 } UNION { ?y property:P180 resource:Q10797487 } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q18783400 }
Statue of Winston Churchill Tapestry of the Century
2
[{'concept': 'work of art'}, 'depicts', 'Winston Churchill'] [{'concept': 'genre of sculpture'}, 'depicts', 'Winston Churchill'] [{'concept': 'work of art'}, 'depicts', 'Winston Churchill'] [{'concept': 'genre of sculpture'}, 'depicts', 'Winston Churchill'] [{'concept': 'work of art'}, 'depicts', 'Albert Einstein'] [{'concept': 'genre of sculpture'}, 'depicts', 'Albert Einstein'] [{'concept': 'work of art'}, 'depicts', 'Nelson Mandela'] [{'concept': 'genre of sculpture'}, 'depicts', 'Nelson Mandela']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:depicts resource:Winston_Churchill } UNION { ?y property:depicts resource:Winston_Churchill } UNION { ?z property:depicts resource:Winston_Churchill } UNION { ?y property:depicts resource:Winston_Churchill } UNION { ?z property:depicts resource:Albert_Einstein } UNION { ?y property:depicts resource:Albert_Einstein } UNION { ?z property:depicts resource:Nelson_Mandela } UNION { ?y property:depicts resource:Nelson_Mandela } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:genre_of_sculpture }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q937
P937
Q56061
USER
Where did Albert Einstein work ?
(Q937,P937,c(Q56061))
action filter_type
action find
entity Q937
relation P937
type Q56061
['Q937', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q937 property:P937 ?r . ?r rdf:type ontology:Q56061 }
Albert Einstein
action filter_type
action find
entity Albert Einstein
relation work location
type administrative territorial entity
['Albert Einstein', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Albert_Einstein property:work_location ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1085 Q72 Q64
SYSTEM
Prague, Zürich, Berlin
Q64 Q72 Q1085 Q70
(Q937,P937,c(Q56061))
action filter_type
action find
entity Q937
relation P937
type Q56061
Albert Einstein worked in [ANSWERS]
['Q937', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q937 property:P937 ?r . ?r rdf:type ontology:Q56061 }
Berlin Zürich Prague Bern
Albert Einstein worked in Prague, Zürich and Berlin
Prague Zürich Berlin
action filter_type
action find
entity Albert Einstein
relation work location
type administrative territorial entity
['Albert Einstein', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Albert_Einstein property:work_location ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q19297582
Q56061
USER
And what about Olaf Sundermeyer?
(Q19297582,P937,c(Q56061))
action filter_type
action find
entity Q19297582
relation P937
type Q56061
['Q19297582', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q19297582 property:P937 ?d . ?d rdf:type ontology:Q56061 }
Olaf Sundermeyer
action filter_type
action find
entity Olaf Sundermeyer
relation work location
type administrative territorial entity
['Olaf Sundermeyer', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Olaf_Sundermeyer property:work_location ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q19297582,P937,c(Q56061))
action filter_type
action find
entity Q19297582
relation P937
type Q56061
[ANSWER]
['Q19297582', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q19297582 property:P937 ?d . ?d rdf:type ontology:Q56061 }
Berlin
Berlin
action filter_type
action find
entity Olaf Sundermeyer
relation work location
type administrative territorial entity
['Olaf Sundermeyer', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Olaf_Sundermeyer property:work_location ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19297582
P106
Q12737077
USER
Which occupation is the profession of that person ?
(Q64,P106,c(Q12737077))
action filter_type
action find
entity Q19297582
relation P106
type Q12737077
['Q64', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q19297582 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
Olaf Sundermeyer
action filter_type
action find
entity Olaf Sundermeyer
relation occupation
type occupation
['Berlin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Olaf_Sundermeyer property:occupation ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q1930187
SYSTEM
journalist
Q1930187
(Q64,P106,c(Q12737077))
action filter_type
action find
entity Q19297582
relation P106
type Q12737077
The [ANSWER] is the profession of that person
['Q64', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q19297582 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
journalist
The journalist is the profession of that person
journalist
action filter_type
action find
entity Olaf Sundermeyer
relation occupation
type occupation
['Berlin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Olaf_Sundermeyer property:occupation ?e . ?e rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q2335249 Q19297582
P106
Q12737077
USER
Or Ignacy Dworczanin?
OR((Q19297582,P106,c(Q12737077)), (Q2335249,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q19297582
relation P106
action find
entity Q2335249
relation P106
type Q12737077
{'OR': [['Q19297582', 'P106', {'concept': 'Q12737077'}], ['Q2335249', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q2335249 property:P106 ?l } UNION { resource:Q19297582 property:P106 ?l } } . ?l rdf:type ontology:Q12737077 }
Ignacy Dworczanin Olaf Sundermeyer
action filter_type
action union
action find
entity Olaf Sundermeyer
relation occupation
action find
entity Ignacy Dworczanin
relation occupation
type occupation
{'OR': [['Olaf Sundermeyer', 'occupation', {'concept': 'occupation'}], ['Ignacy Dworczanin', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Ignacy_Dworczanin property:occupation ?l } UNION { resource:Olaf_Sundermeyer property:occupation ?l } } . ?l rdf:type ontology:occupation }
[]
occupation
Q1930187 Q17167049 Q49757
SYSTEM
journalist, specialist in literature, poet
Q1930187 Q17167049 Q49757
OR((Q19297582,P106,c(Q12737077)), (Q2335249,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q19297582
relation P106
action find
entity Q2335249
relation P106
type Q12737077
[ANSWERS]
{'OR': [['Q19297582', 'P106', {'concept': 'Q12737077'}], ['Q2335249', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q2335249 property:P106 ?l } UNION { resource:Q19297582 property:P106 ?l } } . ?l rdf:type ontology:Q12737077 }
journalist specialist in literature poet
journalist specialist in literature poet
action filter_type
action union
action find
entity Olaf Sundermeyer
relation occupation
action find
entity Ignacy Dworczanin
relation occupation
type occupation
{'OR': [['Olaf Sundermeyer', 'occupation', {'concept': 'occupation'}], ['Ignacy Dworczanin', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Ignacy_Dworczanin property:occupation ?l } UNION { resource:Olaf_Sundermeyer property:occupation ?l } } . ?l rdf:type ontology:occupation }
[]