Simple Question (Direct)
Simple Question
Q5591665
P27
Q15617994
USER
Which administrative territory is the native country of Graco Ramírez ?
(Q5591665,P27,c(Q15617994))
action filter_type
action find
entity Q5591665
relation P27
type Q15617994
['Q5591665', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q5591665 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Graco Ramírez
action filter_type
action find
entity Graco Ramírez
relation country of citizenship
type designation for an administrative territorial entity
['Graco Ramírez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Graco_Ramírez property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q96
SYSTEM
Mexico
Q96
(Q5591665,P27,c(Q15617994))
action filter_type
action find
entity Q5591665
relation P27
type Q15617994
[ANSWER] is the native country of Graco Ramírez
['Q5591665', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q5591665 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Mexico
Mexico is the native country of Graco Ramírez
Mexico
action filter_type
action find
entity Graco Ramírez
relation country of citizenship
type designation for an administrative territorial entity
['Graco Ramírez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Graco_Ramírez property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5591665
P102
Q7210356
USER
Which political organizations are that person a member of ?
(Q96,P102,c(Q7210356))
action filter_type
action find
entity Q5591665
relation P102
type Q7210356
['Q96', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?a WHERE { resource:Q5591665 property:P102 ?a . ?a rdf:type ontology:Q7210356 }
Graco Ramírez
action filter_type
action find
entity Graco Ramírez
relation member of political party
type political organization
['Mexico', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?a WHERE { resource:Graco_Ramírez property:member_of_political_party ?a . ?a rdf:type ontology:political_organization }
[]
political organization
Q682969 Q767010
SYSTEM
Institutional Revolutionary Party, Party of the Democratic Revolution
Q682969 Q767010
(Q96,P102,c(Q7210356))
action filter_type
action find
entity Q5591665
relation P102
type Q7210356
Party [ANSWERS] are that person a member of
['Q96', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?a WHERE { resource:Q5591665 property:P102 ?a . ?a rdf:type ontology:Q7210356 }
Institutional Revolutionary Party Party of the Democratic Revolution
Party Institutional Revolutionary Party and Party of the Democratic Revolution are that person a member of
Institutional Revolutionary Party Party of the Democratic Revolution
action filter_type
action find
entity Graco Ramírez
relation member of political party
type political organization
['Mexico', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?a WHERE { resource:Graco_Ramírez property:member_of_political_party ?a . ?a rdf:type ontology:political_organization }
[]
Clarification
Simple Question|Single Entity|Indirect
Q767010
P488
Q502895
USER
Who served as the chairperson of that political organization ?
(Q767010,P488,c(Q502895))
action filter_type
action find
entity Q767010
relation P488
type Q502895
['Q767010', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q767010 property:P488 ?v . ?v rdf:type ontology:Q502895 }
Party of the Democratic Revolution
action filter_type
action find
entity Party of the Democratic Revolution
relation chairperson
type common name
['Party of the Democratic Revolution', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Party_of_the_Democratic_Revolution property:chairperson ?v . ?v rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q682969
SYSTEM
Did you mean Institutional Revolutionary Party ?
Q682969 Q767010
(Q682969,P488,c(Q502895)) (Q767010,P488,c(Q502895))
[ANSWER]
['Q682969', 'P488', {'concept': 'Q502895'}] ['Q767010', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q767010 property:P488 ?v . ?v rdf:type ontology:Q502895 }
Institutional Revolutionary Party Party of the Democratic Revolution
Did you mean Institutional Revolutionary Party ?
Institutional Revolutionary Party
['Institutional Revolutionary Party', 'chairperson', {'concept': 'common name'}] ['Party of the Democratic Revolution', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Party_of_the_Democratic_Revolution property:chairperson ?v . ?v rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Party of the Democratic Revolution. Could you tell me the answer for that?
(Q767010,P488,c(Q502895))
Q767010
['Q767010', 'P488', {'concept': 'Q502895'}]
['Party of the Democratic Revolution', 'chairperson', {'concept': 'common name'}]
[]
Q5930786
SYSTEM
Jesús Zambrano Grijalva
Q5930786
(Q767010,P488,c(Q502895))
action filter_type
action find
entity Q767010
relation P488
type Q502895
[ANSWER] served as the chairperson of that political organization
['Q767010', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q767010 property:P488 ?v . ?v rdf:type ontology:Q502895 }
Jesús Zambrano Grijalva
Jesús Zambrano Grijalva served as the chairperson of that political organization
Jesús Zambrano Grijalva
action filter_type
action find
entity Party of the Democratic Revolution
relation chairperson
type common name
['Party of the Democratic Revolution', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Party_of_the_Democratic_Revolution property:chairperson ?v . ?v rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q5930786 Q6413203 Q934086
P19
Q56061
USER
Does Jesús Zambrano Grijalva have birthplace at Kingsford, East Ayrshire and Empalme ?
(Q5930786,P19,Q6413203) (Q5930786,P19,Q934086)
action is_in
entity Q5930786
action intersection
action find_reverse
entity Q6413203
relation P19
action find_reverse
entity Q934086
relation P19
['Q5930786', 'P19', 'Q6413203'] ['Q5930786', 'P19', 'Q934086']
ASK WHERE { resource:Q5930786 property:P19 resource:Q6413203 . resource:Q5930786 property:P19 resource:Q934086 }
Jesús Zambrano Grijalva Kingsford, East Ayrshire Empalme
action is_in
entity Jesús Zambrano Grijalva
action intersection
action find_reverse
entity Kingsford, East Ayrshire
relation place of birth
action find_reverse
entity Empalme
relation place of birth
['Jesús Zambrano Grijalva', 'place of birth', 'Kingsford, East Ayrshire'] ['Jesús Zambrano Grijalva', 'place of birth', 'Empalme']
ASK WHERE { resource:Jesús_Zambrano_Grijalva property:place_of_birth resource:Kingsford,_East_Ayrshire . resource:Jesús_Zambrano_Grijalva property:place_of_birth resource:Empalme }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q5930786,P19,Q6413203) (Q5930786,P19,Q934086)
action is_in
entity Q5930786
action intersection
action find_reverse
entity Q6413203
relation P19
action find_reverse
entity Q934086
relation P19
[ANSWER]
['Q5930786', 'P19', 'Q6413203'] ['Q5930786', 'P19', 'Q934086']
ASK WHERE { resource:Q5930786 property:P19 resource:Q6413203 . resource:Q5930786 property:P19 resource:Q934086 }
NO and YES respectively
action is_in
entity Jesús Zambrano Grijalva
action intersection
action find_reverse
entity Kingsford, East Ayrshire
relation place of birth
action find_reverse
entity Empalme
relation place of birth
['Jesús Zambrano Grijalva', 'place of birth', 'Kingsford, East Ayrshire'] ['Jesús Zambrano Grijalva', 'place of birth', 'Empalme']
ASK WHERE { resource:Jesús_Zambrano_Grijalva property:place_of_birth resource:Kingsford,_East_Ayrshire . resource:Jesús_Zambrano_Grijalva property:place_of_birth resource:Empalme }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q320171
P417
Q502895 Q12737077 Q44539
USER
Which people are the names of the patron saint of around the same number of occupations or temples as John of God ?
(c(Q12737077)|c(Q44539),P417,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action find_reverse_tuple_counts
relation P417
type Q502895
type Q44539
action count
action filter_multi_types
action find_reverse
entity Q320171
relation P417
type Q12737077
type Q44539
[[{'concept': 'Q12737077'}, {'concept': 'Q44539'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?l ) AS ?h ) WHERE { { ?l property:P417 ?t . ?t rdf:type ontology:Q502895 . ?l rdf:type ontology:Q12737077 } UNION { ?l property:P417 ?t . ?t rdf:type ontology:Q502895 . ?l rdf:type ontology:Q44539 } } GROUP BY ?t } . FILTER ( ?h = ?p ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { ?k property:P417 resource:Q320171 . { ?k rdf:type ?z . VALUES ( ?z ) { ( ontology:Q12737077 ) ( ontology:Q44539 ) } } } } }
John of God
action approx
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action find_reverse_tuple_counts
relation patron saint
type common name
type temple
action count
action filter_multi_types
action find_reverse
entity John of God
relation patron saint
type occupation
type temple
[[{'concept': 'occupation'}, {'concept': 'temple'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?l ) AS ?h ) WHERE { { ?l property:patron_saint ?t . ?t rdf:type ontology:common_name . ?l rdf:type ontology:occupation } UNION { ?l property:patron_saint ?t . ?t rdf:type ontology:common_name . ?l rdf:type ontology:temple } } GROUP BY ?t } . FILTER ( ?h = ?p ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { ?k property:patron_saint resource:John_of_God . { ?k rdf:type ?z . VALUES ( ?z ) { ( ontology:occupation ) ( ontology:temple ) } } } } }
[]
common name occupation temple
Q9682 Q9438 Q191479
SYSTEM
Elizabeth II, Thomas Aquinas, Tadeusz Kościuszko
Q2366998 Q453698 Q561838 Q380092 Q129674 Q229190 Q43945 Q3922154 Q152457 Q172390 Q1050218 Q464959 Q394727 Q268087 Q1141472 Q61914 Q2916248 Q516729 Q349086 Q315640 Q3893243 Q719683 Q331697 Q1553720 Q351635 Q732865 Q3759661 Q696682 Q118087 Q320199 Q43689 Q1281133 Q236974 Q378656 Q61620 Q3776432 Q128267 Q2987904 Q2574015 Q101090 Q1834624 Q328804 Q174044 Q1284098 Q1249745 Q47144 Q240610 Q166876 Q163900 Q31966 Q170547 Q603655 Q44024 Q314700 Q3940728 Q44020 Q313807 Q149315 Q676555 Q2360539 Q244383 Q3615108 Q244380 Q235857 Q287916 Q192236 Q539890 Q102131 Q505937 Q44091 Q181715 Q212850 Q2617668 Q670456 Q1346958 Q243122 Q51885 Q238744 Q3747052 Q153024 Q3949261 Q234697 Q1284971 Q132797 Q132100 Q188411 Q727316 Q4011186 Q233067 Q3838743 Q374822 Q686948 Q733308 Q309953 Q118081 Q358325 Q537686 Q312057 Q357093 Q115550 Q9438 Q1502088 Q8413 Q558148 Q160373 Q130997 Q515953 Q1274242 Q312758 Q443392 Q5575577 Q379685 Q191479 Q42887 Q3745904 Q191107 Q4210004 Q4282480 Q177903 Q3859960 Q2697247 Q203437 Q457903 Q207113 Q8018 Q315312 Q43675 Q618214 Q242274 Q216946 Q728245 Q384364 Q132113 Q81634 Q221522 Q43954 Q44047 Q128538 Q37599 Q316599 Q232975 Q183240 Q122376 Q119289 Q145746 Q15284282 Q360798 Q298845 Q380345 Q288295 Q297742 Q218921 Q316295 Q183332 Q4014956 Q159834 Q119512 Q44281 Q63070 Q134666 Q170164 Q867765 Q914115 Q1289858 Q379914 Q3906150 Q3876580 Q189776 Q339541 Q965463 Q196527 Q160922 Q1115725 Q336731 Q913528 Q231256 Q196653 Q560531 Q4161703 Q508214 Q174880 Q1270991 Q235863 Q346 Q131159 Q190388 Q3924139 Q193507 Q180936 Q83198 Q2142772 Q2182480 Q7226 Q2005417 Q463600 Q243427 Q2456880 Q417686 Q185117 Q303640 Q241423 Q447384 Q1747656 Q6732208 Q1393825 Q64196 Q2824511 Q3887342 Q310686 Q359259 Q12871 Q43669 Q9156208 Q336704 Q181489 Q369691 Q587596 Q372668 Q831571 Q3779522 Q2456500 Q2352076 Q977571 Q44265 Q232453 Q192816 Q58559 Q445357 Q359878 Q190240 Q332656 Q210096 Q1976199 Q320171 Q3724316 Q1343711 Q3663117 Q137947 Q534691 Q160374 Q442516 Q920226 Q80513 Q43600 Q283447 Q26486 Q324700 Q158504 Q744884 Q130005 Q740907 Q44015 Q44258 Q70991 Q318974 Q151967 Q312314 Q149727 Q254896 Q3947956 Q11905449 Q1172641 Q3738578 Q4026158 Q367208 Q469978 Q232427 Q2270111 Q103556 Q129603 Q3561124 Q1110905 Q60059 Q335127 Q651226 Q355884 Q42827 Q159862 Q543320 Q318347 Q271474 Q3958514 Q317131 Q257960 Q234689 Q385253 Q208961 Q235619 Q200895 Q523662 Q284323 Q59071 Q1383532 Q160445 Q44248 Q1269112 Q2424767 Q459032 Q276148 Q131945 Q9682 Q127385 Q470608 Q196157 Q310633 Q208331
(c(Q12737077)|c(Q44539),P417,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action find_reverse_tuple_counts
relation P417
type Q502895
type Q44539
action count
action filter_multi_types
action find_reverse
entity Q320171
relation P417
type Q12737077
type Q44539
[ANSWERS] are the names of the patron saint of around the same number of occupations or temples as John of God
[[{'concept': 'Q12737077'}, {'concept': 'Q44539'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?l ) AS ?h ) WHERE { { ?l property:P417 ?t . ?t rdf:type ontology:Q502895 . ?l rdf:type ontology:Q12737077 } UNION { ?l property:P417 ?t . ?t rdf:type ontology:Q502895 . ?l rdf:type ontology:Q44539 } } GROUP BY ?t } . FILTER ( ?h = ?p ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { ?k property:P417 resource:Q320171 . { ?k rdf:type ?z . VALUES ( ?z ) { ( ontology:Q12737077 ) ( ontology:Q44539 ) } } } } }
Eurosia Saint Amand Alexander of Bergamo Francis Borgia, 4th Duke of Gandía Andrew Bobola Catherine of Siena Jude the Apostle Prisco di Nocera Saint Roch Martin I Catald Onuphrius Agnes of Bohemia Pudentiana Roger of Cannae Gotthard of Hildesheim Alexander of Comana Sebaldus Leopold III, Margrave of Austria Francis of Paola Pamphilus of Sulmona Ludger Saint David Guy of Anderlecht Stanislaus of Szczepanów Vitalis of Milan Genesio di Brescello Arnold von Arnoldsweiler Ludmila of Bohemia Apollinaris of Ravenna Ambrose Tudwal Radegund Saint Pantaleon Cunigunde of Luxembourg Gonçalo de Amarante Joseph Tryphon of Pechenga Nestor of Magydos Eleuterus Gummarus John the Evangelist Alexander Nevsky Turibius of Astorga Mamilian of Palermo Linus Euphemia Isidore of Seville Saint Francis Xavier Mark the Evangelist Anthony the Great Fidelis of Como Athanasius of Alexandria Joachim Romano martire Saint Matthias Joseph of Cupertino Silverius Francis of Assisi Donatus of Arezzo Rose of Lima Anatolia martire Saint Denis Elizabeth of Aragon Finbarr of Cork Thomas Becket Lazarus of Bethany Marcellus I Vincent Pallotti Saint Dominic Thérèse of Lisieux Vitus Saint Cunera Procopius of Sázava Judas Cyriacus Ferdinand III of Castile Thecla Peter of Verona Saint Fulk Rita of Cascia Saint Venera Maria Goretti La Mosca Victor Maurus Mark Anterus Bernard of Clairvaux Renaud de Montauban Vicinius of Sarsina Salome Lucido di Aquara Adrian of Nicomedia Alban of Mainz Medardus Gregory the Illuminator Pope Celestine V Ivo of Kermartin Angelus of Jerusalem Saint Casimir Saint Spyridon Nicholas of Flüe Thomas Aquinas Genesius of Arles Constantine the Great Leonard of Noblac Marcellinus Damasus I Maximilian of Lorch Romanus of Caesarea Jean-Baptiste de La Salle Saint Bibiana Gobnait Isidore the Laborer Tadeusz Kościuszko Clement I Fiorenzo di Bastia Clare of Assisi Venantius of Camerino Saint Martha Stephen I of Hungary Modestinus Catellus of Castellammare Stanislaus Kostka Saint Bavo Hippolytus Augustine of Hippo Januarius Philip the Apostle Aper of Toul Dorothea of Caesarea Charles Borromeo Marziano di Siracusa Ursus of Aosta Pontian Sixtus I John of Nepomuk Leo I James, son of Alphaeus Luke the Evangelist Theodore of Amasea Saint Maurice Anastasia of Sirmium Saint Lucy Callixtus I Leonard of Port Maurice Joseph Adolphus Saint Eligius Saint Florian Saint Maurus Justina of Padua Margaret the Virgin Saint Eustace Bernardino of Siena Saint Sebastian Vitaliano da Capua Hubertus William of Maleval Ignatius of Loyola Mary Magdalene Stephen I Helena of Constantinople Sossius Prosdocimus Saint Bassian Saint Cajetan Placidus Nicolò Politi Zeno of Verona Rufinus of Assisi Rumbold of Mechelen Saint Wenceslaus I, Duke of Bohemia Celestine I Saint Giovanni Battista de Rossi Pancras of Rome Brice of Tours Francis de Sales Saint Veronica Suitbert of Kaiserswerdt Dimitry Prilutsky Cyriacus Teresa of Ávila Eugenius of Carthage Genevieve Louis IX of France Fabian John of the Cross Prospero da Centuripe Saint Christopher Saint Gall Pius I Gereon Felice Joan of Arc Privat de Mende Saint Petronilla Adalbert of Prague Tryphon, Respicius, and Nympha Nazarius Justin Martyr Marcian of Tortona Juliana of Nicomedia Victoria, Anatolia, and Audax Saturninus of Cagliari Magnus of Cuneo Valerius of Saragossa Adelaide, Abbess of Vilich Adjutor Ottone Frangipane Dionysius the Areopagite Saint Emeric of Hungary Simon the Zealot Thomas the Apostle Anthony Sulpicius Severus Eusebius of Vercelli Saint Ursula Magnus of Anagni John the Merciful Eusebius of Esztergom Guido of Acqui Eulalia of Barcelona Francis Solanus Caprasius of Lérins Benedict of Nursia Martha Saint Barbara Leo IX Henry Erasmus of Formiae Cyprian Camillus de Lellis Agnes of Rome Gaudentius of Novara John of God Emilianus of Trevi Ephysius Castrese di Sessa Alexius of Rome Paschal Baylon Norbert of Xanten Germanus of Auxerre Michael de Sanctis Saint Cecilia Matthew the Apostle Lambert of Maastricht Ladislaus I of Hungary Urban of Langres Clement of Ohrid Zita Edward the Confessor Barbatus of Benevento John the Apostle Basil of Caesarea Hildegard of Bingen Vincent of Saragossa Saint Blaise Bruno of Cologne Saint Giles Anastasius of Persia San Secondo Anastasi de Lleida Calogerus Falco di Palena Possidonio Saint Remigius Devota Saint Apollonia Maternus Henry II, Holy Roman Emperor Caesarius of Africa Acisclus Simplicio of Olbia Albertus Magnus Agabus Viktor of Xanten Josaphat Kuntsevych Gregory I Elizabeth of Hungary Marina the Monk Sigismund of Burgundy Joseph of Arimathea Severinus of Sanseverino Vincent Ferrer Felicitas of Rome Monica of Hippo Agostino Novello Brendan Gertrude of Nivelles Agatha of Sicily Syrus of Pavia Eulalia of Mérida Peter de Regalado Rainerius Saint Boniface Jerome Saint Ninian Anthony of Apamea Elizabeth Ann Seton Charalampus Pius V Elizabeth II Sixtus II Peter of Alcantara Louis of Toulouse Demetrius of Thessaloniki Olaf II of Norway
Elizabeth II, Thomas Aquinas and Tadeusz Kościuszko are the names of the patron saint of around the same number of occupations or temples as John of God
Elizabeth II Thomas Aquinas Tadeusz Kościuszko
action approx
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action find_reverse_tuple_counts
relation patron saint
type common name
type temple
action count
action filter_multi_types
action find_reverse
entity John of God
relation patron saint
type occupation
type temple
[[{'concept': 'occupation'}, {'concept': 'temple'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?l ) AS ?h ) WHERE { { ?l property:patron_saint ?t . ?t rdf:type ontology:common_name . ?l rdf:type ontology:occupation } UNION { ?l property:patron_saint ?t . ?t rdf:type ontology:common_name . ?l rdf:type ontology:temple } } GROUP BY ?t } . FILTER ( ?h = ?p ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { ?k property:patron_saint resource:John_of_God . { ?k rdf:type ?z . VALUES ( ?z ) { ( ontology:occupation ) ( ontology:temple ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q332656
P417
Q502895 Q12737077 Q44539
USER
And what about Camillus de Lellis?
(c(Q12737077)|c(Q44539),P417,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action find_reverse_tuple_counts
relation P417
type Q502895
type Q44539
action count
action filter_multi_types
action find_reverse
entity Q332656
relation P417
type Q12737077
type Q44539
[[{'concept': 'Q12737077'}, {'concept': 'Q44539'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) ?x WHERE { { ?z property:P417 ?x . ?x rdf:type ontology:Q502895 . ?z rdf:type ontology:Q12737077 } UNION { ?z property:P417 ?x . ?x rdf:type ontology:Q502895 . ?z rdf:type ontology:Q44539 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n property:P417 resource:Q332656 . { VALUES ( ?m ) { ( ontology:Q12737077 ) ( ontology:Q44539 ) } . ?n rdf:type ?m } } } . FILTER ( ?a = ?d ) }
Camillus de Lellis
action approx
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action find_reverse_tuple_counts
relation patron saint
type common name
type temple
action count
action filter_multi_types
action find_reverse
entity Camillus de Lellis
relation patron saint
type occupation
type temple
[[{'concept': 'occupation'}, {'concept': 'temple'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) ?x WHERE { { ?z property:patron_saint ?x . ?x rdf:type ontology:common_name . ?z rdf:type ontology:occupation } UNION { ?z property:patron_saint ?x . ?x rdf:type ontology:common_name . ?z rdf:type ontology:temple } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n property:patron_saint resource:Camillus_de_Lellis . { VALUES ( ?m ) { ( ontology:occupation ) ( ontology:temple ) } . ?n rdf:type ?m } } } . FILTER ( ?a = ?d ) }
[]
common name occupation temple
Q9682 Q9438 Q191479
SYSTEM
Elizabeth II, Thomas Aquinas, Tadeusz Kościuszko
Q2366998 Q453698 Q561838 Q380092 Q129674 Q229190 Q43945 Q3922154 Q152457 Q172390 Q1050218 Q464959 Q394727 Q268087 Q1141472 Q61914 Q2916248 Q516729 Q349086 Q315640 Q3893243 Q719683 Q331697 Q1553720 Q351635 Q732865 Q3759661 Q696682 Q118087 Q320199 Q43689 Q1281133 Q236974 Q378656 Q61620 Q3776432 Q128267 Q2987904 Q2574015 Q101090 Q1834624 Q328804 Q174044 Q1284098 Q1249745 Q47144 Q240610 Q166876 Q163900 Q31966 Q170547 Q603655 Q44024 Q314700 Q3940728 Q44020 Q313807 Q149315 Q676555 Q2360539 Q244383 Q3615108 Q244380 Q235857 Q287916 Q192236 Q539890 Q102131 Q505937 Q44091 Q181715 Q212850 Q2617668 Q670456 Q1346958 Q243122 Q51885 Q238744 Q3747052 Q153024 Q3949261 Q234697 Q1284971 Q132797 Q132100 Q188411 Q727316 Q4011186 Q233067 Q3838743 Q374822 Q686948 Q733308 Q309953 Q118081 Q358325 Q537686 Q312057 Q357093 Q115550 Q9438 Q1502088 Q8413 Q558148 Q160373 Q130997 Q515953 Q1274242 Q312758 Q443392 Q5575577 Q379685 Q191479 Q42887 Q3745904 Q191107 Q4210004 Q4282480 Q177903 Q3859960 Q2697247 Q203437 Q457903 Q207113 Q8018 Q315312 Q43675 Q618214 Q242274 Q216946 Q728245 Q384364 Q132113 Q81634 Q221522 Q43954 Q44047 Q128538 Q37599 Q316599 Q232975 Q183240 Q122376 Q119289 Q145746 Q15284282 Q360798 Q298845 Q380345 Q288295 Q297742 Q218921 Q316295 Q183332 Q4014956 Q159834 Q119512 Q44281 Q63070 Q134666 Q170164 Q867765 Q914115 Q1289858 Q379914 Q3906150 Q3876580 Q189776 Q339541 Q965463 Q196527 Q160922 Q1115725 Q336731 Q913528 Q231256 Q196653 Q560531 Q4161703 Q508214 Q174880 Q1270991 Q235863 Q346 Q131159 Q190388 Q3924139 Q193507 Q180936 Q83198 Q2142772 Q2182480 Q7226 Q2005417 Q463600 Q243427 Q2456880 Q417686 Q185117 Q303640 Q241423 Q447384 Q1747656 Q6732208 Q1393825 Q64196 Q2824511 Q3887342 Q310686 Q359259 Q12871 Q43669 Q9156208 Q336704 Q181489 Q369691 Q587596 Q372668 Q831571 Q3779522 Q2456500 Q2352076 Q977571 Q44265 Q232453 Q192816 Q58559 Q445357 Q359878 Q190240 Q332656 Q210096 Q1976199 Q320171 Q3724316 Q1343711 Q3663117 Q137947 Q534691 Q160374 Q442516 Q920226 Q80513 Q43600 Q283447 Q26486 Q324700 Q158504 Q744884 Q130005 Q740907 Q44015 Q44258 Q70991 Q318974 Q151967 Q312314 Q149727 Q254896 Q3947956 Q11905449 Q1172641 Q3738578 Q4026158 Q367208 Q469978 Q232427 Q2270111 Q103556 Q129603 Q3561124 Q1110905 Q60059 Q335127 Q651226 Q355884 Q42827 Q159862 Q543320 Q318347 Q271474 Q3958514 Q317131 Q257960 Q234689 Q385253 Q208961 Q235619 Q200895 Q523662 Q284323 Q59071 Q1383532 Q160445 Q44248 Q1269112 Q2424767 Q459032 Q276148 Q131945 Q9682 Q127385 Q470608 Q196157 Q310633 Q208331
(c(Q12737077)|c(Q44539),P417,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action find_reverse_tuple_counts
relation P417
type Q502895
type Q44539
action count
action filter_multi_types
action find_reverse
entity Q332656
relation P417
type Q12737077
type Q44539
[ANSWERS]
[[{'concept': 'Q12737077'}, {'concept': 'Q44539'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) ?x WHERE { { ?z property:P417 ?x . ?x rdf:type ontology:Q502895 . ?z rdf:type ontology:Q12737077 } UNION { ?z property:P417 ?x . ?x rdf:type ontology:Q502895 . ?z rdf:type ontology:Q44539 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n property:P417 resource:Q332656 . { VALUES ( ?m ) { ( ontology:Q12737077 ) ( ontology:Q44539 ) } . ?n rdf:type ?m } } } . FILTER ( ?a = ?d ) }
Eurosia Saint Amand Alexander of Bergamo Francis Borgia, 4th Duke of Gandía Andrew Bobola Catherine of Siena Jude the Apostle Prisco di Nocera Saint Roch Martin I Catald Onuphrius Agnes of Bohemia Pudentiana Roger of Cannae Gotthard of Hildesheim Alexander of Comana Sebaldus Leopold III, Margrave of Austria Francis of Paola Pamphilus of Sulmona Ludger Saint David Guy of Anderlecht Stanislaus of Szczepanów Vitalis of Milan Genesio di Brescello Arnold von Arnoldsweiler Ludmila of Bohemia Apollinaris of Ravenna Ambrose Tudwal Radegund Saint Pantaleon Cunigunde of Luxembourg Gonçalo de Amarante Joseph Tryphon of Pechenga Nestor of Magydos Eleuterus Gummarus John the Evangelist Alexander Nevsky Turibius of Astorga Mamilian of Palermo Linus Euphemia Isidore of Seville Saint Francis Xavier Mark the Evangelist Anthony the Great Fidelis of Como Athanasius of Alexandria Joachim Romano martire Saint Matthias Joseph of Cupertino Silverius Francis of Assisi Donatus of Arezzo Rose of Lima Anatolia martire Saint Denis Elizabeth of Aragon Finbarr of Cork Thomas Becket Lazarus of Bethany Marcellus I Vincent Pallotti Saint Dominic Thérèse of Lisieux Vitus Saint Cunera Procopius of Sázava Judas Cyriacus Ferdinand III of Castile Thecla Peter of Verona Saint Fulk Rita of Cascia Saint Venera Maria Goretti La Mosca Victor Maurus Mark Anterus Bernard of Clairvaux Renaud de Montauban Vicinius of Sarsina Salome Lucido di Aquara Adrian of Nicomedia Alban of Mainz Medardus Gregory the Illuminator Pope Celestine V Ivo of Kermartin Angelus of Jerusalem Saint Casimir Saint Spyridon Nicholas of Flüe Thomas Aquinas Genesius of Arles Constantine the Great Leonard of Noblac Marcellinus Damasus I Maximilian of Lorch Romanus of Caesarea Jean-Baptiste de La Salle Saint Bibiana Gobnait Isidore the Laborer Tadeusz Kościuszko Clement I Fiorenzo di Bastia Clare of Assisi Venantius of Camerino Saint Martha Stephen I of Hungary Modestinus Catellus of Castellammare Stanislaus Kostka Saint Bavo Hippolytus Augustine of Hippo Januarius Philip the Apostle Aper of Toul Dorothea of Caesarea Charles Borromeo Marziano di Siracusa Ursus of Aosta Pontian Sixtus I John of Nepomuk Leo I James, son of Alphaeus Luke the Evangelist Theodore of Amasea Saint Maurice Anastasia of Sirmium Saint Lucy Callixtus I Leonard of Port Maurice Joseph Adolphus Saint Eligius Saint Florian Saint Maurus Justina of Padua Margaret the Virgin Saint Eustace Bernardino of Siena Saint Sebastian Vitaliano da Capua Hubertus William of Maleval Ignatius of Loyola Mary Magdalene Stephen I Helena of Constantinople Sossius Prosdocimus Saint Bassian Saint Cajetan Placidus Nicolò Politi Zeno of Verona Rufinus of Assisi Rumbold of Mechelen Saint Wenceslaus I, Duke of Bohemia Celestine I Saint Giovanni Battista de Rossi Pancras of Rome Brice of Tours Francis de Sales Saint Veronica Suitbert of Kaiserswerdt Dimitry Prilutsky Cyriacus Teresa of Ávila Eugenius of Carthage Genevieve Louis IX of France Fabian John of the Cross Prospero da Centuripe Saint Christopher Saint Gall Pius I Gereon Felice Joan of Arc Privat de Mende Saint Petronilla Adalbert of Prague Tryphon, Respicius, and Nympha Nazarius Justin Martyr Marcian of Tortona Juliana of Nicomedia Victoria, Anatolia, and Audax Saturninus of Cagliari Magnus of Cuneo Valerius of Saragossa Adelaide, Abbess of Vilich Adjutor Ottone Frangipane Dionysius the Areopagite Saint Emeric of Hungary Simon the Zealot Thomas the Apostle Anthony Sulpicius Severus Eusebius of Vercelli Saint Ursula Magnus of Anagni John the Merciful Eusebius of Esztergom Guido of Acqui Eulalia of Barcelona Francis Solanus Caprasius of Lérins Benedict of Nursia Martha Saint Barbara Leo IX Henry Erasmus of Formiae Cyprian Camillus de Lellis Agnes of Rome Gaudentius of Novara John of God Emilianus of Trevi Ephysius Castrese di Sessa Alexius of Rome Paschal Baylon Norbert of Xanten Germanus of Auxerre Michael de Sanctis Saint Cecilia Matthew the Apostle Lambert of Maastricht Ladislaus I of Hungary Urban of Langres Clement of Ohrid Zita Edward the Confessor Barbatus of Benevento John the Apostle Basil of Caesarea Hildegard of Bingen Vincent of Saragossa Saint Blaise Bruno of Cologne Saint Giles Anastasius of Persia San Secondo Anastasi de Lleida Calogerus Falco di Palena Possidonio Saint Remigius Devota Saint Apollonia Maternus Henry II, Holy Roman Emperor Caesarius of Africa Acisclus Simplicio of Olbia Albertus Magnus Agabus Viktor of Xanten Josaphat Kuntsevych Gregory I Elizabeth of Hungary Marina the Monk Sigismund of Burgundy Joseph of Arimathea Severinus of Sanseverino Vincent Ferrer Felicitas of Rome Monica of Hippo Agostino Novello Brendan Gertrude of Nivelles Agatha of Sicily Syrus of Pavia Eulalia of Mérida Peter de Regalado Rainerius Saint Boniface Jerome Saint Ninian Anthony of Apamea Elizabeth Ann Seton Charalampus Pius V Elizabeth II Sixtus II Peter of Alcantara Louis of Toulouse Demetrius of Thessaloniki Olaf II of Norway
Elizabeth II Thomas Aquinas Tadeusz Kościuszko
action approx
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action find_reverse_tuple_counts
relation patron saint
type common name
type temple
action count
action filter_multi_types
action find_reverse
entity Camillus de Lellis
relation patron saint
type occupation
type temple
[[{'concept': 'occupation'}, {'concept': 'temple'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) ?x WHERE { { ?z property:patron_saint ?x . ?x rdf:type ontology:common_name . ?z rdf:type ontology:occupation } UNION { ?z property:patron_saint ?x . ?x rdf:type ontology:common_name . ?z rdf:type ontology:temple } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n property:patron_saint resource:Camillus_de_Lellis . { VALUES ( ?m ) { ( ontology:occupation ) ( ontology:temple ) } . ?n rdf:type ?m } } } . FILTER ( ?a = ?d ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2138167 Q934086
P17
Q15617994
USER
Which administrative territories do Empalme or Scottish region (1975 to 1996) belong to ?
OR((Q934086,P17,c(Q15617994)), (Q2138167,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q934086
relation P17
action find
entity Q2138167
relation P17
type Q15617994
{'OR': [['Q934086', 'P17', {'concept': 'Q15617994'}], ['Q2138167', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q2138167 property:P17 ?f } UNION { resource:Q934086 property:P17 ?f } } . ?f rdf:type ontology:Q15617994 }
Scottish region (1975 to 1996) Empalme
action filter_type
action union
action find
entity Empalme
relation country
action find
entity Scottish region (1975 to 1996)
relation country
type designation for an administrative territorial entity
{'OR': [['Empalme', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Scottish region (1975 to 1996)', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Scottish_region_(1975_to_1996) property:country ?f } UNION { resource:Empalme property:country ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q96 Q145
SYSTEM
Mexico, United Kingdom
Q96 Q145
OR((Q934086,P17,c(Q15617994)), (Q2138167,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q934086
relation P17
action find
entity Q2138167
relation P17
type Q15617994
[ANSWERS] Empalme or Scottish region (1975 to 1996) belong to
{'OR': [['Q934086', 'P17', {'concept': 'Q15617994'}], ['Q2138167', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q2138167 property:P17 ?f } UNION { resource:Q934086 property:P17 ?f } } . ?f rdf:type ontology:Q15617994 }
Mexico United Kingdom
Mexico and United Kingdom Empalme or Scottish region (1975 to 1996) belong to
Mexico United Kingdom
action filter_type
action union
action find
entity Empalme
relation country
action find
entity Scottish region (1975 to 1996)
relation country
type designation for an administrative territorial entity
{'OR': [['Empalme', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Scottish region (1975 to 1996)', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Scottish_region_(1975_to_1996) property:country ?f } UNION { resource:Empalme property:country ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q7725634 Q2342494
USER
How many administrative territories are the countries of origin of approximately the same number of literary works or collectables as that administrative territory ?
(c(Q7725634)|c(Q2342494),P495,c(Q15617994))
[[{'concept': 'Q7725634'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
[[{'concept': 'literary work'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]
designation for an administrative territorial entity literary work collectable
Comparative|Count over More/Less|Mult. entity type|Clarification
Q145
SYSTEM
Did you mean United Kingdom ?
(c(Q7725634)|c(Q2342494),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
Did you mean United Kingdom ?
United Kingdom
[[{'concept': 'literary work'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q7725634)|c(Q2342494),P495,c(Q15617994))
[[{'concept': 'Q7725634'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'literary work'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q145
(c(Q7725634)|c(Q2342494),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
United Kingdom
1
[[{'concept': 'literary work'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q96
P1376
Q56061
USER
Which administrative territory is the capital of Mexico ?
(c(Q56061),P1376,Q96)
action filter_type
action find_reverse
entity Q96
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q96']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . ?b property:P1376 resource:Q96 }
Mexico
action filter_type
action find_reverse
entity Mexico
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Mexico']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . ?b property:capital_of resource:Mexico }
[]
administrative territorial entity
Q1489
SYSTEM
Mexico City
Q1489
(c(Q56061),P1376,Q96)
action filter_type
action find_reverse
entity Q96
relation P1376
type Q56061
[ANSWER] is the capital of Mexico
[{'concept': 'Q56061'}, 'P1376', 'Q96']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . ?b property:P1376 resource:Q96 }
Mexico City
Mexico City is the capital of Mexico
Mexico City
action filter_type
action find_reverse
entity Mexico
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Mexico']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . ?b property:capital_of resource:Mexico }
[]