Simple Question (Direct)
Simple Question
Q16066466
P102
Q7210356
USER
Which party does E. C. Smith belong to ?
(Q16066466,P102,c(Q7210356))
action filter_type
action find
entity Q16066466
relation P102
type Q7210356
['Q16066466', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { resource:Q16066466 property:P102 ?k . ?k rdf:type ontology:Q7210356 }
E. C. Smith
action filter_type
action find
entity E. C. Smith
relation member of political party
type political organization
['E. C. Smith', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { resource:E._C._Smith property:member_of_political_party ?k . ?k rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q16066466,P102,c(Q7210356))
action filter_type
action find
entity Q16066466
relation P102
type Q7210356
The [ANSWER] does E. C. Smith belong to
['Q16066466', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { resource:Q16066466 property:P102 ?k . ?k rdf:type ontology:Q7210356 }
Democratic Party
The Democratic Party does E. C. Smith belong to
Democratic Party
action filter_type
action find
entity E. C. Smith
relation member of political party
type political organization
['E. C. Smith', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { resource:E._C._Smith property:member_of_political_party ?k . ?k rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16066466
P734
Q82799
USER
Who is associated with E. C. Smith ?
(Q16066466,P734,c(Q82799))
action filter_type
action find
entity Q16066466
relation P734
type Q82799
['Q16066466', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { resource:Q16066466 property:P734 ?t . ?t rdf:type ontology:Q82799 }
E. C. Smith
action filter_type
action find
entity E. C. Smith
relation family name
type name
['E. C. Smith', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { resource:E._C._Smith property:family_name ?t . ?t rdf:type ontology:name }
[]
name
Q1158446
SYSTEM
Smith
Q1158446
(Q16066466,P734,c(Q82799))
action filter_type
action find
entity Q16066466
relation P734
type Q82799
[ANSWER] is associated with E. C. [ANSWER]
['Q16066466', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { resource:Q16066466 property:P734 ?t . ?t rdf:type ontology:Q82799 }
Smith
Smith is associated with E. C. Smith
Smith
action filter_type
action find
entity E. C. Smith
relation family name
type name
['E. C. Smith', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { resource:E._C._Smith property:family_name ?t . ?t rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16066466
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q1158446,P27,c(Q15617994))
action filter_type
action find
entity Q16066466
relation P27
type Q15617994
['Q1158446', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q16066466 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
E. C. Smith
action filter_type
action find
entity E. C. Smith
relation country of citizenship
type designation for an administrative territorial entity
['Smith', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:E._C._Smith property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1158446,P27,c(Q15617994))
action filter_type
action find
entity Q16066466
relation P27
type Q15617994
That person belongs to the [ANSWER]
['Q1158446', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q16066466 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
United States of America
That person belongs to the United States of America
United States of America
action filter_type
action find
entity E. C. Smith
relation country of citizenship
type designation for an administrative territorial entity
['Smith', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:E._C._Smith property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q30 Q3198000
P495
Q838948
USER
Is that administrative territory a country of origin of Knight of Cups ?
(Q3198000,P495,Q30)
action is_in
entity Q30
action find
entity Q3198000
relation P495
['Q3198000', 'P495', 'Q30']
ASK WHERE { resource:Q3198000 property:P495 resource:Q30 }
United States of America Knight of Cups
action is_in
entity United States of America
action find
entity Knight of Cups
relation country of origin
['Knight of Cups', 'country of origin', 'United States of America']
ASK WHERE { resource:Knight_of_Cups property:country_of_origin resource:United_States_of_America }
[]
work of art
SYSTEM
YES
(Q3198000,P495,Q30)
action is_in
entity Q30
action find
entity Q3198000
relation P495
[ANSWER]
['Q3198000', 'P495', 'Q30']
ASK WHERE { resource:Q3198000 property:P495 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Knight of Cups
relation country of origin
['Knight of Cups', 'country of origin', 'United States of America']
ASK WHERE { resource:Knight_of_Cups property:country_of_origin resource:United_States_of_America }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q16066466 Q26701254 Q26696355
P106
Q12737077
USER
Does E. C. Smith have mayor of Alhama de Murcia and mayor of Cerecinos de Campos as his/her means of employment ?
(Q16066466,P106,Q26701254) (Q16066466,P106,Q26696355)
action is_in
entity Q16066466
action intersection
action find_reverse
entity Q26701254
relation P106
action find_reverse
entity Q26696355
relation P106
['Q16066466', 'P106', 'Q26701254'] ['Q16066466', 'P106', 'Q26696355']
ASK WHERE { resource:Q16066466 property:P106 resource:Q26696355 . resource:Q16066466 property:P106 resource:Q26701254 }
E. C. Smith mayor of Alhama de Murcia mayor of Cerecinos de Campos
action is_in
entity E. C. Smith
action intersection
action find_reverse
entity mayor of Alhama de Murcia
relation occupation
action find_reverse
entity mayor of Cerecinos de Campos
relation occupation
['E. C. Smith', 'occupation', 'mayor of Alhama de Murcia'] ['E. C. Smith', 'occupation', 'mayor of Cerecinos de Campos']
ASK WHERE { resource:E._C._Smith property:occupation resource:mayor_of_Cerecinos_de_Campos . resource:E._C._Smith property:occupation resource:mayor_of_Alhama_de_Murcia }
[]
occupation
SYSTEM
NO
(Q16066466,P106,Q26701254) (Q16066466,P106,Q26696355)
action is_in
entity Q16066466
action intersection
action find_reverse
entity Q26701254
relation P106
action find_reverse
entity Q26696355
relation P106
[ANSWER]
['Q16066466', 'P106', 'Q26701254'] ['Q16066466', 'P106', 'Q26696355']
ASK WHERE { resource:Q16066466 property:P106 resource:Q26696355 . resource:Q16066466 property:P106 resource:Q26701254 }
No
action is_in
entity E. C. Smith
action intersection
action find_reverse
entity mayor of Alhama de Murcia
relation occupation
action find_reverse
entity mayor of Cerecinos de Campos
relation occupation
['E. C. Smith', 'occupation', 'mayor of Alhama de Murcia'] ['E. C. Smith', 'occupation', 'mayor of Cerecinos de Campos']
ASK WHERE { resource:E._C._Smith property:occupation resource:mayor_of_Cerecinos_de_Campos . resource:E._C._Smith property:occupation resource:mayor_of_Alhama_de_Murcia }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1158446 Q1860 Q31107
P407
Q34770
USER
Was Smith done in English and Hattic language ?
(Q1158446,P407,Q1860) (Q1158446,P407,Q31107)
action is_in
entity Q1158446
action intersection
action find_reverse
entity Q1860
relation P407
action find_reverse
entity Q31107
relation P407
['Q1158446', 'P407', 'Q1860'] ['Q1158446', 'P407', 'Q31107']
ASK WHERE { resource:Q1158446 property:P407 resource:Q1860 . resource:Q1158446 property:P407 resource:Q31107 }
Smith English Hattic
action is_in
entity Smith
action intersection
action find_reverse
entity English
relation language of work or name
action find_reverse
entity Hattic
relation language of work or name
['Smith', 'language of work or name', 'English'] ['Smith', 'language of work or name', 'Hattic']
ASK WHERE { resource:Smith property:language_of_work_or_name resource:English . resource:Smith property:language_of_work_or_name resource:Hattic }
[]
language
SYSTEM
YES and NO respectively
(Q1158446,P407,Q1860) (Q1158446,P407,Q31107)
action is_in
entity Q1158446
action intersection
action find_reverse
entity Q1860
relation P407
action find_reverse
entity Q31107
relation P407
[ANSWER]
['Q1158446', 'P407', 'Q1860'] ['Q1158446', 'P407', 'Q31107']
ASK WHERE { resource:Q1158446 property:P407 resource:Q1860 . resource:Q1158446 property:P407 resource:Q31107 }
YES and NO respectively
action is_in
entity Smith
action intersection
action find_reverse
entity English
relation language of work or name
action find_reverse
entity Hattic
relation language of work or name
['Smith', 'language of work or name', 'English'] ['Smith', 'language of work or name', 'Hattic']
ASK WHERE { resource:Smith property:language_of_work_or_name resource:English . resource:Smith property:language_of_work_or_name resource:Hattic }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q218
P530
Q15617994 Q15617994
USER
Which administrative territories holds diplomatic relationship with approximately the same number of administrative territories as Romania ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q218
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?h ) WHERE { ?b property:P530 ?y . ?y rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?h = ?z ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { resource:Q218 property:P530 ?o . ?o rdf:type ontology:Q15617994 } } }
Romania
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Romania
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?h ) WHERE { ?b property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?h = ?z ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { resource:Romania property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q218
relation P530
type Q15617994
[ANSWERS] hold diplomatic relationship with approximately the same number of administrative territories as Romania
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?h ) WHERE { ?b property:P530 ?y . ?y rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?h = ?z ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { resource:Q218 property:P530 ?o . ?o rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
Georgia, Netherlands and Poland hold diplomatic relationship with approximately the same number of administrative territories as Romania
Georgia Netherlands Poland
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Romania
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?h ) WHERE { ?b property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?h = ?z ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { resource:Romania property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1158446 Q171263 Q36795
P407
Q34770
USER
Is Smith composed in agglutinative language and Tartessian ?
(Q1158446,P407,Q171263) (Q1158446,P407,Q36795)
action is_in
entity Q1158446
action intersection
action find_reverse
entity Q171263
relation P407
action find_reverse
entity Q36795
relation P407
['Q1158446', 'P407', 'Q171263'] ['Q1158446', 'P407', 'Q36795']
ASK WHERE { resource:Q1158446 property:P407 resource:Q171263 . resource:Q1158446 property:P407 resource:Q36795 }
Smith agglutinative language Tartessian
action is_in
entity Smith
action intersection
action find_reverse
entity agglutinative language
relation language of work or name
action find_reverse
entity Tartessian
relation language of work or name
['Smith', 'language of work or name', 'agglutinative language'] ['Smith', 'language of work or name', 'Tartessian']
ASK WHERE { resource:Smith property:language_of_work_or_name resource:agglutinative_language . resource:Smith property:language_of_work_or_name resource:Tartessian }
[]
language
SYSTEM
NO
(Q1158446,P407,Q171263) (Q1158446,P407,Q36795)
action is_in
entity Q1158446
action intersection
action find_reverse
entity Q171263
relation P407
action find_reverse
entity Q36795
relation P407
[ANSWER]
['Q1158446', 'P407', 'Q171263'] ['Q1158446', 'P407', 'Q36795']
ASK WHERE { resource:Q1158446 property:P407 resource:Q171263 . resource:Q1158446 property:P407 resource:Q36795 }
No
action is_in
entity Smith
action intersection
action find_reverse
entity agglutinative language
relation language of work or name
action find_reverse
entity Tartessian
relation language of work or name
['Smith', 'language of work or name', 'agglutinative language'] ['Smith', 'language of work or name', 'Tartessian']
ASK WHERE { resource:Smith property:language_of_work_or_name resource:agglutinative_language . resource:Smith property:language_of_work_or_name resource:Tartessian }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q196560 Q16066466
P106
Q12737077
USER
Which occupations have E. C. Smith or Kelsey Grammer as his/her as a career ?
OR((Q16066466,P106,c(Q12737077)), (Q196560,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q16066466
relation P106
action find
entity Q196560
relation P106
type Q12737077
{'OR': [['Q16066466', 'P106', {'concept': 'Q12737077'}], ['Q196560', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?c ) { ( resource:Q16066466 ) ( resource:Q196560 ) } . ?c property:P106 ?u } . ?u rdf:type ontology:Q12737077 }
Kelsey Grammer E. C. Smith
action filter_type
action union
action find
entity E. C. Smith
relation occupation
action find
entity Kelsey Grammer
relation occupation
type occupation
{'OR': [['E. C. Smith', 'occupation', {'concept': 'occupation'}], ['Kelsey Grammer', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?c ) { ( resource:E._C._Smith ) ( resource:Kelsey_Grammer ) } . ?c property:occupation ?u } . ?u rdf:type ontology:occupation }
[]
occupation
Q131512 Q10798782 Q11481802 Q82955 Q33999
SYSTEM
farmer, television actor, dub actor, politician, actor
Q131512 Q10798782 Q11481802 Q82955 Q33999
OR((Q16066466,P106,c(Q12737077)), (Q196560,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q16066466
relation P106
action find
entity Q196560
relation P106
type Q12737077
The [ANSWERS] have E. C. Smith or Kelsey Grammer as his/her as a career
{'OR': [['Q16066466', 'P106', {'concept': 'Q12737077'}], ['Q196560', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?c ) { ( resource:Q16066466 ) ( resource:Q196560 ) } . ?c property:P106 ?u } . ?u rdf:type ontology:Q12737077 }
farmer television actor dub actor politician actor
The farmer, television actor, dub actor, politician and actor have E. C. Smith or Kelsey Grammer as his/her as a career
farmer television actor dub actor politician actor
action filter_type
action union
action find
entity E. C. Smith
relation occupation
action find
entity Kelsey Grammer
relation occupation
type occupation
{'OR': [['E. C. Smith', 'occupation', {'concept': 'occupation'}], ['Kelsey Grammer', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?c ) { ( resource:E._C._Smith ) ( resource:Kelsey_Grammer ) } . ?c property:occupation ?u } . ?u rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q312314
P417
Q502895 Q12737077
USER
Which people are the patron saints of more number of occupations than Bruno of Cologne ?
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q312314
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?e ) WHERE { ?h rdf:type ontology:Q502895 . ?o rdf:type ontology:Q12737077 . ?o property:P417 ?h } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { resource:Q312314 property:P417 ?c . ?c rdf:type ontology:Q502895 } } . FILTER ( ?e > ?t ) }
Bruno of Cologne
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Bruno of Cologne
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?e ) WHERE { ?h rdf:type ontology:common_name . ?o rdf:type ontology:occupation . ?o property:patron_saint ?h } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { resource:Bruno_of_Cologne property:patron_saint ?c . ?c rdf:type ontology:common_name } } . FILTER ( ?e > ?t ) }
[]
common name occupation
Q9438 Q60059 Q166876
SYSTEM
Thomas Aquinas, Albertus Magnus, Isidore of Seville
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q312314
relation P417
type Q502895
[ANSWERS] are the patron saints of more number of occupations than Bruno of Cologne
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?e ) WHERE { ?h rdf:type ontology:Q502895 . ?o rdf:type ontology:Q12737077 . ?o property:P417 ?h } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { resource:Q312314 property:P417 ?c . ?c rdf:type ontology:Q502895 } } . FILTER ( ?e > ?t ) }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
Thomas Aquinas, Albertus Magnus and Isidore of Seville are the patron saints of more number of occupations than Bruno of Cologne
Thomas Aquinas Albertus Magnus Isidore of Seville
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Bruno of Cologne
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?e ) WHERE { ?h rdf:type ontology:common_name . ?o rdf:type ontology:occupation . ?o property:patron_saint ?h } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { resource:Bruno_of_Cologne property:patron_saint ?c . ?c rdf:type ontology:common_name } } . FILTER ( ?e > ?t ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q587596
P417
Q502895 Q12737077
USER
And also tell me about Magnus of Anagni?
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q587596
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?o ) WHERE { ?d property:P417 ?r . ?r rdf:type ontology:Q502895 . ?d rdf:type ontology:Q12737077 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { resource:Q587596 property:P417 ?t . ?t rdf:type ontology:Q502895 } } . FILTER ( ?o > ?k ) }
Magnus of Anagni
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Magnus of Anagni
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?o ) WHERE { ?d property:patron_saint ?r . ?r rdf:type ontology:common_name . ?d rdf:type ontology:occupation } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { resource:Magnus_of_Anagni property:patron_saint ?t . ?t rdf:type ontology:common_name } } . FILTER ( ?o > ?k ) }
[]
common name occupation
Q9438 Q60059 Q166876
SYSTEM
Thomas Aquinas, Albertus Magnus, Isidore of Seville
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q587596
relation P417
type Q502895
[ANSWERS]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?o ) WHERE { ?d property:P417 ?r . ?r rdf:type ontology:Q502895 . ?d rdf:type ontology:Q12737077 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { resource:Q587596 property:P417 ?t . ?t rdf:type ontology:Q502895 } } . FILTER ( ?o > ?k ) }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
Thomas Aquinas Albertus Magnus Isidore of Seville
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Magnus of Anagni
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?o ) WHERE { ?d property:patron_saint ?r . ?r rdf:type ontology:common_name . ?d rdf:type ontology:occupation } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { resource:Magnus_of_Anagni property:patron_saint ?t . ?t rdf:type ontology:common_name } } . FILTER ( ?o > ?k ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19691568 Q1158446
P106 P138
Q12737077
USER
Which occupations are namesakes of Smith or are the professions of Marcin Szarski ?
OR((Q1158446,P138,c(Q12737077)), (Q19691568,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1158446
relation P138
action find
entity Q19691568
relation P106
type Q12737077
{'OR': [['Q1158446', 'P138', {'concept': 'Q12737077'}], ['Q19691568', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q19691568 property:P106 ?s } UNION { resource:Q1158446 property:P138 ?s } } . ?s rdf:type ontology:Q12737077 }
Marcin Szarski Smith
action filter_type
action union
action find
entity Smith
relation named after
action find
entity Marcin Szarski
relation occupation
type occupation
{'OR': [['Smith', 'named after', {'concept': 'occupation'}], ['Marcin Szarski', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Marcin_Szarski property:occupation ?s } UNION { resource:Smith property:named_after ?s } } . ?s rdf:type ontology:occupation }
[]
occupation
Q188094 Q1639825
SYSTEM
economist, blacksmith
Q188094 Q1639825
OR((Q1158446,P138,c(Q12737077)), (Q19691568,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1158446
relation P138
action find
entity Q19691568
relation P106
type Q12737077
[ANSWERS] are namesakes of Smith or are the professions of Marcin Szarski
{'OR': [['Q1158446', 'P138', {'concept': 'Q12737077'}], ['Q19691568', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q19691568 property:P106 ?s } UNION { resource:Q1158446 property:P138 ?s } } . ?s rdf:type ontology:Q12737077 }
economist blacksmith
Economist and blacksmith are namesakes of Smith or are the professions of Marcin Szarski
economist blacksmith
action filter_type
action union
action find
entity Smith
relation named after
action find
entity Marcin Szarski
relation occupation
type occupation
{'OR': [['Smith', 'named after', {'concept': 'occupation'}], ['Marcin Szarski', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Marcin_Szarski property:occupation ?s } UNION { resource:Smith property:named_after ?s } } . ?s rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q2309784 Q82955
P106
Q502895
USER
Which people have the profession of politician and sport cyclist ?
AND((c(Q502895),P106,Q82955), (c(Q502895),P106,Q2309784))
action filter_type
action intersection
action find_reverse
entity Q82955
relation P106
action find_reverse
entity Q2309784
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q82955'], [{'concept': 'Q502895'}, 'P106', 'Q2309784']]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P106 resource:Q82955 . ?a property:P106 resource:Q2309784 }
sport cyclist politician
action filter_type
action intersection
action find_reverse
entity politician
relation occupation
action find_reverse
entity sport cyclist
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'politician'], [{'concept': 'common name'}, 'occupation', 'sport cyclist']]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:occupation resource:politician . ?a property:occupation resource:sport_cyclist }
[]
common name
Q1852280 Q2621315 Q324199 Q2242566 Q1710086 Q2467857 Q5948422 Q1884081 Q1388276 Q2367918
SYSTEM
Some of them are Frans Netscher, Prudencio Indurain, Franz Nietlispach, Roger De Corte, Jozef Regec, Jacques Marinelli, Juan Carlos Martín Martínez, José Antonio González Linares, Alberto Marvelli, Tomohiro Nagatsuka
Q333261 Q371874 Q2367918 Q386790 Q17181030 Q64998 Q5948422 Q708549 Q3045166 Q1710086 Q2621315 Q560481 Q13102997 Q2467857 Q324199 Q263703 Q719728 Q459797 Q23908963 Q1776675 Q1388276 Q1852280 Q269362 Q1884081 Q931558 Q454570 Q1385408 Q284440 Q2242566 Q2219880
AND((c(Q502895),P106,Q82955), (c(Q502895),P106,Q2309784))
action filter_type
action intersection
action find_reverse
entity Q82955
relation P106
action find_reverse
entity Q2309784
relation P106
type Q502895
[ANSWERS] have the profession of politician and sport cyclist
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q82955'], [{'concept': 'Q502895'}, 'P106', 'Q2309784']]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P106 resource:Q82955 . ?a property:P106 resource:Q2309784 }
Andrew Mitchell Emmanuel Ofosu Yeboah Tomohiro Nagatsuka Michel Dernies Yunus Nüzhet Unat Gustav-Adolf Schur Juan Carlos Martín Martínez Tom Steels Désiré Delansorne Jozef Regec Prudencio Indurain Joop Atsma Henri Ackermann Jacques Marinelli Franz Nietlispach Seiko Hashimoto Knut Anders Fostervold Teodora Ruano Věra Ježková Erik Gjems-Onstad Alberto Marvelli Frans Netscher Andrei Tchmil José Antonio González Linares Hubert Opperman Dorina Vaccaroni Filip Meirhaeghe Tea Vikstedt-Nyman Roger De Corte Willy Vanheste
Frans Netscher, Prudencio Indurain, Franz Nietlispach, Roger De Corte, Jozef Regec, Jacques Marinelli, Juan Carlos Martín Martínez, José Antonio González Linares, Alberto Marvelli and Tomohiro Nagatsuka have the profession of politician and sport cyclist
Frans Netscher Prudencio Indurain Franz Nietlispach Roger De Corte Jozef Regec Jacques Marinelli Juan Carlos Martín Martínez José Antonio González Linares Alberto Marvelli Tomohiro Nagatsuka
action filter_type
action intersection
action find_reverse
entity politician
relation occupation
action find_reverse
entity sport cyclist
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'politician'], [{'concept': 'common name'}, 'occupation', 'sport cyclist']]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:occupation resource:politician . ?a property:occupation resource:sport_cyclist }
[]