Simple Question (Direct)
Simple Question
Q7155232
P19
Q56061
USER
Which administrative territory is the birthplace of Paulo Jorge Carreira Nunes ?
(Q7155232,P19,c(Q56061))
action filter_type
action find
entity Q7155232
relation P19
type Q56061
['Q7155232', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q7155232 property:P19 ?z }
Paulo Jorge Carreira Nunes
action filter_type
action find
entity Paulo Jorge Carreira Nunes
relation place of birth
type administrative territorial entity
['Paulo Jorge Carreira Nunes', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Paulo_Jorge_Carreira_Nunes property:place_of_birth ?z }
[]
administrative territorial entity
Q3897
SYSTEM
Luanda
Q3897
(Q7155232,P19,c(Q56061))
action filter_type
action find
entity Q7155232
relation P19
type Q56061
Of [ANSWER] is the birthplace of Paulo Jorge Carreira Nunes
['Q7155232', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q7155232 property:P19 ?z }
Luanda
Of Luanda is the birthplace of Paulo Jorge Carreira Nunes
Luanda
action filter_type
action find
entity Paulo Jorge Carreira Nunes
relation place of birth
type administrative territorial entity
['Paulo Jorge Carreira Nunes', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Paulo_Jorge_Carreira_Nunes property:place_of_birth ?z }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7155232
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q3897,P27,c(Q15617994))
action filter_type
action find
entity Q7155232
relation P27
type Q15617994
['Q3897', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q7155232 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Paulo Jorge Carreira Nunes
action filter_type
action find
entity Paulo Jorge Carreira Nunes
relation country of citizenship
type designation for an administrative territorial entity
['Luanda', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Paulo_Jorge_Carreira_Nunes property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q45
SYSTEM
Portugal
Q45
(Q3897,P27,c(Q15617994))
action filter_type
action find
entity Q7155232
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q3897', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q7155232 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Portugal
Portugal is the country of citizenship of that person
Portugal
action filter_type
action find
entity Paulo Jorge Carreira Nunes
relation country of citizenship
type designation for an administrative territorial entity
['Luanda', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Paulo_Jorge_Carreira_Nunes property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with atmost 26 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 26
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?s ) WHERE { ?k property:P530 ?t . ?k rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?k } . FILTER ( ?s <= 26 ) }
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 26
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?s ) WHERE { ?k property:diplomatic_relation ?t . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . FILTER ( ?s <= 26 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q30 Q159 Q55
SYSTEM
United States of America, Russia, Netherlands
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 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 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 26
[ANSWERS] have diplomatic relations with atmost 26 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?s ) WHERE { ?k property:P530 ?t . ?k rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?k } . FILTER ( ?s <= 26 ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America 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 Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan 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 Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
United States of America, Russia and Netherlands have diplomatic relations with atmost 26 administrative territories
United States of America Russia Netherlands
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 26
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?s ) WHERE { ?k property:diplomatic_relation ?t . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . FILTER ( ?s <= 26 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have a diplomatic relationship with exactly 9 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 9
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?a ) AS ?o ) WHERE { ?i property:P530 ?a . ?i rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?i } . FILTER ( ?o = 9 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 9
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?a ) AS ?o ) WHERE { ?i property:diplomatic_relation ?a . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . FILTER ( ?o = 9 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q43 Q79
SYSTEM
Turkey, Egypt
Q43 Q79
(c(Q15617994),P530,c(Q15617994))
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 9
[ANSWERS] have a diplomatic relationship with exactly 9 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?a ) AS ?o ) WHERE { ?i property:P530 ?a . ?i rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?i } . FILTER ( ?o = 9 ) }
Turkey Egypt
Turkey and Egypt have a diplomatic relationship with exactly 9 administrative territories
Turkey Egypt
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 9
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?a ) AS ?o ) WHERE { ?i property:diplomatic_relation ?a . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . FILTER ( ?o = 9 ) }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q7725634 Q201658
USER
Which administrative territories are the origin of less number of literary works and film genres than that administrative territory ?
(c(Q7725634)|c(Q201658),P495,c(Q15617994))
[[{'concept': 'Q7725634'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q201658 }
[[{'concept': 'literary work'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:film_genre }
[]
designation for an administrative territorial entity literary work film genre
Comparative|More/Less|Mult. entity type|Clarification
Q79
SYSTEM
Did you mean Egypt ?
(c(Q7725634)|c(Q201658),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q201658 }
Did you mean Egypt ?
Egypt
[[{'concept': 'literary work'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:film_genre }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q7725634)|c(Q201658),P495,c(Q15617994))
[[{'concept': 'Q7725634'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'literary work'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q230 Q953 Q801
SYSTEM
Georgia, Zambia, Israel
Q805 Q804 Q801 Q800 Q1462 Q12536 Q262 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q32 Q924 Q928 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q1045 Q1044 Q1041 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q229 Q347 Q902 Q1036 Q1037 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q869 Q953
(c(Q7725634)|c(Q201658),P495,c(Q15617994))
[ANSWERS] are the origin of less number of literary works and film genres than that administrative territory
[[{'concept': 'Q7725634'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q201658 }
Yemen Panama Israel Costa Rica Sardinia Abbasid caliphate Algeria Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Luxembourg Tanzania Philippines Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Somalia Sierra Leone Senegal Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Cyprus Liechtenstein Bangladesh Uganda Rwanda Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile 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 Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Thailand Zambia
Georgia, Zambia and Israel are the origin of less number of literary works and film genres than that administrative territory
Georgia Zambia Israel
[[{'concept': 'literary work'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:film_genre }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q183
P530
Q1048835
USER
Do Germany have diplomatic associations with those administrative territories ?
(Q183,P530,Q230) (Q183,P530,Q953) (Q183,P530,Q801)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q230'] ['Q183', 'P530', 'Q953'] ['Q183', 'P530', 'Q801']
ASK WHERE { resource:Q183 property:P530 ?q . VALUES ( ?q ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q801 ) } }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Georgia'] ['Germany', 'diplomatic relation', 'Zambia'] ['Germany', 'diplomatic relation', 'Israel']
ASK WHERE { resource:Germany property:diplomatic_relation ?q . VALUES ( ?q ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Israel ) } }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q230) (Q183,P530,Q953) (Q183,P530,Q801)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q230'] ['Q183', 'P530', 'Q953'] ['Q183', 'P530', 'Q801']
ASK WHERE { resource:Q183 property:P530 ?q . VALUES ( ?q ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q801 ) } }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Georgia'] ['Germany', 'diplomatic relation', 'Zambia'] ['Germany', 'diplomatic relation', 'Israel']
ASK WHERE { resource:Germany property:diplomatic_relation ?q . VALUES ( ?q ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Israel ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q40
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with more number of administrative territories than Austria ?
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?k ) WHERE { ?p property:P530 ?i . ?p rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { resource:Q40 property:P530 ?a . ?a rdf:type ontology:Q1048835 } } . FILTER ( ?k > ?d ) }
Austria
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?k ) WHERE { ?p property:diplomatic_relation ?i . ?p rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { resource:Austria property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity } } . FILTER ( ?k > ?d ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
3
Q183 Q408 Q16
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?k ) WHERE { ?p property:P530 ?i . ?p rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { resource:Q40 property:P530 ?a . ?a rdf:type ontology:Q1048835 } } . FILTER ( ?k > ?d ) }
Germany Australia Canada
3
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?k ) WHERE { ?p property:diplomatic_relation ?i . ?p rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { resource:Austria property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity } } . FILTER ( ?k > ?d ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q16
P530
Q1048835 Q15617994
USER
And also tell me about Canada?
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?h ) WHERE { ?x property:P530 ?a . ?x rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { resource:Q16 property:P530 ?o . ?o rdf:type ontology:Q1048835 } } . FILTER ( ?h > ?n ) }
Canada
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?h ) WHERE { ?x property:diplomatic_relation ?a . ?x rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { resource:Canada property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity } } . FILTER ( ?h > ?n ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?h ) WHERE { ?x property:P530 ?a . ?x rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { resource:Q16 property:P530 ?o . ?o rdf:type ontology:Q1048835 } } . FILTER ( ?h > ?n ) }
Germany Australia
2
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?h ) WHERE { ?x property:diplomatic_relation ?a . ?x rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { resource:Canada property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity } } . FILTER ( ?h > ?n ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q801
P36
Q56061
USER
Which administrative territory is associated to Israel as the capital ?
(Q801,P36,c(Q56061))
action filter_type
action find
entity Q801
relation P36
type Q56061
['Q801', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q801 property:P36 ?o . ?o rdf:type ontology:Q56061 }
Israel
action filter_type
action find
entity Israel
relation capital
type administrative territorial entity
['Israel', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Israel property:capital ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1218
SYSTEM
Jerusalem
Q1218
(Q801,P36,c(Q56061))
action filter_type
action find
entity Q801
relation P36
type Q56061
In [ANSWER] is associated to Israel as the capital
['Q801', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q801 property:P36 ?o . ?o rdf:type ontology:Q56061 }
Jerusalem
In Jerusalem is associated to Israel as the capital
Jerusalem
action filter_type
action find
entity Israel
relation capital
type administrative territorial entity
['Israel', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Israel property:capital ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q156647
Q56061
USER
And also tell me about Howard County?
(Q156647,P36,c(Q56061))
action filter_type
action find
entity Q156647
relation P36
type Q56061
['Q156647', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q156647 property:P36 ?x . ?x rdf:type ontology:Q56061 }
Howard County
action filter_type
action find
entity Howard County
relation capital
type administrative territorial entity
['Howard County', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Howard_County property:capital ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1914623
SYSTEM
Cresco
Q1914623
(Q156647,P36,c(Q56061))
action filter_type
action find
entity Q156647
relation P36
type Q56061
[ANSWER]
['Q156647', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q156647 property:P36 ?x . ?x rdf:type ontology:Q56061 }
Cresco
Cresco
action filter_type
action find
entity Howard County
relation capital
type administrative territorial entity
['Howard County', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Howard_County property:capital ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1914623 Q30
P17
Q15617994
USER
Does that administrative territory belong to United States of America ?
(Q1914623,P17,Q30)
action is_in
entity Q30
action find
entity Q1914623
relation P17
['Q1914623', 'P17', 'Q30']
ASK WHERE { resource:Q1914623 property:P17 resource:Q30 }
Cresco United States of America
action is_in
entity United States of America
action find
entity Cresco
relation country
['Cresco', 'country', 'United States of America']
ASK WHERE { resource:Cresco property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q1914623,P17,Q30)
action is_in
entity Q30
action find
entity Q1914623
relation P17
[ANSWER]
['Q1914623', 'P17', 'Q30']
ASK WHERE { resource:Q1914623 property:P17 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Cresco
relation country
['Cresco', 'country', 'United States of America']
ASK WHERE { resource:Cresco property:country resource:United_States_of_America }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1914623
P159
Q43229
USER
Which organization has the principal seat at that administrative territory ?
action filter_type
action find_reverse
entity Q1914623
relation P159
type Q43229
SELECT DISTINCT ?t WHERE { ?t property:P159 resource:Q1914623 . ?t rdf:type ontology:Q43229 }
Cresco
action filter_type
action find_reverse
entity Cresco
relation headquarters location
type organization
SELECT DISTINCT ?t WHERE { ?t property:headquarters_location resource:Cresco . ?t rdf:type ontology:organization }
[]
organization
Q5439625
SYSTEM
Featherlite Trailers
Q5439625
action filter_type
action find_reverse
entity Q1914623
relation P159
type Q43229
[ANSWER] has the principal seat at that administrative territory
SELECT DISTINCT ?t WHERE { ?t property:P159 resource:Q1914623 . ?t rdf:type ontology:Q43229 }
Featherlite Trailers
Featherlite Trailers has the principal seat at that administrative territory
Featherlite Trailers
action filter_type
action find_reverse
entity Cresco
relation headquarters location
type organization
SELECT DISTINCT ?t WHERE { ?t property:headquarters_location resource:Cresco . ?t rdf:type ontology:organization }
[]