Simple Question (Direct)
Simple Question
Q27312653
P21
Q290
USER
What is the sex of Fátima Langa ?
(Q27312653,P21,c(Q290))
action filter_type
action find
entity Q27312653
relation P21
type Q290
['Q27312653', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q27312653 property:P21 ?i . ?i rdf:type ontology:Q290 }
Fátima Langa
action filter_type
action find
entity Fátima Langa
relation gender
type sex
['Fátima Langa', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Fátima_Langa property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q27312653,P21,c(Q290))
action filter_type
action find
entity Q27312653
relation P21
type Q290
The sex of Fátima Langa is the [ANSWER]
['Q27312653', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q27312653 property:P21 ?i . ?i rdf:type ontology:Q290 }
female
The sex of Fátima Langa is the female
female
action filter_type
action find
entity Fátima Langa
relation gender
type sex
['Fátima Langa', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Fátima_Langa property:gender ?i . ?i rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q27312653
P19
Q13220204
USER
Where was that person born ?
(Q6581072,P19,c(Q13220204))
action filter_type
action find
entity Q27312653
relation P19
type Q13220204
['Q6581072', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?k WHERE { resource:Q27312653 property:P19 ?k . ?k rdf:type ontology:Q13220204 }
Fátima Langa
action filter_type
action find
entity Fátima Langa
relation place of birth
type second-level administrative country subdivision
['female', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?k WHERE { resource:Fátima_Langa property:place_of_birth ?k . ?k rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q6489660
SYSTEM
Manjacaze District
Q6489660
(Q6581072,P19,c(Q13220204))
action filter_type
action find
entity Q27312653
relation P19
type Q13220204
That person was born in [ANSWER]
['Q6581072', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?k WHERE { resource:Q27312653 property:P19 ?k . ?k rdf:type ontology:Q13220204 }
Manjacaze District
That person was born in Manjacaze District
Manjacaze District
action filter_type
action find
entity Fátima Langa
relation place of birth
type second-level administrative country subdivision
['female', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?k WHERE { resource:Fátima_Langa property:place_of_birth ?k . ?k rdf:type ontology:second-level_administrative_country_subdivision }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6489660 Q27312653
P19
Q502895
USER
Was Fátima Langa born at that administrative country subdivision ?
(Q27312653,P19,Q6489660)
action is_in
entity Q6489660
action find
entity Q27312653
relation P19
['Q27312653', 'P19', 'Q6489660']
ASK WHERE { resource:Q27312653 property:P19 resource:Q6489660 }
Manjacaze District Fátima Langa
action is_in
entity Manjacaze District
action find
entity Fátima Langa
relation place of birth
['Fátima Langa', 'place of birth', 'Manjacaze District']
ASK WHERE { resource:Fátima_Langa property:place_of_birth resource:Manjacaze_District }
[]
common name
SYSTEM
YES
(Q27312653,P19,Q6489660)
action is_in
entity Q6489660
action find
entity Q27312653
relation P19
[ANSWER]
['Q27312653', 'P19', 'Q6489660']
ASK WHERE { resource:Q27312653 property:P19 resource:Q6489660 }
Yes
action is_in
entity Manjacaze District
action find
entity Fátima Langa
relation place of birth
['Fátima Langa', 'place of birth', 'Manjacaze District']
ASK WHERE { resource:Fátima_Langa property:place_of_birth resource:Manjacaze_District }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q27312653 Q1029
P27
Q15617994
USER
Is Fátima Langa a civilian of Mozambique ?
(Q27312653,P27,Q1029)
action is_in
entity Q1029
action find
entity Q27312653
relation P27
['Q27312653', 'P27', 'Q1029']
ASK WHERE { resource:Q27312653 property:P27 resource:Q1029 }
Fátima Langa Mozambique
action is_in
entity Mozambique
action find
entity Fátima Langa
relation country of citizenship
['Fátima Langa', 'country of citizenship', 'Mozambique']
ASK WHERE { resource:Fátima_Langa property:country_of_citizenship resource:Mozambique }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q27312653,P27,Q1029)
action is_in
entity Q1029
action find
entity Q27312653
relation P27
[ANSWER]
['Q27312653', 'P27', 'Q1029']
ASK WHERE { resource:Q27312653 property:P27 resource:Q1029 }
Yes
action is_in
entity Mozambique
action find
entity Fátima Langa
relation country of citizenship
['Fátima Langa', 'country of citizenship', 'Mozambique']
ASK WHERE { resource:Fátima_Langa property:country_of_citizenship resource:Mozambique }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q269319 Q27312653
P47 P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Fátima Langa or share border with Pornassio ?
OR((Q27312653,P27,c(Q15617994)), (Q269319,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q27312653
relation P27
action find
entity Q269319
relation P47
type Q15617994
{'OR': [['Q27312653', 'P27', {'concept': 'Q15617994'}], ['Q269319', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q269319 property:P47 ?p } UNION { resource:Q27312653 property:P27 ?p } } . ?p rdf:type ontology:Q15617994 }
Pornassio Fátima Langa
action filter_type
action union
action find
entity Fátima Langa
relation country of citizenship
action find
entity Pornassio
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Fátima Langa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Pornassio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Pornassio property:shares_border_with ?p } UNION { resource:Fátima_Langa property:country_of_citizenship ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q269426 Q268742 Q20278 Q1029 Q269503
SYSTEM
Montegrosso Pian Latte, Cosio di Arroscia, Ormea, Mozambique, Pieve di Teco
Q269426 Q268742 Q20278 Q1029 Q269503
OR((Q27312653,P27,c(Q15617994)), (Q269319,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q27312653
relation P27
action find
entity Q269319
relation P47
type Q15617994
[ANSWERS] are the countries of citizenship of Fátima Langa or share border with Pornassio
{'OR': [['Q27312653', 'P27', {'concept': 'Q15617994'}], ['Q269319', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q269319 property:P47 ?p } UNION { resource:Q27312653 property:P27 ?p } } . ?p rdf:type ontology:Q15617994 }
Montegrosso Pian Latte Cosio di Arroscia Ormea Mozambique Pieve di Teco
Montegrosso Pian Latte, Cosio di Arroscia, Ormea, Mozambique and Pieve di Teco are the countries of citizenship of Fátima Langa or share border with Pornassio
Montegrosso Pian Latte Cosio di Arroscia Ormea Mozambique Pieve di Teco
action filter_type
action union
action find
entity Fátima Langa
relation country of citizenship
action find
entity Pornassio
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Fátima Langa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Pornassio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Pornassio property:shares_border_with ?p } UNION { resource:Fátima_Langa property:country_of_citizenship ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q967
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic associations with more number of administrative territories than Burundi ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q967
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?w ) WHERE { ?j rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 . ?j property:P530 ?f } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { resource:Q967 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?w > ?b ) }
Burundi
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Burundi
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 ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?w ) WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?f } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { resource:Burundi property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?w > ?b ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q244 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q736 Q236 Q230 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q1049 Q189 Q843 Q842 Q184 Q1029 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1033 Q191 Q962 Q298 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q917 Q916 Q833 Q977 Q34020 Q574 Q79 Q77 Q858 Q878 Q948 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q967
relation P530
type Q15617994
[ANSWERS] have diplomatic associations with more number of administrative territories than Burundi
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?w ) WHERE { ?j rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 . ?j property:P530 ?f } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { resource:Q967 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?w > ?b ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Barbados Finland Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Montenegro Georgia Malta San Marino Norway Somalia Senegal Ireland Hungary Sudan Iceland Pakistan Oman Belarus Mozambique Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Nigeria Estonia Benin Chile Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Bhutan Angola Malaysia Djibouti Niue East Timor Egypt Uruguay Syria United Arab Emirates Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
Italy, Brazil and United States of America have diplomatic associations with more number of administrative territories than Burundi
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Burundi
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 ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?w ) WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?f } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { resource:Burundi property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?w > ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q33
P530
Q15617994 Q15617994
USER
And how about Finland?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q33
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?g ) WHERE { ?o property:P530 ?a . ?o rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { resource:Q33 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?g > ?y ) }
Finland
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Finland
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 ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?g ) WHERE { ?o property:diplomatic_relation ?a . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { resource:Finland property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g > ?y ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q419 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q717 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q733 Q230 Q27 Q28 Q843 Q184 Q228 Q227 Q225 Q222 Q96 Q347 Q17 Q902 Q298 Q114 Q212 Q213 Q218 Q916 Q79 Q77 Q858 Q948 Q1016 Q1011 Q29 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q33
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?g ) WHERE { ?o property:P530 ?a . ?o rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { resource:Q33 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?g > ?y ) }
Israel Yemen Peru India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Venezuela Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Paraguay Georgia Ireland Hungary Pakistan Belarus Andorra Azerbaijan Bosnia and Herzegovina Albania Mexico Liechtenstein Japan Bangladesh Chile Kenya Ukraine Czech Republic Romania Angola Egypt Uruguay Syria Tunisia Libya Cape Verde Spain Zambia
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Finland
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 ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?g ) WHERE { ?o property:diplomatic_relation ?a . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { resource:Finland property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g > ?y ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1638425
P530
Q1048835
USER
Do Lavras have tactful political relations with those administrative territories ?
(Q1638425,P530,Q38) (Q1638425,P530,Q155) (Q1638425,P530,Q30)
action is_in
entity prev_answer
action find
entity Q1638425
relation P530
['Q1638425', 'P530', 'Q38'] ['Q1638425', 'P530', 'Q155'] ['Q1638425', 'P530', 'Q30']
ASK WHERE { resource:Q1638425 property:P530 ?o . VALUES ( ?o ) { ( resource:Q801 ) ( resource:Q805 ) ( resource:Q419 ) } }
Lavras
action is_in
entity prev_answer
action find
entity Lavras
relation diplomatic relation
['Lavras', 'diplomatic relation', 'Italy'] ['Lavras', 'diplomatic relation', 'Brazil'] ['Lavras', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Lavras property:diplomatic_relation ?o . VALUES ( ?o ) { ( resource:Israel ) ( resource:Yemen ) ( resource:Peru ) } }
[]
political territorial entity
SYSTEM
NO
(Q1638425,P530,Q38) (Q1638425,P530,Q155) (Q1638425,P530,Q30)
action is_in
entity prev_answer
action find
entity Q1638425
relation P530
[ANSWER]
['Q1638425', 'P530', 'Q38'] ['Q1638425', 'P530', 'Q155'] ['Q1638425', 'P530', 'Q30']
ASK WHERE { resource:Q1638425 property:P530 ?o . VALUES ( ?o ) { ( resource:Q801 ) ( resource:Q805 ) ( resource:Q419 ) } }
No
action is_in
entity prev_answer
action find
entity Lavras
relation diplomatic relation
['Lavras', 'diplomatic relation', 'Italy'] ['Lavras', 'diplomatic relation', 'Brazil'] ['Lavras', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Lavras property:diplomatic_relation ?o . VALUES ( ?o ) { ( resource:Israel ) ( resource:Yemen ) ( resource:Peru ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relations with max number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?v ) { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?j ) WHERE { ?b property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1048835 } GROUP BY ?b } } . FILTER ( ?r = ?v ) . { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?r ) WHERE { ?i rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 . ?y property:P530 ?i } GROUP BY ?y } }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?v ) { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?j ) WHERE { ?b property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:political_territorial_entity } GROUP BY ?b } } . FILTER ( ?r = ?v ) . { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?r ) WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity . ?y property:diplomatic_relation ?i } GROUP BY ?y } }
[]
political territorial entity designation for an administrative territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have diplomatic relations with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?v ) { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?j ) WHERE { ?b property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1048835 } GROUP BY ?b } } . FILTER ( ?r = ?v ) . { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?r ) WHERE { ?i rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 . ?y property:P530 ?i } GROUP BY ?y } }
Germany
Germany have diplomatic relations with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?v ) { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?j ) WHERE { ?b property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:political_territorial_entity } GROUP BY ?b } } . FILTER ( ?r = ?v ) . { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?r ) WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity . ?y property:diplomatic_relation ?i } GROUP BY ?y } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q766
P530
Q1048835 Q1048835
USER
Which political territories have ambassadorial relations with more number of political territories than Jamaica ?
(c(Q1048835),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?j ) WHERE { ?t property:P530 ?r . ?t rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q1048835 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { resource:Q766 property:P530 ?o . ?o rdf:type ontology:Q1048835 } } . FILTER ( ?j > ?i ) }
Jamaica
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?j ) WHERE { ?t property:diplomatic_relation ?r . ?t rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { resource:Jamaica property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity } } . FILTER ( ?j > ?i ) }
[]
political territorial entity political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[ANSWERS] have ambassadorial relations with more number of political territories than Jamaica
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?j ) WHERE { ?t property:P530 ?r . ?t rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q1048835 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { resource:Q766 property:P530 ?o . ?o rdf:type ontology:Q1048835 } } . FILTER ( ?j > ?i ) }
Austria Germany Australia Denmark Canada New Zealand
Germany, Australia and Denmark have ambassadorial relations with more number of political territories than Jamaica
Germany Australia Denmark
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?j ) WHERE { ?t property:diplomatic_relation ?r . ?t rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { resource:Jamaica property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity } } . FILTER ( ?j > ?i ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1000
P530
Q1048835 Q1048835
USER
And also tell me about Gabon?
(c(Q1048835),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q1000
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?s ) WHERE { ?y property:P530 ?x . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q1048835 } GROUP BY ?y } . FILTER ( ?s > ?p ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { ?f rdf:type ontology:Q1048835 . resource:Q1000 property:P530 ?f } } }
Gabon
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Gabon
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?s ) WHERE { ?y property:diplomatic_relation ?x . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?y } . FILTER ( ?s > ?p ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { ?f rdf:type ontology:political_territorial_entity . resource:Gabon property:diplomatic_relation ?f } } }
[]
political territorial entity political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q1000
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?s ) WHERE { ?y property:P530 ?x . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q1048835 } GROUP BY ?y } . FILTER ( ?s > ?p ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { ?f rdf:type ontology:Q1048835 . resource:Q1000 property:P530 ?f } } }
Austria Germany Australia Denmark Canada New Zealand
Germany Australia Denmark
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Gabon
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?s ) WHERE { ?y property:diplomatic_relation ?x . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?y } . FILTER ( ?s > ?p ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { ?f rdf:type ontology:political_territorial_entity . resource:Gabon property:diplomatic_relation ?f } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P793
Q57821 Q350604
USER
How many fortifications or armed conflicts are that political territory associated with ?
(Q183,P793,c(Q57821)) (Q183,P793,c(Q350604)) (Q183,P793,c(Q57821)) (Q183,P793,c(Q350604)) (Q408,P793,c(Q57821)) (Q408,P793,c(Q350604)) (Q35,P793,c(Q57821)) (Q35,P793,c(Q350604))
['Q183', 'P793', {'concept': 'Q57821'}] ['Q183', 'P793', {'concept': 'Q350604'}] ['Q183', 'P793', {'concept': 'Q57821'}] ['Q183', 'P793', {'concept': 'Q350604'}] ['Q408', 'P793', {'concept': 'Q57821'}] ['Q408', 'P793', {'concept': 'Q350604'}] ['Q35', 'P793', {'concept': 'Q57821'}] ['Q35', 'P793', {'concept': 'Q350604'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q423030 property:P793 ?z } UNION { resource:Q423030 property:P793 ?y } UNION { resource:Q423030 property:P793 ?z } UNION { resource:Q423030 property:P793 ?y } UNION { resource:Q17666015 property:P793 ?z } UNION { resource:Q17666015 property:P793 ?y } UNION { resource:Q22286761 property:P793 ?z } UNION { resource:Q22286761 property:P793 ?y } } . ?z rdf:type ontology:Q57821 . ?y rdf:type ontology:Q350604 }
['Germany', 'significant event', {'concept': 'fortification'}] ['Germany', 'significant event', {'concept': 'armed conflict'}] ['Germany', 'significant event', {'concept': 'fortification'}] ['Germany', 'significant event', {'concept': 'armed conflict'}] ['Australia', 'significant event', {'concept': 'fortification'}] ['Australia', 'significant event', {'concept': 'armed conflict'}] ['Denmark', 'significant event', {'concept': 'fortification'}] ['Denmark', 'significant event', {'concept': 'armed conflict'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Germany property:significant_event ?z } UNION { resource:Germany property:significant_event ?y } UNION { resource:Germany property:significant_event ?z } UNION { resource:Germany property:significant_event ?y } UNION { resource:Australia property:significant_event ?z } UNION { resource:Australia property:significant_event ?y } UNION { resource:Denmark property:significant_event ?z } UNION { resource:Denmark property:significant_event ?y } } . ?z rdf:type ontology:fortification . ?y rdf:type ontology:armed_conflict }
[]
fortification armed conflict
Quantitative|Count|Mult. entity type|Clarification
Q408
SYSTEM
Did you mean Australia ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q423030 property:P793 ?z } UNION { resource:Q423030 property:P793 ?y } UNION { resource:Q423030 property:P793 ?z } UNION { resource:Q423030 property:P793 ?y } UNION { resource:Q17666015 property:P793 ?z } UNION { resource:Q17666015 property:P793 ?y } UNION { resource:Q22286761 property:P793 ?z } UNION { resource:Q22286761 property:P793 ?y } } . ?z rdf:type ontology:Q57821 . ?y rdf:type ontology:Q350604 }
Did you mean Australia ?
Australia
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Germany property:significant_event ?z } UNION { resource:Germany property:significant_event ?y } UNION { resource:Germany property:significant_event ?z } UNION { resource:Germany property:significant_event ?y } UNION { resource:Australia property:significant_event ?z } UNION { resource:Australia property:significant_event ?y } UNION { resource:Denmark property:significant_event ?z } UNION { resource:Denmark property:significant_event ?y } } . ?z rdf:type ontology:fortification . ?y rdf:type ontology:armed_conflict }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Germany. Could you tell me the answer for that?
(Q183,P793,c(Q57821)) (Q183,P793,c(Q350604)) (Q183,P793,c(Q57821)) (Q183,P793,c(Q350604)) (Q408,P793,c(Q57821)) (Q408,P793,c(Q350604)) (Q35,P793,c(Q57821)) (Q35,P793,c(Q350604))
Q183
['Q183', 'P793', {'concept': 'Q57821'}] ['Q183', 'P793', {'concept': 'Q350604'}] ['Q183', 'P793', {'concept': 'Q57821'}] ['Q183', 'P793', {'concept': 'Q350604'}] ['Q408', 'P793', {'concept': 'Q57821'}] ['Q408', 'P793', {'concept': 'Q350604'}] ['Q35', 'P793', {'concept': 'Q57821'}] ['Q35', 'P793', {'concept': 'Q350604'}]
['Germany', 'significant event', {'concept': 'fortification'}] ['Germany', 'significant event', {'concept': 'armed conflict'}] ['Germany', 'significant event', {'concept': 'fortification'}] ['Germany', 'significant event', {'concept': 'armed conflict'}] ['Australia', 'significant event', {'concept': 'fortification'}] ['Australia', 'significant event', {'concept': 'armed conflict'}] ['Denmark', 'significant event', {'concept': 'fortification'}] ['Denmark', 'significant event', {'concept': 'armed conflict'}]
[]
SYSTEM
2
Q182865 Q5086
(Q183,P793,c(Q57821)) (Q183,P793,c(Q350604)) (Q183,P793,c(Q57821)) (Q183,P793,c(Q350604)) (Q408,P793,c(Q57821)) (Q408,P793,c(Q350604)) (Q35,P793,c(Q57821)) (Q35,P793,c(Q350604))
[ANSWER]
['Q183', 'P793', {'concept': 'Q57821'}] ['Q183', 'P793', {'concept': 'Q350604'}] ['Q183', 'P793', {'concept': 'Q57821'}] ['Q183', 'P793', {'concept': 'Q350604'}] ['Q408', 'P793', {'concept': 'Q57821'}] ['Q408', 'P793', {'concept': 'Q350604'}] ['Q35', 'P793', {'concept': 'Q57821'}] ['Q35', 'P793', {'concept': 'Q350604'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q423030 property:P793 ?z } UNION { resource:Q423030 property:P793 ?y } UNION { resource:Q423030 property:P793 ?z } UNION { resource:Q423030 property:P793 ?y } UNION { resource:Q17666015 property:P793 ?z } UNION { resource:Q17666015 property:P793 ?y } UNION { resource:Q22286761 property:P793 ?z } UNION { resource:Q22286761 property:P793 ?y } } . ?z rdf:type ontology:Q57821 . ?y rdf:type ontology:Q350604 }
War in Afghanistan Berlin Wall
2
['Germany', 'significant event', {'concept': 'fortification'}] ['Germany', 'significant event', {'concept': 'armed conflict'}] ['Germany', 'significant event', {'concept': 'fortification'}] ['Germany', 'significant event', {'concept': 'armed conflict'}] ['Australia', 'significant event', {'concept': 'fortification'}] ['Australia', 'significant event', {'concept': 'armed conflict'}] ['Denmark', 'significant event', {'concept': 'fortification'}] ['Denmark', 'significant event', {'concept': 'armed conflict'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Germany property:significant_event ?z } UNION { resource:Germany property:significant_event ?y } UNION { resource:Germany property:significant_event ?z } UNION { resource:Germany property:significant_event ?y } UNION { resource:Australia property:significant_event ?z } UNION { resource:Australia property:significant_event ?y } UNION { resource:Denmark property:significant_event ?z } UNION { resource:Denmark property:significant_event ?y } } . ?z rdf:type ontology:fortification . ?y rdf:type ontology:armed_conflict }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories have ambassadorial relations with around 4 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 4
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?n ) WHERE { ?z property:P530 ?q . ?z rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } GROUP BY ?z } . FILTER ( ?n = 4 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 4
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?n ) WHERE { ?z property:diplomatic_relation ?q . ?z rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?z } . FILTER ( ?n = 4 ) }
[]
political territorial entity political territorial entity
SYSTEM
5
Q40 Q183 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 4
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?n ) WHERE { ?z property:P530 ?q . ?z rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } GROUP BY ?z } . FILTER ( ?n = 4 ) }
Austria Germany Denmark Canada New Zealand
5
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 4
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?n ) WHERE { ?z property:diplomatic_relation ?q . ?z rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?z } . FILTER ( ?n = 4 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19412424 Q1029
P19 P36
Q56061
USER
Which administrative territories are called the capital of Mozambique or are the birthplace of Michel Sauthier ?
OR((Q1029,P36,c(Q56061)), (Q19412424,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1029
relation P36
action find
entity Q19412424
relation P19
type Q56061
{'OR': [['Q1029', 'P36', {'concept': 'Q56061'}], ['Q19412424', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . { { resource:Q1029 property:P36 ?k } UNION { resource:Q19412424 property:P19 ?k } } }
Michel Sauthier Mozambique
action filter_type
action union
action find
entity Mozambique
relation capital
action find
entity Michel Sauthier
relation place of birth
type administrative territorial entity
{'OR': [['Mozambique', 'capital', {'concept': 'administrative territorial entity'}], ['Michel Sauthier', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . { { resource:Mozambique property:capital ?k } UNION { resource:Michel_Sauthier property:place_of_birth ?k } } }
[]
administrative territorial entity
Q3889 Q68136
SYSTEM
Maputo, Sion
Q3889 Q68136
OR((Q1029,P36,c(Q56061)), (Q19412424,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1029
relation P36
action find
entity Q19412424
relation P19
type Q56061
[ANSWERS] are called the capital of Mozambique or are the birthplace of Michel Sauthier
{'OR': [['Q1029', 'P36', {'concept': 'Q56061'}], ['Q19412424', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . { { resource:Q1029 property:P36 ?k } UNION { resource:Q19412424 property:P19 ?k } } }
Maputo Sion
Maputo and Sion are called the capital of Mozambique or are the birthplace of Michel Sauthier
Maputo Sion
action filter_type
action union
action find
entity Mozambique
relation capital
action find
entity Michel Sauthier
relation place of birth
type administrative territorial entity
{'OR': [['Mozambique', 'capital', {'concept': 'administrative territorial entity'}], ['Michel Sauthier', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . { { resource:Mozambique property:capital ?k } UNION { resource:Michel_Sauthier property:place_of_birth ?k } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P194
Q11204 Q701632 Q15617994
USER
How many administrative territories have approximately 1 legislatures or municipal councils as their representative body ?
(c(Q15617994),P194,c(Q11204)|c(Q701632))
action count
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action find_tuple_counts
relation P194
type Q15617994
type Q701632
value 1
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?s ) WHERE { { ?h property:P194 ?c . ?h rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q11204 } UNION { ?h property:P194 ?c . ?h rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q701632 } } GROUP BY ?h } . FILTER ( ?s = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?s ) WHERE { { ?h property:legislative_body ?c . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:legislature } UNION { ?h property:legislative_body ?c . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:municipal_council } } GROUP BY ?h } . FILTER ( ?s = 1 ) }
[]
legislature municipal council designation for an administrative territorial entity
SYSTEM
54
Q805 Q800 Q1462 Q1250 Q2806757 Q148 Q189 Q786 Q710 Q1460 Q159 Q43 Q792 Q779011 Q889 Q884 Q958 Q12574 Q12761 Q244 Q31 Q30 Q37 Q1447 Q1282 Q1284 Q3389 Q236 Q12661 Q1273 Q1279 Q1049 Q1458 Q227 Q347 Q17 Q902 Q191 Q114 Q1210 Q917 Q736 Q34020 Q686 Q760 Q574 Q1222 Q774 Q1016 Q27 Q1243 Q12626 Q672 Q1237
(c(Q15617994),P194,c(Q11204)|c(Q701632))
action count
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action find_tuple_counts
relation P194
type Q15617994
type Q701632
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?s ) WHERE { { ?h property:P194 ?c . ?h rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q11204 } UNION { ?h property:P194 ?c . ?h rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q701632 } } GROUP BY ?h } . FILTER ( ?s = 1 ) }
Yemen Costa Rica Sardinia Friuli–Venezia Giulia 105 Mile Post Indian Reserve No. 2 People's Republic of China Iceland Dominican Republic Kiribati Sicily Russia Turkey El Salvador Principality of Montenegro Afghanistan South Korea South Sudan Loiret Seine-Saint-Denis Barbados Belgium United States of America Lithuania Apulia Lazio Abruzzo Finistère Montenegro Nord Tuscany Marche Sudan Calabria Azerbaijan Liechtenstein Japan Bangladesh Estonia Kenya Lombardy Bhutan Ecuador Niue Vanuatu Saint Lucia East Timor Aosta Valley Guatemala Libya Ireland Veneto Meurthe-et-Moselle Tuvalu Trentino-South Tyrol
54
action count
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?s ) WHERE { { ?h property:legislative_body ?c . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:legislature } UNION { ?h property:legislative_body ?c . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:municipal_council } } GROUP BY ?h } . FILTER ( ?s = 1 ) }
[]