Simple Question (Direct)
Simple Question
Q5888732
P364
Q34770
USER
Which language was used originally for the creation of Home Sweet Home ?
(Q5888732,P364,c(Q34770))
action filter_type
action find
entity Q5888732
relation P364
type Q34770
['Q5888732', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { resource:Q5888732 property:P364 ?u . ?u rdf:type ontology:Q34770 }
Home Sweet Home
action filter_type
action find
entity Home Sweet Home
relation original language of work
type language
['Home Sweet Home', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { resource:Home_Sweet_Home property:original_language_of_work ?u . ?u rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q5888732,P364,c(Q34770))
action filter_type
action find
entity Q5888732
relation P364
type Q34770
[ANSWER] was used originally for the creation of Home Sweet Home
['Q5888732', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { resource:Q5888732 property:P364 ?u . ?u rdf:type ontology:Q34770 }
English
English was used originally for the creation of Home Sweet Home
English
action filter_type
action find
entity Home Sweet Home
relation original language of work
type language
['Home Sweet Home', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { resource:Home_Sweet_Home property:original_language_of_work ?u . ?u rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5888732
P495
Q15617994
USER
What is the origin of that television program ?
(Q1860,P495,c(Q15617994))
action filter_type
action find
entity Q5888732
relation P495
type Q15617994
['Q1860', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q5888732 property:P495 ?e . ?e rdf:type ontology:Q15617994 }
Home Sweet Home
action filter_type
action find
entity Home Sweet Home
relation country of origin
type designation for an administrative territorial entity
['English', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Home_Sweet_Home property:country_of_origin ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q1860,P495,c(Q15617994))
action filter_type
action find
entity Q5888732
relation P495
type Q15617994
The origin of that television program is the [ANSWER]
['Q1860', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q5888732 property:P495 ?e . ?e rdf:type ontology:Q15617994 }
United Kingdom
The origin of that television program is the United Kingdom
United Kingdom
action filter_type
action find
entity Home Sweet Home
relation country of origin
type designation for an administrative territorial entity
['English', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Home_Sweet_Home property:country_of_origin ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5888732
P162
Q502895
USER
Which person produced that television program ?
(Q145,P162,c(Q502895))
action filter_type
action find
entity Q5888732
relation P162
type Q502895
['Q145', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q5888732 property:P162 ?r . ?r rdf:type ontology:Q502895 }
Home Sweet Home
action filter_type
action find
entity Home Sweet Home
relation producer
type common name
['United Kingdom', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Home_Sweet_Home property:producer ?r . ?r rdf:type ontology:common_name }
[]
common name
Q6687769
SYSTEM
Louis Marks
Q6687769
(Q145,P162,c(Q502895))
action filter_type
action find
entity Q5888732
relation P162
type Q502895
The [ANSWER] produced that television program
['Q145', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q5888732 property:P162 ?r . ?r rdf:type ontology:Q502895 }
Louis Marks
The Louis Marks produced that television program
Louis Marks
action filter_type
action find
entity Home Sweet Home
relation producer
type common name
['United Kingdom', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Home_Sweet_Home property:producer ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6687769
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q6687769,P27,c(Q15617994))
action filter_type
action find
entity Q6687769
relation P27
type Q15617994
['Q6687769', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q6687769 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
Louis Marks
action filter_type
action find
entity Louis Marks
relation country of citizenship
type designation for an administrative territorial entity
['Louis Marks', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Louis_Marks property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q6687769,P27,c(Q15617994))
action filter_type
action find
entity Q6687769
relation P27
type Q15617994
[ANSWER] is that person a civilian of
['Q6687769', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q6687769 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is that person a civilian of
United Kingdom
action filter_type
action find
entity Louis Marks
relation country of citizenship
type designation for an administrative territorial entity
['Louis Marks', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Louis_Marks property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6687769
P69
Q1244442
USER
What is the school building where Louis Marks was educated ?
(Q6687769,P69,c(Q1244442))
action filter_type
action find
entity Q6687769
relation P69
type Q1244442
['Q6687769', 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?o WHERE { resource:Q6687769 property:P69 ?o . ?o rdf:type ontology:Q1244442 }
Louis Marks
action filter_type
action find
entity Louis Marks
relation educated at
type school building
['Louis Marks', 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?o WHERE { resource:Louis_Marks property:educated_at ?o . ?o rdf:type ontology:school_building }
[]
school building
Q805285
SYSTEM
Balliol College
Q805285
(Q6687769,P69,c(Q1244442))
action filter_type
action find
entity Q6687769
relation P69
type Q1244442
The school building Louis Marks was educated is at [ANSWER]
['Q6687769', 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?o WHERE { resource:Q6687769 property:P69 ?o . ?o rdf:type ontology:Q1244442 }
Balliol College
The school building Louis Marks was educated is at Balliol College
Balliol College
action filter_type
action find
entity Louis Marks
relation educated at
type school building
['Louis Marks', 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?o WHERE { resource:Louis_Marks property:educated_at ?o . ?o rdf:type ontology:school_building }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q14945445
Q1244442
USER
And also tell me about William Keble Martin?
(Q14945445,P69,c(Q1244442))
action filter_type
action find
entity Q14945445
relation P69
type Q1244442
['Q14945445', 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q1244442 . resource:Q14945445 property:P69 ?o }
William Keble Martin
action filter_type
action find
entity William Keble Martin
relation educated at
type school building
['William Keble Martin', 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:school_building . resource:William_Keble_Martin property:educated_at ?o }
[]
school building
Q745967
SYSTEM
Christ Church
Q745967
(Q14945445,P69,c(Q1244442))
action filter_type
action find
entity Q14945445
relation P69
type Q1244442
[ANSWER]
['Q14945445', 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q1244442 . resource:Q14945445 property:P69 ?o }
Christ Church
Christ Church
action filter_type
action find
entity William Keble Martin
relation educated at
type school building
['William Keble Martin', 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:school_building . resource:William_Keble_Martin property:educated_at ?o }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q3924533
P1376
Q15617994 Q56061 Q486972
USER
Which administrative territories have less number of administrative territories or human settlements as their capital than Province of Brescia ?
(c(Q56061)|c(Q486972),P1376,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q3924533
relation P1376
type Q56061
type Q486972
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:P1376 resource:Q3924533 . { { ?d rdf:type ontology:Q486972 } UNION { ?d rdf:type ontology:Q56061 } } } } . FILTER ( ?a < ?j ) . { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?a ) WHERE { VALUES ( ?z ) { ( ontology:Q56061 ) ( ontology:Q486972 ) } . ?o rdf:type ?z } GROUP BY ?t } }
Province of Brescia
action less
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action count
action filter_multi_types
action find_reverse
entity Province of Brescia
relation capital of
type administrative territorial entity
type human settlement
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:capital_of resource:Province_of_Brescia . { { ?d rdf:type ontology:human_settlement } UNION { ?d rdf:type ontology:administrative_territorial_entity } } } } . FILTER ( ?a < ?j ) . { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?a ) WHERE { VALUES ( ?z ) { ( ontology:administrative_territorial_entity ) ( ontology:human_settlement ) } . ?o rdf:type ?z } GROUP BY ?t } }
[]
designation for an administrative territorial entity administrative territorial entity human settlement
Q347 Q218 Q1011
SYSTEM
Liechtenstein, Romania, Cape Verde
Q12631 Q414 Q3368 Q3044731 Q399 Q12689 Q2527360 Q699731 Q3377 Q3372 Q3093 Q3259 Q2528268 Q12594 Q739 Q733 Q736 Q12574 Q12798 Q12792 Q1284 Q843 Q2007 Q541811 Q1458 Q12700 Q12703 Q12709 Q1050 Q298 Q115 Q114 Q12569 Q12642 Q3216 Q3194 Q12804 Q12808 Q3326 Q696651 Q3286 Q948 Q3266 Q3105 Q639100 Q731547 Q33788 Q702 Q709 Q12740 Q12745 Q12779 Q833 Q12607 Q290739 Q790 Q796 Q794 Q889 Q12789 Q884 Q1452646 Q881 Q2281221 Q1508919 Q12694 Q12515 Q12517 Q3364 Q541095 Q3148 Q280312 Q12675 Q12589 Q12584 Q12580 Q3131 Q12788 Q12784 Q12782 Q686312 Q1037 Q1030 Q697 Q750 Q12730 Q12736 Q1270568 Q12657 Q12652 Q30831 Q12556 Q694594 Q874 Q878 Q46130 Q3044714 Q176 Q12816 Q1951 Q3353 Q3357 Q389004 Q3278 Q3184 Q239502 Q711 Q717 Q2900529 Q12772 Q1090678 Q1999970 Q155019 Q107426 Q1948 Q511365 Q27 Q598193 Q225 Q222 Q47261 Q1270623 Q228 Q10957559 Q962 Q963 Q3125 Q3120 Q1008 Q3110307 Q12722 Q12553 Q12620 Q12626 Q12543 Q72670 Q12563 Q426025 Q568751 Q2150573 Q474421 Q3342 Q842 Q3349 Q3083 Q3240 Q3249 Q34762 Q12761 Q12765 Q4712 Q928 Q851 Q1443 Q224 Q12717 Q691265 Q313175 Q3334 Q12572 Q12576 Q12578 Q347 Q3462133 Q12679 Q3207 Q212 Q211 Q218 Q3514973 Q974 Q3113 Q1234961 Q1222 Q1019 Q1011 Q672 Q12758 Q12753 Q12751 Q12564
(c(Q56061)|c(Q486972),P1376,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q3924533
relation P1376
type Q56061
type Q486972
[ANSWERS] have less number of administrative territories or human settlements as their capital than Province of Brescia
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:P1376 resource:Q3924533 . { { ?d rdf:type ontology:Q486972 } UNION { ?d rdf:type ontology:Q56061 } } } } . FILTER ( ?a < ?j ) . { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?a ) WHERE { VALUES ( ?z ) { ( ontology:Q56061 ) ( ontology:Q486972 ) } . ?o rdf:type ?z } GROUP BY ?t } }
Meuse Argentina Essonne Guyane Armenia Pas-de-Calais Stura Wied Eure-et-Loir Eure Aisne Cantal Mont-Blanc Marne Colombia Paraguay Ecuador Loiret Vendée Vaucluse Abruzzo Pakistan Northwest Territories Ems-Oriental Calabria Hautes-Pyrénées Pyrénées-Atlantiques Pyrénées-Orientales Swaziland Chile Ethiopia Kenya Loire Morbihan Aveyron Aube Vienne Haute-Vienne Corrèze Saxe-Eisenach Cher Tunisia Charente Vosges Principality of Reuss-Gera Lippe New Caledonia Federated States of Micronesia Marshall Islands Sarthe Savoie Tarn-et-Garonne Malaysia Haute-Marne Sesia Haiti Iraq Iran Afghanistan Var South Korea Montenotte Vietnam Principality of Orange Marengo Puy-de-Dôme Gard Gers Drôme Rhin-et-Moselle Ardèche Principality of Lüneburg Oise Manche Maine-et-Loire Lozère Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Territoire de Belfort Duchy of Amalfi Rwanda Namibia Nauru Bolivia Haute-Saône Saône-et-Loire Ems Nièvre Moselle Red Sea Governorate Indre-et-Loire Bremen-Verden Turkmenistan United Arab Emirates Rhône Ouest Quebec Yonne Alberta Creuse Dordogne Wallachia Charente-Maritime Ariège Kingdom of Galicia–Volhynia Mongolia Venezuela Bezirk Lothringen Tarn Sègre Upper Alsace Duchy of Lorraine Anjou Manitoba Arvika Municipality Ireland Apennins Bosnia and Herzegovina Albania Duchy of Bavaria Meurthe Andorra Moldavia Benin Botswana Hautes-Alpes Jura Côte d'Ivoire Golo Haut-Rhin Indre Mayenne Meurthe-et-Moselle Hauts-de-Seine Batumi Oblast Landes Duchy of Savoy Mont-Tonnerre Unterelsaß Principality of Fürstenberg Côte-d'Or Oman Côtes-d'Armor Ain Bouches-du-Rhône Calvados Principality of Bayreuth Seine-Saint-Denis Deux-Sèvres Duchy of Burgundy Philippines Saudi Arabia Molise Croatia Bas-Rhin Mont-Terrible Saxe-Lauenburg Haute-Corse Haute-Loire Lot Lot-et-Garonne Liechtenstein Saxe-Coburg and Gotha Orne Aude Ukraine Latvia Romania Tanaro Democratic Republic of the Congo Allier Doire Aosta Valley Madagascar Cape Verde Tuvalu Seine-Maritime Seine-et-Marne Haute-Savoie Loir-et-Cher
Liechtenstein, Romania and Cape Verde have less number of administrative territories or human settlements as their capital than Province of Brescia
Liechtenstein Romania Cape Verde
action less
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action count
action filter_multi_types
action find_reverse
entity Province of Brescia
relation capital of
type administrative territorial entity
type human settlement
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:capital_of resource:Province_of_Brescia . { { ?d rdf:type ontology:human_settlement } UNION { ?d rdf:type ontology:administrative_territorial_entity } } } } . FILTER ( ?a < ?j ) . { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?a ) WHERE { VALUES ( ?z ) { ( ontology:administrative_territorial_entity ) ( ontology:human_settlement ) } . ?o rdf:type ?z } GROUP BY ?t } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q773
P1376
Q15617994 Q56061 Q486972
USER
And also tell me about Overijssel?
(c(Q56061)|c(Q486972),P1376,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q773
relation P1376
type Q56061
type Q486972
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { ?f property:P1376 resource:Q773 . { { ?f rdf:type ontology:Q56061 } UNION { ?f rdf:type ontology:Q486972 } } } } . FILTER ( ?m < ?t ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) ?x WHERE { { ?g rdf:type ontology:Q56061 . ?x rdf:type ontology:Q15617994 . ?g property:P1376 ?x } UNION { ?g property:P1376 ?x . ?g rdf:type ontology:Q486972 . ?x rdf:type ontology:Q15617994 } } GROUP BY ?x } }
Overijssel
action less
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action count
action filter_multi_types
action find_reverse
entity Overijssel
relation capital of
type administrative territorial entity
type human settlement
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { ?f property:capital_of resource:Overijssel . { { ?f rdf:type ontology:administrative_territorial_entity } UNION { ?f rdf:type ontology:human_settlement } } } } . FILTER ( ?m < ?t ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) ?x WHERE { { ?g rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g property:capital_of ?x } UNION { ?g property:capital_of ?x . ?g rdf:type ontology:human_settlement . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?x } }
[]
designation for an administrative territorial entity administrative territorial entity human settlement
Q347 Q218 Q1011
SYSTEM
Liechtenstein, Romania, Cape Verde
Q12631 Q414 Q3368 Q3044731 Q399 Q12689 Q2527360 Q699731 Q3377 Q3372 Q3093 Q3259 Q2528268 Q12594 Q739 Q733 Q736 Q12574 Q12798 Q12792 Q1284 Q843 Q2007 Q541811 Q1458 Q12700 Q12703 Q12709 Q1050 Q298 Q115 Q114 Q12569 Q12642 Q3216 Q3194 Q12804 Q12808 Q3326 Q696651 Q3286 Q948 Q3266 Q3105 Q639100 Q731547 Q33788 Q702 Q709 Q12740 Q12745 Q12779 Q833 Q12607 Q290739 Q790 Q796 Q794 Q889 Q12789 Q884 Q1452646 Q881 Q2281221 Q1508919 Q12694 Q12515 Q12517 Q3364 Q541095 Q3148 Q280312 Q12675 Q12589 Q12584 Q12580 Q3131 Q12788 Q12784 Q12782 Q686312 Q1037 Q1030 Q697 Q750 Q12730 Q12736 Q1270568 Q12657 Q12652 Q30831 Q12556 Q694594 Q874 Q878 Q46130 Q3044714 Q176 Q12816 Q1951 Q3353 Q3357 Q389004 Q3278 Q3184 Q239502 Q711 Q717 Q2900529 Q12772 Q1090678 Q1999970 Q155019 Q107426 Q1948 Q511365 Q27 Q598193 Q225 Q222 Q47261 Q1270623 Q228 Q10957559 Q962 Q963 Q3125 Q3120 Q1008 Q3110307 Q12722 Q12553 Q12620 Q12626 Q12543 Q72670 Q12563 Q426025 Q568751 Q2150573 Q474421 Q3342 Q842 Q3349 Q3083 Q3240 Q3249 Q34762 Q12761 Q12765 Q4712 Q928 Q851 Q1443 Q224 Q12717 Q691265 Q313175 Q3334 Q12572 Q12576 Q12578 Q347 Q3462133 Q12679 Q3207 Q212 Q211 Q218 Q3514973 Q974 Q3113 Q1234961 Q1222 Q1019 Q1011 Q672 Q12758 Q12753 Q12751 Q12564
(c(Q56061)|c(Q486972),P1376,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q773
relation P1376
type Q56061
type Q486972
[ANSWERS]
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { ?f property:P1376 resource:Q773 . { { ?f rdf:type ontology:Q56061 } UNION { ?f rdf:type ontology:Q486972 } } } } . FILTER ( ?m < ?t ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) ?x WHERE { { ?g rdf:type ontology:Q56061 . ?x rdf:type ontology:Q15617994 . ?g property:P1376 ?x } UNION { ?g property:P1376 ?x . ?g rdf:type ontology:Q486972 . ?x rdf:type ontology:Q15617994 } } GROUP BY ?x } }
Meuse Argentina Essonne Guyane Armenia Pas-de-Calais Stura Wied Eure-et-Loir Eure Aisne Cantal Mont-Blanc Marne Colombia Paraguay Ecuador Loiret Vendée Vaucluse Abruzzo Pakistan Northwest Territories Ems-Oriental Calabria Hautes-Pyrénées Pyrénées-Atlantiques Pyrénées-Orientales Swaziland Chile Ethiopia Kenya Loire Morbihan Aveyron Aube Vienne Haute-Vienne Corrèze Saxe-Eisenach Cher Tunisia Charente Vosges Principality of Reuss-Gera Lippe New Caledonia Federated States of Micronesia Marshall Islands Sarthe Savoie Tarn-et-Garonne Malaysia Haute-Marne Sesia Haiti Iraq Iran Afghanistan Var South Korea Montenotte Vietnam Principality of Orange Marengo Puy-de-Dôme Gard Gers Drôme Rhin-et-Moselle Ardèche Principality of Lüneburg Oise Manche Maine-et-Loire Lozère Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Territoire de Belfort Duchy of Amalfi Rwanda Namibia Nauru Bolivia Haute-Saône Saône-et-Loire Ems Nièvre Moselle Red Sea Governorate Indre-et-Loire Bremen-Verden Turkmenistan United Arab Emirates Rhône Ouest Quebec Yonne Alberta Creuse Dordogne Wallachia Charente-Maritime Ariège Kingdom of Galicia–Volhynia Mongolia Venezuela Bezirk Lothringen Tarn Sègre Upper Alsace Duchy of Lorraine Anjou Manitoba Arvika Municipality Ireland Apennins Bosnia and Herzegovina Albania Duchy of Bavaria Meurthe Andorra Moldavia Benin Botswana Hautes-Alpes Jura Côte d'Ivoire Golo Haut-Rhin Indre Mayenne Meurthe-et-Moselle Hauts-de-Seine Batumi Oblast Landes Duchy of Savoy Mont-Tonnerre Unterelsaß Principality of Fürstenberg Côte-d'Or Oman Côtes-d'Armor Ain Bouches-du-Rhône Calvados Principality of Bayreuth Seine-Saint-Denis Deux-Sèvres Duchy of Burgundy Philippines Saudi Arabia Molise Croatia Bas-Rhin Mont-Terrible Saxe-Lauenburg Haute-Corse Haute-Loire Lot Lot-et-Garonne Liechtenstein Saxe-Coburg and Gotha Orne Aude Ukraine Latvia Romania Tanaro Democratic Republic of the Congo Allier Doire Aosta Valley Madagascar Cape Verde Tuvalu Seine-Maritime Seine-et-Marne Haute-Savoie Loir-et-Cher
Liechtenstein Romania Cape Verde
action less
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action count
action filter_multi_types
action find_reverse
entity Overijssel
relation capital of
type administrative territorial entity
type human settlement
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { ?f property:capital_of resource:Overijssel . { { ?f rdf:type ontology:administrative_territorial_entity } UNION { ?f rdf:type ontology:human_settlement } } } } . FILTER ( ?m < ?t ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) ?x WHERE { { ?g rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g property:capital_of ?x } UNION { ?g property:capital_of ?x . ?g rdf:type ontology:human_settlement . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?x } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q347
P551
Q502895
USER
Which person dwells at that administrative territory ?
(c(Q502895),P551,Q347)
action filter_type
action find_reverse
entity Q347
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q347']
SELECT DISTINCT ?z WHERE { ?z property:P551 resource:Q347 . ?z rdf:type ontology:Q502895 }
Liechtenstein
action filter_type
action find_reverse
entity Liechtenstein
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Liechtenstein']
SELECT DISTINCT ?z WHERE { ?z property:residence resource:Liechtenstein . ?z rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1011
SYSTEM
Did you mean Cape Verde ?
Q347 Q218 Q1011
(c(Q502895),P551,Q347) (c(Q502895),P551,Q218) (c(Q502895),P551,Q1011)
[ANSWER]
[{'concept': 'Q502895'}, 'P551', 'Q347'] [{'concept': 'Q502895'}, 'P551', 'Q218'] [{'concept': 'Q502895'}, 'P551', 'Q1011']
SELECT DISTINCT ?z WHERE { ?z property:P551 resource:Q347 . ?z rdf:type ontology:Q502895 }
Liechtenstein Romania Cape Verde
Did you mean Cape Verde ?
Cape Verde
[{'concept': 'common name'}, 'residence', 'Liechtenstein'] [{'concept': 'common name'}, 'residence', 'Romania'] [{'concept': 'common name'}, 'residence', 'Cape Verde']
SELECT DISTINCT ?z WHERE { ?z property:residence resource:Liechtenstein . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Liechtenstein. Could you tell me the answer for that?
(c(Q502895),P551,Q347)
Q347
[{'concept': 'Q502895'}, 'P551', 'Q347']
[{'concept': 'common name'}, 'residence', 'Liechtenstein']
[]
Q1466600
SYSTEM
Gabriele von Liechtenstein
Q1466600
(c(Q502895),P551,Q347)
action filter_type
action find_reverse
entity Q347
relation P551
type Q502895
[ANSWER] dwells at that administrative territory
[{'concept': 'Q502895'}, 'P551', 'Q347']
SELECT DISTINCT ?z WHERE { ?z property:P551 resource:Q347 . ?z rdf:type ontology:Q502895 }
Gabriele von Liechtenstein
Gabriele von Liechtenstein dwells at that administrative territory
Gabriele von Liechtenstein
action filter_type
action find_reverse
entity Liechtenstein
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Liechtenstein']
SELECT DISTINCT ?z WHERE { ?z property:residence resource:Liechtenstein . ?z rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1466600 Q581481 Q23305086
P22
Q502895
USER
Does that person have Hans-Adam I, Prince of Liechtenstein and Charles Wray as dad ?
(Q1466600,P22,Q581481) (Q1466600,P22,Q23305086)
action is_in
entity Q1466600
action intersection
action find_reverse
entity Q581481
relation P22
action find_reverse
entity Q23305086
relation P22
['Q1466600', 'P22', 'Q581481'] ['Q1466600', 'P22', 'Q23305086']
ASK WHERE { resource:Q1466600 property:P22 resource:Q581481 . resource:Q1466600 property:P22 resource:Q23305086 }
Gabriele von Liechtenstein Hans-Adam I, Prince of Liechtenstein Charles Wray
action is_in
entity Gabriele von Liechtenstein
action intersection
action find_reverse
entity Hans-Adam I, Prince of Liechtenstein
relation father
action find_reverse
entity Charles Wray
relation father
['Gabriele von Liechtenstein', 'father', 'Hans-Adam I, Prince of Liechtenstein'] ['Gabriele von Liechtenstein', 'father', 'Charles Wray']
ASK WHERE { resource:Gabriele_von_Liechtenstein property:father resource:Hans-Adam_I,_Prince_of_Liechtenstein . resource:Gabriele_von_Liechtenstein property:father resource:Charles_Wray }
[]
common name
SYSTEM
YES and NO respectively
(Q1466600,P22,Q581481) (Q1466600,P22,Q23305086)
action is_in
entity Q1466600
action intersection
action find_reverse
entity Q581481
relation P22
action find_reverse
entity Q23305086
relation P22
[ANSWER]
['Q1466600', 'P22', 'Q581481'] ['Q1466600', 'P22', 'Q23305086']
ASK WHERE { resource:Q1466600 property:P22 resource:Q581481 . resource:Q1466600 property:P22 resource:Q23305086 }
YES and NO respectively
action is_in
entity Gabriele von Liechtenstein
action intersection
action find_reverse
entity Hans-Adam I, Prince of Liechtenstein
relation father
action find_reverse
entity Charles Wray
relation father
['Gabriele von Liechtenstein', 'father', 'Hans-Adam I, Prince of Liechtenstein'] ['Gabriele von Liechtenstein', 'father', 'Charles Wray']
ASK WHERE { resource:Gabriele_von_Liechtenstein property:father resource:Hans-Adam_I,_Prince_of_Liechtenstein . resource:Gabriele_von_Liechtenstein property:father resource:Charles_Wray }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1466600
P25
Q502895
USER
Which female person was the parent of Gabriele von Liechtenstein ?
action filter_type
action find
entity Q1466600
relation P25
type Q502895
SELECT DISTINCT ?y WHERE { resource:Q1466600 property:P25 ?y . ?y rdf:type ontology:Q502895 }
Gabriele von Liechtenstein
action filter_type
action find
entity Gabriele von Liechtenstein
relation mother
type common name
SELECT DISTINCT ?y WHERE { resource:Gabriele_von_Liechtenstein property:mother ?y . ?y rdf:type ontology:common_name }
[]
common name
Q1287086
SYSTEM
Erdmuthe Theresia Maria of Dietrichstein
Q1287086
action filter_type
action find
entity Q1466600
relation P25
type Q502895
[ANSWER] was the parent of Gabriele von Liechtenstein
SELECT DISTINCT ?y WHERE { resource:Q1466600 property:P25 ?y . ?y rdf:type ontology:Q502895 }
Erdmuthe Theresia Maria of Dietrichstein
Erdmuthe Theresia Maria of Dietrichstein was the parent of Gabriele von Liechtenstein
Erdmuthe Theresia Maria of Dietrichstein
action filter_type
action find
entity Gabriele von Liechtenstein
relation mother
type common name
SELECT DISTINCT ?y WHERE { resource:Gabriele_von_Liechtenstein property:mother ?y . ?y rdf:type ontology:common_name }
[]