Simple Question (Direct)
Simple Question
Q10321824
P106
Q12737077
USER
What is the job of Luiza Almeida ?
(Q10321824,P106,c(Q12737077))
action filter_type
action find
entity Q10321824
relation P106
type Q12737077
['Q10321824', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q10321824 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
Luiza Almeida
action filter_type
action find
entity Luiza Almeida
relation occupation
type occupation
['Luiza Almeida', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Luiza_Almeida property:occupation ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q2730732
SYSTEM
equestrian
Q2730732
(Q10321824,P106,c(Q12737077))
action filter_type
action find
entity Q10321824
relation P106
type Q12737077
The job of Luiza Almeida is in [ANSWER]
['Q10321824', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q10321824 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
equestrian
The job of Luiza Almeida is in equestrian
equestrian
action filter_type
action find
entity Luiza Almeida
relation occupation
type occupation
['Luiza Almeida', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Luiza_Almeida property:occupation ?r . ?r rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10321824
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q2730732,P19,c(Q56061))
action filter_type
action find
entity Q10321824
relation P19
type Q56061
['Q2730732', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q10321824 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Luiza Almeida
action filter_type
action find
entity Luiza Almeida
relation place of birth
type administrative territorial entity
['equestrian', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Luiza_Almeida property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q174
SYSTEM
São Paulo
Q174
(Q2730732,P19,c(Q56061))
action filter_type
action find
entity Q10321824
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q2730732', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q10321824 property:P19 ?v . ?v rdf:type ontology:Q56061 }
São Paulo
São Paulo is the place of birth of that person
São Paulo
action filter_type
action find
entity Luiza Almeida
relation place of birth
type administrative territorial entity
['equestrian', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Luiza_Almeida property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4079580 Q10321824
P27 P17
Q15617994
USER
Which administrative territories are Luiza Almeida a civilian of or are Kutowinangun present in ?
OR((Q10321824,P27,c(Q15617994)), (Q4079580,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q10321824
relation P27
action find
entity Q4079580
relation P17
type Q15617994
{'OR': [['Q10321824', 'P27', {'concept': 'Q15617994'}], ['Q4079580', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q10321824 property:P27 ?q } UNION { resource:Q4079580 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
Kutowinangun Luiza Almeida
action filter_type
action union
action find
entity Luiza Almeida
relation country of citizenship
action find
entity Kutowinangun
relation country
type designation for an administrative territorial entity
{'OR': [['Luiza Almeida', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kutowinangun', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Luiza_Almeida property:country_of_citizenship ?q } UNION { resource:Kutowinangun property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q252
SYSTEM
Brazil, Indonesia
Q155 Q252
OR((Q10321824,P27,c(Q15617994)), (Q4079580,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q10321824
relation P27
action find
entity Q4079580
relation P17
type Q15617994
[ANSWERS] are Luiza Almeida a civilian of or are Kutowinangun present in
{'OR': [['Q10321824', 'P27', {'concept': 'Q15617994'}], ['Q4079580', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q10321824 property:P27 ?q } UNION { resource:Q4079580 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
Brazil Indonesia
Brazil and Indonesia are Luiza Almeida a civilian of or are Kutowinangun present in
Brazil Indonesia
action filter_type
action union
action find
entity Luiza Almeida
relation country of citizenship
action find
entity Kutowinangun
relation country
type designation for an administrative territorial entity
{'OR': [['Luiza Almeida', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kutowinangun', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Luiza_Almeida property:country_of_citizenship ?q } UNION { resource:Kutowinangun property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q174
P740
Q502895 Q4830453
USER
How many people and business enterprises were formed at São Paulo ?
(c(Q502895),P740,Q174) (c(Q4830453),P740,Q174)
action count
action union
action filter_type
action find_reverse
entity Q174
relation P740
type Q502895
action filter_type
action find_reverse
entity Q174
relation P740
type Q4830453
[{'concept': 'Q502895'}, 'P740', 'Q174'] [{'concept': 'Q4830453'}, 'P740', 'Q174']
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { ?b property:P740 resource:Q174 . ?b rdf:type ontology:Q502895 } UNION { ?b property:P740 resource:Q174 . ?b rdf:type ontology:Q4830453 } }
São Paulo
action count
action union
action filter_type
action find_reverse
entity São Paulo
relation location of formation
type common name
action filter_type
action find_reverse
entity São Paulo
relation location of formation
type business enterprise
[{'concept': 'common name'}, 'location of formation', 'São Paulo'] [{'concept': 'business enterprise'}, 'location of formation', 'São Paulo']
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { ?b property:location_of_formation resource:São_Paulo . ?b rdf:type ontology:common_name } UNION { ?b property:location_of_formation resource:São_Paulo . ?b rdf:type ontology:business_enterprise } }
[]
common name business enterprise
SYSTEM
1 people and 1 business enterprises
Q1602482 Q468000
(c(Q502895),P740,Q174) (c(Q4830453),P740,Q174)
action count
action union
action filter_type
action find_reverse
entity Q174
relation P740
type Q502895
action filter_type
action find_reverse
entity Q174
relation P740
type Q4830453
[ANSWER]
[{'concept': 'Q502895'}, 'P740', 'Q174'] [{'concept': 'Q4830453'}, 'P740', 'Q174']
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { ?b property:P740 resource:Q174 . ?b rdf:type ontology:Q502895 } UNION { ?b property:P740 resource:Q174 . ?b rdf:type ontology:Q4830453 } }
Helibras Céu
1 people and 1 business enterprises
action count
action union
action filter_type
action find_reverse
entity São Paulo
relation location of formation
type common name
action filter_type
action find_reverse
entity São Paulo
relation location of formation
type business enterprise
[{'concept': 'common name'}, 'location of formation', 'São Paulo'] [{'concept': 'business enterprise'}, 'location of formation', 'São Paulo']
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { ?b property:location_of_formation resource:São_Paulo . ?b rdf:type ontology:common_name } UNION { ?b property:location_of_formation resource:São_Paulo . ?b rdf:type ontology:business_enterprise } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q42925 Q155
P47
Q15617994
USER
Which administrative territories are bordered by Brazil or Castano Primo ?
OR((Q155,P47,c(Q15617994)), (Q42925,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q155
relation P47
action find
entity Q42925
relation P47
type Q15617994
{'OR': [['Q155', 'P47', {'concept': 'Q15617994'}], ['Q42925', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { ?c property:P47 ?h . VALUES ( ?c ) { ( resource:Q155 ) ( resource:Q42925 ) } } . ?h rdf:type ontology:Q15617994 }
Castano Primo Brazil
action filter_type
action union
action find
entity Brazil
relation shares border with
action find
entity Castano Primo
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Brazil', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Castano Primo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { ?c property:shares_border_with ?h . VALUES ( ?c ) { ( resource:Brazil ) ( resource:Castano_Primo ) } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q42582 Q22129 Q414 Q739 Q42825 Q717 Q733 Q734 Q419 Q142
SYSTEM
Some of them are Buscate, Cameri, Argentina, Colombia, Vanzaghello, Venezuela, Paraguay, Guyana, Peru, France
Q739 Q142 Q22129 Q717 Q42510 Q42984 Q730 Q733 Q42825 Q734 Q414 Q419 Q77 Q42432 Q42579 Q42582 Q42975 Q39432 Q750
OR((Q155,P47,c(Q15617994)), (Q42925,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q155
relation P47
action find
entity Q42925
relation P47
type Q15617994
[ANSWERS] are bordered by Brazil or Castano Primo
{'OR': [['Q155', 'P47', {'concept': 'Q15617994'}], ['Q42925', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { ?c property:P47 ?h . VALUES ( ?c ) { ( resource:Q155 ) ( resource:Q42925 ) } } . ?h rdf:type ontology:Q15617994 }
Colombia France Cameri Venezuela Robecchetto con Induno Turbigo Suriname Paraguay Vanzaghello Guyana Argentina Peru Uruguay Nosate Magnago Buscate Cuggiono Lonate Pozzolo Bolivia
Buscate, Cameri, Argentina, Colombia, Vanzaghello, Venezuela, Paraguay, Guyana, Peru and France are bordered by Brazil or Castano Primo
Buscate Cameri Argentina Colombia Vanzaghello Venezuela Paraguay Guyana Peru France
action filter_type
action union
action find
entity Brazil
relation shares border with
action find
entity Castano Primo
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Brazil', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Castano Primo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { ?c property:shares_border_with ?h . VALUES ( ?c ) { ( resource:Brazil ) ( resource:Castano_Primo ) } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q739
P530
Q15617994 Q15617994
USER
Which administrative territories are known to have diplomatic connections with more number of administrative territories than Colombia ?
(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 Q739
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?o ) WHERE { ?v property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { resource:Q739 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . FILTER ( ?o > ?d ) }
Colombia
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 Colombia
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 ( ?u ) AS ?o ) WHERE { ?v property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { resource:Colombia property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o > ?d ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q822 Q241 Q32 Q31 Q30 Q928 Q929 Q39 Q38 Q230 Q27 Q843 Q184 Q225 Q222 Q347 Q17 Q902 Q114 Q212 Q213 Q218 Q79 Q858 Q948 Q1016 Q1011 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 Q739
relation P530
type Q15617994
[ANSWERS] are known to have diplomatic connections with more number of administrative territories than Colombia
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?o ) WHERE { ?v property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { resource:Q739 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . FILTER ( ?o > ?d ) }
Israel Yemen India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Lebanon Cuba Luxembourg Belgium United States of America Philippines Central African Republic Switzerland Italy Georgia Ireland Pakistan Belarus Bosnia and Herzegovina Albania Liechtenstein Japan Bangladesh Kenya Ukraine Czech Republic Romania Egypt Syria Tunisia Libya Cape Verde Zambia
Italy, Brazil and United States of America are known to have diplomatic connections with more number of administrative territories than Colombia
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 Colombia
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 ( ?u ) AS ?o ) WHERE { ?v property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { resource:Colombia property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o > ?d ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q683
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with around the same number of administrative territories as Samoa ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q683
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:P530 ?n . ?n rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { resource:Q683 property:P530 ?h . ?h rdf:type ontology:Q15617994 } } . FILTER ( ?r = ?l ) }
Samoa
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Samoa
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 ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { resource:Samoa property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?r = ?l ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q683
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with around the same number of administrative territories as Samoa
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:P530 ?n . ?n rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { resource:Q683 property:P530 ?h . ?h rdf:type ontology:Q15617994 } } . FILTER ( ?r = ?l ) }
Federated States of Micronesia Panama Costa Rica Peru 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 have diplomatic relations with around the same number of administrative territories as Samoa
Georgia Netherlands Poland
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Samoa
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 ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { resource:Samoa property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?r = ?l ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2016849 Q155
P530 P17
Q15617994
USER
Which administrative territories have a diplomatic relationship with Brazil and are Jahangirabad located in ?
AND((Q155,P530,c(Q15617994)), (Q2016849,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q155
relation P530
action find
entity Q2016849
relation P17
type Q15617994
{'AND': [['Q155', 'P530', {'concept': 'Q15617994'}], ['Q2016849', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { resource:Q155 property:P530 ?s . resource:Q2016849 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
Jahangirabad Brazil
action filter_type
action intersection
action find
entity Brazil
relation diplomatic relation
action find
entity Jahangirabad
relation country
type designation for an administrative territorial entity
{'AND': [['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Jahangirabad', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { resource:Brazil property:diplomatic_relation ?s . resource:Jahangirabad property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q668
SYSTEM
India
Q668
AND((Q155,P530,c(Q15617994)), (Q2016849,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q155
relation P530
action find
entity Q2016849
relation P17
type Q15617994
[ANSWER] have a diplomatic relationship with Brazil and are Jahangirabad located in
{'AND': [['Q155', 'P530', {'concept': 'Q15617994'}], ['Q2016849', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { resource:Q155 property:P530 ?s . resource:Q2016849 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
India
India have a diplomatic relationship with Brazil and are Jahangirabad located in
India
action filter_type
action intersection
action find
entity Brazil
relation diplomatic relation
action find
entity Jahangirabad
relation country
type designation for an administrative territorial entity
{'AND': [['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Jahangirabad', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { resource:Brazil property:diplomatic_relation ?s . resource:Jahangirabad property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]