Simple Question (Direct)
Simple Question
Q1002655
P1376
Q20667921
USER
Which french administrative division has Beauville has its first city ?
(Q1002655,P1376,c(Q20667921))
action filter_type
action find
entity Q1002655
relation P1376
type Q20667921
['Q1002655', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { resource:Q1002655 property:P1376 ?d . ?d rdf:type ontology:Q20667921 }
Beauville
action filter_type
action find
entity Beauville
relation capital of
type type of french administrative division
['Beauville', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { resource:Beauville property:capital_of ?d . ?d rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1380191
SYSTEM
canton of Beauville
Q1380191
(Q1002655,P1376,c(Q20667921))
action filter_type
action find
entity Q1002655
relation P1376
type Q20667921
[ANSWER] has Beauville has its first city
['Q1002655', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { resource:Q1002655 property:P1376 ?d . ?d rdf:type ontology:Q20667921 }
canton of Beauville
Canton of Beauville has Beauville has its first city
canton of Beauville
action filter_type
action find
entity Beauville
relation capital of
type type of french administrative division
['Beauville', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { resource:Beauville property:capital_of ?d . ?d rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1002655
P47
Q20667921
USER
Which french administrative divisions have a shared border with Beauville ?
(Q1002655,P47,c(Q20667921))
action filter_type
action find
entity Q1002655
relation P47
type Q20667921
['Q1002655', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?e WHERE { resource:Q1002655 property:P47 ?e . ?e rdf:type ontology:Q20667921 }
Beauville
action filter_type
action find
entity Beauville
relation shares border with
type type of french administrative division
['Beauville', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?e WHERE { resource:Beauville property:shares_border_with ?e . ?e rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q962338 Q195640 Q1430693
SYSTEM
Bourg-de-Visa, Cauzac, Roquecor
Q1427412 Q962338 Q1430906 Q24633 Q195640 Q211948 Q218683 Q1430693
(Q1002655,P47,c(Q20667921))
action filter_type
action find
entity Q1002655
relation P47
type Q20667921
[ANSWERS] have a shared border with Beauville
['Q1002655', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?e WHERE { resource:Q1002655 property:P47 ?e . ?e rdf:type ontology:Q20667921 }
Lacour Bourg-de-Visa Saint-Amans-du-Pech Dondas Cauzac Blaymont Engayrac Roquecor
Bourg-de-Visa, Cauzac and Roquecor have a shared border with Beauville
Bourg-de-Visa Cauzac Roquecor
action filter_type
action find
entity Beauville
relation shares border with
type type of french administrative division
['Beauville', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?e WHERE { resource:Beauville property:shares_border_with ?e . ?e rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q578709 Q1430693
P47
Q20667921
USER
Which french administrative divisions are adjacent to Roquecor or Chambroncourt ?
OR((Q1430693,P47,c(Q20667921)), (Q578709,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q1430693
relation P47
action find
entity Q578709
relation P47
type Q20667921
{'OR': [['Q1430693', 'P47', {'concept': 'Q20667921'}], ['Q578709', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?i ) { ( resource:Q1430693 ) ( resource:Q578709 ) } . ?i property:P47 ?u } . ?u rdf:type ontology:Q20667921 }
Chambroncourt Roquecor
action filter_type
action union
action find
entity Roquecor
relation shares border with
action find
entity Chambroncourt
relation shares border with
type type of french administrative division
{'OR': [['Roquecor', 'shares border with', {'concept': 'type of french administrative division'}], ['Chambroncourt', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?i ) { ( resource:Roquecor ) ( resource:Chambroncourt ) } . ?i property:shares_border_with ?u } . ?u rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q979747 Q614399 Q1002655 Q1102388 Q1157578 Q653275 Q1430906 Q1471818 Q1095613 Q1430896
SYSTEM
Some of them are Orquevaux, Morionvilliers, Beauville, Aillianville, Trampot, Anthé, Saint-Amans-du-Pech, Montaigu-de-Quercy, Épizon, Saint-Beauzeil
Q1427412 Q1471818 Q979747 Q1095613 Q614399 Q1430896 Q1430906 Q1002655 Q961021 Q1157578 Q653275 Q1102388 Q1331786
OR((Q1430693,P47,c(Q20667921)), (Q578709,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q1430693
relation P47
action find
entity Q578709
relation P47
type Q20667921
[ANSWERS] are adjacent to Roquecor or Chambroncourt
{'OR': [['Q1430693', 'P47', {'concept': 'Q20667921'}], ['Q578709', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?i ) { ( resource:Q1430693 ) ( resource:Q578709 ) } . ?i property:P47 ?u } . ?u rdf:type ontology:Q20667921 }
Lacour Montaigu-de-Quercy Orquevaux Épizon Morionvilliers Saint-Beauzeil Saint-Amans-du-Pech Beauville Valeilles Trampot Anthé Aillianville Leurville
Orquevaux, Morionvilliers, Beauville, Aillianville, Trampot, Anthé, Saint-Amans-du-Pech, Montaigu-de-Quercy, Épizon and Saint-Beauzeil are adjacent to Roquecor or Chambroncourt
Orquevaux Morionvilliers Beauville Aillianville Trampot Anthé Saint-Amans-du-Pech Montaigu-de-Quercy Épizon Saint-Beauzeil
action filter_type
action union
action find
entity Roquecor
relation shares border with
action find
entity Chambroncourt
relation shares border with
type type of french administrative division
{'OR': [['Roquecor', 'shares border with', {'concept': 'type of french administrative division'}], ['Chambroncourt', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?i ) { ( resource:Roquecor ) ( resource:Chambroncourt ) } . ?i property:shares_border_with ?u } . ?u rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1157578
P17
Q15617994
USER
Which administrative territory is that french administrative division present in ?
(Q1157578,P17,c(Q15617994))
action filter_type
action find
entity Q1157578
relation P17
type Q15617994
['Q1157578', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q1157578 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Trampot
action filter_type
action find
entity Trampot
relation country
type designation for an administrative territorial entity
['Trampot', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Trampot property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q653275
SYSTEM
Did you mean Anthé ?
Q979747 Q614399 Q1002655 Q1102388 Q1157578 Q653275 Q1430906 Q1471818 Q1095613 Q1430896
(Q979747,P17,c(Q15617994)) (Q614399,P17,c(Q15617994)) (Q1002655,P17,c(Q15617994)) (Q1102388,P17,c(Q15617994)) (Q1157578,P17,c(Q15617994)) (Q653275,P17,c(Q15617994)) (Q1430906,P17,c(Q15617994)) (Q1471818,P17,c(Q15617994)) (Q1095613,P17,c(Q15617994)) (Q1430896,P17,c(Q15617994))
[ANSWER]
['Q979747', 'P17', {'concept': 'Q15617994'}] ['Q614399', 'P17', {'concept': 'Q15617994'}] ['Q1002655', 'P17', {'concept': 'Q15617994'}] ['Q1102388', 'P17', {'concept': 'Q15617994'}] ['Q1157578', 'P17', {'concept': 'Q15617994'}] ['Q653275', 'P17', {'concept': 'Q15617994'}] ['Q1430906', 'P17', {'concept': 'Q15617994'}] ['Q1471818', 'P17', {'concept': 'Q15617994'}] ['Q1095613', 'P17', {'concept': 'Q15617994'}] ['Q1430896', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q1157578 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Orquevaux Morionvilliers Beauville Aillianville Trampot Anthé Saint-Amans-du-Pech Montaigu-de-Quercy Épizon Saint-Beauzeil
Did you mean Anthé ?
Anthé
['Orquevaux', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Morionvilliers', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Beauville', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Aillianville', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Trampot', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Anthé', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Saint-Amans-du-Pech', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Montaigu-de-Quercy', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Épizon', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Saint-Beauzeil', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Trampot property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Trampot. Could you tell me the answer for that?
(Q1157578,P17,c(Q15617994))
Q1157578
['Q1157578', 'P17', {'concept': 'Q15617994'}]
['Trampot', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q142
SYSTEM
France
Q142
(Q1157578,P17,c(Q15617994))
action filter_type
action find
entity Q1157578
relation P17
type Q15617994
That french administrative division is in [ANSWER]
['Q1157578', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q1157578 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
France
That french administrative division is in France
France
action filter_type
action find
entity Trampot
relation country
type designation for an administrative territorial entity
['Trampot', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Trampot property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q142 Q1974
P47
Q15617994
USER
Is British Columbia bordered by that one ?
(Q142,P47,Q1974)
action is_in
entity Q1974
action find
entity Q142
relation P47
['Q142', 'P47', 'Q1974']
ASK WHERE { resource:Q142 property:P47 resource:Q1974 }
France British Columbia
action is_in
entity British Columbia
action find
entity France
relation shares border with
['France', 'shares border with', 'British Columbia']
ASK WHERE { resource:France property:shares_border_with resource:British_Columbia }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q142,P47,Q1974)
action is_in
entity Q1974
action find
entity Q142
relation P47
[ANSWER]
['Q142', 'P47', 'Q1974']
ASK WHERE { resource:Q142 property:P47 resource:Q1974 }
No
action is_in
entity British Columbia
action find
entity France
relation shares border with
['France', 'shares border with', 'British Columbia']
ASK WHERE { resource:France property:shares_border_with resource:British_Columbia }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q962338
P17
Q15617994
USER
Which administrative territory is Bourg-de-Visa present in ?
(Q962338,P17,c(Q15617994))
action filter_type
action find
entity Q962338
relation P17
type Q15617994
['Q962338', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q962338 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
Bourg-de-Visa
action filter_type
action find
entity Bourg-de-Visa
relation country
type designation for an administrative territorial entity
['Bourg-de-Visa', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Bourg-de-Visa property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q962338,P17,c(Q15617994))
action filter_type
action find
entity Q962338
relation P17
type Q15617994
Which administrative territory is Bourg-de-Visa present in
['Q962338', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q962338 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
France
Which administrative territory is Bourg-de-Visa present in
France
action filter_type
action find
entity Bourg-de-Visa
relation country
type designation for an administrative territorial entity
['Bourg-de-Visa', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Bourg-de-Visa property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q19284887
Q15617994
USER
And what about Kalkbranderij?
(Q19284887,P17,c(Q15617994))
action filter_type
action find
entity Q19284887
relation P17
type Q15617994
['Q19284887', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q19284887 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Kalkbranderij
action filter_type
action find
entity Kalkbranderij
relation country
type designation for an administrative territorial entity
['Kalkbranderij', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Kalkbranderij property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55
SYSTEM
Netherlands
Q55
(Q19284887,P17,c(Q15617994))
action filter_type
action find
entity Q19284887
relation P17
type Q15617994
[ANSWER]
['Q19284887', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q19284887 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Netherlands
Netherlands
action filter_type
action find
entity Kalkbranderij
relation country
type designation for an administrative territorial entity
['Kalkbranderij', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Kalkbranderij property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2342494 Q15416
USER
How many administrative territories are the countries of origin of less number of collectables or television programs than that administrative territory ?
(c(Q2342494)|c(Q15416),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q55
relation P495
type Q2342494
type Q15416
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?w ) WHERE { VALUES ( ?r ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } . ?p rdf:type ?r } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { ?t property:P495 resource:Q55 . { { ?t rdf:type ontology:Q2342494 } UNION { ?t rdf:type ontology:Q15416 } } } } . FILTER ( ?w < ?y ) }
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Netherlands
relation country of origin
type collectable
type television program
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?w ) WHERE { VALUES ( ?r ) { ( ontology:collectable ) ( ontology:television_program ) } . ?p rdf:type ?r } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { ?t property:country_of_origin resource:Netherlands . { { ?t rdf:type ontology:collectable } UNION { ?t rdf:type ontology:television_program } } } } . FILTER ( ?w < ?y ) }
[]
designation for an administrative territorial entity collectable television program
SYSTEM
155
Q805 Q804 Q801 Q800 Q1462 Q419 Q414 Q12536 Q262 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q229 Q347 Q902 Q1036 Q1037 Q974 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 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q869 Q953
(c(Q2342494)|c(Q15416),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q55
relation P495
type Q2342494
type Q15416
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?w ) WHERE { VALUES ( ?r ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } . ?p rdf:type ?r } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { ?t property:P495 resource:Q55 . { { ?t rdf:type ontology:Q2342494 } UNION { ?t rdf:type ontology:Q15416 } } } } . FILTER ( ?w < ?y ) }
Yemen Panama Israel Costa Rica Sardinia Peru Argentina Abbasid caliphate Algeria Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Switzerland 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 Norway Somalia Sierra Leone Senegal Ireland Hungary 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 Democratic Republic of the Congo 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 Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Thailand Zambia
155
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Netherlands
relation country of origin
type collectable
type television program
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?w ) WHERE { VALUES ( ?r ) { ( ontology:collectable ) ( ontology:television_program ) } . ?p rdf:type ?r } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { ?t property:country_of_origin resource:Netherlands . { { ?t rdf:type ontology:collectable } UNION { ?t rdf:type ontology:television_program } } } } . FILTER ( ?w < ?y ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q858
P530
Q15617994 Q15617994
USER
Which administrative territories holds diplomatic relationship with around the same number of administrative territories as Syria ?
(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 Q858
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:P530 ?f . ?f rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15617994 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Q858 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?m = ?w ) }
Syria
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 Syria
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 ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Syria property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?m = ?w ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q43 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 Q79 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 Q858
relation P530
type Q15617994
[ANSWERS] hold diplomatic relationship with around the same number of administrative territories as Syria
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:P530 ?f . ?f rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15617994 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Q858 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?m = ?w ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal Turkey 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 Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
Georgia, Netherlands and Poland hold diplomatic relationship with around the same number of administrative territories as Syria
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 Syria
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 ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Syria property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?m = ?w ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q230 Q55 Q36
P463
Q874405
USER
Which social groups were Georgia, Netherlands and Poland a member of ?
(Q230,P463,c(Q874405)) (Q55,P463,c(Q874405)) (Q36,P463,c(Q874405))
action union
action filter_type
action find
entity Q230
relation P463
type Q874405
action filter_type
action find
entity Q55
relation P463
type Q874405
action filter_type
action find
entity Q36
relation P463
type Q874405
['Q230', 'P463', {'concept': 'Q874405'}] ['Q55', 'P463', {'concept': 'Q874405'}] ['Q36', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?n WHERE { { resource:Q55 property:P463 ?n . ?n rdf:type ontology:Q874405 } UNION { resource:Q230 property:P463 ?n . ?n rdf:type ontology:Q874405 } }
Georgia Netherlands Poland
action union
action filter_type
action find
entity Georgia
relation member of
type social group
action filter_type
action find
entity Netherlands
relation member of
type social group
action filter_type
action find
entity Poland
relation member of
type social group
['Georgia', 'member of', {'concept': 'social group'}] ['Netherlands', 'member of', {'concept': 'social group'}] ['Poland', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?n WHERE { { resource:Netherlands property:member_of ?n . ?n rdf:type ontology:social_group } UNION { resource:Georgia property:member_of ?n . ?n rdf:type ontology:social_group } }
[]
social group
Q7817 Q8908 Q8908
SYSTEM
World Health Organization for 1st, Council of Europe for 2nd, 3rd
Q8908 Q406558 Q8908 Q1069175 Q376150 Q41984 Q782942 Q8932 Q694772 Q848633 Q8908 Q782942 Q376150 Q7817
(Q230,P463,c(Q874405)) (Q55,P463,c(Q874405)) (Q36,P463,c(Q874405))
action union
action filter_type
action find
entity Q230
relation P463
type Q874405
action filter_type
action find
entity Q55
relation P463
type Q874405
action filter_type
action find
entity Q36
relation P463
type Q874405
[ANSWERS]
['Q230', 'P463', {'concept': 'Q874405'}] ['Q55', 'P463', {'concept': 'Q874405'}] ['Q36', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?n WHERE { { resource:Q55 property:P463 ?n . ?n rdf:type ontology:Q874405 } UNION { resource:Q230 property:P463 ?n . ?n rdf:type ontology:Q874405 } }
Council of Europe Accreditation Organisation of the Netherlands and Flanders Council of Europe International Federation of Red Cross and Red Crescent Societies International Telecommunication Union International Atomic Energy Agency Australia Group European Economic Area United Nations Peacekeeping Force in Cyprus International Chamber of Commerce Council of Europe Australia Group International Telecommunication Union World Health Organization
The World Health Organization, Council of Europe and Council of Europe were Georgia, Netherlands and Poland a member of
World Health Organization Council of Europe Council of Europe
action union
action filter_type
action find
entity Georgia
relation member of
type social group
action filter_type
action find
entity Netherlands
relation member of
type social group
action filter_type
action find
entity Poland
relation member of
type social group
['Georgia', 'member of', {'concept': 'social group'}] ['Netherlands', 'member of', {'concept': 'social group'}] ['Poland', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?n WHERE { { resource:Netherlands property:member_of ?n . ?n rdf:type ontology:social_group } UNION { resource:Georgia property:member_of ?n . ?n rdf:type ontology:social_group } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7817
P1027
Q618779
USER
Which award is awarded by that social group ?
(c(Q618779),P1027,Q7817)
action filter_type
action find_reverse
entity Q7817
relation P1027
type Q618779
[{'concept': 'Q618779'}, 'P1027', 'Q7817']
SELECT DISTINCT ?v WHERE { ?v property:P1027 resource:Q7817 . ?v rdf:type ontology:Q618779 }
World Health Organization
action filter_type
action find_reverse
entity World Health Organization
relation conferred by
type award
[{'concept': 'award'}, 'conferred by', 'World Health Organization']
SELECT DISTINCT ?v WHERE { ?v property:conferred_by resource:World_Health_Organization . ?v rdf:type ontology:award }
[]
award
Clarification for simple ques.
Q7817
SYSTEM
Did you mean World Health Organization ?
Q7817 Q8908 Q8908
(c(Q618779),P1027,Q7817) (c(Q618779),P1027,Q8908) (c(Q618779),P1027,Q8908)
[ANSWER]
[{'concept': 'Q618779'}, 'P1027', 'Q7817'] [{'concept': 'Q618779'}, 'P1027', 'Q8908'] [{'concept': 'Q618779'}, 'P1027', 'Q8908']
SELECT DISTINCT ?v WHERE { ?v property:P1027 resource:Q7817 . ?v rdf:type ontology:Q618779 }
World Health Organization Council of Europe Council of Europe
Did you mean World Health Organization ?
World Health Organization
[{'concept': 'award'}, 'conferred by', 'World Health Organization'] [{'concept': 'award'}, 'conferred by', 'Council of Europe'] [{'concept': 'award'}, 'conferred by', 'Council of Europe']
SELECT DISTINCT ?v WHERE { ?v property:conferred_by resource:World_Health_Organization . ?v rdf:type ontology:award }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q618779),P1027,Q7817)
[{'concept': 'Q618779'}, 'P1027', 'Q7817']
[{'concept': 'award'}, 'conferred by', 'World Health Organization']
[]
Q24803946
SYSTEM
Léon Bernard Foundation Prize
Q24803946
(c(Q618779),P1027,Q7817)
action filter_type
action find_reverse
entity Q7817
relation P1027
type Q618779
[ANSWER] is awarded by that social group
[{'concept': 'Q618779'}, 'P1027', 'Q7817']
SELECT DISTINCT ?v WHERE { ?v property:P1027 resource:Q7817 . ?v rdf:type ontology:Q618779 }
Léon Bernard Foundation Prize
Léon Bernard Foundation Prize is awarded by that social group
Léon Bernard Foundation Prize
action filter_type
action find_reverse
entity World Health Organization
relation conferred by
type award
[{'concept': 'award'}, 'conferred by', 'World Health Organization']
SELECT DISTINCT ?v WHERE { ?v property:conferred_by resource:World_Health_Organization . ?v rdf:type ontology:award }
[]