Simple Question (Direct)
Simple Question
Q4723516
P39
Q12737077
USER
Which occupation was a position held by Alfred Thomas, 1st Baron Pontypridd ?
(Q4723516,P39,c(Q12737077))
action filter_type
action find
entity Q4723516
relation P39
type Q12737077
['Q4723516', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q4723516 property:P39 ?g . ?g rdf:type ontology:Q12737077 }
Alfred Thomas, 1st Baron Pontypridd
action filter_type
action find
entity Alfred Thomas, 1st Baron Pontypridd
relation position held
type occupation
['Alfred Thomas, 1st Baron Pontypridd', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Alfred_Thomas,_1st_Baron_Pontypridd property:position_held ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q16707842
SYSTEM
Member of Parliament in the United Kingdom
Q16707842
(Q4723516,P39,c(Q12737077))
action filter_type
action find
entity Q4723516
relation P39
type Q12737077
The [ANSWER] was a position held by Alfred Thomas, 1st Baron Pontypridd
['Q4723516', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q4723516 property:P39 ?g . ?g rdf:type ontology:Q12737077 }
Member of Parliament in the United Kingdom
The Member of Parliament in the United Kingdom was a position held by Alfred Thomas, 1st Baron Pontypridd
Member of Parliament in the United Kingdom
action filter_type
action find
entity Alfred Thomas, 1st Baron Pontypridd
relation position held
type occupation
['Alfred Thomas, 1st Baron Pontypridd', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Alfred_Thomas,_1st_Baron_Pontypridd property:position_held ?g . ?g rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16707842
P1001
Q15617994
USER
Which administrative territory applies to jurisdiction of that occupation ?
(Q16707842,P1001,c(Q15617994))
action filter_type
action find
entity Q16707842
relation P1001
type Q15617994
['Q16707842', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q16707842 property:P1001 ?g }
Member of Parliament in the United Kingdom
action filter_type
action find
entity Member of Parliament in the United Kingdom
relation applies to jurisdiction
type designation for an administrative territorial entity
['Member of Parliament in the United Kingdom', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Member_of_Parliament_in_the_United_Kingdom property:applies_to_jurisdiction ?g }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q16707842,P1001,c(Q15617994))
action filter_type
action find
entity Q16707842
relation P1001
type Q15617994
[ANSWER] applies to jurisdiction of that occupation
['Q16707842', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q16707842 property:P1001 ?g }
United Kingdom
United Kingdom applies to jurisdiction of that occupation
United Kingdom
action filter_type
action find
entity Member of Parliament in the United Kingdom
relation applies to jurisdiction
type designation for an administrative territorial entity
['Member of Parliament in the United Kingdom', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Member_of_Parliament_in_the_United_Kingdom property:applies_to_jurisdiction ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16707842
P106
Q502895
USER
Which people have the profession of Member of Parliament in the United Kingdom ?
(c(Q502895),P106,Q16707842)
action filter_type
action find_reverse
entity Q16707842
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q16707842']
SELECT DISTINCT ?w WHERE { ?w property:P106 resource:Q16707842 . ?w rdf:type ontology:Q502895 }
Member of Parliament in the United Kingdom
action filter_type
action find_reverse
entity Member of Parliament in the United Kingdom
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'Member of Parliament in the United Kingdom']
SELECT DISTINCT ?w WHERE { ?w property:occupation resource:Member_of_Parliament_in_the_United_Kingdom . ?w rdf:type ontology:common_name }
[]
common name
Q24573112 Q21856725 Q24292009
SYSTEM
David Lewis, Edward Stanley, Sir James Hamlyn-Williams, 3rd Baronet
Q21548870 Q24292009 Q24573112 Q21856725
(c(Q502895),P106,Q16707842)
action filter_type
action find_reverse
entity Q16707842
relation P106
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P106', 'Q16707842']
SELECT DISTINCT ?w WHERE { ?w property:P106 resource:Q16707842 . ?w rdf:type ontology:Q502895 }
Wilson Jones Sir James Hamlyn-Williams, 3rd Baronet David Lewis Edward Stanley
And David Lewis, Edward Stanley and Sir James Hamlyn-Williams, 3rd Baronet have the profession of Member of Parliament in the United Kingdom
David Lewis Edward Stanley Sir James Hamlyn-Williams, 3rd Baronet
action filter_type
action find_reverse
entity Member of Parliament in the United Kingdom
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'Member of Parliament in the United Kingdom']
SELECT DISTINCT ?w WHERE { ?w property:occupation resource:Member_of_Parliament_in_the_United_Kingdom . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q24573112 Q21856725 Q24292009
P106
Q12737077
USER
What are the job of those people ?
(Q24573112,P106,c(Q12737077)) (Q21856725,P106,c(Q12737077)) (Q24292009,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
['Q24573112', 'P106', {'concept': 'Q12737077'}] ['Q21856725', 'P106', {'concept': 'Q12737077'}] ['Q24292009', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q12737077 . ?y property:P106 ?c . VALUES ( ?y ) { ( resource:Q21548870 ) ( resource:Q24292009 ) ( resource:Q24573112 ) } }
David Lewis Edward Stanley Sir James Hamlyn-Williams, 3rd Baronet
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['David Lewis', 'occupation', {'concept': 'occupation'}] ['Edward Stanley', 'occupation', {'concept': 'occupation'}] ['Sir James Hamlyn-Williams, 3rd Baronet', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:occupation . ?y property:occupation ?c . VALUES ( ?y ) { ( resource:Wilson_Jones ) ( resource:Sir_James_Hamlyn-Williams,_3rd_Baronet ) ( resource:David_Lewis ) } }
[]
occupation
Q16707842 Q16707842 Q16707842
SYSTEM
Member of Parliament in the United Kingdom
Q16707842 Q82955 Q16707842 Q82955 Q16707842
(Q24573112,P106,c(Q12737077)) (Q21856725,P106,c(Q12737077)) (Q24292009,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
The job of those people are [ANSWER], [ANSWER] and [ANSWER]
['Q24573112', 'P106', {'concept': 'Q12737077'}] ['Q21856725', 'P106', {'concept': 'Q12737077'}] ['Q24292009', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q12737077 . ?y property:P106 ?c . VALUES ( ?y ) { ( resource:Q21548870 ) ( resource:Q24292009 ) ( resource:Q24573112 ) } }
Member of Parliament in the United Kingdom politician Member of Parliament in the United Kingdom politician Member of Parliament in the United Kingdom
The job of those people are Member of Parliament in the United Kingdom, Member of Parliament in the United Kingdom and Member of Parliament in the United Kingdom
Member of Parliament in the United Kingdom Member of Parliament in the United Kingdom Member of Parliament in the United Kingdom
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['David Lewis', 'occupation', {'concept': 'occupation'}] ['Edward Stanley', 'occupation', {'concept': 'occupation'}] ['Sir James Hamlyn-Williams, 3rd Baronet', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:occupation . ?y property:occupation ?c . VALUES ( ?y ) { ( resource:Wilson_Jones ) ( resource:Sir_James_Hamlyn-Williams,_3rd_Baronet ) ( resource:David_Lewis ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16707842
P361
Q375928
USER
What is Member of Parliament in the United Kingdom a component of ?
(Q16707842,P361,c(Q375928))
action filter_type
action find
entity Q16707842
relation P361
type Q375928
['Q16707842', 'P361', {'concept': 'Q375928'}]
SELECT DISTINCT ?m WHERE { resource:Q16707842 property:P361 ?m . ?m rdf:type ontology:Q375928 }
Member of Parliament in the United Kingdom
action filter_type
action find
entity Member of Parliament in the United Kingdom
relation part of
type lower house
['Member of Parliament in the United Kingdom', 'part of', {'concept': 'lower house'}]
SELECT DISTINCT ?m WHERE { resource:Member_of_Parliament_in_the_United_Kingdom property:part_of ?m . ?m rdf:type ontology:lower_house }
[]
lower house
Q11005
SYSTEM
House of Commons
Q11005
(Q16707842,P361,c(Q375928))
action filter_type
action find
entity Q16707842
relation P361
type Q375928
Commons [ANSWER] a component of
['Q16707842', 'P361', {'concept': 'Q375928'}]
SELECT DISTINCT ?m WHERE { resource:Q16707842 property:P361 ?m . ?m rdf:type ontology:Q375928 }
House of Commons
Commons House of Commons a component of
House of Commons
action filter_type
action find
entity Member of Parliament in the United Kingdom
relation part of
type lower house
['Member of Parliament in the United Kingdom', 'part of', {'concept': 'lower house'}]
SELECT DISTINCT ?m WHERE { resource:Member_of_Parliament_in_the_United_Kingdom property:part_of ?m . ?m rdf:type ontology:lower_house }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q19772501
Q375928
USER
And how about Member of the West Virginia House of Delegates?
(Q19772501,P361,c(Q375928))
action filter_type
action find
entity Q19772501
relation P361
type Q375928
['Q19772501', 'P361', {'concept': 'Q375928'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q375928 . resource:Q19772501 property:P361 ?k }
Member of the West Virginia House of Delegates
action filter_type
action find
entity Member of the West Virginia House of Delegates
relation part of
type lower house
['Member of the West Virginia House of Delegates', 'part of', {'concept': 'lower house'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:lower_house . resource:Member_of_the_West_Virginia_House_of_Delegates property:part_of ?k }
[]
lower house
Q320278
SYSTEM
West Virginia House of Delegates
Q320278
(Q19772501,P361,c(Q375928))
action filter_type
action find
entity Q19772501
relation P361
type Q375928
[ANSWER]
['Q19772501', 'P361', {'concept': 'Q375928'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q375928 . resource:Q19772501 property:P361 ?k }
West Virginia House of Delegates
West Virginia House of Delegates
action filter_type
action find
entity Member of the West Virginia House of Delegates
relation part of
type lower house
['Member of the West Virginia House of Delegates', 'part of', {'concept': 'lower house'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:lower_house . resource:Member_of_the_West_Virginia_House_of_Delegates property:part_of ?k }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q320278 Q9092 Q30
P17
Q15617994
USER
Is that lower house present in Bruino and United States of America ?
(Q320278,P17,Q9092) (Q320278,P17,Q30)
action is_in
entity Q320278
action intersection
action find_reverse
entity Q9092
relation P17
action find_reverse
entity Q30
relation P17
['Q320278', 'P17', 'Q9092'] ['Q320278', 'P17', 'Q30']
ASK WHERE { resource:Q320278 property:P17 resource:Q9092 . resource:Q320278 property:P17 resource:Q30 }
West Virginia House of Delegates Bruino United States of America
action is_in
entity West Virginia House of Delegates
action intersection
action find_reverse
entity Bruino
relation country
action find_reverse
entity United States of America
relation country
['West Virginia House of Delegates', 'country', 'Bruino'] ['West Virginia House of Delegates', 'country', 'United States of America']
ASK WHERE { resource:West_Virginia_House_of_Delegates property:country resource:Bruino . resource:West_Virginia_House_of_Delegates property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q320278,P17,Q9092) (Q320278,P17,Q30)
action is_in
entity Q320278
action intersection
action find_reverse
entity Q9092
relation P17
action find_reverse
entity Q30
relation P17
[ANSWER]
['Q320278', 'P17', 'Q9092'] ['Q320278', 'P17', 'Q30']
ASK WHERE { resource:Q320278 property:P17 resource:Q9092 . resource:Q320278 property:P17 resource:Q30 }
NO and YES respectively
action is_in
entity West Virginia House of Delegates
action intersection
action find_reverse
entity Bruino
relation country
action find_reverse
entity United States of America
relation country
['West Virginia House of Delegates', 'country', 'Bruino'] ['West Virginia House of Delegates', 'country', 'United States of America']
ASK WHERE { resource:West_Virginia_House_of_Delegates property:country resource:Bruino . resource:West_Virginia_House_of_Delegates property:country resource:United_States_of_America }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q5575577
P417
Q502895 Q12737077
USER
Which people are the names of the patron saint of lesser number of occupations than Gobnait ?
(c(Q12737077),P417,c(Q502895))
action less
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find_reverse
entity Q5575577
relation P417
type Q12737077
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?i ) WHERE { ?w property:P417 ?j . ?j rdf:type ontology:Q502895 . ?w rdf:type ontology:Q12737077 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { ?f property:P417 resource:Q5575577 . ?f rdf:type ontology:Q12737077 } } . FILTER ( ?i < ?v ) }
Gobnait
action less
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find_reverse
entity Gobnait
relation patron saint
type occupation
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?i ) WHERE { ?w property:patron_saint ?j . ?j rdf:type ontology:common_name . ?w rdf:type ontology:occupation } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { ?f property:patron_saint resource:Gobnait . ?f rdf:type ontology:occupation } } . FILTER ( ?i < ?v ) }
[]
common name occupation
Q9682 Q191479 Q346
SYSTEM
Elizabeth II, Tadeusz Kościuszko, Louis IX of France
Q2366998 Q561838 Q380092 Q129674 Q133704 Q43945 Q3922154 Q172390 Q1050218 Q464959 Q394727 Q268087 Q1141472 Q61914 Q2916248 Q516729 Q349086 Q315640 Q3893243 Q719683 Q331697 Q1553720 Q351635 Q732865 Q3759661 Q696682 Q118087 Q320199 Q1281133 Q236974 Q378656 Q61620 Q3776432 Q128267 Q2987904 Q2574015 Q101090 Q1834624 Q174044 Q1284098 Q1249745 Q47144 Q240610 Q31966 Q603655 Q44024 Q314700 Q3940728 Q44020 Q313807 Q149315 Q676555 Q2360539 Q244383 Q3615108 Q244380 Q235857 Q287916 Q192236 Q539890 Q102131 Q505937 Q44091 Q181715 Q2617668 Q670456 Q1346958 Q243122 Q51885 Q238744 Q3747052 Q153024 Q3949261 Q234697 Q1284971 Q132797 Q132100 Q188411 Q727316 Q4011186 Q233067 Q3838743 Q686948 Q733308 Q309953 Q118081 Q358325 Q537686 Q312057 Q357093 Q115550 Q1502088 Q8413 Q558148 Q160373 Q515953 Q1274242 Q443392 Q379685 Q191479 Q42887 Q3745904 Q4210004 Q4282480 Q177903 Q3859960 Q2697247 Q203437 Q457903 Q207113 Q8018 Q315312 Q43675 Q618214 Q216946 Q728245 Q384364 Q132113 Q33923 Q81634 Q161775 Q221522 Q43954 Q44047 Q37599 Q316599 Q232975 Q122376 Q145746 Q15284282 Q167477 Q380345 Q288295 Q297742 Q218921 Q316295 Q183332 Q4014956 Q159834 Q63070 Q134666 Q867765 Q914115 Q1289858 Q379914 Q3906150 Q3876580 Q189776 Q339541 Q965463 Q196527 Q160922 Q1115725 Q336731 Q913528 Q231256 Q560531 Q4161703 Q174880 Q1270991 Q235863 Q346 Q131159 Q190388 Q3924139 Q180936 Q83198 Q2142772 Q2182480 Q7226 Q2005417 Q243427 Q2456880 Q417686 Q185117 Q303640 Q241423 Q43999 Q447384 Q1747656 Q6732208 Q1393825 Q64196 Q2824511 Q3887342 Q310686 Q359259 Q12871 Q9156208 Q336704 Q181489 Q369691 Q44269 Q587596 Q372668 Q831571 Q3779522 Q2456500 Q2352076 Q977571 Q232453 Q58559 Q445357 Q359878 Q190240 Q210096 Q1976199 Q3724316 Q1343711 Q3663117 Q534691 Q160374 Q442516 Q920226 Q283447 Q26486 Q158504 Q130005 Q740907 Q44258 Q70991 Q318974 Q312314 Q254896 Q3947956 Q11905449 Q1172641 Q3738578 Q4026158 Q367208 Q469978 Q164294 Q2270111 Q103556 Q129603 Q3561124 Q1110905 Q335127 Q651226 Q355884 Q42827 Q159862 Q543320 Q318347 Q3958514 Q317131 Q257960 Q234689 Q385253 Q208961 Q235619 Q523662 Q284323 Q59071 Q1383532 Q160445 Q1269112 Q2424767 Q459032 Q131945 Q9682 Q127385 Q470608 Q196157 Q310633 Q208331
(c(Q12737077),P417,c(Q502895))
action less
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find_reverse
entity Q5575577
relation P417
type Q12737077
[ANSWERS] are the names of the patron saint of lesser number of occupations than Gobnait
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?i ) WHERE { ?w property:P417 ?j . ?j rdf:type ontology:Q502895 . ?w rdf:type ontology:Q12737077 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { ?f property:P417 resource:Q5575577 . ?f rdf:type ontology:Q12737077 } } . FILTER ( ?i < ?v ) }
Eurosia Alexander of Bergamo Francis Borgia, 4th Duke of Gandía Andrew Bobola Martin of Tours Jude the Apostle Prisco di Nocera 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 Tudwal Radegund Saint Pantaleon Cunigunde of Luxembourg Gonçalo de Amarante Joseph Tryphon of Pechenga Nestor of Magydos Eleuterus Gummarus Alexander Nevsky Turibius of Astorga Mamilian of Palermo Linus Euphemia Mark the Evangelist 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 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 Alban of Mainz Medardus Gregory the Illuminator Pope Celestine V Ivo of Kermartin Angelus of Jerusalem Saint Casimir Saint Spyridon Nicholas of Flüe Genesius of Arles Constantine the Great Leonard of Noblac Marcellinus Maximilian of Lorch Romanus of Caesarea Saint Bibiana Isidore the Laborer Tadeusz Kościuszko Clement I Fiorenzo di Bastia 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 Charles Borromeo Marziano di Siracusa Ursus of Aosta Pontian Peter Sixtus I Stephen John of Nepomuk Leo I James, son of Alphaeus Theodore of Amasea Saint Maurice Anastasia of Sirmium Callixtus I Joseph Adolphus Anthony of Padua Saint Maurus Justina of Padua Margaret the Virgin Saint Eustace Bernardino of Siena Saint Sebastian Vitaliano da Capua Hubertus Mary Magdalene Stephen I 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 Suitbert of Kaiserswerdt Dimitry Prilutsky Teresa of Ávila Eugenius of Carthage Genevieve Louis IX of France Fabian John of the Cross Prospero da Centuripe Saint Gall Pius I Gereon Felice Joan of Arc Privat de Mende Adalbert of Prague Tryphon, Respicius, and Nympha Nazarius Justin Martyr Marcian of Tortona Juliana of Nicomedia James 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 Anthony Sulpicius Severus Eusebius of Vercelli Saint Ursula Saint Nicholas Magnus of Anagni John the Merciful Eusebius of Esztergom Guido of Acqui Eulalia of Barcelona Francis Solanus Caprasius of Lérins Martha Leo IX Henry Erasmus of Formiae Cyprian Agnes of Rome Gaudentius of Novara Emilianus of Trevi Ephysius Castrese di Sessa Paschal Baylon Norbert of Xanten Germanus of Auxerre Michael de Sanctis Lambert of Maastricht Ladislaus I of Hungary Clement of Ohrid Edward the Confessor Barbatus of Benevento Basil of Caesarea Hildegard of Bingen Vincent of Saragossa Bruno of Cologne Anastasius of Persia San Secondo Anastasi de Lleida Calogerus Falco di Palena Possidonio Saint Remigius Devota Saint Anna Maternus Henry II, Holy Roman Emperor Caesarius of Africa Acisclus Simplicio of Olbia Agabus Viktor of Xanten Josaphat Kuntsevych Gregory I Elizabeth of Hungary Marina the Monk Sigismund of Burgundy Severinus of Sanseverino Vincent Ferrer Felicitas of Rome Monica of Hippo Agostino Novello Brendan Gertrude of Nivelles Syrus of Pavia Eulalia of Mérida Peter de Regalado Rainerius Saint Boniface Saint Ninian Anthony of Apamea Elizabeth Ann Seton Pius V Elizabeth II Sixtus II Peter of Alcantara Louis of Toulouse Demetrius of Thessaloniki Olaf II of Norway
Elizabeth II, Tadeusz Kościuszko and Louis IX of France are the names of the patron saint of lesser number of occupations than Gobnait
Elizabeth II Tadeusz Kościuszko Louis IX of France
action less
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find_reverse
entity Gobnait
relation patron saint
type occupation
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?i ) WHERE { ?w property:patron_saint ?j . ?j rdf:type ontology:common_name . ?w rdf:type ontology:occupation } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { ?f property:patron_saint resource:Gobnait . ?f rdf:type ontology:occupation } } . FILTER ( ?i < ?v ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q324700
P417
Q502895 Q12737077
USER
And what about Urban of Langres?
(c(Q12737077),P417,c(Q502895))
action less
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find_reverse
entity Q324700
relation P417
type Q12737077
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?g ) WHERE { ?b rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q502895 . ?b property:P417 ?i } GROUP BY ?i } . FILTER ( ?g < ?x ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:P417 resource:Q324700 . ?r rdf:type ontology:Q12737077 } } }
Urban of Langres
action less
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find_reverse
entity Urban of Langres
relation patron saint
type occupation
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?g ) WHERE { ?b rdf:type ontology:occupation . ?i rdf:type ontology:common_name . ?b property:patron_saint ?i } GROUP BY ?i } . FILTER ( ?g < ?x ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:patron_saint resource:Urban_of_Langres . ?r rdf:type ontology:occupation } } }
[]
common name occupation
Q9682 Q191479 Q346
SYSTEM
Elizabeth II, Tadeusz Kościuszko, Louis IX of France
Q2366998 Q561838 Q380092 Q129674 Q133704 Q43945 Q3922154 Q172390 Q1050218 Q464959 Q394727 Q268087 Q1141472 Q61914 Q2916248 Q516729 Q349086 Q315640 Q3893243 Q719683 Q331697 Q1553720 Q351635 Q732865 Q3759661 Q696682 Q118087 Q320199 Q1281133 Q236974 Q378656 Q61620 Q3776432 Q128267 Q2987904 Q2574015 Q101090 Q1834624 Q174044 Q1284098 Q1249745 Q47144 Q240610 Q31966 Q603655 Q44024 Q314700 Q3940728 Q44020 Q313807 Q149315 Q676555 Q2360539 Q244383 Q3615108 Q244380 Q235857 Q287916 Q192236 Q539890 Q102131 Q505937 Q44091 Q181715 Q2617668 Q670456 Q1346958 Q243122 Q51885 Q238744 Q3747052 Q153024 Q3949261 Q234697 Q1284971 Q132797 Q132100 Q188411 Q727316 Q4011186 Q233067 Q3838743 Q686948 Q733308 Q309953 Q118081 Q358325 Q537686 Q312057 Q357093 Q115550 Q1502088 Q8413 Q558148 Q160373 Q515953 Q1274242 Q443392 Q379685 Q191479 Q42887 Q3745904 Q4210004 Q4282480 Q177903 Q3859960 Q2697247 Q203437 Q457903 Q207113 Q8018 Q315312 Q43675 Q618214 Q216946 Q728245 Q384364 Q132113 Q33923 Q81634 Q161775 Q221522 Q43954 Q44047 Q37599 Q316599 Q232975 Q122376 Q145746 Q15284282 Q167477 Q380345 Q288295 Q297742 Q218921 Q316295 Q183332 Q4014956 Q159834 Q63070 Q134666 Q867765 Q914115 Q1289858 Q379914 Q3906150 Q3876580 Q189776 Q339541 Q965463 Q196527 Q160922 Q1115725 Q336731 Q913528 Q231256 Q560531 Q4161703 Q174880 Q1270991 Q235863 Q346 Q131159 Q190388 Q3924139 Q180936 Q83198 Q2142772 Q2182480 Q7226 Q2005417 Q243427 Q2456880 Q417686 Q185117 Q303640 Q241423 Q43999 Q447384 Q1747656 Q6732208 Q1393825 Q64196 Q2824511 Q3887342 Q310686 Q359259 Q12871 Q9156208 Q336704 Q181489 Q369691 Q44269 Q587596 Q372668 Q831571 Q3779522 Q2456500 Q2352076 Q977571 Q232453 Q58559 Q445357 Q359878 Q190240 Q210096 Q1976199 Q3724316 Q1343711 Q3663117 Q534691 Q160374 Q442516 Q920226 Q283447 Q26486 Q158504 Q130005 Q740907 Q44258 Q70991 Q318974 Q312314 Q254896 Q3947956 Q11905449 Q1172641 Q3738578 Q4026158 Q367208 Q469978 Q164294 Q2270111 Q103556 Q129603 Q3561124 Q1110905 Q335127 Q651226 Q355884 Q42827 Q159862 Q543320 Q318347 Q3958514 Q317131 Q257960 Q234689 Q385253 Q208961 Q235619 Q523662 Q284323 Q59071 Q1383532 Q160445 Q1269112 Q2424767 Q459032 Q131945 Q9682 Q127385 Q470608 Q196157 Q310633 Q208331
(c(Q12737077),P417,c(Q502895))
action less
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find_reverse
entity Q324700
relation P417
type Q12737077
[ANSWERS]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?g ) WHERE { ?b rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q502895 . ?b property:P417 ?i } GROUP BY ?i } . FILTER ( ?g < ?x ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:P417 resource:Q324700 . ?r rdf:type ontology:Q12737077 } } }
Eurosia Alexander of Bergamo Francis Borgia, 4th Duke of Gandía Andrew Bobola Martin of Tours Jude the Apostle Prisco di Nocera 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 Tudwal Radegund Saint Pantaleon Cunigunde of Luxembourg Gonçalo de Amarante Joseph Tryphon of Pechenga Nestor of Magydos Eleuterus Gummarus Alexander Nevsky Turibius of Astorga Mamilian of Palermo Linus Euphemia Mark the Evangelist 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 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 Alban of Mainz Medardus Gregory the Illuminator Pope Celestine V Ivo of Kermartin Angelus of Jerusalem Saint Casimir Saint Spyridon Nicholas of Flüe Genesius of Arles Constantine the Great Leonard of Noblac Marcellinus Maximilian of Lorch Romanus of Caesarea Saint Bibiana Isidore the Laborer Tadeusz Kościuszko Clement I Fiorenzo di Bastia 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 Charles Borromeo Marziano di Siracusa Ursus of Aosta Pontian Peter Sixtus I Stephen John of Nepomuk Leo I James, son of Alphaeus Theodore of Amasea Saint Maurice Anastasia of Sirmium Callixtus I Joseph Adolphus Anthony of Padua Saint Maurus Justina of Padua Margaret the Virgin Saint Eustace Bernardino of Siena Saint Sebastian Vitaliano da Capua Hubertus Mary Magdalene Stephen I 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 Suitbert of Kaiserswerdt Dimitry Prilutsky Teresa of Ávila Eugenius of Carthage Genevieve Louis IX of France Fabian John of the Cross Prospero da Centuripe Saint Gall Pius I Gereon Felice Joan of Arc Privat de Mende Adalbert of Prague Tryphon, Respicius, and Nympha Nazarius Justin Martyr Marcian of Tortona Juliana of Nicomedia James 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 Anthony Sulpicius Severus Eusebius of Vercelli Saint Ursula Saint Nicholas Magnus of Anagni John the Merciful Eusebius of Esztergom Guido of Acqui Eulalia of Barcelona Francis Solanus Caprasius of Lérins Martha Leo IX Henry Erasmus of Formiae Cyprian Agnes of Rome Gaudentius of Novara Emilianus of Trevi Ephysius Castrese di Sessa Paschal Baylon Norbert of Xanten Germanus of Auxerre Michael de Sanctis Lambert of Maastricht Ladislaus I of Hungary Clement of Ohrid Edward the Confessor Barbatus of Benevento Basil of Caesarea Hildegard of Bingen Vincent of Saragossa Bruno of Cologne Anastasius of Persia San Secondo Anastasi de Lleida Calogerus Falco di Palena Possidonio Saint Remigius Devota Saint Anna Maternus Henry II, Holy Roman Emperor Caesarius of Africa Acisclus Simplicio of Olbia Agabus Viktor of Xanten Josaphat Kuntsevych Gregory I Elizabeth of Hungary Marina the Monk Sigismund of Burgundy Severinus of Sanseverino Vincent Ferrer Felicitas of Rome Monica of Hippo Agostino Novello Brendan Gertrude of Nivelles Syrus of Pavia Eulalia of Mérida Peter de Regalado Rainerius Saint Boniface Saint Ninian Anthony of Apamea Elizabeth Ann Seton Pius V Elizabeth II Sixtus II Peter of Alcantara Louis of Toulouse Demetrius of Thessaloniki Olaf II of Norway
Elizabeth II Tadeusz Kościuszko Louis IX of France
action less
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find_reverse
entity Urban of Langres
relation patron saint
type occupation
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?g ) WHERE { ?b rdf:type ontology:occupation . ?i rdf:type ontology:common_name . ?b property:patron_saint ?i } GROUP BY ?i } . FILTER ( ?g < ?x ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:patron_saint resource:Urban_of_Langres . ?r rdf:type ontology:occupation } } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P825
Q502895 Q838948 Q482994
USER
How many people are more number of works of art or albums dedicated to than that person ?
(c(Q838948)|c(Q482994),P825,c(Q502895))
[[{'concept': 'Q838948'}, {'concept': 'Q482994'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?f ) { ( ?z ) ( ?x ) } . ?f property:P825 ?y } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q482994 }
[[{'concept': 'work of art'}, {'concept': 'album'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?f ) { ( ?z ) ( ?x ) } . ?f property:dedicated_to ?y } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:common_name . ?x rdf:type ontology:album }
[]
common name work of art album
Comparative|Count over More/Less|Mult. entity type|Clarification
Q9682
SYSTEM
Did you mean Elizabeth II ?
(c(Q838948)|c(Q482994),P825,c(Q502895))
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q482994'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?f ) { ( ?z ) ( ?x ) } . ?f property:P825 ?y } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q482994 }
Did you mean Elizabeth II ?
Elizabeth II
[[{'concept': 'work of art'}, {'concept': 'album'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?f ) { ( ?z ) ( ?x ) } . ?f property:dedicated_to ?y } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:common_name . ?x rdf:type ontology:album }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Louis IX of France. Could you tell me the answer for that?
(c(Q838948)|c(Q482994),P825,c(Q502895))
Q346
[[{'concept': 'Q838948'}, {'concept': 'Q482994'}], 'P825', {'concept': 'Q502895'}]
[[{'concept': 'work of art'}, {'concept': 'album'}], 'dedicated to', {'concept': 'common name'}]
[]
SYSTEM
107
Q282498 Q181707 Q318636 Q249719 Q676555 Q392 Q312747 Q184935 Q572684 Q17812378 Q989 Q157176 Q2959487 Q937 Q849 Q747 Q5858974 Q173061 Q235863 Q8605 Q43999 Q295090 Q351670 Q3348840 Q888326 Q297 Q313548 Q132684 Q45380 Q14345 Q1394 Q22985873 Q1064 Q5561411 Q9025343 Q1666 Q541634 Q115550 Q539 Q379753 Q298185 Q43600 Q271651 Q244852 Q5593 Q183085 Q57240 Q2376505 Q284560 Q41568 Q697765 Q25089 Q160614 Q18363 Q4340905 Q499022 Q37064 Q1288566 Q152727 Q29179 Q6918007 Q7327 Q35548 Q6527 Q8195163 Q5837054 Q9455 Q691402 Q297483 Q1380238 Q1496 Q462255 Q645141 Q165274 Q501 Q4893207 Q727717 Q35149 Q636533 Q160149 Q154232 Q551735 Q157100 Q711836 Q3069570 Q709118 Q130777 Q130805 Q6108547 Q1153323 Q289215 Q351715 Q3372785 Q170842 Q12718 Q216873 Q238090 Q3781346 Q5992912 Q3395811 Q45682 Q284323 Q221263 Q469572 Q5984068 Q82122 Q1337419
(c(Q838948)|c(Q482994),P825,c(Q502895))
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q482994'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P825 ?y } UNION { ?x property:P825 ?y } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q482994 }
Gaspar Melchor de Jovellanos Charles Fourier Neville Marriner Yui Francis of Assisi Bob Dylan Leopoldo Alas Mihai Eminescu Thomas-Alexandre Dumas Francisco Pintado Fe John Paul II Władysław Szpilman Charles Joseph Lenoir Albert Einstein François Villon Pierre Corneille Fermín Canella Secades Syd Barrett Genevieve Simón Bolívar James Léon Gambetta Komitas Vardapet Octave Gréard Bob Wills Diego Velázquez Absalon Saint-John Perse John Lewis Roh Moo-hyun Vladimir Lenin Elizabeth Jean Scott Alessandro Manzoni José Tartiere y Lenegre Luis Riera Posada Jacques Brel Bobby Bland Nicholas of Flüe Giuseppe Diego Garibaldi Pacheco Benito Jerónimo Feijóo y Montenegro Samuel Sánchez Matthew the Apostle Michel Eugène Chevreul Gediminas Pablo Picasso Isabella II of Spain Ernst Bloch Edith Cowan Manuel Puig Michel de Montaigne Rudolf Maister Woody Allen Skanderbeg Alfonso XIII of Spain Bridget O'Connor Emmanuel Fremiet Alexander Fleming Len Lye Frederick William, Elector of Brandenburg Francisco Franco Motoharu Sano Yuri Gagarin Paul Cézanne Jean-Jacques Rousseau Alfonso Iglesias Ernesto Winter Blanco Vallabhbhai Patel Philip IV of Spain Ferdinando I de' Medici, Grand Duke of Tuscany Hugh d'Avranches, 1st Earl of Chester Ferdinand Magellan Marino Lejarreta Armando Palacio Valdés Jacques Prévert Charles Baudelaire Sabino Fernández Campo, 1st Count of Latores Ramón Pérez de Ayala Wilhelm Röntgen Pedro Rodríguez, Conde de Campomanes Mark Rothko Alexander Suvorov Edgar Quinet Margaret of Austria, Duchess of Savoy Philippe Pot Fernando de Valdés y Salas Tim Birkin Kazimir Malevich George I of Great Britain Ricardo Vázquez-Prada Blanco Danguolė Rasalaitė Alejandro Boliviano Fruela I of Asturias Paulino Vicente (padre) Sergei Koroliov Auguste Comte Pierre Puvis de Chavannes Sholem Aleichem Aida Lafuente Penaos Manuel Fernández Avello Dolores Medio Jean Sibelius Eulalia of Mérida Philibert II, Duke of Savoy John Nicholson Luis Noval Ferrao Jean-Baptiste de Lamarck Emilio Alarcos Llorach
107
[[{'concept': 'work of art'}, {'concept': 'album'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:dedicated_to ?y } UNION { ?x property:dedicated_to ?y } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:common_name . ?x rdf:type ontology:album }
[]