Simple Question (Direct)
Simple Question
Q15363493
P19
Q1048835
USER
Which political territory is the birthplace of Karoline de Souza ?
(Q15363493,P19,c(Q1048835))
action filter_type
action find
entity Q15363493
relation P19
type Q1048835
['Q15363493', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { resource:Q15363493 property:P19 ?i . ?i rdf:type ontology:Q1048835 }
Karoline de Souza
action filter_type
action find
entity Karoline de Souza
relation place of birth
type political territorial entity
['Karoline de Souza', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Karoline_de_Souza property:place_of_birth ?i . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q503852
SYSTEM
Paranaguá
Q503852
(Q15363493,P19,c(Q1048835))
action filter_type
action find
entity Q15363493
relation P19
type Q1048835
[ANSWER] is the birthplace of Karoline de Souza
['Q15363493', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { resource:Q15363493 property:P19 ?i . ?i rdf:type ontology:Q1048835 }
Paranaguá
Paranaguá is the birthplace of Karoline de Souza
Paranaguá
action filter_type
action find
entity Karoline de Souza
relation place of birth
type political territorial entity
['Karoline de Souza', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Karoline_de_Souza property:place_of_birth ?i . ?i rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15363493
P27
Q15617994
USER
Which administrative territory is Karoline de Souza an inhabitant of ?
(Q15363493,P27,c(Q15617994))
action filter_type
action find
entity Q15363493
relation P27
type Q15617994
['Q15363493', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q15363493 property:P27 ?x }
Karoline de Souza
action filter_type
action find
entity Karoline de Souza
relation country of citizenship
type designation for an administrative territorial entity
['Karoline de Souza', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Karoline_de_Souza property:country_of_citizenship ?x }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
(Q15363493,P27,c(Q15617994))
action filter_type
action find
entity Q15363493
relation P27
type Q15617994
[ANSWER] is Karoline de Souza an inhabitant of
['Q15363493', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q15363493 property:P27 ?x }
Brazil
Brazil is Karoline de Souza an inhabitant of
Brazil
action filter_type
action find
entity Karoline de Souza
relation country of citizenship
type designation for an administrative territorial entity
['Karoline de Souza', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Karoline_de_Souza property:country_of_citizenship ?x }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5259916
Q15617994
USER
And also tell me about Denzil Onslow?
(Q5259916,P27,c(Q15617994))
action filter_type
action find
entity Q5259916
relation P27
type Q15617994
['Q5259916', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q5259916 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
Denzil Onslow
action filter_type
action find
entity Denzil Onslow
relation country of citizenship
type designation for an administrative territorial entity
['Denzil Onslow', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Denzil_Onslow property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q5259916,P27,c(Q15617994))
action filter_type
action find
entity Q5259916
relation P27
type Q15617994
[ANSWER]
['Q5259916', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q5259916 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom
action filter_type
action find
entity Denzil Onslow
relation country of citizenship
type designation for an administrative territorial entity
['Denzil Onslow', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Denzil_Onslow property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q153136
P122
Q15617994 Q12737077 Q15617994
USER
How many administrative territories have approximately the same number of administrative territories and occupations as the type of government as Habsburg Empire ?
(c(Q15617994),P122,c(Q15617994)|c(Q12737077))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
action find_tuple_counts
relation P122
type Q15617994
type Q12737077
action count
action filter_multi_types
action find
entity Q153136
relation P122
type Q15617994
type Q12737077
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q15617994'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?g WHERE { { ?g property:P122 ?y . ?y rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } UNION { ?g property:P122 ?y . ?g rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q12737077 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { resource:Q153136 property:P122 ?d . { { ?d rdf:type ontology:Q15617994 } UNION { ?d rdf:type ontology:Q12737077 } } } } . FILTER ( ?b = ?m ) }
Habsburg Empire
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type occupation
action count
action filter_multi_types
action find
entity Habsburg Empire
relation basic form of government
type designation for an administrative territorial entity
type occupation
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'occupation'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?g WHERE { { ?g property:basic_form_of_government ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?g property:basic_form_of_government ?y . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:occupation } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { resource:Habsburg_Empire property:basic_form_of_government ?d . { { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?d rdf:type ontology:occupation } } } } . FILTER ( ?b = ?m ) }
[]
designation for an administrative territorial entity occupation designation for an administrative territorial entity
SYSTEM
91
Q702 Q804 Q154547 Q801 Q805 Q419 Q668 Q414 Q142 Q165116 Q145 Q265 Q1130767 Q833 Q711 Q717 Q837 Q208500 Q399 Q258 Q45 Q159 Q43 Q155 Q796 Q794 Q884 Q958 Q315667 Q158290 Q153136 Q33 Q32 Q31 Q30 Q37 Q34 Q1133252 Q39 Q38 Q423 Q953 Q29999 Q153091 Q280312 Q1130957 Q236 Q230 Q232 Q238 Q20 Q1045 Q27 Q28 Q29 Q313175 Q189 Q843 Q184 Q876826 Q347 Q3462133 Q227 Q225 Q224 Q96 Q17 Q1989 Q902 Q725731 Q1033 Q115 Q754 Q212 Q213 Q215 Q917 Q970 Q760 Q574 Q694594 Q1132344 Q696651 Q77 Q199688 Q878 Q948 Q811 Q1011 Q1013 Q1049
(c(Q15617994),P122,c(Q15617994)|c(Q12737077))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
action find_tuple_counts
relation P122
type Q15617994
type Q12737077
action count
action filter_multi_types
action find
entity Q153136
relation P122
type Q15617994
type Q12737077
[ANSWER]
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q15617994'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?g WHERE { { ?g property:P122 ?y . ?y rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } UNION { ?g property:P122 ?y . ?g rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q12737077 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { resource:Q153136 property:P122 ?d . { { ?d rdf:type ontology:Q15617994 } UNION { ?d rdf:type ontology:Q12737077 } } } } . FILTER ( ?b = ?m ) }
Federated States of Micronesia Panama duchy Israel Yemen Peru India Argentina France grand duchy United Kingdom Uzbekistan Bear Creek Village Malaysia Mongolia Venezuela Nepal principality Armenia South Africa Portugal Russia Turkey Brazil Iraq Iran South Korea South Sudan Saxe-Weimar Duchy of Lucca Habsburg Empire Finland Luxembourg Belgium United States of America Lithuania Sweden Conyngham Switzerland Italy North Korea Zambia Kingdom of the Netherlands Duchy of Prussia Principality of Lüneburg Courtdale Montenegro Georgia Kazakhstan San Marino Norway Somalia Ireland Hungary Spain Saxe-Lauenburg Iceland Pakistan Belarus Ellwangen Abbey Liechtenstein Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Mexico Japan Saskatchewan Bangladesh Ashley, Pennsylvania Nigeria Ethiopia Trinidad and Tobago Ukraine Czech Republic Slovenia Bhutan Comoros Saint Lucia East Timor Bremen-Verden Avoca Saxe-Eisenach Uruguay Almohad United Arab Emirates Tunisia Nicaragua Cape Verde Lesotho Sudan
91
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type occupation
action count
action filter_multi_types
action find
entity Habsburg Empire
relation basic form of government
type designation for an administrative territorial entity
type occupation
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'occupation'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?g WHERE { { ?g property:basic_form_of_government ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?g property:basic_form_of_government ?y . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:occupation } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { resource:Habsburg_Empire property:basic_form_of_government ?d . { { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?d rdf:type ontology:occupation } } } } . FILTER ( ?b = ?m ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q153136
P140
Q879146
USER
Which Christian denomination does that administrative territory correspond to ?
action filter_type
action find
entity Q153136
relation P140
type Q879146
SELECT DISTINCT ?l WHERE { resource:Q153136 property:P140 ?l . ?l rdf:type ontology:Q879146 }
Habsburg Empire
action filter_type
action find
entity Habsburg Empire
relation religion
type Christian denomination
SELECT DISTINCT ?l WHERE { resource:Habsburg_Empire property:religion ?l . ?l rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
action filter_type
action find
entity Q153136
relation P140
type Q879146
That administrative territory corresponds à [ANSWER]
SELECT DISTINCT ?l WHERE { resource:Q153136 property:P140 ?l . ?l rdf:type ontology:Q879146 }
Roman Catholic Church
That administrative territory corresponds à Roman Catholic Church
Roman Catholic Church
action filter_type
action find
entity Habsburg Empire
relation religion
type Christian denomination
SELECT DISTINCT ?l WHERE { resource:Habsburg_Empire property:religion ?l . ?l rdf:type ontology:Christian_denomination }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q1709649 Q153136
P140
Q879146
USER
And also José Sorra
AND((Q153136,P140,c(Q879146)), (Q1709649,P140,c(Q879146)))
action filter_type
action intersection
action find
entity Q153136
relation P140
action find
entity Q1709649
relation P140
type Q879146
{'AND': [['Q153136', 'P140', {'concept': 'Q879146'}], ['Q1709649', 'P140', {'concept': 'Q879146'}]]}
SELECT DISTINCT ?r WHERE { resource:Q153136 property:P140 ?r . resource:Q1709649 property:P140 ?r . ?r rdf:type ontology:Q879146 }
José Sorra Habsburg Empire
action filter_type
action intersection
action find
entity Habsburg Empire
relation religion
action find
entity José Sorra
relation religion
type Christian denomination
{'AND': [['Habsburg Empire', 'religion', {'concept': 'Christian denomination'}], ['José Sorra', 'religion', {'concept': 'Christian denomination'}]]}
SELECT DISTINCT ?r WHERE { resource:Habsburg_Empire property:religion ?r . resource:José_Sorra property:religion ?r . ?r rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
AND((Q153136,P140,c(Q879146)), (Q1709649,P140,c(Q879146)))
action filter_type
action intersection
action find
entity Q153136
relation P140
action find
entity Q1709649
relation P140
type Q879146
[ANSWER]
{'AND': [['Q153136', 'P140', {'concept': 'Q879146'}], ['Q1709649', 'P140', {'concept': 'Q879146'}]]}
SELECT DISTINCT ?r WHERE { resource:Q153136 property:P140 ?r . resource:Q1709649 property:P140 ?r . ?r rdf:type ontology:Q879146 }
Roman Catholic Church
Roman Catholic Church
action filter_type
action intersection
action find
entity Habsburg Empire
relation religion
action find
entity José Sorra
relation religion
type Christian denomination
{'AND': [['Habsburg Empire', 'religion', {'concept': 'Christian denomination'}], ['José Sorra', 'religion', {'concept': 'Christian denomination'}]]}
SELECT DISTINCT ?r WHERE { resource:Habsburg_Empire property:religion ?r . resource:José_Sorra property:religion ?r . ?r rdf:type ontology:Christian_denomination }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P361
Q879146 Q43229
USER
Which organizations are a component of around 1 Christian denomination ?
(c(Q43229),P361,c(Q879146))
action approx
action find_tuple_counts
relation P361
type Q43229
type Q879146
value 1
[{'concept': 'Q43229'}, 'P361', {'concept': 'Q879146'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?e ) WHERE { ?b property:P361 ?v . ?v rdf:type ontology:Q879146 . ?b rdf:type ontology:Q43229 } GROUP BY ?b } . FILTER ( ?e = 1 ) }
action approx
action find_tuple_counts
relation part of
type organization
type Christian denomination
value 1
[{'concept': 'organization'}, 'part of', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?e ) WHERE { ?b property:part_of ?v . ?v rdf:type ontology:Christian_denomination . ?b rdf:type ontology:organization } GROUP BY ?b } . FILTER ( ?e = 1 ) }
[]
Christian denomination organization
Q5491872 Q1413205 Q2275434
SYSTEM
Finn Church Aid, Church of Lippe, The Company of Our Lady Mary
Q782642 Q1379913 Q163202 Q1380992 Q314311 Q5491872 Q1381012 Q265751 Q316489 Q897316 Q897256 Q313979 Q1413205 Q896200 Q766402 Q10685091 Q2275434 Q896717 Q1379887 Q830522 Q896868 Q524096 Q896744 Q1380987 Q314260 Q558023 Q510254
(c(Q43229),P361,c(Q879146))
action approx
action find_tuple_counts
relation P361
type Q43229
type Q879146
value 1
[ANSWERS] are a component of around 1 Christian denomination
[{'concept': 'Q43229'}, 'P361', {'concept': 'Q879146'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?e ) WHERE { ?b property:P361 ?v . ?v rdf:type ontology:Q879146 . ?b rdf:type ontology:Q43229 } GROUP BY ?b } . FILTER ( ?e = 1 ) }
Evangelical Church of Anhalt Evangelical Lutheran Church of Schaumburg-Lippe Prussian Union of churches Evangelical Church in the Rhineland Evangelical Lutheran Church of Mecklenburg Finn Church Aid Evangelical Church of Hesse Electorate-Waldeck Evangelical Lutheran Church in Northern Germany North Elbian Evangelical Lutheran Church Evangelical Reformed Church in Bavaria and Northwestern Germany Evangelical Church in Baden Pomeranian Evangelical Church Church of Lippe Evangelical Church of the Palatinate Evangelical Church of Bremen Church of Sweden Youth The Company of Our Lady Mary Evangelical Lutheran Church in Thuringia Evangelical Lutheran Church in Oldenburg Evangelical Church in Central Germany Evangelical-Lutheran Church in Württemberg Evangelical Church in Berlin, Brandenburg and Silesian Upper Lusatia Evangelical-Lutheran Church of Saxony Evangelical Church of the Church Province of Saxony Evangelical Lutheran Church in Brunswick Evangelical Lutheran Church in Bavaria Evangelical-Lutheran Church of Hanover
Finn Church Aid, Church of Lippe and The Company of Our Lady Mary are a component of around 1 Christian denomination
Finn Church Aid Church of Lippe The Company of Our Lady Mary
action approx
action find_tuple_counts
relation part of
type organization
type Christian denomination
value 1
[{'concept': 'organization'}, 'part of', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?e ) WHERE { ?b property:part_of ?v . ?v rdf:type ontology:Christian_denomination . ?b rdf:type ontology:organization } GROUP BY ?b } . FILTER ( ?e = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q145
P1532
Q502895 Q6979593
USER
How many people or national association football teams play for United Kingdom ?
(c(Q502895),P1532,Q145) (c(Q6979593),P1532,Q145)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P1532
type Q502895
action filter_type
action find_reverse
entity Q145
relation P1532
type Q6979593
[{'concept': 'Q502895'}, 'P1532', 'Q145'] [{'concept': 'Q6979593'}, 'P1532', 'Q145']
SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { { ?j property:P1532 resource:Q145 . ?j rdf:type ontology:Q502895 } UNION { ?j property:P1532 resource:Q145 . ?j rdf:type ontology:Q6979593 } }
United Kingdom
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation country for sport
type common name
action filter_type
action find_reverse
entity United Kingdom
relation country for sport
type national association football team
[{'concept': 'common name'}, 'country for sport', 'United Kingdom'] [{'concept': 'national association football team'}, 'country for sport', 'United Kingdom']
SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { { ?j property:country_for_sport resource:United_Kingdom . ?j rdf:type ontology:common_name } UNION { ?j property:country_for_sport resource:United_Kingdom . ?j rdf:type ontology:national_association_football_team } }
[]
common name national association football team
SYSTEM
33
Q21402269 Q24055567 Q23801215 Q23933231 Q14914875 Q16570372 Q23899221 Q3489581 Q16197248 Q22159069 Q16019708 Q23907033 Q23839484 Q918209 Q26464525 Q2849387 Q24689189 Q25841148 Q25712393 Q877411 Q21675005 Q9140805 Q16210580 Q26217998 Q21858372 Q23010253 Q7815016 Q21808670 Q22679450 Q26217926 Q21858356 Q23834462 Q23838005
(c(Q502895),P1532,Q145) (c(Q6979593),P1532,Q145)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P1532
type Q502895
action filter_type
action find_reverse
entity Q145
relation P1532
type Q6979593
[ANSWER]
[{'concept': 'Q502895'}, 'P1532', 'Q145'] [{'concept': 'Q6979593'}, 'P1532', 'Q145']
SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { { ?j property:P1532 resource:Q145 . ?j rdf:type ontology:Q502895 } UNION { ?j property:P1532 resource:Q145 . ?j rdf:type ontology:Q6979593 } }
Alison Wyeth Tracey Morris Birhan Dagne Geoff Saunders Nethaneel Mitchell-Blake Kyle Langford John Nuttall Solomon Wariso Lesley-Ann Skeete Andrew Pearson Andy Holden Simon Fairbrother Ray Middleton Great Britain women's Olympic association football team Colin Walker Angela Tooby Bryony Page Elliot Giles Rachel Wallader Great Britain Olympic football team Sonia McGeorge Adelle Tracey Keri Lees Hugh Teape Jacqui Agyepong Stephi Douglas Tom Bosworth Donovan Reid Rod Finch Ann Williams Craig Winrow Carol Tyson George Williams
33
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation country for sport
type common name
action filter_type
action find_reverse
entity United Kingdom
relation country for sport
type national association football team
[{'concept': 'common name'}, 'country for sport', 'United Kingdom'] [{'concept': 'national association football team'}, 'country for sport', 'United Kingdom']
SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { { ?j property:country_for_sport resource:United_Kingdom . ?j rdf:type ontology:common_name } UNION { ?j property:country_for_sport resource:United_Kingdom . ?j rdf:type ontology:national_association_football_team } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2574015
P417
Q502895 Q16970 Q44539
USER
Which people are the names of the patron saint of greater number of churches and temples than Nestor of Magydos ?
(c(Q16970)|c(Q44539),P417,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q16970
action find_reverse_tuple_counts
relation P417
type Q502895
type Q44539
action count
action filter_multi_types
action find_reverse
entity Q2574015
relation P417
type Q16970
type Q44539
[[{'concept': 'Q16970'}, {'concept': 'Q44539'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?a ) WHERE { { ?v property:P417 ?j . ?j rdf:type ontology:Q502895 . ?v rdf:type ontology:Q16970 } UNION { ?j rdf:type ontology:Q502895 . ?v rdf:type ontology:Q44539 . ?v property:P417 ?j } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { ?m property:P417 resource:Q2574015 . { ?m rdf:type ?u . VALUES ( ?u ) { ( ontology:Q44539 ) ( ontology:Q16970 ) } } } } . FILTER ( ?a > ?q ) }
Nestor of Magydos
action greater
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type church
action find_reverse_tuple_counts
relation patron saint
type common name
type temple
action count
action filter_multi_types
action find_reverse
entity Nestor of Magydos
relation patron saint
type church
type temple
[[{'concept': 'church'}, {'concept': 'temple'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?a ) WHERE { { ?v property:patron_saint ?j . ?j rdf:type ontology:common_name . ?v rdf:type ontology:church } UNION { ?j rdf:type ontology:common_name . ?v rdf:type ontology:temple . ?v property:patron_saint ?j } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { ?m property:patron_saint resource:Nestor_of_Magydos . { ?m rdf:type ?u . VALUES ( ?u ) { ( ontology:temple ) ( ontology:church ) } } } } . FILTER ( ?a > ?q ) }
[]
common name church temple
Q346 Q8018 Q174044
SYSTEM
Louis IX of France, Augustine of Hippo, Alexander Nevsky
Q133704 Q152457 Q394727 Q61914 Q320199 Q43689 Q128267 Q328804 Q174044 Q163900 Q170547 Q676555 Q244380 Q181715 Q686948 Q42887 Q177903 Q207113 Q8018 Q216946 Q33923 Q161775 Q221522 Q128538 Q145746 Q167477 Q297742 Q48438 Q44281 Q63070 Q43399 Q196527 Q336731 Q560531 Q9200 Q174880 Q346 Q180936 Q2142772 Q43999 Q359259 Q43669 Q369691 Q44269 Q44265 Q43982 Q179718 Q445357 Q40662 Q210096 Q80513 Q26486 Q158504 Q151967 Q149727 Q164294 Q159862 Q17590 Q200895 Q44248 Q310633
(c(Q16970)|c(Q44539),P417,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q16970
action find_reverse_tuple_counts
relation P417
type Q502895
type Q44539
action count
action filter_multi_types
action find_reverse
entity Q2574015
relation P417
type Q16970
type Q44539
[ANSWERS] are the names of the patron saint of greater number of churches and temples than Nestor of Magydos
[[{'concept': 'Q16970'}, {'concept': 'Q44539'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?a ) WHERE { { ?v property:P417 ?j . ?j rdf:type ontology:Q502895 . ?v rdf:type ontology:Q16970 } UNION { ?j rdf:type ontology:Q502895 . ?v rdf:type ontology:Q44539 . ?v property:P417 ?j } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { ?m property:P417 resource:Q2574015 . { ?m rdf:type ?u . VALUES ( ?u ) { ( ontology:Q44539 ) ( ontology:Q16970 ) } } } } . FILTER ( ?a > ?q ) }
Martin of Tours Saint Roch Agnes of Bohemia Gotthard of Hildesheim Apollinaris of Ravenna Ambrose Joseph John the Evangelist Alexander Nevsky Saint Francis Xavier Anthony the Great Francis of Assisi Saint Denis Thérèse of Lisieux Alban of Mainz Clement I Stephen I of Hungary Hippolytus Augustine of Hippo Charles Borromeo Peter Stephen John of Nepomuk Luke the Evangelist Joseph Anthony of Padua Margaret the Virgin Saint George Ignatius of Loyola Mary Magdalene Andrew Saint Wenceslaus I, Duke of Bohemia Pancras of Rome Suitbert of Kaiserswerdt Paul Teresa of Ávila Louis IX of France Saint Gall Gereon James Saint Emeric of Hungary Thomas the Apostle Saint Ursula Saint Nicholas Benedict of Nursia Bartholomew the Apostle Catherine of Alexandria Henry John the Baptist Agnes of Rome Saint Cecilia Ladislaus I of Hungary Clement of Ohrid Saint Blaise Saint Giles Saint Anna Elizabeth of Hungary Lawrence of Rome Agatha of Sicily Jerome Demetrius of Thessaloniki
Louis IX of France, Augustine of Hippo and Alexander Nevsky are the names of the patron saint of greater number of churches and temples than Nestor of Magydos
Louis IX of France Augustine of Hippo Alexander Nevsky
action greater
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type church
action find_reverse_tuple_counts
relation patron saint
type common name
type temple
action count
action filter_multi_types
action find_reverse
entity Nestor of Magydos
relation patron saint
type church
type temple
[[{'concept': 'church'}, {'concept': 'temple'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?a ) WHERE { { ?v property:patron_saint ?j . ?j rdf:type ontology:common_name . ?v rdf:type ontology:church } UNION { ?j rdf:type ontology:common_name . ?v rdf:type ontology:temple . ?v property:patron_saint ?j } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { ?m property:patron_saint resource:Nestor_of_Magydos . { ?m rdf:type ?u . VALUES ( ?u ) { ( ontology:temple ) ( ontology:church ) } } } } . FILTER ( ?a > ?q ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q379914
P417
Q502895 Q16970 Q44539
USER
And what about Saint Cajetan?
(c(Q16970)|c(Q44539),P417,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q16970
action find_reverse_tuple_counts
relation P417
type Q502895
type Q44539
action count
action filter_multi_types
action find_reverse
entity Q379914
relation P417
type Q16970
type Q44539
[[{'concept': 'Q16970'}, {'concept': 'Q44539'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { ?a property:P417 resource:Q379914 . { VALUES ( ?e ) { ( ontology:Q16970 ) ( ontology:Q44539 ) } . ?a rdf:type ?e } } } . FILTER ( ?q > ?b ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) ?j WHERE { { ?j rdf:type ontology:Q502895 . ?l rdf:type ontology:Q16970 . ?l property:P417 ?j } UNION { ?j rdf:type ontology:Q502895 . ?l rdf:type ontology:Q44539 . ?l property:P417 ?j } } GROUP BY ?j } }
Saint Cajetan
action greater
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type church
action find_reverse_tuple_counts
relation patron saint
type common name
type temple
action count
action filter_multi_types
action find_reverse
entity Saint Cajetan
relation patron saint
type church
type temple
[[{'concept': 'church'}, {'concept': 'temple'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { ?a property:patron_saint resource:Saint_Cajetan . { VALUES ( ?e ) { ( ontology:church ) ( ontology:temple ) } . ?a rdf:type ?e } } } . FILTER ( ?q > ?b ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) ?j WHERE { { ?j rdf:type ontology:common_name . ?l rdf:type ontology:church . ?l property:patron_saint ?j } UNION { ?j rdf:type ontology:common_name . ?l rdf:type ontology:temple . ?l property:patron_saint ?j } } GROUP BY ?j } }
[]
common name church temple
Q346 Q8018 Q174044
SYSTEM
Louis IX of France, Augustine of Hippo, Alexander Nevsky
Q133704 Q152457 Q394727 Q61914 Q320199 Q43689 Q128267 Q328804 Q174044 Q163900 Q170547 Q676555 Q244380 Q181715 Q686948 Q42887 Q177903 Q207113 Q8018 Q216946 Q33923 Q161775 Q221522 Q128538 Q145746 Q167477 Q297742 Q48438 Q44281 Q63070 Q43399 Q196527 Q336731 Q560531 Q9200 Q174880 Q346 Q180936 Q2142772 Q43999 Q359259 Q43669 Q369691 Q44269 Q44265 Q43982 Q179718 Q445357 Q40662 Q210096 Q80513 Q26486 Q158504 Q151967 Q149727 Q164294 Q159862 Q17590 Q200895 Q44248 Q310633
(c(Q16970)|c(Q44539),P417,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q16970
action find_reverse_tuple_counts
relation P417
type Q502895
type Q44539
action count
action filter_multi_types
action find_reverse
entity Q379914
relation P417
type Q16970
type Q44539
[ANSWERS]
[[{'concept': 'Q16970'}, {'concept': 'Q44539'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { ?a property:P417 resource:Q379914 . { VALUES ( ?e ) { ( ontology:Q16970 ) ( ontology:Q44539 ) } . ?a rdf:type ?e } } } . FILTER ( ?q > ?b ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) ?j WHERE { { ?j rdf:type ontology:Q502895 . ?l rdf:type ontology:Q16970 . ?l property:P417 ?j } UNION { ?j rdf:type ontology:Q502895 . ?l rdf:type ontology:Q44539 . ?l property:P417 ?j } } GROUP BY ?j } }
Martin of Tours Saint Roch Agnes of Bohemia Gotthard of Hildesheim Apollinaris of Ravenna Ambrose Joseph John the Evangelist Alexander Nevsky Saint Francis Xavier Anthony the Great Francis of Assisi Saint Denis Thérèse of Lisieux Alban of Mainz Clement I Stephen I of Hungary Hippolytus Augustine of Hippo Charles Borromeo Peter Stephen John of Nepomuk Luke the Evangelist Joseph Anthony of Padua Margaret the Virgin Saint George Ignatius of Loyola Mary Magdalene Andrew Saint Wenceslaus I, Duke of Bohemia Pancras of Rome Suitbert of Kaiserswerdt Paul Teresa of Ávila Louis IX of France Saint Gall Gereon James Saint Emeric of Hungary Thomas the Apostle Saint Ursula Saint Nicholas Benedict of Nursia Bartholomew the Apostle Catherine of Alexandria Henry John the Baptist Agnes of Rome Saint Cecilia Ladislaus I of Hungary Clement of Ohrid Saint Blaise Saint Giles Saint Anna Elizabeth of Hungary Lawrence of Rome Agatha of Sicily Jerome Demetrius of Thessaloniki
Louis IX of France Augustine of Hippo Alexander Nevsky
action greater
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type church
action find_reverse_tuple_counts
relation patron saint
type common name
type temple
action count
action filter_multi_types
action find_reverse
entity Saint Cajetan
relation patron saint
type church
type temple
[[{'concept': 'church'}, {'concept': 'temple'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { ?a property:patron_saint resource:Saint_Cajetan . { VALUES ( ?e ) { ( ontology:church ) ( ontology:temple ) } . ?a rdf:type ?e } } } . FILTER ( ?q > ?b ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) ?j WHERE { { ?j rdf:type ontology:common_name . ?l rdf:type ontology:church . ?l property:patron_saint ?j } UNION { ?j rdf:type ontology:common_name . ?l rdf:type ontology:temple . ?l property:patron_saint ?j } } GROUP BY ?j } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q5726913 Q5259916
P241
Q781132
USER
Which military branches are Denzil Onslow and Henry Persse affiliated to ?
AND((Q5259916,P241,c(Q781132)), (Q5726913,P241,c(Q781132)))
action filter_type
action intersection
action find
entity Q5259916
relation P241
action find
entity Q5726913
relation P241
type Q781132
{'AND': [['Q5259916', 'P241', {'concept': 'Q781132'}], ['Q5726913', 'P241', {'concept': 'Q781132'}]]}
SELECT DISTINCT ?q WHERE { resource:Q5259916 property:P241 ?q . resource:Q5726913 property:P241 ?q . ?q rdf:type ontology:Q781132 }
Henry Persse Denzil Onslow
action filter_type
action intersection
action find
entity Denzil Onslow
relation military branch
action find
entity Henry Persse
relation military branch
type military branch
{'AND': [['Denzil Onslow', 'military branch', {'concept': 'military branch'}], ['Henry Persse', 'military branch', {'concept': 'military branch'}]]}
SELECT DISTINCT ?q WHERE { resource:Denzil_Onslow property:military_branch ?q . resource:Henry_Persse property:military_branch ?q . ?q rdf:type ontology:military_branch }
[]
military branch
Q222595
SYSTEM
British Army
Q222595
AND((Q5259916,P241,c(Q781132)), (Q5726913,P241,c(Q781132)))
action filter_type
action intersection
action find
entity Q5259916
relation P241
action find
entity Q5726913
relation P241
type Q781132
Denzil Onslow and Henry Persse are affiliated with [ANSWER]
{'AND': [['Q5259916', 'P241', {'concept': 'Q781132'}], ['Q5726913', 'P241', {'concept': 'Q781132'}]]}
SELECT DISTINCT ?q WHERE { resource:Q5259916 property:P241 ?q . resource:Q5726913 property:P241 ?q . ?q rdf:type ontology:Q781132 }
British Army
Denzil Onslow and Henry Persse are affiliated with British Army
British Army
action filter_type
action intersection
action find
entity Denzil Onslow
relation military branch
action find
entity Henry Persse
relation military branch
type military branch
{'AND': [['Denzil Onslow', 'military branch', {'concept': 'military branch'}], ['Henry Persse', 'military branch', {'concept': 'military branch'}]]}
SELECT DISTINCT ?q WHERE { resource:Denzil_Onslow property:military_branch ?q . resource:Henry_Persse property:military_branch ?q . ?q rdf:type ontology:military_branch }
[]