Simple Question (Direct)
Simple Question
Q726622
P106
Q12737077
USER
What are the job of Max Hastings ?
(Q726622,P106,c(Q12737077))
action filter_type
action find
entity Q726622
relation P106
type Q12737077
['Q726622', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q726622 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
Max Hastings
action filter_type
action find
entity Max Hastings
relation occupation
type occupation
['Max Hastings', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Max_Hastings property:occupation ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q1930187 Q1493121 Q36180
SYSTEM
journalist, military historian, writer
Q1930187 Q1493121 Q36180
(Q726622,P106,c(Q12737077))
action filter_type
action find
entity Q726622
relation P106
type Q12737077
The job of Max Hastings are a [ANSWERS]
['Q726622', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q726622 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
journalist military historian writer
The job of Max Hastings are a journalist, military historian and writer
journalist military historian writer
action filter_type
action find
entity Max Hastings
relation occupation
type occupation
['Max Hastings', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Max_Hastings property:occupation ?g . ?g rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q726622
P69
Q1244442
USER
Which school building is the alma mater of Max Hastings ?
(Q726622,P69,c(Q1244442))
action filter_type
action find
entity Q726622
relation P69
type Q1244442
['Q726622', 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?x WHERE { resource:Q726622 property:P69 ?x . ?x rdf:type ontology:Q1244442 }
Max Hastings
action filter_type
action find
entity Max Hastings
relation educated at
type school building
['Max Hastings', 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?x WHERE { resource:Max_Hastings property:educated_at ?x . ?x rdf:type ontology:school_building }
[]
school building
Q81087
SYSTEM
University College
Q81087
(Q726622,P69,c(Q1244442))
action filter_type
action find
entity Q726622
relation P69
type Q1244442
[ANSWER] is the alma mater of Max Hastings
['Q726622', 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?x WHERE { resource:Q726622 property:P69 ?x . ?x rdf:type ontology:Q1244442 }
University College
University College is the alma mater of Max Hastings
University College
action filter_type
action find
entity Max Hastings
relation educated at
type school building
['Max Hastings', 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?x WHERE { resource:Max_Hastings property:educated_at ?x . ?x rdf:type ontology:school_building }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q726622
Q2385804
USER
And which educational institution?
(Q726622,P69,c(Q2385804))
action filter_type
action find
entity Q726622
relation P69
type Q2385804
['Q726622', 'P69', {'concept': 'Q2385804'}]
SELECT DISTINCT ?g WHERE { resource:Q726622 property:P69 ?g . ?g rdf:type ontology:Q2385804 }
Max Hastings
action filter_type
action find
entity Max Hastings
relation educated at
type educational institution
['Max Hastings', 'educated at', {'concept': 'educational institution'}]
SELECT DISTINCT ?g WHERE { resource:Max_Hastings property:educated_at ?g . ?g rdf:type ontology:educational_institution }
[]
educational institution
Q1067870
SYSTEM
Charterhouse School
Q1067870
(Q726622,P69,c(Q2385804))
action filter_type
action find
entity Q726622
relation P69
type Q2385804
[ANSWER]
['Q726622', 'P69', {'concept': 'Q2385804'}]
SELECT DISTINCT ?g WHERE { resource:Q726622 property:P69 ?g . ?g rdf:type ontology:Q2385804 }
Charterhouse School
Charterhouse School
action filter_type
action find
entity Max Hastings
relation educated at
type educational institution
['Max Hastings', 'educated at', {'concept': 'educational institution'}]
SELECT DISTINCT ?g WHERE { resource:Max_Hastings property:educated_at ?g . ?g rdf:type ontology:educational_institution }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1067870 Q1684296 Q4717851
P112
Q502895
USER
Was that educational institution founded by Thomas Sutton and Alex Sulfsted ?
(Q1067870,P112,Q1684296) (Q1067870,P112,Q4717851)
action is_in
entity Q1067870
action intersection
action find_reverse
entity Q1684296
relation P112
action find_reverse
entity Q4717851
relation P112
['Q1067870', 'P112', 'Q1684296'] ['Q1067870', 'P112', 'Q4717851']
ASK WHERE { resource:Q1067870 property:P112 resource:Q1684296 . resource:Q1067870 property:P112 resource:Q4717851 }
Charterhouse School Thomas Sutton Alex Sulfsted
action is_in
entity Charterhouse School
action intersection
action find_reverse
entity Thomas Sutton
relation founder
action find_reverse
entity Alex Sulfsted
relation founder
['Charterhouse School', 'founder', 'Thomas Sutton'] ['Charterhouse School', 'founder', 'Alex Sulfsted']
ASK WHERE { resource:Charterhouse_School property:founder resource:Thomas_Sutton . resource:Charterhouse_School property:founder resource:Alex_Sulfsted }
[]
common name
SYSTEM
YES and NO respectively
(Q1067870,P112,Q1684296) (Q1067870,P112,Q4717851)
action is_in
entity Q1067870
action intersection
action find_reverse
entity Q1684296
relation P112
action find_reverse
entity Q4717851
relation P112
[ANSWER]
['Q1067870', 'P112', 'Q1684296'] ['Q1067870', 'P112', 'Q4717851']
ASK WHERE { resource:Q1067870 property:P112 resource:Q1684296 . resource:Q1067870 property:P112 resource:Q4717851 }
YES and NO respectively
action is_in
entity Charterhouse School
action intersection
action find_reverse
entity Thomas Sutton
relation founder
action find_reverse
entity Alex Sulfsted
relation founder
['Charterhouse School', 'founder', 'Thomas Sutton'] ['Charterhouse School', 'founder', 'Alex Sulfsted']
ASK WHERE { resource:Charterhouse_School property:founder resource:Thomas_Sutton . resource:Charterhouse_School property:founder resource:Alex_Sulfsted }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36180
P101
Q502895
USER
Which person works in the domain of writer ?
(c(Q502895),P101,Q36180)
action filter_type
action find_reverse
entity Q36180
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q36180']
SELECT DISTINCT ?o WHERE { ?o property:P101 resource:Q36180 . ?o rdf:type ontology:Q502895 }
writer
action filter_type
action find_reverse
entity writer
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'writer']
SELECT DISTINCT ?o WHERE { ?o property:field_of_work resource:writer . ?o rdf:type ontology:common_name }
[]
common name
Q168569
SYSTEM
Martin Andersen Nexø
Q168569
(c(Q502895),P101,Q36180)
action filter_type
action find_reverse
entity Q36180
relation P101
type Q502895
[ANSWER] works in the domain of writer
[{'concept': 'Q502895'}, 'P101', 'Q36180']
SELECT DISTINCT ?o WHERE { ?o property:P101 resource:Q36180 . ?o rdf:type ontology:Q502895 }
Martin Andersen Nexø
Martin Andersen Nexø works in the domain of writer
Martin Andersen Nexø
action filter_type
action find_reverse
entity writer
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'writer']
SELECT DISTINCT ?o WHERE { ?o property:field_of_work resource:writer . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q36180
P425
Q12737077
USER
Which occupation does that one belong to ?
(c(Q12737077),P425,Q168569)
action filter_type
action find_reverse
entity Q36180
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q168569']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . ?x property:P425 resource:Q36180 }
writer
action filter_type
action find_reverse
entity writer
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'Martin Andersen Nexø']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . ?x property:field_of_this_occupation resource:writer }
[]
occupation
Q1930187
SYSTEM
journalist
Q1930187
(c(Q12737077),P425,Q168569)
action filter_type
action find_reverse
entity Q36180
relation P425
type Q12737077
That one belongs to [ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q168569']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . ?x property:P425 resource:Q36180 }
journalist
That one belongs to journalist
journalist
action filter_type
action find_reverse
entity writer
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'Martin Andersen Nexø']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . ?x property:field_of_this_occupation resource:writer }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q914115
P417
Q502895 Q12737077
USER
Which people are the patron saints of around the same number of occupations as Prosdocimus ?
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q914115
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { resource:Q914115 property:P417 ?q . ?q rdf:type ontology:Q502895 } } . FILTER ( ?s = ?w ) . { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?s ) WHERE { ?t property:P417 ?d . ?d rdf:type ontology:Q502895 . ?t rdf:type ontology:Q12737077 } GROUP BY ?d } }
Prosdocimus
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Prosdocimus
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { resource:Prosdocimus property:patron_saint ?q . ?q rdf:type ontology:common_name } } . FILTER ( ?s = ?w ) . { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?s ) WHERE { ?t property:patron_saint ?d . ?d rdf:type ontology:common_name . ?t rdf:type ontology:occupation } GROUP BY ?d } }
[]
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 approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q914115
relation P417
type Q502895
[ANSWERS] are the patron saints of around the same number of occupations as Prosdocimus
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { resource:Q914115 property:P417 ?q . ?q rdf:type ontology:Q502895 } } . FILTER ( ?s = ?w ) . { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?s ) WHERE { ?t property:P417 ?d . ?d rdf:type ontology:Q502895 . ?t rdf:type ontology:Q12737077 } GROUP BY ?d } }
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 patron saints of around the same number of occupations as Prosdocimus
Elizabeth II Tadeusz Kościuszko Louis IX of France
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Prosdocimus
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { resource:Prosdocimus property:patron_saint ?q . ?q rdf:type ontology:common_name } } . FILTER ( ?s = ?w ) . { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?s ) WHERE { ?t property:patron_saint ?d . ?d rdf:type ontology:common_name . ?t rdf:type ontology:occupation } GROUP BY ?d } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q12299841 Q36180
P106
Q502895
USER
Which people have career as writer and cricketer ?
AND((c(Q502895),P106,Q36180), (c(Q502895),P106,Q12299841))
action filter_type
action intersection
action find_reverse
entity Q36180
relation P106
action find_reverse
entity Q12299841
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q36180'], [{'concept': 'Q502895'}, 'P106', 'Q12299841']]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . ?z property:P106 resource:Q36180 . ?z property:P106 resource:Q12299841 }
cricketer writer
action filter_type
action intersection
action find_reverse
entity writer
relation occupation
action find_reverse
entity cricketer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'writer'], [{'concept': 'common name'}, 'occupation', 'cricketer']]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . ?z property:occupation resource:writer . ?z property:occupation resource:cricketer }
[]
common name
Q332580 Q1066450 Q434996 Q6933643 Q37327 Q6323655 Q6141515 Q711702 Q35610 Q13647692
SYSTEM
Some of them are Thomas Hughes, Charles Williams, Baron Williams of Elvel, George Cecil Ives, Mukul Kesavan, Samuel Beckett, K. N. Prabhu, James Pycroft, Arthur Thomas Malkin, Arthur Conan Doyle, Max Walker
Q37327 Q6323655 Q35610 Q2597902 Q6141515 Q711702 Q1066450 Q6933643 Q13647692 Q332580 Q6767684 Q434996
AND((c(Q502895),P106,Q36180), (c(Q502895),P106,Q12299841))
action filter_type
action intersection
action find_reverse
entity Q36180
relation P106
action find_reverse
entity Q12299841
relation P106
type Q502895
[ANSWERS] have career as writer and cricketer
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q36180'], [{'concept': 'Q502895'}, 'P106', 'Q12299841']]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . ?z property:P106 resource:Q36180 . ?z property:P106 resource:Q12299841 }
Samuel Beckett K. N. Prabhu Arthur Conan Doyle Sir Henry Aubrey-Fletcher, 6th Baronet James Pycroft Arthur Thomas Malkin Charles Williams, Baron Williams of Elvel Mukul Kesavan Max Walker Thomas Hughes Mark Frost George Cecil Ives
Thomas Hughes, Charles Williams, Baron Williams of Elvel, George Cecil Ives, Mukul Kesavan, Samuel Beckett, K. N. Prabhu, James Pycroft, Arthur Thomas Malkin, Arthur Conan Doyle and Max Walker have career as writer and cricketer
Thomas Hughes Charles Williams, Baron Williams of Elvel George Cecil Ives Mukul Kesavan Samuel Beckett K. N. Prabhu James Pycroft Arthur Thomas Malkin Arthur Conan Doyle Max Walker
action filter_type
action intersection
action find_reverse
entity writer
relation occupation
action find_reverse
entity cricketer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'writer'], [{'concept': 'common name'}, 'occupation', 'cricketer']]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . ?z property:occupation resource:writer . ?z property:occupation resource:cricketer }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q9682
P39
Q12737077 Q895526
USER
How many occupations and authority organs were the positions held by Elizabeth II ?
(Q9682,P39,c(Q12737077)) (Q9682,P39,c(Q895526))
action count
action union
action filter_type
action find
entity Q9682
relation P39
type Q12737077
action filter_type
action find
entity Q9682
relation P39
type Q895526
['Q9682', 'P39', {'concept': 'Q12737077'}] ['Q9682', 'P39', {'concept': 'Q895526'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { { resource:Q9682 property:P39 ?i . ?i rdf:type ontology:Q12737077 } UNION { ?i rdf:type ontology:Q895526 . resource:Q9682 property:P39 ?i } }
Elizabeth II
action count
action union
action filter_type
action find
entity Elizabeth II
relation position held
type occupation
action filter_type
action find
entity Elizabeth II
relation position held
type authority organ
['Elizabeth II', 'position held', {'concept': 'occupation'}] ['Elizabeth II', 'position held', {'concept': 'authority organ'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { { resource:Elizabeth_II property:position_held ?i . ?i rdf:type ontology:occupation } UNION { ?i rdf:type ontology:authority_organ . resource:Elizabeth_II property:position_held ?i } }
[]
occupation authority organ
SYSTEM
6 occupations and 1 authority organs
Q3052674 Q460057 Q116 Q14931517 Q9134365 Q14931512 Q14931511
(Q9682,P39,c(Q12737077)) (Q9682,P39,c(Q895526))
action count
action union
action filter_type
action find
entity Q9682
relation P39
type Q12737077
action filter_type
action find
entity Q9682
relation P39
type Q895526
[ANSWER]
['Q9682', 'P39', {'concept': 'Q12737077'}] ['Q9682', 'P39', {'concept': 'Q895526'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { { resource:Q9682 property:P39 ?i . ?i rdf:type ontology:Q12737077 } UNION { ?i rdf:type ontology:Q895526 . resource:Q9682 property:P39 ?i } }
Supreme Governor of the Church of England Head of the Commonwealth monarch Monarch of New Zealand Monarch of the United Kingdom monarch of Australia monarch of Canada
6 occupations and 1 authority organs
action count
action union
action filter_type
action find
entity Elizabeth II
relation position held
type occupation
action filter_type
action find
entity Elizabeth II
relation position held
type authority organ
['Elizabeth II', 'position held', {'concept': 'occupation'}] ['Elizabeth II', 'position held', {'concept': 'authority organ'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { { resource:Elizabeth_II property:position_held ?i . ?i rdf:type ontology:occupation } UNION { ?i rdf:type ontology:authority_organ . resource:Elizabeth_II property:position_held ?i } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5200750 Q168569
P27
Q1048835
USER
Which political territories are the native countriesof Martin Andersen Nexø or Cyril Harker ?
OR((Q168569,P27,c(Q1048835)), (Q5200750,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q168569
relation P27
action find
entity Q5200750
relation P27
type Q1048835
{'OR': [['Q168569', 'P27', {'concept': 'Q1048835'}], ['Q5200750', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q168569 property:P27 ?i } UNION { resource:Q5200750 property:P27 ?i } } . ?i rdf:type ontology:Q1048835 }
Cyril Harker Martin Andersen Nexø
action filter_type
action union
action find
entity Martin Andersen Nexø
relation country of citizenship
action find
entity Cyril Harker
relation country of citizenship
type political territorial entity
{'OR': [['Martin Andersen Nexø', 'country of citizenship', {'concept': 'political territorial entity'}], ['Cyril Harker', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Martin_Andersen_Nexø property:country_of_citizenship ?i } UNION { resource:Cyril_Harker property:country_of_citizenship ?i } } . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q664 Q35
SYSTEM
New Zealand, Denmark
Q664 Q35
OR((Q168569,P27,c(Q1048835)), (Q5200750,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q168569
relation P27
action find
entity Q5200750
relation P27
type Q1048835
[ANSWERS] are the native countriesof Martin Andersen Nexø or Cyril Harker
{'OR': [['Q168569', 'P27', {'concept': 'Q1048835'}], ['Q5200750', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q168569 property:P27 ?i } UNION { resource:Q5200750 property:P27 ?i } } . ?i rdf:type ontology:Q1048835 }
New Zealand Denmark
New Zealand and Denmark are the native countriesof Martin Andersen Nexø or Cyril Harker
New Zealand Denmark
action filter_type
action union
action find
entity Martin Andersen Nexø
relation country of citizenship
action find
entity Cyril Harker
relation country of citizenship
type political territorial entity
{'OR': [['Martin Andersen Nexø', 'country of citizenship', {'concept': 'political territorial entity'}], ['Cyril Harker', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Martin_Andersen_Nexø property:country_of_citizenship ?i } UNION { resource:Cyril_Harker property:country_of_citizenship ?i } } . ?i rdf:type ontology:political_territorial_entity }
[]