Simple Question (Direct)
Simple Question
Q15499865
P106
Q12737077
USER
What are the job of Paul Heiney ?
(Q15499865,P106,c(Q12737077))
action filter_type
action find
entity Q15499865
relation P106
type Q12737077
['Q15499865', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q12737077 . resource:Q15499865 property:P106 ?b }
Paul Heiney
action filter_type
action find
entity Paul Heiney
relation occupation
type occupation
['Paul Heiney', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:occupation . resource:Paul_Heiney property:occupation ?b }
[]
occupation
Q2722764 Q947873
SYSTEM
radio personality, television presenter
Q2722764 Q947873
(Q15499865,P106,c(Q12737077))
action filter_type
action find
entity Q15499865
relation P106
type Q12737077
The job of Paul Heiney are a [ANSWERS]
['Q15499865', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q12737077 . resource:Q15499865 property:P106 ?b }
radio personality television presenter
The job of Paul Heiney are a radio personality and television presenter
radio personality television presenter
action filter_type
action find
entity Paul Heiney
relation occupation
type occupation
['Paul Heiney', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:occupation . resource:Paul_Heiney property:occupation ?b }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15499865
P21
Q290
USER
What is the sex of Paul Heiney ?
(Q15499865,P21,c(Q290))
action filter_type
action find
entity Q15499865
relation P21
type Q290
['Q15499865', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q15499865 property:P21 ?p . ?p rdf:type ontology:Q290 }
Paul Heiney
action filter_type
action find
entity Paul Heiney
relation gender
type sex
['Paul Heiney', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Paul_Heiney property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q15499865,P21,c(Q290))
action filter_type
action find
entity Q15499865
relation P21
type Q290
The sex of Paul Heiney is the [ANSWER]
['Q15499865', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q15499865 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
The sex of Paul Heiney is the male
male
action filter_type
action find
entity Paul Heiney
relation gender
type sex
['Paul Heiney', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Paul_Heiney property:gender ?p . ?p rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5242104
Q290
USER
And how about Davorin Savnik?
(Q5242104,P21,c(Q290))
action filter_type
action find
entity Q5242104
relation P21
type Q290
['Q5242104', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q290 . resource:Q5242104 property:P21 ?v }
Davorin Savnik
action filter_type
action find
entity Davorin Savnik
relation gender
type sex
['Davorin Savnik', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:sex . resource:Davorin_Savnik property:gender ?v }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5242104,P21,c(Q290))
action filter_type
action find
entity Q5242104
relation P21
type Q290
[ANSWER]
['Q5242104', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q290 . resource:Q5242104 property:P21 ?v }
male
male
action filter_type
action find
entity Davorin Savnik
relation gender
type sex
['Davorin Savnik', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:sex . resource:Davorin_Savnik property:gender ?v }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q3771491
P21
Q502895
USER
Is Giuseppe Stuto a that sex ?
(Q3771491,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q3771491
relation P21
['Q3771491', 'P21', 'Q6581097']
ASK WHERE { resource:Q3771491 property:P21 resource:Q6581097 }
male Giuseppe Stuto
action is_in
entity male
action find
entity Giuseppe Stuto
relation gender
['Giuseppe Stuto', 'gender', 'male']
ASK WHERE { resource:Giuseppe_Stuto property:gender resource:male }
[]
common name
SYSTEM
YES
(Q3771491,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q3771491
relation P21
[ANSWER]
['Q3771491', 'P21', 'Q6581097']
ASK WHERE { resource:Q3771491 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Giuseppe Stuto
relation gender
['Giuseppe Stuto', 'gender', 'male']
ASK WHERE { resource:Giuseppe_Stuto property:gender resource:male }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saints of atmost 2 occupations ?
(c(Q12737077),P417,c(Q502895))
action atmost
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:P417 ?t . ?t rdf:type ontology:Q502895 . ?a rdf:type ontology:Q12737077 } GROUP BY ?t } . FILTER ( ?j <= 2 ) }
action atmost
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:patron_saint ?t . ?t rdf:type ontology:common_name . ?a rdf:type ontology:occupation } GROUP BY ?t } . FILTER ( ?j <= 2 ) }
[]
common name occupation
Q9682 Q9438 Q191479
SYSTEM
Elizabeth II, Thomas Aquinas, Tadeusz Kościuszko
Q2366998 Q453698 Q561838 Q380092 Q129674 Q133704 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 Q33923 Q81634 Q161775 Q221522 Q43954 Q44047 Q37599 Q316599 Q232975 Q183240 Q122376 Q119289 Q145746 Q15284282 Q360798 Q298845 Q167477 Q380345 Q288295 Q297742 Q218921 Q316295 Q183332 Q4014956 Q48438 Q159834 Q119512 Q44281 Q63070 Q134666 Q170164 Q43399 Q867765 Q914115 Q1289858 Q379914 Q3906150 Q3876580 Q189776 Q339541 Q965463 Q196527 Q160922 Q1115725 Q336731 Q913528 Q231256 Q196653 Q560531 Q4161703 Q508214 Q9200 Q174880 Q1270991 Q235863 Q346 Q131159 Q190388 Q3924139 Q193507 Q180936 Q83198 Q2142772 Q2182480 Q7226 Q2005417 Q463600 Q243427 Q2456880 Q417686 Q185117 Q303640 Q241423 Q43999 Q447384 Q1747656 Q6732208 Q1393825 Q64196 Q2824511 Q3887342 Q310686 Q359259 Q12871 Q43669 Q9156208 Q336704 Q181489 Q369691 Q44269 Q587596 Q372668 Q831571 Q3779522 Q2456500 Q2352076 Q977571 Q44265 Q232453 Q58559 Q445357 Q40662 Q359878 Q190240 Q332656 Q210096 Q1976199 Q320171 Q3724316 Q1343711 Q3663117 Q137947 Q534691 Q160374 Q442516 Q920226 Q80513 Q283447 Q26486 Q324700 Q158504 Q744884 Q130005 Q740907 Q44015 Q44258 Q70991 Q318974 Q151967 Q312314 Q149727 Q254896 Q3947956 Q11905449 Q1172641 Q3738578 Q4026158 Q367208 Q469978 Q232427 Q164294 Q2270111 Q103556 Q129603 Q3561124 Q1110905 Q60059 Q335127 Q651226 Q355884 Q42827 Q159862 Q543320 Q17590 Q318347 Q271474 Q3958514 Q317131 Q257960 Q234689 Q385253 Q208961 Q235619 Q523662 Q284323 Q59071 Q1383532 Q160445 Q44248 Q1269112 Q2424767 Q459032 Q276148 Q131945 Q9682 Q127385 Q470608 Q196157 Q310633 Q208331
(c(Q12737077),P417,c(Q502895))
action atmost
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[ANSWERS] are the patron saints of atmost 2 occupations
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:P417 ?t . ?t rdf:type ontology:Q502895 . ?a rdf:type ontology:Q12737077 } GROUP BY ?t } . FILTER ( ?j <= 2 ) }
Eurosia Saint Amand Alexander of Bergamo Francis Borgia, 4th Duke of Gandía Andrew Bobola Martin of Tours 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 Peter Sixtus I Stephen John of Nepomuk Leo I James, son of Alphaeus Theodore of Amasea Saint Maurice Anastasia of Sirmium Saint Lucy Callixtus I Leonard of Port Maurice Joseph Adolphus Saint Eligius Saint Florian Anthony of Padua Saint Maurus Justina of Padua Margaret the Virgin Saint Eustace Bernardino of Siena Saint Sebastian Vitaliano da Capua Saint George Hubertus William of Maleval Ignatius of Loyola Mary Magdalene Stephen I Helena of Constantinople Andrew 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 Paul 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 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 Thomas the Apostle 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 Benedict of Nursia Martha Leo IX Henry John the Baptist 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 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 Saint Anna 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 Lawrence of Rome Sigismund of Burgundy Joseph of Arimathea 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 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 patron saints of atmost 2 occupations
Elizabeth II Thomas Aquinas Tadeusz Kościuszko
action atmost
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:patron_saint ?t . ?t rdf:type ontology:common_name . ?a rdf:type ontology:occupation } GROUP BY ?t } . FILTER ( ?j <= 2 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P737
Q502895
USER
How many people had an influence on that person ?
(Q9438,P737,c(Q502895))
['Q9438', 'P737', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q9438 property:P737 ?z . ?z rdf:type ontology:Q502895 }
['Thomas Aquinas', 'influenced by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Thomas_Aquinas property:influenced_by ?z . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q9682
SYSTEM
Did you mean Elizabeth II ?
(Q9682,P737,c(Q502895)) (Q9438,P737,c(Q502895)) (Q191479,P737,c(Q502895))
[ANSWER]
['Q9682', 'P737', {'concept': 'Q502895'}] ['Q9438', 'P737', {'concept': 'Q502895'}] ['Q191479', 'P737', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q9438 property:P737 ?z . ?z rdf:type ontology:Q502895 }
Did you mean Elizabeth II ?
Elizabeth II
['Elizabeth II', 'influenced by', {'concept': 'common name'}] ['Thomas Aquinas', 'influenced by', {'concept': 'common name'}] ['Tadeusz Kościuszko', 'influenced by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Thomas_Aquinas property:influenced_by ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Thomas Aquinas. Could you tell me the answer for that?
(Q9438,P737,c(Q502895))
Q9438
['Q9438', 'P737', {'concept': 'Q502895'}]
['Thomas Aquinas', 'influenced by', {'concept': 'common name'}]
[]
SYSTEM
15
Q859 Q9191 Q43939 Q9546 Q8011 Q39837 Q184500 Q102851 Q127398 Q1541 Q179759 Q60059 Q868 Q8018 Q9200
(Q9438,P737,c(Q502895))
[ANSWER]
['Q9438', 'P737', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q9438 property:P737 ?z . ?z rdf:type ontology:Q502895 }
Plato René Descartes Anselm of Canterbury Al-Ghazali Avicenna Averroes Johannes Scotus Eriugena Boethius Maimonides Cicero Al-Kindi Albertus Magnus Aristotle Augustine of Hippo Paul
15
['Thomas Aquinas', 'influenced by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Thomas_Aquinas property:influenced_by ?z . ?z rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q182021
P88
Q502895 Q180516 Q3947
USER
How many people commissioned more number of rooms or houses than Marie de' Medici ?
(c(Q180516)|c(Q3947),P88,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P88
type Q502895
type Q180516
action find_reverse_tuple_counts
relation P88
type Q502895
type Q3947
action count
action filter_multi_types
action find_reverse
entity Q182021
relation P88
type Q180516
type Q3947
[[{'concept': 'Q180516'}, {'concept': 'Q3947'}], 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) ?p WHERE { { ?u property:P88 ?p . ?p rdf:type ontology:Q502895 . ?u rdf:type ontology:Q180516 } UNION { ?u property:P88 ?p . ?u rdf:type ontology:Q3947 . ?p rdf:type ontology:Q502895 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:P88 resource:Q182021 . { ?y rdf:type ?o . VALUES ( ?o ) { ( ontology:Q180516 ) ( ontology:Q3947 ) } } } } . FILTER ( ?k > ?q ) }
Marie de' Medici
action count
action greater
action union
action find_reverse_tuple_counts
relation commissioned by
type common name
type room
action find_reverse_tuple_counts
relation commissioned by
type common name
type house
action count
action filter_multi_types
action find_reverse
entity Marie de' Medici
relation commissioned by
type room
type house
[[{'concept': 'room'}, {'concept': 'house'}], 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) ?p WHERE { { ?u property:commissioned_by ?p . ?p rdf:type ontology:common_name . ?u rdf:type ontology:room } UNION { ?u property:commissioned_by ?p . ?u rdf:type ontology:house . ?p rdf:type ontology:common_name } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:commissioned_by resource:Marie_de'_Medici . { ?y rdf:type ?o . VALUES ( ?o ) { ( ontology:room ) ( ontology:house ) } } } } . FILTER ( ?k > ?q ) }
[]
common name room house
SYSTEM
37
Q48547 Q1434742 Q5482808 Q16328562 Q13422636 Q5344847 Q19635621 Q448169 Q3291384 Q130822 Q152245 Q18175809 Q38200 Q9439 Q15839391 Q15454222 Q153815 Q19403561 Q3132908 Q1542046 Q795117 Q715054 Q1379797 Q969797 Q8008060 Q3340239 Q335667 Q2935138 Q354309 Q104190 Q740642 Q395635 Q1385734 Q3351435 Q57180 Q299675 Q731799
(c(Q180516)|c(Q3947),P88,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P88
type Q502895
type Q180516
action find_reverse_tuple_counts
relation P88
type Q502895
type Q3947
action count
action filter_multi_types
action find_reverse
entity Q182021
relation P88
type Q180516
type Q3947
[ANSWER]
[[{'concept': 'Q180516'}, {'concept': 'Q3947'}], 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) ?p WHERE { { ?u property:P88 ?p . ?p rdf:type ontology:Q502895 . ?u rdf:type ontology:Q180516 } UNION { ?u property:P88 ?p . ?u rdf:type ontology:Q3947 . ?p rdf:type ontology:Q502895 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:P88 resource:Q182021 . { ?y rdf:type ?o . VALUES ( ?o ) { ( ontology:Q180516 ) ( ontology:Q3947 ) } } } } . FILTER ( ?k > ?q ) }
Cosimo I de' Medici, Grand Duke of Tuscany Ludwig Schneller Francis Willoughby Leonidas Deligiorgis Willy Bleissem Edward Phelips Gábor Patachich Alva Belmont Mariano Guadalupe Vallejo William IV of the United Kingdom Albert, Prince Consort Giorgio Contarini John Thynne Queen Victoria Dittmar Finkler Josef Neven DuMont Princess Margaret, Countess of Snowdon Alfons Mauser Henry Le Tonnelier de Breteuil Wilhelm Girardet Christian Louis de Montmorency-Luxembourg Borso d'Este, Duke of Ferrara Leonello d'Este, Marquis of Ferrara Guidobaldo da Montefeltro William Duff, 1st Earl Fife Nicolas de Launay Henry Bathurst, 2nd Earl Bathurst Camillo Francesco Maria Pamphili William Cecil, 1st Baron Burghley Robert Walpole Nicolas de Neufville de Villeroy Agostino Chigi Francesco Pisani Olivier Voutier Frederick William IV of Prussia Francesco I de' Medici, Grand Duke of Tuscany Giovanni Ricci
37
action count
action greater
action union
action find_reverse_tuple_counts
relation commissioned by
type common name
type room
action find_reverse_tuple_counts
relation commissioned by
type common name
type house
action count
action filter_multi_types
action find_reverse
entity Marie de' Medici
relation commissioned by
type room
type house
[[{'concept': 'room'}, {'concept': 'house'}], 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) ?p WHERE { { ?u property:commissioned_by ?p . ?p rdf:type ontology:common_name . ?u rdf:type ontology:room } UNION { ?u property:commissioned_by ?p . ?u rdf:type ontology:house . ?p rdf:type ontology:common_name } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:commissioned_by resource:Marie_de'_Medici . { ?y rdf:type ?o . VALUES ( ?o ) { ( ontology:room ) ( ontology:house ) } } } } . FILTER ( ?k > ?q ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q36180 Q9438
P106 P802
Q502895
USER
Which people were a notable student of Thomas Aquinas and have career as writer ?
AND((c(Q502895),P802,Q9438), (c(Q502895),P106,Q36180))
action filter_type
action intersection
action find_reverse
entity Q9438
relation P802
action find_reverse
entity Q36180
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P802', 'Q9438'], [{'concept': 'Q502895'}, 'P106', 'Q36180']]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?t property:P106 resource:Q36180 . ?t property:P802 resource:Q9438 }
writer Thomas Aquinas
action filter_type
action intersection
action find_reverse
entity Thomas Aquinas
relation student
action find_reverse
entity writer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'student', 'Thomas Aquinas'], [{'concept': 'common name'}, 'occupation', 'writer']]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?t property:occupation resource:writer . ?t property:student resource:Thomas_Aquinas }
[]
common name
Q60059
SYSTEM
Albertus Magnus
Q60059
AND((c(Q502895),P802,Q9438), (c(Q502895),P106,Q36180))
action filter_type
action intersection
action find_reverse
entity Q9438
relation P802
action find_reverse
entity Q36180
relation P106
type Q502895
[ANSWER] was a notable student of Thomas Aquinas and have career as writer
{'AND': [[{'concept': 'Q502895'}, 'P802', 'Q9438'], [{'concept': 'Q502895'}, 'P106', 'Q36180']]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?t property:P106 resource:Q36180 . ?t property:P802 resource:Q9438 }
Albertus Magnus
Albertus Magnus was a notable student of Thomas Aquinas and have career as writer
Albertus Magnus
action filter_type
action intersection
action find_reverse
entity Thomas Aquinas
relation student
action find_reverse
entity writer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'student', 'Thomas Aquinas'], [{'concept': 'common name'}, 'occupation', 'writer']]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?t property:occupation resource:writer . ?t property:student resource:Thomas_Aquinas }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q9682
P35
Q1048835
USER
How many political territories have Elizabeth II as their chief of state ?
(c(Q1048835),P35,Q9682)
action count
action filter_type
action find_reverse
entity Q9682
relation P35
type Q1048835
[{'concept': 'Q1048835'}, 'P35', 'Q9682']
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:P35 resource:Q9682 . ?d rdf:type ontology:Q1048835 }
Elizabeth II
action count
action filter_type
action find_reverse
entity Elizabeth II
relation head of state
type political territorial entity
[{'concept': 'political territorial entity'}, 'head of state', 'Elizabeth II']
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:head_of_state resource:Elizabeth_II . ?d rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
15
Q763 Q766 Q778 Q664 Q408 Q691 Q757 Q685 Q18221 Q16 Q769 Q9648 Q9676 Q781 Q785
(c(Q1048835),P35,Q9682)
action count
action filter_type
action find_reverse
entity Q9682
relation P35
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P35', 'Q9682']
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:P35 resource:Q9682 . ?d rdf:type ontology:Q1048835 }
Saint Kitts and Nevis Jamaica The Bahamas New Zealand Australia Papua New Guinea Saint Vincent and the Grenadines Solomon Islands Turks and Caicos Islands Canada Grenada Falkland Islands Isle of Man Antigua and Barbuda Jersey
15
action count
action filter_type
action find_reverse
entity Elizabeth II
relation head of state
type political territorial entity
[{'concept': 'political territorial entity'}, 'head of state', 'Elizabeth II']
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:head_of_state resource:Elizabeth_II . ?d rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q267745
P35
Q1048835
USER
And how about William Deane?
(c(Q1048835),P35,Q267745)
action count
action filter_type
action find_reverse
entity Q267745
relation P35
type Q1048835
[{'concept': 'Q1048835'}, 'P35', 'Q267745']
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { ?o property:P35 resource:Q267745 . ?o rdf:type ontology:Q1048835 }
William Deane
action count
action filter_type
action find_reverse
entity William Deane
relation head of state
type political territorial entity
[{'concept': 'political territorial entity'}, 'head of state', 'William Deane']
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { ?o property:head_of_state resource:William_Deane . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q408
(c(Q1048835),P35,Q267745)
action count
action filter_type
action find_reverse
entity Q267745
relation P35
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P35', 'Q267745']
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { ?o property:P35 resource:Q267745 . ?o rdf:type ontology:Q1048835 }
Australia
1
action count
action filter_type
action find_reverse
entity William Deane
relation head of state
type political territorial entity
[{'concept': 'political territorial entity'}, 'head of state', 'William Deane']
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { ?o property:head_of_state resource:William_Deane . ?o rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9682
P25
Q502895
USER
Which female person was the parent of Elizabeth II ?
(Q9682,P25,c(Q502895))
action filter_type
action find
entity Q9682
relation P25
type Q502895
['Q9682', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q9682 property:P25 ?w . ?w rdf:type ontology:Q502895 }
Elizabeth II
action filter_type
action find
entity Elizabeth II
relation mother
type common name
['Elizabeth II', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Elizabeth_II property:mother ?w . ?w rdf:type ontology:common_name }
[]
common name
Q10633
SYSTEM
Queen Elizabeth The Queen Mother
Q10633
(Q9682,P25,c(Q502895))
action filter_type
action find
entity Q9682
relation P25
type Q502895
Elizabeth [ANSWER] was the parent of Elizabeth II
['Q9682', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q9682 property:P25 ?w . ?w rdf:type ontology:Q502895 }
Queen Elizabeth The Queen Mother
Elizabeth Queen Elizabeth The Queen Mother was the parent of Elizabeth II
Queen Elizabeth The Queen Mother
action filter_type
action find
entity Elizabeth II
relation mother
type common name
['Elizabeth II', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Elizabeth_II property:mother ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9682
P1038
Q502895
USER
Which person is related to Elizabeth II ?
(c(Q502895),P1038,Q9682)
action filter_type
action find_reverse
entity Q9682
relation P1038
type Q502895
[{'concept': 'Q502895'}, 'P1038', 'Q9682']
SELECT DISTINCT ?n WHERE { ?n property:P1038 resource:Q9682 . ?n rdf:type ontology:Q502895 }
Elizabeth II
action filter_type
action find_reverse
entity Elizabeth II
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'Elizabeth II']
SELECT DISTINCT ?n WHERE { ?n property:relative resource:Elizabeth_II . ?n rdf:type ontology:common_name }
[]
common name
Q18002970
SYSTEM
Princess Charlotte of Cambridge
Q18002970
(c(Q502895),P1038,Q9682)
action filter_type
action find_reverse
entity Q9682
relation P1038
type Q502895
[ANSWER] is related to Elizabeth II
[{'concept': 'Q502895'}, 'P1038', 'Q9682']
SELECT DISTINCT ?n WHERE { ?n property:P1038 resource:Q9682 . ?n rdf:type ontology:Q502895 }
Princess Charlotte of Cambridge
Princess Charlotte of Cambridge is related to Elizabeth II
Princess Charlotte of Cambridge
action filter_type
action find_reverse
entity Elizabeth II
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'Elizabeth II']
SELECT DISTINCT ?n WHERE { ?n property:relative resource:Elizabeth_II . ?n rdf:type ontology:common_name }
[]