Simple Question (Direct)
Simple Question
Q16153
P6
Q502895
USER
Which person does Province of Caserta serve as the head of government for ?
(Q16153,P6,c(Q502895))
action filter_type
action find
entity Q16153
relation P6
type Q502895
['Q16153', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q16153 property:P6 ?u . ?u rdf:type ontology:Q502895 }
Province of Caserta
action filter_type
action find
entity Province of Caserta
relation head of government
type common name
['Province of Caserta', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Province_of_Caserta property:head_of_government ?u . ?u rdf:type ontology:common_name }
[]
common name
Q3713288
SYSTEM
Domenico Zinzi
Q3713288
(Q16153,P6,c(Q502895))
action filter_type
action find
entity Q16153
relation P6
type Q502895
Province of Caserta serves [ANSWER] as the head of government
['Q16153', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q16153 property:P6 ?u . ?u rdf:type ontology:Q502895 }
Domenico Zinzi
Province of Caserta serves Domenico Zinzi as the head of government
Domenico Zinzi
action filter_type
action find
entity Province of Caserta
relation head of government
type common name
['Province of Caserta', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Province_of_Caserta property:head_of_government ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16153
P1376
Q15617994
USER
What is the capital of that province of Italy ?
(c(Q15617994),P1376,Q3713288)
action filter_type
action find_reverse
entity Q16153
relation P1376
type Q15617994
[{'concept': 'Q15617994'}, 'P1376', 'Q3713288']
SELECT DISTINCT ?b WHERE { ?b property:P1376 resource:Q16153 . ?b rdf:type ontology:Q15617994 }
Province of Caserta
action filter_type
action find_reverse
entity Province of Caserta
relation capital of
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital of', 'Domenico Zinzi']
SELECT DISTINCT ?b WHERE { ?b property:capital_of resource:Province_of_Caserta . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1906
SYSTEM
Caserta
Q1906
(c(Q15617994),P1376,Q3713288)
action filter_type
action find_reverse
entity Q16153
relation P1376
type Q15617994
The capital of that province of Italy is [ANSWER]
[{'concept': 'Q15617994'}, 'P1376', 'Q3713288']
SELECT DISTINCT ?b WHERE { ?b property:P1376 resource:Q16153 . ?b rdf:type ontology:Q15617994 }
Caserta
The capital of that province of Italy is Caserta
Caserta
action filter_type
action find_reverse
entity Province of Caserta
relation capital of
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital of', 'Domenico Zinzi']
SELECT DISTINCT ?b WHERE { ?b property:capital_of resource:Province_of_Caserta . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1906
P190
Q56061
USER
Which administrative territory is twin town of that administrative territory ?
(c(Q56061),P190,Q1906)
action filter_type
action find
entity Q1906
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q1906']
SELECT DISTINCT ?b WHERE { resource:Q1906 property:P190 ?b . ?b rdf:type ontology:Q56061 }
Caserta
action filter_type
action find
entity Caserta
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Caserta']
SELECT DISTINCT ?b WHERE { resource:Caserta property:sister_city ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q26338
SYSTEM
Aley
Q26338
(c(Q56061),P190,Q1906)
action filter_type
action find
entity Q1906
relation P190
type Q56061
[ANSWER] is twin town of that administrative territory
[{'concept': 'Q56061'}, 'P190', 'Q1906']
SELECT DISTINCT ?b WHERE { resource:Q1906 property:P190 ?b . ?b rdf:type ontology:Q56061 }
Aley
Aley is twin town of that administrative territory
Aley
action filter_type
action find
entity Caserta
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Caserta']
SELECT DISTINCT ?b WHERE { resource:Caserta property:sister_city ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1906
P17
Q15617994
USER
Which administrative territory is Caserta a part of ?
(Q1906,P17,c(Q15617994))
action filter_type
action find
entity Q1906
relation P17
type Q15617994
['Q1906', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q1906 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Caserta
action filter_type
action find
entity Caserta
relation country
type designation for an administrative territorial entity
['Caserta', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Caserta property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q1906,P17,c(Q15617994))
action filter_type
action find
entity Q1906
relation P17
type Q15617994
Which administrative territory is Caserta a part of
['Q1906', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q1906 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Italy
Which administrative territory is Caserta a part of
Italy
action filter_type
action find
entity Caserta
relation country
type designation for an administrative territorial entity
['Caserta', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Caserta property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q38 Q11887980
P27
Q502895
USER
Is Pierre Schoebel a citizen of that administrative territory ?
(Q11887980,P27,Q38)
action is_in
entity Q11887980
action find
entity Q38
relation P27
['Q11887980', 'P27', 'Q38']
ASK WHERE { resource:Q38 property:P27 resource:Q11887980 }
Italy Pierre Schoebel
action is_in
entity Pierre Schoebel
action find
entity Italy
relation country of citizenship
['Pierre Schoebel', 'country of citizenship', 'Italy']
ASK WHERE { resource:Italy property:country_of_citizenship resource:Pierre_Schoebel }
[]
common name
SYSTEM
NO
(Q11887980,P27,Q38)
action is_in
entity Q11887980
action find
entity Q38
relation P27
[ANSWER]
['Q11887980', 'P27', 'Q38']
ASK WHERE { resource:Q38 property:P27 resource:Q11887980 }
No
action is_in
entity Pierre Schoebel
action find
entity Italy
relation country of citizenship
['Pierre Schoebel', 'country of citizenship', 'Italy']
ASK WHERE { resource:Italy property:country_of_citizenship resource:Pierre_Schoebel }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q12718
P825
Q502895 Q16970 Q838948
USER
Which people are lesser number of churches and works of art dedicated to than Auguste Comte ?
(c(Q16970)|c(Q838948),P825,c(Q502895))
action less
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q16970
action find_reverse_tuple_counts
relation P825
type Q502895
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q12718
relation P825
type Q16970
type Q838948
[[{'concept': 'Q16970'}, {'concept': 'Q838948'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?d ) WHERE { { ?c property:P825 ?y . ?y rdf:type ontology:Q502895 . ?c rdf:type ontology:Q16970 } UNION { ?c property:P825 ?y . ?c rdf:type ontology:Q838948 . ?y rdf:type ontology:Q502895 } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { ?k property:P825 resource:Q12718 . { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:Q838948 ) ( ontology:Q16970 ) } } } } . FILTER ( ?d < ?u ) }
Auguste Comte
action less
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 work of art
action count
action filter_multi_types
action find_reverse
entity Auguste Comte
relation dedicated to
type church
type work of art
[[{'concept': 'church'}, {'concept': 'work of art'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?d ) WHERE { { ?c property:dedicated_to ?y . ?y rdf:type ontology:common_name . ?c rdf:type ontology:church } UNION { ?c property:dedicated_to ?y . ?c rdf:type ontology:work_of_art . ?y rdf:type ontology:common_name } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { ?k property:dedicated_to resource:Auguste_Comte . { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:work_of_art ) ( ontology:church ) } } } } . FILTER ( ?d < ?u ) }
[]
common name church work of art
Q8016 Q8023 Q23559
SYSTEM
Winston Churchill, Nelson Mandela, Benito Mussolini
Q101698 Q152457 Q7402197 Q4304989 Q4452364 Q7859824 Q360420 Q1357149 Q4218975 Q249719 Q18684004 Q534049 Q16846308 Q983142 Q314700 Q392 Q11403872 Q85210 Q12688 Q336692 Q770633 Q611078 Q207113 Q20748855 Q44344 Q16202312 Q65318 Q658756 Q1774929 Q183126 Q382053 Q88927 Q3190301 Q93373 Q457863 Q43675 Q150767 Q2575112 Q3109901 Q2288858 Q44047 Q352978 Q1442 Q972905 Q448890 Q935 Q283447 Q179718 Q313737 Q2974965 Q7593283 Q1948037 Q173061 Q607495 Q19629510 Q5147053 Q18412922 Q683792 Q2639031 Q685156 Q888326 Q62068 Q2959955 Q171411 Q558261 Q87621 Q94316 Q1236699 Q458014 Q11074321 Q7683954 Q7401372 Q93341 Q4218947 Q442516 Q935496 Q461258 Q151967 Q192236 Q4130411 Q4127503 Q38337 Q7446899 Q1398314 Q732526 Q200895 Q65290 Q1889720 Q55398 Q43945 Q4275175 Q1284971 Q612390 Q44039 Q44032 Q20643690 Q37693 Q704817 Q1666 Q120180 Q41117 Q174231 Q23900430 Q200188 Q170547 Q43399 Q417686 Q276404 Q541634 Q244383 Q460876 Q5249703 Q8023 Q155540 Q381815 Q878671 Q6699463 Q443559 Q535 Q2381536 Q9439 Q42887 Q272899 Q170726 Q187550 Q2594000 Q313942 Q464192 Q461104 Q966298 Q1196817 Q433995 Q737198 Q466428 Q1246313 Q85760 Q160257 Q314846 Q20173462 Q1429 Q20683560 Q724153 Q1425 Q1427 Q369691 Q313093 Q43982 Q44248 Q1078192 Q32613 Q66005 Q191039 Q454840 Q20644286 Q236326 Q42511 Q3719466 Q44258 Q3401960 Q163900 Q7179512 Q11633375 Q719428 Q237149 Q17590 Q311080 Q6695484 Q160445 Q5623897 Q7732 Q541694 Q313970 Q6918007 Q3262373 Q426814 Q570845 Q231690 Q18535501 Q502943 Q44024 Q44020 Q77187 Q6955878 Q2573616 Q313196 Q369668 Q1714244 Q1036864 Q102527 Q51056 Q3392202 Q15432686 Q3398098 Q539427 Q1088014 Q20757530 Q314802 Q2454699 Q8016 Q8018 Q215333 Q272280 Q2853967 Q700317 Q171977 Q316599 Q1398704 Q11403852 Q5318618 Q13132095 Q311791 Q4161262 Q167477 Q297742 Q2093405 Q183332 Q12872638 Q19595674 Q269520 Q2722964 Q204503 Q78657 Q234908 Q71231 Q7402252 Q27036912 Q17308940 Q1132756 Q23892327 Q11619989 Q154353 Q2360522 Q13131020 Q119957 Q2025679 Q382005 Q3401592 Q3770666 Q3618054 Q354519 Q349287 Q537553 Q154045 Q3399340 Q457433 Q1430 Q767 Q552220 Q215572 Q3099236 Q160435 Q3398315 Q472635 Q92467 Q316658 Q23894387 Q23991012 Q6258837 Q1016482 Q328341 Q581537 Q93362 Q538335 Q179971 Q11368835 Q773580 Q164294 Q164522 Q117710 Q11403867 Q461600 Q712653 Q23559 Q7401328 Q1268 Q504529 Q603655 Q352748 Q163366 Q20643663 Q6804706 Q17509259 Q11107790 Q43669 Q18126070 Q558148 Q33477 Q149727 Q7349 Q468122 Q16859956 Q1834624 Q503886 Q444380 Q1183310 Q360798 Q1769 Q1446 Q310462 Q10881970 Q132232 Q47120 Q63070 Q87567 Q232803 Q374467 Q174367 Q6203829 Q680538 Q179858 Q894757 Q7110271 Q472851 Q982696 Q317997 Q51885 Q123062 Q181689 Q964608 Q218690 Q80513 Q151803 Q16766274 Q1293017 Q743830 Q3405091 Q16636868 Q299179 Q1407 Q1405 Q836214 Q51673 Q13132105 Q3305109 Q5623522 Q41309 Q354786
(c(Q16970)|c(Q838948),P825,c(Q502895))
action less
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q16970
action find_reverse_tuple_counts
relation P825
type Q502895
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q12718
relation P825
type Q16970
type Q838948
[ANSWERS] are lesser number of churches and works of art dedicated to than Auguste Comte
[[{'concept': 'Q16970'}, {'concept': 'Q838948'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?d ) WHERE { { ?c property:P825 ?y . ?y rdf:type ontology:Q502895 . ?c rdf:type ontology:Q16970 } UNION { ?c property:P825 ?y . ?c rdf:type ontology:Q838948 . ?y rdf:type ontology:Q502895 } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { ?k property:P825 resource:Q12718 . { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:Q838948 ) ( ontology:Q16970 ) } } } } . FILTER ( ?d < ?u ) }
Gaetano Donizetti Saint Roch Saint Sulien Mawgan Tathan Tyfrydog Serge Lifar Giacomo Bassi Saint Keyne Yui Caroline Weber Saint Petroc Saint Rhian Julian the Hospitaller Joachim Bob Dylan Kitabatake Akiyoshi Karl Ritter von Stremayr Jean Jaurès Rodolphe Kreutzer Padarn António José de Ávila, 1st Duke of Ávila and Bolama Hippolytus Llawddog Hilary of Poitiers Nidan Kibitsuhiko-no-mikoto Alof de Wignacourt Ferreolus Ramakrishna Antonio Sant'Elia Louis de Montfort Just of Lyon Archduke Rudolf of Austria Ingeborg Bronsart von Schellendorf Philip the Apostle Benjamin Britten Winefride Gohard Moriyoshi-shinnō James, son of Alphaeus Antoine Wiertz Septimius Severus Léon Goossens Charlotte Saunders Cushman Isaac Newton Lambert of Maastricht Catherine of Alexandria Drusus Julius Caesar Clair of Nantes St Govan Moritz Reichsgraf von Fries Syd Barrett Giuseppe De Nittis Saint Goustan Collet Barker Johann Georg von Browne-Camus Kitabatake Chikafusa Illtud Karl Alois, Prince Lichnowsky Bob Wills Princess Augusta of Hesse-Kassel 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 Abundius Yamato Takeru Saint Blaise Thomas Becket Anastasia Vyaltseva Ferrutio Alexandre Dumas Seiriol Paul Ladmirault José Guadalupe Posada Agatha of Sicily Constantine, Prince of Hohenzollern-Hechingen Cadoc Bernadette Soubirous Jude the Apostle Maethlu Victor Maurus Beuno Ludwig II of Bavaria Egon Schiele Claude-Emma Debussy 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 Queen Victoria Clement I Sebastian of Portugal Enrico Caruso Toyotomi Hideyoshi Diego Brosset Go-Daigo Vladimir Stasov Jaroslav Vrchlický Kusunoki Masatsura Maeda Toshiie Fujiwara no Kamatari Kevin of Glendalough Philomena Dorothea von Ertmann Giulietta Guicciardi Wanda Landowska Emperor Kammu Natalia Vladimirovna Trouhanowa Antoninus Pius Saeran Jesse Lauriston Livermore Trajan Hadrian Saint Ursula Herman Boerhaave Bartholomew the Apostle Jerome Dubricius Minamoto no Yoshiie Margrave Christian Ludwig of Brandenburg-Schwedt Germanicus William Cullen Bryant Mathilde Zemlinsky Columba H. G. Wells Edmund Clarence Stedman Basil of Caesarea Fagan Saint Francis Xavier Peulan Prince Toyokiirihiko William Michael Rossetti Ida Rubinstein Lawrence of Rome Uesugi Kenshin Trillo Saint Boniface Gwynno Louis XVI of France Joseph Merk Anton Arensky Motoharu Sano Louis Jou Emmanuel de Rohan-Polduc Joseph Franz von Lobkowitz B. R. Ambedkar Celynnin Andrey Razumovsky Athanasius of Alexandria Saint Matthias Ferdinand von Hompesch zu Bolheim Defendens Eric Fletcher Waters Louis Desaix William Osler Justin the Confessor Kitabatake Akiie Robert Falcon Scott Franz Joseph I of Austria Plechelm Georges Vallet Sadwrn Johann Jacob Bach Tewdrig Madame Autard de Bragard Tenji Cadwaladr Winston Churchill Augustine of Hippo Carl Czerny Æthelwold Antoine Gailleton Yasuhito Chichibu Tokugawa Ieyasu Saint Maurice Alexander Wilhelm Gottschalg Kitabatake Morichika Dyfodwg Tybïe Nikolai Rubinstein Dyfnan Anthony of Padua 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 Cwyfan James William Davison Sakai Tadatsugu Morhaiarn Prince Uji no Wakiiratsuko François Arago Anna Petrovna Kern Rhidian Alexis Roland-Manuel Albert Thomas Sugawara no Michizane Cynllo Giuseppe Ghislanzoni Annibale Cressoni Charley Patton Sutoku Ludwig Schuncke Alexei Nikolaevich Cybi Sara Dylan Marcus Aurelius Antoninus Stéphane Mallarmé Giuseppe Zanardelli Felix Nussbaum Minamoto no Tsunemoto Gerrit Rietveld Tudno Gustav, Prince of Vasa Theodor Avé-Lallemant Go-Toba Rhwydrus Senwyr John Thomas Stanley, 1st Baron Stanley of Alderley Burkhard Nadolny 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 Frédéric Chopin Theodore of Tarsus Fidelis of Como John Spencer Ezra Pound Hélène Bardac Mechell Saint Elli Kristjan Cavazza Thomas the Apostle Isan Leonard of Noblac Eugène Delacroix Saint Giles Joseph Haydn Nogi Maresuke Cawrdaf Gummarus Sterling Morrison Imogen Holst Deiniol Saint Eligius Alexander Severus Caracalla Saigō Takamori Itsuse no Mikoto Clara Schumann David Oistrakh Mary Magdalene Anton Rubinstein Empress Jingu Gabriel of Our Lady of Sorrows Djoser Jiří Tancibudek Saint Teilo Urho Kekkonen Botwulf of Thorney Oudoceus Count Ferdinand Ernst Gabriel von Waldstein Bassel Khartabil Ōjin Thecla Jacques Necker Blind Willie McTell Lucien Pissarro Raymond Queneau Saint Cecilia Piet Mondrian Michelle Vian Tysilio Wulfram of Sens Dyfan Crallo Kōmei Tiberius Augustus Princess Tōchi Mark Antony Tysul Donatus of Evorea Gwenllwyfo Franz Liszt Jean-Louis-Ernest Meissonier
Winston Churchill, Nelson Mandela and Benito Mussolini are lesser number of churches and works of art dedicated to than Auguste Comte
Winston Churchill Nelson Mandela Benito Mussolini
action less
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 work of art
action count
action filter_multi_types
action find_reverse
entity Auguste Comte
relation dedicated to
type church
type work of art
[[{'concept': 'church'}, {'concept': 'work of art'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?d ) WHERE { { ?c property:dedicated_to ?y . ?y rdf:type ontology:common_name . ?c rdf:type ontology:church } UNION { ?c property:dedicated_to ?y . ?c rdf:type ontology:work_of_art . ?y rdf:type ontology:common_name } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { ?k property:dedicated_to resource:Auguste_Comte . { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:work_of_art ) ( ontology:church ) } } } } . FILTER ( ?d < ?u ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q152727
P825
Q502895 Q16970 Q838948
USER
And what about Frederick William, Elector of Brandenburg?
(c(Q16970)|c(Q838948),P825,c(Q502895))
action less
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q16970
action find_reverse_tuple_counts
relation P825
type Q502895
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q152727
relation P825
type Q16970
type Q838948
[[{'concept': 'Q16970'}, {'concept': 'Q838948'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) ?w WHERE { VALUES ( ?y ) { ( ontology:Q16970 ) ( ontology:Q838948 ) } . ?l rdf:type ?y } GROUP BY ?w } . FILTER ( ?s < ?x ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:P825 resource:Q152727 . { { ?r rdf:type ontology:Q16970 } UNION { ?r rdf:type ontology:Q838948 } } } } }
Frederick William, Elector of Brandenburg
action less
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 work of art
action count
action filter_multi_types
action find_reverse
entity Frederick William, Elector of Brandenburg
relation dedicated to
type church
type work of art
[[{'concept': 'church'}, {'concept': 'work of art'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) ?w WHERE { VALUES ( ?y ) { ( ontology:church ) ( ontology:work_of_art ) } . ?l rdf:type ?y } GROUP BY ?w } . FILTER ( ?s < ?x ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:dedicated_to resource:Frederick_William,_Elector_of_Brandenburg . { { ?r rdf:type ontology:church } UNION { ?r rdf:type ontology:work_of_art } } } } }
[]
common name church work of art
Q8016 Q8023 Q23559
SYSTEM
Winston Churchill, Nelson Mandela, Benito Mussolini
Q101698 Q152457 Q7402197 Q4304989 Q4452364 Q7859824 Q360420 Q1357149 Q4218975 Q249719 Q18684004 Q534049 Q16846308 Q983142 Q314700 Q392 Q11403872 Q85210 Q12688 Q336692 Q770633 Q611078 Q207113 Q20748855 Q44344 Q16202312 Q65318 Q658756 Q1774929 Q183126 Q382053 Q88927 Q3190301 Q93373 Q457863 Q43675 Q150767 Q2575112 Q3109901 Q2288858 Q44047 Q352978 Q1442 Q972905 Q448890 Q935 Q283447 Q179718 Q313737 Q2974965 Q7593283 Q1948037 Q173061 Q607495 Q19629510 Q5147053 Q18412922 Q683792 Q2639031 Q685156 Q888326 Q62068 Q2959955 Q171411 Q558261 Q87621 Q94316 Q1236699 Q458014 Q11074321 Q7683954 Q7401372 Q93341 Q4218947 Q442516 Q935496 Q461258 Q151967 Q192236 Q4130411 Q4127503 Q38337 Q7446899 Q1398314 Q732526 Q200895 Q65290 Q1889720 Q55398 Q43945 Q4275175 Q1284971 Q612390 Q44039 Q44032 Q20643690 Q37693 Q704817 Q1666 Q120180 Q41117 Q174231 Q23900430 Q200188 Q170547 Q43399 Q417686 Q276404 Q541634 Q244383 Q460876 Q5249703 Q8023 Q155540 Q381815 Q878671 Q6699463 Q443559 Q535 Q2381536 Q9439 Q42887 Q272899 Q170726 Q187550 Q2594000 Q313942 Q464192 Q461104 Q966298 Q1196817 Q433995 Q737198 Q466428 Q1246313 Q85760 Q160257 Q314846 Q20173462 Q1429 Q20683560 Q724153 Q1425 Q1427 Q369691 Q313093 Q43982 Q44248 Q1078192 Q32613 Q66005 Q191039 Q454840 Q20644286 Q236326 Q42511 Q3719466 Q44258 Q3401960 Q163900 Q7179512 Q11633375 Q719428 Q237149 Q17590 Q311080 Q6695484 Q160445 Q5623897 Q7732 Q541694 Q313970 Q6918007 Q3262373 Q426814 Q570845 Q231690 Q18535501 Q502943 Q44024 Q44020 Q77187 Q6955878 Q2573616 Q313196 Q369668 Q1714244 Q1036864 Q102527 Q51056 Q3392202 Q15432686 Q3398098 Q539427 Q1088014 Q20757530 Q314802 Q2454699 Q8016 Q8018 Q215333 Q272280 Q2853967 Q700317 Q171977 Q316599 Q1398704 Q11403852 Q5318618 Q13132095 Q311791 Q4161262 Q167477 Q297742 Q2093405 Q183332 Q12872638 Q19595674 Q269520 Q2722964 Q204503 Q78657 Q234908 Q71231 Q7402252 Q27036912 Q17308940 Q1132756 Q23892327 Q11619989 Q154353 Q2360522 Q13131020 Q119957 Q2025679 Q382005 Q3401592 Q3770666 Q3618054 Q354519 Q349287 Q537553 Q154045 Q3399340 Q457433 Q1430 Q767 Q552220 Q215572 Q3099236 Q160435 Q3398315 Q472635 Q92467 Q316658 Q23894387 Q23991012 Q6258837 Q1016482 Q328341 Q581537 Q93362 Q538335 Q179971 Q11368835 Q773580 Q164294 Q164522 Q117710 Q11403867 Q461600 Q712653 Q23559 Q7401328 Q1268 Q504529 Q603655 Q352748 Q163366 Q20643663 Q6804706 Q17509259 Q11107790 Q43669 Q18126070 Q558148 Q33477 Q149727 Q7349 Q468122 Q16859956 Q1834624 Q503886 Q444380 Q1183310 Q360798 Q1769 Q1446 Q310462 Q10881970 Q132232 Q47120 Q63070 Q87567 Q232803 Q374467 Q174367 Q6203829 Q680538 Q179858 Q894757 Q7110271 Q472851 Q982696 Q317997 Q51885 Q123062 Q181689 Q964608 Q218690 Q80513 Q151803 Q16766274 Q1293017 Q743830 Q3405091 Q16636868 Q299179 Q1407 Q1405 Q836214 Q51673 Q13132105 Q3305109 Q5623522 Q41309 Q354786
(c(Q16970)|c(Q838948),P825,c(Q502895))
action less
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q16970
action find_reverse_tuple_counts
relation P825
type Q502895
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q152727
relation P825
type Q16970
type Q838948
[ANSWERS]
[[{'concept': 'Q16970'}, {'concept': 'Q838948'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) ?w WHERE { VALUES ( ?y ) { ( ontology:Q16970 ) ( ontology:Q838948 ) } . ?l rdf:type ?y } GROUP BY ?w } . FILTER ( ?s < ?x ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:P825 resource:Q152727 . { { ?r rdf:type ontology:Q16970 } UNION { ?r rdf:type ontology:Q838948 } } } } }
Gaetano Donizetti Saint Roch Saint Sulien Mawgan Tathan Tyfrydog Serge Lifar Giacomo Bassi Saint Keyne Yui Caroline Weber Saint Petroc Saint Rhian Julian the Hospitaller Joachim Bob Dylan Kitabatake Akiyoshi Karl Ritter von Stremayr Jean Jaurès Rodolphe Kreutzer Padarn António José de Ávila, 1st Duke of Ávila and Bolama Hippolytus Llawddog Hilary of Poitiers Nidan Kibitsuhiko-no-mikoto Alof de Wignacourt Ferreolus Ramakrishna Antonio Sant'Elia Louis de Montfort Just of Lyon Archduke Rudolf of Austria Ingeborg Bronsart von Schellendorf Philip the Apostle Benjamin Britten Winefride Gohard Moriyoshi-shinnō James, son of Alphaeus Antoine Wiertz Septimius Severus Léon Goossens Charlotte Saunders Cushman Isaac Newton Lambert of Maastricht Catherine of Alexandria Drusus Julius Caesar Clair of Nantes St Govan Moritz Reichsgraf von Fries Syd Barrett Giuseppe De Nittis Saint Goustan Collet Barker Johann Georg von Browne-Camus Kitabatake Chikafusa Illtud Karl Alois, Prince Lichnowsky Bob Wills Princess Augusta of Hesse-Kassel 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 Abundius Yamato Takeru Saint Blaise Thomas Becket Anastasia Vyaltseva Ferrutio Alexandre Dumas Seiriol Paul Ladmirault José Guadalupe Posada Agatha of Sicily Constantine, Prince of Hohenzollern-Hechingen Cadoc Bernadette Soubirous Jude the Apostle Maethlu Victor Maurus Beuno Ludwig II of Bavaria Egon Schiele Claude-Emma Debussy 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 Queen Victoria Clement I Sebastian of Portugal Enrico Caruso Toyotomi Hideyoshi Diego Brosset Go-Daigo Vladimir Stasov Jaroslav Vrchlický Kusunoki Masatsura Maeda Toshiie Fujiwara no Kamatari Kevin of Glendalough Philomena Dorothea von Ertmann Giulietta Guicciardi Wanda Landowska Emperor Kammu Natalia Vladimirovna Trouhanowa Antoninus Pius Saeran Jesse Lauriston Livermore Trajan Hadrian Saint Ursula Herman Boerhaave Bartholomew the Apostle Jerome Dubricius Minamoto no Yoshiie Margrave Christian Ludwig of Brandenburg-Schwedt Germanicus William Cullen Bryant Mathilde Zemlinsky Columba H. G. Wells Edmund Clarence Stedman Basil of Caesarea Fagan Saint Francis Xavier Peulan Prince Toyokiirihiko William Michael Rossetti Ida Rubinstein Lawrence of Rome Uesugi Kenshin Trillo Saint Boniface Gwynno Louis XVI of France Joseph Merk Anton Arensky Motoharu Sano Louis Jou Emmanuel de Rohan-Polduc Joseph Franz von Lobkowitz B. R. Ambedkar Celynnin Andrey Razumovsky Athanasius of Alexandria Saint Matthias Ferdinand von Hompesch zu Bolheim Defendens Eric Fletcher Waters Louis Desaix William Osler Justin the Confessor Kitabatake Akiie Robert Falcon Scott Franz Joseph I of Austria Plechelm Georges Vallet Sadwrn Johann Jacob Bach Tewdrig Madame Autard de Bragard Tenji Cadwaladr Winston Churchill Augustine of Hippo Carl Czerny Æthelwold Antoine Gailleton Yasuhito Chichibu Tokugawa Ieyasu Saint Maurice Alexander Wilhelm Gottschalg Kitabatake Morichika Dyfodwg Tybïe Nikolai Rubinstein Dyfnan Anthony of Padua 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 Cwyfan James William Davison Sakai Tadatsugu Morhaiarn Prince Uji no Wakiiratsuko François Arago Anna Petrovna Kern Rhidian Alexis Roland-Manuel Albert Thomas Sugawara no Michizane Cynllo Giuseppe Ghislanzoni Annibale Cressoni Charley Patton Sutoku Ludwig Schuncke Alexei Nikolaevich Cybi Sara Dylan Marcus Aurelius Antoninus Stéphane Mallarmé Giuseppe Zanardelli Felix Nussbaum Minamoto no Tsunemoto Gerrit Rietveld Tudno Gustav, Prince of Vasa Theodor Avé-Lallemant Go-Toba Rhwydrus Senwyr John Thomas Stanley, 1st Baron Stanley of Alderley Burkhard Nadolny 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 Frédéric Chopin Theodore of Tarsus Fidelis of Como John Spencer Ezra Pound Hélène Bardac Mechell Saint Elli Kristjan Cavazza Thomas the Apostle Isan Leonard of Noblac Eugène Delacroix Saint Giles Joseph Haydn Nogi Maresuke Cawrdaf Gummarus Sterling Morrison Imogen Holst Deiniol Saint Eligius Alexander Severus Caracalla Saigō Takamori Itsuse no Mikoto Clara Schumann David Oistrakh Mary Magdalene Anton Rubinstein Empress Jingu Gabriel of Our Lady of Sorrows Djoser Jiří Tancibudek Saint Teilo Urho Kekkonen Botwulf of Thorney Oudoceus Count Ferdinand Ernst Gabriel von Waldstein Bassel Khartabil Ōjin Thecla Jacques Necker Blind Willie McTell Lucien Pissarro Raymond Queneau Saint Cecilia Piet Mondrian Michelle Vian Tysilio Wulfram of Sens Dyfan Crallo Kōmei Tiberius Augustus Princess Tōchi Mark Antony Tysul Donatus of Evorea Gwenllwyfo Franz Liszt Jean-Louis-Ernest Meissonier
Winston Churchill Nelson Mandela Benito Mussolini
action less
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 work of art
action count
action filter_multi_types
action find_reverse
entity Frederick William, Elector of Brandenburg
relation dedicated to
type church
type work of art
[[{'concept': 'church'}, {'concept': 'work of art'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) ?w WHERE { VALUES ( ?y ) { ( ontology:church ) ( ontology:work_of_art ) } . ?l rdf:type ?y } GROUP BY ?w } . FILTER ( ?s < ?x ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:dedicated_to resource:Frederick_William,_Elector_of_Brandenburg . { { ?r rdf:type ontology:church } UNION { ?r rdf:type ontology:work_of_art } } } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P106
Q28640 Q12737077
USER
How many professions and occupations are the job of that person ?
(Q8023,P106,c(Q28640)) (Q8023,P106,c(Q12737077)) (Q8016,P106,c(Q28640)) (Q8016,P106,c(Q12737077)) (Q8023,P106,c(Q28640)) (Q8023,P106,c(Q12737077)) (Q23559,P106,c(Q28640)) (Q23559,P106,c(Q12737077))
['Q8023', 'P106', {'concept': 'Q28640'}] ['Q8023', 'P106', {'concept': 'Q12737077'}] ['Q8016', 'P106', {'concept': 'Q28640'}] ['Q8016', 'P106', {'concept': 'Q12737077'}] ['Q8023', 'P106', {'concept': 'Q28640'}] ['Q8023', 'P106', {'concept': 'Q12737077'}] ['Q23559', 'P106', {'concept': 'Q28640'}] ['Q23559', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q10797487 property:Q528892 ?z } UNION { resource:Q10797487 property:Q528892 ?y } UNION { resource:Q2916076 property:Q528892 ?z } UNION { resource:Q2916076 property:Q528892 ?y } UNION { resource:Q10797487 property:Q528892 ?z } UNION { resource:Q10797487 property:Q528892 ?y } UNION { resource:Q23559 property:Q528892 ?z } UNION { resource:Q23559 property:Q528892 ?y } } . ?z rdf:type ontology:Q28640 . ?y rdf:type ontology:Q528892 }
['Nelson Mandela', 'occupation', {'concept': 'profession'}] ['Nelson Mandela', 'occupation', {'concept': 'occupation'}] ['Winston Churchill', 'occupation', {'concept': 'profession'}] ['Winston Churchill', 'occupation', {'concept': 'occupation'}] ['Nelson Mandela', 'occupation', {'concept': 'profession'}] ['Nelson Mandela', 'occupation', {'concept': 'occupation'}] ['Benito Mussolini', 'occupation', {'concept': 'profession'}] ['Benito Mussolini', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Nelson_Mandela property:occupation ?z } UNION { resource:Nelson_Mandela property:occupation ?y } UNION { resource:Winston_Churchill property:occupation ?z } UNION { resource:Winston_Churchill property:occupation ?y } UNION { resource:Nelson_Mandela property:occupation ?z } UNION { resource:Nelson_Mandela property:occupation ?y } UNION { resource:Benito_Mussolini property:occupation ?z } UNION { resource:Benito_Mussolini property:occupation ?y } } . ?z rdf:type ontology:profession . ?y rdf:type ontology:occupation }
[]
profession occupation
Quantitative|Count|Mult. entity type|Clarification
Q8016
SYSTEM
Did you mean Winston Churchill ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q10797487 property:Q528892 ?z } UNION { resource:Q10797487 property:Q528892 ?y } UNION { resource:Q2916076 property:Q528892 ?z } UNION { resource:Q2916076 property:Q528892 ?y } UNION { resource:Q10797487 property:Q528892 ?z } UNION { resource:Q10797487 property:Q528892 ?y } UNION { resource:Q23559 property:Q528892 ?z } UNION { resource:Q23559 property:Q528892 ?y } } . ?z rdf:type ontology:Q28640 . ?y rdf:type ontology:Q528892 }
Did you mean Winston Churchill ?
Winston Churchill
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Nelson_Mandela property:occupation ?z } UNION { resource:Nelson_Mandela property:occupation ?y } UNION { resource:Winston_Churchill property:occupation ?z } UNION { resource:Winston_Churchill property:occupation ?y } UNION { resource:Nelson_Mandela property:occupation ?z } UNION { resource:Nelson_Mandela property:occupation ?y } UNION { resource:Benito_Mussolini property:occupation ?z } UNION { resource:Benito_Mussolini property:occupation ?y } } . ?z rdf:type ontology:profession . ?y rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Nelson Mandela. Could you tell me the answer for that?
(Q8023,P106,c(Q28640)) (Q8023,P106,c(Q12737077)) (Q8016,P106,c(Q28640)) (Q8016,P106,c(Q12737077)) (Q8023,P106,c(Q28640)) (Q8023,P106,c(Q12737077)) (Q23559,P106,c(Q28640)) (Q23559,P106,c(Q12737077))
Q8023
['Q8023', 'P106', {'concept': 'Q28640'}] ['Q8023', 'P106', {'concept': 'Q12737077'}] ['Q8016', 'P106', {'concept': 'Q28640'}] ['Q8016', 'P106', {'concept': 'Q12737077'}] ['Q8023', 'P106', {'concept': 'Q28640'}] ['Q8023', 'P106', {'concept': 'Q12737077'}] ['Q23559', 'P106', {'concept': 'Q28640'}] ['Q23559', 'P106', {'concept': 'Q12737077'}]
['Nelson Mandela', 'occupation', {'concept': 'profession'}] ['Nelson Mandela', 'occupation', {'concept': 'occupation'}] ['Winston Churchill', 'occupation', {'concept': 'profession'}] ['Winston Churchill', 'occupation', {'concept': 'occupation'}] ['Nelson Mandela', 'occupation', {'concept': 'profession'}] ['Nelson Mandela', 'occupation', {'concept': 'occupation'}] ['Benito Mussolini', 'occupation', {'concept': 'profession'}] ['Benito Mussolini', 'occupation', {'concept': 'occupation'}]
[]
SYSTEM
1 professions and 1 occupations
Q82955 Q40348
(Q8023,P106,c(Q28640)) (Q8023,P106,c(Q12737077)) (Q8016,P106,c(Q28640)) (Q8016,P106,c(Q12737077)) (Q8023,P106,c(Q28640)) (Q8023,P106,c(Q12737077)) (Q23559,P106,c(Q28640)) (Q23559,P106,c(Q12737077))
[ANSWER]
['Q8023', 'P106', {'concept': 'Q28640'}] ['Q8023', 'P106', {'concept': 'Q12737077'}] ['Q8016', 'P106', {'concept': 'Q28640'}] ['Q8016', 'P106', {'concept': 'Q12737077'}] ['Q8023', 'P106', {'concept': 'Q28640'}] ['Q8023', 'P106', {'concept': 'Q12737077'}] ['Q23559', 'P106', {'concept': 'Q28640'}] ['Q23559', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q10797487 property:Q528892 ?z } UNION { resource:Q10797487 property:Q528892 ?y } UNION { resource:Q2916076 property:Q528892 ?z } UNION { resource:Q2916076 property:Q528892 ?y } UNION { resource:Q10797487 property:Q528892 ?z } UNION { resource:Q10797487 property:Q528892 ?y } UNION { resource:Q23559 property:Q528892 ?z } UNION { resource:Q23559 property:Q528892 ?y } } . ?z rdf:type ontology:Q28640 . ?y rdf:type ontology:Q528892 }
politician lawyer
1 professions and 1 occupations
['Nelson Mandela', 'occupation', {'concept': 'profession'}] ['Nelson Mandela', 'occupation', {'concept': 'occupation'}] ['Winston Churchill', 'occupation', {'concept': 'profession'}] ['Winston Churchill', 'occupation', {'concept': 'occupation'}] ['Nelson Mandela', 'occupation', {'concept': 'profession'}] ['Nelson Mandela', 'occupation', {'concept': 'occupation'}] ['Benito Mussolini', 'occupation', {'concept': 'profession'}] ['Benito Mussolini', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Nelson_Mandela property:occupation ?z } UNION { resource:Nelson_Mandela property:occupation ?y } UNION { resource:Winston_Churchill property:occupation ?z } UNION { resource:Winston_Churchill property:occupation ?y } UNION { resource:Nelson_Mandela property:occupation ?z } UNION { resource:Nelson_Mandela property:occupation ?y } UNION { resource:Benito_Mussolini property:occupation ?z } UNION { resource:Benito_Mussolini property:occupation ?y } } . ?z rdf:type ontology:profession . ?y rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q8016
P22
Q502895
USER
How many people are the offspring of Winston Churchill ?
(c(Q502895),P22,Q8016)
action count
action filter_type
action find_reverse
entity Q8016
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q8016']
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { ?g rdf:type ontology:Q502895 . ?g property:P22 resource:Q8016 }
Winston Churchill
action count
action filter_type
action find_reverse
entity Winston Churchill
relation father
type common name
[{'concept': 'common name'}, 'father', 'Winston Churchill']
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { ?g rdf:type ontology:common_name . ?g property:father resource:Winston_Churchill }
[]
common name
SYSTEM
5
Q5271122 Q2405785 Q183105 Q13408289 Q508525
(c(Q502895),P22,Q8016)
action count
action filter_type
action find_reverse
entity Q8016
relation P22
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q8016']
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { ?g rdf:type ontology:Q502895 . ?g property:P22 resource:Q8016 }
Diana Churchill Sarah Churchill Randolph Churchill Marigold Frances Churchill Mary Soames
5
action count
action filter_type
action find_reverse
entity Winston Churchill
relation father
type common name
[{'concept': 'common name'}, 'father', 'Winston Churchill']
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { ?g rdf:type ontology:common_name . ?g property:father resource:Winston_Churchill }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q8016 Q1043
P106
Q12737077
USER
How many occupations do Winston Churchill or Carl Linnaeus do for a living ?
(Q8016,P106,c(Q12737077)) (Q1043,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q8016
relation P106
type Q12737077
action filter_type
action find
entity Q1043
relation P106
type Q12737077
['Q8016', 'P106', {'concept': 'Q12737077'}] ['Q1043', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { ?m property:P106 ?s . VALUES ( ?m ) { ( resource:Q1043 ) ( resource:Q8016 ) } }
Winston Churchill Carl Linnaeus
action count
action union
action filter_type
action find
entity Winston Churchill
relation occupation
type occupation
action filter_type
action find
entity Carl Linnaeus
relation occupation
type occupation
['Winston Churchill', 'occupation', {'concept': 'occupation'}] ['Carl Linnaeus', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { ?m property:occupation ?s . VALUES ( ?m ) { ( resource:Carl_Linnaeus ) ( resource:Winston_Churchill ) } }
[]
occupation
SYSTEM
9
Q201788 Q1930187 Q36180 Q1028181 Q2374149 Q520549 Q39631 Q82955 Q864380
(Q8016,P106,c(Q12737077)) (Q1043,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q8016
relation P106
type Q12737077
action filter_type
action find
entity Q1043
relation P106
type Q12737077
[ANSWER]
['Q8016', 'P106', {'concept': 'Q12737077'}] ['Q1043', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { ?m property:P106 ?s . VALUES ( ?m ) { ( resource:Q1043 ) ( resource:Q8016 ) } }
historian journalist writer painter botanist geologist physician politician biographer
9
action count
action union
action filter_type
action find
entity Winston Churchill
relation occupation
type occupation
action filter_type
action find
entity Carl Linnaeus
relation occupation
type occupation
['Winston Churchill', 'occupation', {'concept': 'occupation'}] ['Carl Linnaeus', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { ?m property:occupation ?s . VALUES ( ?m ) { ( resource:Carl_Linnaeus ) ( resource:Winston_Churchill ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q8016
P138
Q1055028 Q19832486
USER
How many colleges of the University of Cambridge or locomotive classes have Winston Churchill as their namesake ?
(c(Q1055028),P138,Q8016) (c(Q19832486),P138,Q8016)
action count
action union
action filter_type
action find_reverse
entity Q8016
relation P138
type Q1055028
action filter_type
action find_reverse
entity Q8016
relation P138
type Q19832486
[{'concept': 'Q1055028'}, 'P138', 'Q8016'] [{'concept': 'Q19832486'}, 'P138', 'Q8016']
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { VALUES ( ?h ) { ( ontology:Q1055028 ) ( ontology:Q19832486 ) } . ?x rdf:type ?h }
Winston Churchill
action count
action union
action filter_type
action find_reverse
entity Winston Churchill
relation named after
type college of the University of Cambridge
action filter_type
action find_reverse
entity Winston Churchill
relation named after
type locomotive class
[{'concept': 'college of the University of Cambridge'}, 'named after', 'Winston Churchill'] [{'concept': 'locomotive class'}, 'named after', 'Winston Churchill']
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { VALUES ( ?h ) { ( ontology:college_of_the_University_of_Cambridge ) ( ontology:locomotive_class ) } . ?x rdf:type ?h }
[]
college of the University of Cambridge locomotive class
SYSTEM
2
Q7392880 Q714740
(c(Q1055028),P138,Q8016) (c(Q19832486),P138,Q8016)
action count
action union
action filter_type
action find_reverse
entity Q8016
relation P138
type Q1055028
action filter_type
action find_reverse
entity Q8016
relation P138
type Q19832486
[ANSWER]
[{'concept': 'Q1055028'}, 'P138', 'Q8016'] [{'concept': 'Q19832486'}, 'P138', 'Q8016']
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { VALUES ( ?h ) { ( ontology:Q1055028 ) ( ontology:Q19832486 ) } . ?x rdf:type ?h }
SR Battle of Britain class 21C151 Winston Churchill Churchill College
2
action count
action union
action filter_type
action find_reverse
entity Winston Churchill
relation named after
type college of the University of Cambridge
action filter_type
action find_reverse
entity Winston Churchill
relation named after
type locomotive class
[{'concept': 'college of the University of Cambridge'}, 'named after', 'Winston Churchill'] [{'concept': 'locomotive class'}, 'named after', 'Winston Churchill']
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { VALUES ( ?h ) { ( ontology:college_of_the_University_of_Cambridge ) ( ontology:locomotive_class ) } . ?x rdf:type ?h }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q220823 Q8023
P22
Q502895
USER
Which people were the father of Nelson Mandela or Duchess Augusta of Brunswick-Wolfenbüttel ?
OR((Q8023,P22,c(Q502895)), (Q220823,P22,c(Q502895)))
action filter_type
action union
action find
entity Q8023
relation P22
action find
entity Q220823
relation P22
type Q502895
{'OR': [['Q8023', 'P22', {'concept': 'Q502895'}], ['Q220823', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?p ) { ( resource:Q8023 ) ( resource:Q220823 ) } . ?p property:P22 ?i } . ?i rdf:type ontology:Q502895 }
Duchess Augusta of Brunswick-Wolfenbüttel Nelson Mandela
action filter_type
action union
action find
entity Nelson Mandela
relation father
action find
entity Duchess Augusta of Brunswick-Wolfenbüttel
relation father
type common name
{'OR': [['Nelson Mandela', 'father', {'concept': 'common name'}], ['Duchess Augusta of Brunswick-Wolfenbüttel', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?p ) { ( resource:Nelson_Mandela ) ( resource:Duchess_Augusta_of_Brunswick-Wolfenbüttel ) } . ?p property:father ?i } . ?i rdf:type ontology:common_name }
[]
common name
Q58773 Q1814626
SYSTEM
Charles William Ferdinand, Duke of Brunswick-Wolfenbüttel, Gadla Henry Mphakanyiswa
Q58773 Q1814626
OR((Q8023,P22,c(Q502895)), (Q220823,P22,c(Q502895)))
action filter_type
action union
action find
entity Q8023
relation P22
action find
entity Q220823
relation P22
type Q502895
[ANSWERS] were the father of Nelson Mandela or Duchess Augusta of Brunswick-Wolfenbüttel
{'OR': [['Q8023', 'P22', {'concept': 'Q502895'}], ['Q220823', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?p ) { ( resource:Q8023 ) ( resource:Q220823 ) } . ?p property:P22 ?i } . ?i rdf:type ontology:Q502895 }
Charles William Ferdinand, Duke of Brunswick-Wolfenbüttel Gadla Henry Mphakanyiswa
Charles William Ferdinand, Duke of Brunswick-Wolfenbüttel and Gadla Henry Mphakanyiswa were the father of Nelson Mandela or Duchess Augusta of Brunswick-Wolfenbüttel
Charles William Ferdinand, Duke of Brunswick-Wolfenbüttel Gadla Henry Mphakanyiswa
action filter_type
action union
action find
entity Nelson Mandela
relation father
action find
entity Duchess Augusta of Brunswick-Wolfenbüttel
relation father
type common name
{'OR': [['Nelson Mandela', 'father', {'concept': 'common name'}], ['Duchess Augusta of Brunswick-Wolfenbüttel', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?p ) { ( resource:Nelson_Mandela ) ( resource:Duchess_Augusta_of_Brunswick-Wolfenbüttel ) } . ?p property:father ?i } . ?i rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1814626
P26
Q502895
USER
Which person is married to that one ?
(c(Q502895),P26,Q1814626)
action filter_type
action find
entity Q1814626
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q1814626']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . resource:Q1814626 property:P26 ?w }
Gadla Henry Mphakanyiswa
action filter_type
action find
entity Gadla Henry Mphakanyiswa
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Gadla Henry Mphakanyiswa']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . resource:Gadla_Henry_Mphakanyiswa property:spouse ?w }
[]
common name
Clarification for simple ques.
Q58773
SYSTEM
Did you mean Charles William Ferdinand, Duke of Brunswick-Wolfenbüttel ?
Q58773 Q1814626
(c(Q502895),P26,Q58773) (c(Q502895),P26,Q1814626)
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q58773'] [{'concept': 'Q502895'}, 'P26', 'Q1814626']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . resource:Q1814626 property:P26 ?w }
Charles William Ferdinand, Duke of Brunswick-Wolfenbüttel Gadla Henry Mphakanyiswa
Did you mean Charles William Ferdinand, Duke of Brunswick-Wolfenbüttel ?
Charles William Ferdinand, Duke of Brunswick-Wolfenbüttel
[{'concept': 'common name'}, 'spouse', 'Charles William Ferdinand, Duke of Brunswick-Wolfenbüttel'] [{'concept': 'common name'}, 'spouse', 'Gadla Henry Mphakanyiswa']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . resource:Gadla_Henry_Mphakanyiswa property:spouse ?w }
[]
Simple Question (Coreferenced)
USER
No, I meant Gadla Henry Mphakanyiswa. Could you tell me the answer for that?
(c(Q502895),P26,Q1814626)
Q1814626
[{'concept': 'Q502895'}, 'P26', 'Q1814626']
[{'concept': 'common name'}, 'spouse', 'Gadla Henry Mphakanyiswa']
[]
Q16103879
SYSTEM
Nosekeni Fanny
Q16103879
(c(Q502895),P26,Q1814626)
action filter_type
action find
entity Q1814626
relation P26
type Q502895
[ANSWER] is married to that one
[{'concept': 'Q502895'}, 'P26', 'Q1814626']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . resource:Q1814626 property:P26 ?w }
Nosekeni Fanny
Nosekeni Fanny is married to that one
Nosekeni Fanny
action filter_type
action find
entity Gadla Henry Mphakanyiswa
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Gadla Henry Mphakanyiswa']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . resource:Gadla_Henry_Mphakanyiswa property:spouse ?w }
[]