Simple Question (Direct)
Simple Question
Q6796136
P119
Q39614
USER
Where is the place of burial for Maxwell Murray located ?
(Q6796136,P119,c(Q39614))
action filter_type
action find
entity Q6796136
relation P119
type Q39614
['Q6796136', 'P119', {'concept': 'Q39614'}]
SELECT DISTINCT ?y WHERE { resource:Q6796136 property:P119 ?y . ?y rdf:type ontology:Q39614 }
Maxwell Murray
action filter_type
action find
entity Maxwell Murray
relation place of burial
type cemetery
['Maxwell Murray', 'place of burial', {'concept': 'cemetery'}]
SELECT DISTINCT ?y WHERE { resource:Maxwell_Murray property:place_of_burial ?y . ?y rdf:type ontology:cemetery }
[]
cemetery
Q216344
SYSTEM
Arlington National Cemetery
Q216344
(Q6796136,P119,c(Q39614))
action filter_type
action find
entity Q6796136
relation P119
type Q39614
The place of burial for Maxwell Murray is located in [ANSWER]
['Q6796136', 'P119', {'concept': 'Q39614'}]
SELECT DISTINCT ?y WHERE { resource:Q6796136 property:P119 ?y . ?y rdf:type ontology:Q39614 }
Arlington National Cemetery
The place of burial for Maxwell Murray is located in Arlington National Cemetery
Arlington National Cemetery
action filter_type
action find
entity Maxwell Murray
relation place of burial
type cemetery
['Maxwell Murray', 'place of burial', {'concept': 'cemetery'}]
SELECT DISTINCT ?y WHERE { resource:Maxwell_Murray property:place_of_burial ?y . ?y rdf:type ontology:cemetery }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6796136
P20
Q532
USER
Where did that person expire ?
(Q216344,P20,c(Q532))
action filter_type
action find
entity Q6796136
relation P20
type Q532
['Q216344', 'P20', {'concept': 'Q532'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q532 . resource:Q6796136 property:P20 ?c }
Maxwell Murray
action filter_type
action find
entity Maxwell Murray
relation place of death
type village
['Arlington National Cemetery', 'place of death', {'concept': 'village'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:village . resource:Maxwell_Murray property:place_of_death ?c }
[]
village
Q7506866
SYSTEM
Siasconset
Q7506866
(Q216344,P20,c(Q532))
action filter_type
action find
entity Q6796136
relation P20
type Q532
That person expired in [ANSWER]
['Q216344', 'P20', {'concept': 'Q532'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q532 . resource:Q6796136 property:P20 ?c }
Siasconset
That person expired in Siasconset
Siasconset
action filter_type
action find
entity Maxwell Murray
relation place of death
type village
['Arlington National Cemetery', 'place of death', {'concept': 'village'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:village . resource:Maxwell_Murray property:place_of_death ?c }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1773118 Q7506866
P17
Q15617994
USER
Which administrative territories are Siasconset or Rayburn Township, Armstrong County situated in ?
OR((Q7506866,P17,c(Q15617994)), (Q1773118,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7506866
relation P17
action find
entity Q1773118
relation P17
type Q15617994
{'OR': [['Q7506866', 'P17', {'concept': 'Q15617994'}], ['Q1773118', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?f ) { ( resource:Q7506866 ) ( resource:Q1773118 ) } . ?f property:P17 ?u } . ?u rdf:type ontology:Q15617994 }
Rayburn Township, Armstrong County Siasconset
action filter_type
action union
action find
entity Siasconset
relation country
action find
entity Rayburn Township, Armstrong County
relation country
type designation for an administrative territorial entity
{'OR': [['Siasconset', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Rayburn Township, Armstrong County', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?f ) { ( resource:Siasconset ) ( resource:Rayburn_Township,_Armstrong_County ) } . ?f property:country ?u } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
OR((Q7506866,P17,c(Q15617994)), (Q1773118,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7506866
relation P17
action find
entity Q1773118
relation P17
type Q15617994
Siasconset or Rayburn Township , Armstrong County are situated the [ANSWER]
{'OR': [['Q7506866', 'P17', {'concept': 'Q15617994'}], ['Q1773118', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?f ) { ( resource:Q7506866 ) ( resource:Q1773118 ) } . ?f property:P17 ?u } . ?u rdf:type ontology:Q15617994 }
United States of America
Siasconset or Rayburn Township , Armstrong County are situated the United States of America
United States of America
action filter_type
action union
action find
entity Siasconset
relation country
action find
entity Rayburn Township, Armstrong County
relation country
type designation for an administrative territorial entity
{'OR': [['Siasconset', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Rayburn Township, Armstrong County', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?f ) { ( resource:Siasconset ) ( resource:Rayburn_Township,_Armstrong_County ) } . ?f property:country ?u } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P463
Q874405 Q1129645
USER
How many social groups and trade blocs were that administrative territory a member of ?
(Q30,P463,c(Q874405)) (Q30,P463,c(Q1129645)) (Q30,P463,c(Q874405)) (Q30,P463,c(Q1129645))
action count
action union
action filter_type
action find
entity Q30
relation P463
type Q874405
action filter_type
action find
entity Q30
relation P463
type Q1129645
['Q30', 'P463', {'concept': 'Q874405'}] ['Q30', 'P463', {'concept': 'Q1129645'}] ['Q30', 'P463', {'concept': 'Q874405'}] ['Q30', 'P463', {'concept': 'Q1129645'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { ?y rdf:type ?q . VALUES ( ?q ) { ( ontology:Q874405 ) ( ontology:Q1129645 ) } }
action count
action union
action filter_type
action find
entity United States of America
relation member of
type social group
action filter_type
action find
entity United States of America
relation member of
type trade bloc
['United States of America', 'member of', {'concept': 'social group'}] ['United States of America', 'member of', {'concept': 'trade bloc'}] ['United States of America', 'member of', {'concept': 'social group'}] ['United States of America', 'member of', {'concept': 'trade bloc'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { ?y rdf:type ?q . VALUES ( ?q ) { ( ontology:social_group ) ( ontology:trade_bloc ) } }
[]
social group trade bloc
SYSTEM
2 social groups and 1 trade blocs
Q782942 Q181574 Q295875
(Q30,P463,c(Q874405)) (Q30,P463,c(Q1129645)) (Q30,P463,c(Q874405)) (Q30,P463,c(Q1129645))
action count
action union
action filter_type
action find
entity Q30
relation P463
type Q874405
action filter_type
action find
entity Q30
relation P463
type Q1129645
[ANSWER]
['Q30', 'P463', {'concept': 'Q874405'}] ['Q30', 'P463', {'concept': 'Q1129645'}] ['Q30', 'P463', {'concept': 'Q874405'}] ['Q30', 'P463', {'concept': 'Q1129645'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { ?y rdf:type ?q . VALUES ( ?q ) { ( ontology:Q874405 ) ( ontology:Q1129645 ) } }
Australia Group North American Free Trade Agreement ANZUS
2 social groups and 1 trade blocs
action count
action union
action filter_type
action find
entity United States of America
relation member of
type social group
action filter_type
action find
entity United States of America
relation member of
type trade bloc
['United States of America', 'member of', {'concept': 'social group'}] ['United States of America', 'member of', {'concept': 'trade bloc'}] ['United States of America', 'member of', {'concept': 'social group'}] ['United States of America', 'member of', {'concept': 'trade bloc'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { ?y rdf:type ?q . VALUES ( ?q ) { ( ontology:social_group ) ( ontology:trade_bloc ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q79
P530
Q15617994 Q15617994
USER
Which administrative territories holds diplomatic relationship with lesser number of administrative territories than Egypt ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q79
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?q ) WHERE { ?b property:P530 ?v . ?v rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { ?c property:P530 resource:Q79 . ?c rdf:type ontology:Q15617994 } } . FILTER ( ?q < ?z ) }
Egypt
action less
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_reverse
entity Egypt
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 ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?q ) WHERE { ?b property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { ?c property:diplomatic_relation resource:Egypt . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?q < ?z ) }
[]
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 less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q79
relation P530
type Q15617994
[ANSWERS] hold diplomatic relationship with lesser number of administrative territories than Egypt
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?q ) WHERE { ?b property:P530 ?v . ?v rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { ?c property:P530 resource:Q79 . ?c rdf:type ontology:Q15617994 } } . FILTER ( ?q < ?z ) }
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 lesser number of administrative territories than Egypt
Georgia Netherlands Poland
action less
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_reverse
entity Egypt
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 ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?q ) WHERE { ?b property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { ?c property:diplomatic_relation resource:Egypt . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?q < ?z ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q822
P530
Q15617994 Q15617994
USER
And also tell me about Lebanon?
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q822
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?s ) WHERE { ?y property:P530 ?p . ?p rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u rdf:type ontology:Q15617994 . ?u property:P530 resource:Q822 } } . FILTER ( ?s < ?i ) }
Lebanon
action less
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_reverse
entity Lebanon
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 ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?s ) WHERE { ?y property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u property:diplomatic_relation resource:Lebanon } } . FILTER ( ?s < ?i ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q784 Q265 Q712 Q710 Q717 Q837 Q398 Q657 Q45 Q792 Q790 Q954 Q889 Q884 Q958 Q881 Q986 Q242 Q244 Q811 Q33 Q32 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 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q221 Q96 Q229 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q822
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?s ) WHERE { ?y property:P530 ?p . ?p rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u rdf:type ontology:Q15617994 . ?u property:P530 resource:Q822 } } . FILTER ( ?s < ?i ) }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Dominica Uzbekistan Fiji Kiribati Venezuela Nepal Bahrain Chad Portugal El Salvador Haiti Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Belize Barbados Nicaragua Finland Luxembourg 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 Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Republic of Macedonia Mexico Cyprus 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 Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan 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 Togo Tonga Spain New Caledonia Thailand
Georgia Netherlands Poland
action less
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_reverse
entity Lebanon
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 ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?s ) WHERE { ?y property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u property:diplomatic_relation resource:Lebanon } } . FILTER ( ?s < ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q231168
P1376
Q15617994 Q515 Q56061
USER
How many administrative territories have more number of cities or administrative territories have their first city than Zuyderzée ?
(c(Q515)|c(Q56061),P1376,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q231168
relation P1376
type Q515
type Q56061
[[{'concept': 'Q515'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) ?z WHERE { { ?c property:P1376 ?z . ?z rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q56061 } UNION { ?c property:P1376 ?z . ?z rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q515 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { ?o property:P1376 resource:Q231168 . { ?o rdf:type ?i . VALUES ( ?i ) { ( ontology:Q56061 ) ( ontology:Q515 ) } } } } . FILTER ( ?y > ?w ) }
Zuyderzée
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Zuyderzée
relation capital of
type city
type administrative territorial entity
[[{'concept': 'city'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) ?z WHERE { { ?c property:capital_of ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:administrative_territorial_entity } UNION { ?c property:capital_of ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:city } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { ?o property:capital_of resource:Zuyderzée . { ?o rdf:type ?i . VALUES ( ?i ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } } } } . FILTER ( ?y > ?w ) }
[]
designation for an administrative territorial entity city administrative territorial entity
SYSTEM
15
Q805 Q252 Q258 Q155 Q1020 Q41 Q30 Q38 Q1033 Q199688 Q12536 Q517333 Q924 Q17 Q160307
(c(Q515)|c(Q56061),P1376,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q231168
relation P1376
type Q515
type Q56061
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) ?z WHERE { { ?c property:P1376 ?z . ?z rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q56061 } UNION { ?c property:P1376 ?z . ?z rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q515 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { ?o property:P1376 resource:Q231168 . { ?o rdf:type ?i . VALUES ( ?i ) { ( ontology:Q56061 ) ( ontology:Q515 ) } } } } . FILTER ( ?y > ?w ) }
Yemen Indonesia South Africa Brazil Malawi Greece United States of America Italy Nigeria Almohad Abbasid caliphate Principality of Polotsk Tanzania Japan Fatimid caliphate
15
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Zuyderzée
relation capital of
type city
type administrative territorial entity
[[{'concept': 'city'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) ?z WHERE { { ?c property:capital_of ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:administrative_territorial_entity } UNION { ?c property:capital_of ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:city } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { ?o property:capital_of resource:Zuyderzée . { ?o rdf:type ?i . VALUES ( ?i ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } } } } . FILTER ( ?y > ?w ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q894970
P1376
Q15617994 Q515 Q56061
USER
And also tell me about Bouches-de-la-Meuse?
(c(Q515)|c(Q56061),P1376,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q894970
relation P1376
type Q515
type Q56061
[[{'concept': 'Q515'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) ?p WHERE { VALUES ( ?u ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?f rdf:type ?u } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { { { ?d rdf:type ontology:Q56061 } UNION { ?d rdf:type ontology:Q515 } } . ?d property:P1376 resource:Q894970 } } . FILTER ( ?v > ?c ) }
Bouches-de-la-Meuse
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Bouches-de-la-Meuse
relation capital of
type city
type administrative territorial entity
[[{'concept': 'city'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) ?p WHERE { VALUES ( ?u ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?f rdf:type ?u } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { { { ?d rdf:type ontology:administrative_territorial_entity } UNION { ?d rdf:type ontology:city } } . ?d property:capital_of resource:Bouches-de-la-Meuse } } . FILTER ( ?v > ?c ) }
[]
designation for an administrative territorial entity city administrative territorial entity
SYSTEM
15
Q805 Q252 Q258 Q155 Q1020 Q41 Q30 Q38 Q1033 Q199688 Q12536 Q517333 Q924 Q17 Q160307
(c(Q515)|c(Q56061),P1376,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q894970
relation P1376
type Q515
type Q56061
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) ?p WHERE { VALUES ( ?u ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?f rdf:type ?u } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { { { ?d rdf:type ontology:Q56061 } UNION { ?d rdf:type ontology:Q515 } } . ?d property:P1376 resource:Q894970 } } . FILTER ( ?v > ?c ) }
Yemen Indonesia South Africa Brazil Malawi Greece United States of America Italy Nigeria Almohad Abbasid caliphate Principality of Polotsk Tanzania Japan Fatimid caliphate
15
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Bouches-de-la-Meuse
relation capital of
type city
type administrative territorial entity
[[{'concept': 'city'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) ?p WHERE { VALUES ( ?u ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?f rdf:type ?u } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { { { ?d rdf:type ontology:administrative_territorial_entity } UNION { ?d rdf:type ontology:city } } . ?d property:capital_of resource:Bouches-de-la-Meuse } } . FILTER ( ?v > ?c ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q15617994 Q20667921 Q515
USER
Which administrative territories have exactly 3 french administrative divisions or cities as their county seat ?
(c(Q20667921)|c(Q515),P1376,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
value 3
[[{'concept': 'Q20667921'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { FILTER ( ?t = 3 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) ?v WHERE { { ?v rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q20667921 . ?x property:P1376 ?v } UNION { ?x property:P1376 ?v . ?v rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q515 } } GROUP BY ?v } }
action equal
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
value 3
[[{'concept': 'type of french administrative division'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { FILTER ( ?t = 3 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) ?v WHERE { { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:type_of_french_administrative_division . ?x property:capital_of ?v } UNION { ?x property:capital_of ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:city } } GROUP BY ?v } }
[]
designation for an administrative territorial entity type of french administrative division city
Q12703 Q12569
SYSTEM
Pyrénées-Atlantiques, Loire
Q12703 Q12569
(c(Q20667921)|c(Q515),P1376,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
value 3
[ANSWERS] have exactly 3 french administrative divisions or cities as their county seat
[[{'concept': 'Q20667921'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { FILTER ( ?t = 3 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) ?v WHERE { { ?v rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q20667921 . ?x property:P1376 ?v } UNION { ?x property:P1376 ?v . ?v rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q515 } } GROUP BY ?v } }
Pyrénées-Atlantiques Loire
Pyrénées-Atlantiques and Loire have exactly 3 french administrative divisions or cities as their county seat
Pyrénées-Atlantiques Loire
action equal
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
value 3
[[{'concept': 'type of french administrative division'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { FILTER ( ?t = 3 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) ?v WHERE { { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:type_of_french_administrative_division . ?x property:capital_of ?v } UNION { ?x property:capital_of ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:city } } GROUP BY ?v } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q12703
P610
Q14524493
USER
Which is the zenith of that administrative territory ?
(Q12703,P610,c(Q14524493))
action filter_type
action find
entity Q12703
relation P610
type Q14524493
['Q12703', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?k WHERE { resource:Q12703 property:P610 ?k . ?k rdf:type ontology:Q14524493 }
Pyrénées-Atlantiques
action filter_type
action find
entity Pyrénées-Atlantiques
relation highest point
type terrain
['Pyrénées-Atlantiques', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?k WHERE { resource:Pyrénées-Atlantiques property:highest_point ?k . ?k rdf:type ontology:terrain }
[]
terrain
Clarification for simple ques.
Q12569
SYSTEM
Did you mean Loire ?
Q12703 Q12569
(Q12703,P610,c(Q14524493)) (Q12569,P610,c(Q14524493))
[ANSWER]
['Q12703', 'P610', {'concept': 'Q14524493'}] ['Q12569', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?k WHERE { resource:Q12703 property:P610 ?k . ?k rdf:type ontology:Q14524493 }
Pyrénées-Atlantiques Loire
Did you mean Loire ?
Loire
['Pyrénées-Atlantiques', 'highest point', {'concept': 'terrain'}] ['Loire', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?k WHERE { resource:Pyrénées-Atlantiques property:highest_point ?k . ?k rdf:type ontology:terrain }
[]
Simple Question (Coreferenced)
USER
No, I meant Pyrénées-Atlantiques. Could you tell me the answer for that?
(Q12703,P610,c(Q14524493))
Q12703
['Q12703', 'P610', {'concept': 'Q14524493'}]
['Pyrénées-Atlantiques', 'highest point', {'concept': 'terrain'}]
[]
Q3382327
SYSTEM
Pic Palas
Q3382327
(Q12703,P610,c(Q14524493))
action filter_type
action find
entity Q12703
relation P610
type Q14524493
The zenith of that administrative territory is [ANSWER]
['Q12703', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?k WHERE { resource:Q12703 property:P610 ?k . ?k rdf:type ontology:Q14524493 }
Pic Palas
The zenith of that administrative territory is Pic Palas
Pic Palas
action filter_type
action find
entity Pyrénées-Atlantiques
relation highest point
type terrain
['Pyrénées-Atlantiques', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?k WHERE { resource:Pyrénées-Atlantiques property:highest_point ?k . ?k rdf:type ontology:terrain }
[]