Simple Question (Direct)
Simple Question
Q503279
P47
Q15617994
USER
Which administrative territories are bordered by Dietenhofen ?
(Q503279,P47,c(Q15617994))
action filter_type
action find
entity Q503279
relation P47
type Q15617994
['Q503279', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q503279 property:P47 ?j . ?j rdf:type ontology:Q15617994 }
Dietenhofen
action filter_type
action find
entity Dietenhofen
relation shares border with
type designation for an administrative territorial entity
['Dietenhofen', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Dietenhofen property:shares_border_with ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q507397 Q521557 Q427153
SYSTEM
Petersaurach, Großhabersdorf, Heilsbronn
Q427153 Q521557 Q504896 Q541454 Q510011 Q503596 Q507397 Q504074
(Q503279,P47,c(Q15617994))
action filter_type
action find
entity Q503279
relation P47
type Q15617994
[ANSWERS] are bordered by Dietenhofen
['Q503279', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q503279 property:P47 ?j . ?j rdf:type ontology:Q15617994 }
Heilsbronn Großhabersdorf Neuhof an der Zenn Wilhermsdorf Weihenzell Bruckberg, Middle Franconia Petersaurach Rügland
Petersaurach, Großhabersdorf and Heilsbronn are bordered by Dietenhofen
Petersaurach Großhabersdorf Heilsbronn
action filter_type
action find
entity Dietenhofen
relation shares border with
type designation for an administrative territorial entity
['Dietenhofen', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Dietenhofen property:shares_border_with ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q521557
P190
Q20667921
USER
Which french administrative division is sister town of that administrative territory ?
(c(Q20667921),P190,Q521557)
action filter_type
action find
entity Q521557
relation P190
type Q20667921
[{'concept': 'Q20667921'}, 'P190', 'Q521557']
SELECT DISTINCT ?r WHERE { resource:Q521557 property:P190 ?r . ?r rdf:type ontology:Q20667921 }
Großhabersdorf
action filter_type
action find
entity Großhabersdorf
relation sister city
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'sister city', 'Großhabersdorf']
SELECT DISTINCT ?r WHERE { resource:Großhabersdorf property:sister_city ?r . ?r rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Clarification for simple ques.
Q521557
SYSTEM
Did you mean Großhabersdorf ?
Q507397 Q521557 Q427153
(c(Q20667921),P190,Q507397) (c(Q20667921),P190,Q521557) (c(Q20667921),P190,Q427153)
[ANSWER]
[{'concept': 'Q20667921'}, 'P190', 'Q507397'] [{'concept': 'Q20667921'}, 'P190', 'Q521557'] [{'concept': 'Q20667921'}, 'P190', 'Q427153']
SELECT DISTINCT ?r WHERE { resource:Q521557 property:P190 ?r . ?r rdf:type ontology:Q20667921 }
Petersaurach Großhabersdorf Heilsbronn
Did you mean Großhabersdorf ?
Großhabersdorf
[{'concept': 'type of french administrative division'}, 'sister city', 'Petersaurach'] [{'concept': 'type of french administrative division'}, 'sister city', 'Großhabersdorf'] [{'concept': 'type of french administrative division'}, 'sister city', 'Heilsbronn']
SELECT DISTINCT ?r WHERE { resource:Großhabersdorf property:sister_city ?r . ?r rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q20667921),P190,Q521557)
[{'concept': 'Q20667921'}, 'P190', 'Q521557']
[{'concept': 'type of french administrative division'}, 'sister city', 'Großhabersdorf']
[]
Q274245
SYSTEM
Aixe-sur-Vienne
Q274245
(c(Q20667921),P190,Q521557)
action filter_type
action find
entity Q521557
relation P190
type Q20667921
[ANSWER] is sister town of that administrative territory
[{'concept': 'Q20667921'}, 'P190', 'Q521557']
SELECT DISTINCT ?r WHERE { resource:Q521557 property:P190 ?r . ?r rdf:type ontology:Q20667921 }
Aixe-sur-Vienne
Aixe-sur-Vienne is sister town of that administrative territory
Aixe-sur-Vienne
action filter_type
action find
entity Großhabersdorf
relation sister city
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'sister city', 'Großhabersdorf']
SELECT DISTINCT ?r WHERE { resource:Großhabersdorf property:sister_city ?r . ?r rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q274245 Q72009
P190
Q15617994
USER
Is Casoria a sister city of that french administrative division ?
(Q72009,P190,Q274245)
action is_in
entity Q72009
action find
entity Q274245
relation P190
['Q72009', 'P190', 'Q274245']
ASK WHERE { resource:Q274245 property:P190 resource:Q72009 }
Aixe-sur-Vienne Casoria
action is_in
entity Casoria
action find
entity Aixe-sur-Vienne
relation sister city
['Casoria', 'sister city', 'Aixe-sur-Vienne']
ASK WHERE { resource:Aixe-sur-Vienne property:sister_city resource:Casoria }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q72009,P190,Q274245)
action is_in
entity Q72009
action find
entity Q274245
relation P190
[ANSWER]
['Q72009', 'P190', 'Q274245']
ASK WHERE { resource:Q274245 property:P190 resource:Q72009 }
No
action is_in
entity Casoria
action find
entity Aixe-sur-Vienne
relation sister city
['Casoria', 'sister city', 'Aixe-sur-Vienne']
ASK WHERE { resource:Aixe-sur-Vienne property:sister_city resource:Casoria }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q503279 Q183
P17
Q1048835
USER
Is Dietenhofen situated in Germany ?
(Q503279,P17,Q183)
action is_in
entity Q183
action find
entity Q503279
relation P17
['Q503279', 'P17', 'Q183']
ASK WHERE { resource:Q503279 property:P17 resource:Q183 }
Dietenhofen Germany
action is_in
entity Germany
action find
entity Dietenhofen
relation country
['Dietenhofen', 'country', 'Germany']
ASK WHERE { resource:Dietenhofen property:country resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q503279,P17,Q183)
action is_in
entity Q183
action find
entity Q503279
relation P17
[ANSWER]
['Q503279', 'P17', 'Q183']
ASK WHERE { resource:Q503279 property:P17 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Dietenhofen
relation country
['Dietenhofen', 'country', 'Germany']
ASK WHERE { resource:Dietenhofen property:country resource:Germany }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q24266382 Q183
P530 P27
Q15617994
USER
Which administrative territories have a diplomatic relationship with Germany or are the native countriesof Marxaba Säbïjeva ?
OR((Q183,P530,c(Q15617994)), (Q24266382,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q183
relation P530
action find
entity Q24266382
relation P27
type Q15617994
{'OR': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q24266382', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q24266382 property:P27 ?c } UNION { resource:Q183 property:P530 ?c } } . ?c rdf:type ontology:Q15617994 }
Marxaba Säbïjeva Germany
action filter_type
action union
action find
entity Germany
relation diplomatic relation
action find
entity Marxaba Säbïjeva
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Marxaba Säbïjeva', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Marxaba_Säbïjeva property:country_of_citizenship ?c } UNION { resource:Germany property:diplomatic_relation ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39 Q945 Q1009 Q750 Q117 Q902 Q739 Q783 Q1008 Q230
SYSTEM
Some of them are Switzerland, Togo, Cameroon, Bolivia, Ghana, Bangladesh, Colombia, Honduras, Côte d'Ivoire, Georgia
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q833 Q711 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q241 Q242 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q734 Q736 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q29 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q347 Q227 Q225 Q224 Q222 Q96 Q229 Q228 Q17 Q902 Q1036 Q1037 Q1008 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q79 Q77 Q878 Q774 Q948 Q810 Q1019 Q1016 Q1011 Q945 Q869 Q953
OR((Q183,P530,c(Q15617994)), (Q24266382,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q183
relation P530
action find
entity Q24266382
relation P27
type Q15617994
[ANSWERS] have a diplomatic relationship with Germany or are the native countriesof Marxaba Säbïjeva
{'OR': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q24266382', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q24266382 property:P27 ?c } UNION { resource:Q183 property:P530 ?c } } . ?c rdf:type ontology:Q15617994 }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Malaysia Mongolia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Colombia Cuba Belize Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Spain Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Liechtenstein Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Andorra Japan Bangladesh Uganda Rwanda Côte d'Ivoire Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Tunisia Jordan Madagascar Libya Cape Verde Togo Thailand Zambia
Switzerland, Togo, Cameroon, Bolivia, Ghana, Bangladesh, Colombia, Honduras, Côte d'Ivoire and Georgia have a diplomatic relationship with Germany or are the native countriesof Marxaba Säbïjeva
Switzerland Togo Cameroon Bolivia Ghana Bangladesh Colombia Honduras Côte d'Ivoire Georgia
action filter_type
action union
action find
entity Germany
relation diplomatic relation
action find
entity Marxaba Säbïjeva
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Marxaba Säbïjeva', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Marxaba_Säbïjeva property:country_of_citizenship ?c } UNION { resource:Germany property:diplomatic_relation ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with around 119 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 119
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?a ) WHERE { ?i property:P530 ?b . ?i rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?i } . FILTER ( ?a = 119 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 119
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?a ) WHERE { ?i property:diplomatic_relation ?b . ?i rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . FILTER ( ?a = 119 ) }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 119
[ANSWERS] have ambassadorial relations with around 119 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?a ) WHERE { ?i property:P530 ?b . ?i rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?i } . FILTER ( ?a = 119 ) }
Germany Australia
Germany and Australia have ambassadorial relations with around 119 administrative territories
Germany Australia
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 119
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?a ) WHERE { ?i property:diplomatic_relation ?b . ?i rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . FILTER ( ?a = 119 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q39
P1532
Q502895
USER
Whose people are Switzerland ?
(c(Q502895),P1532,Q39)
action filter_type
action find_reverse
entity Q39
relation P1532
type Q502895
[{'concept': 'Q502895'}, 'P1532', 'Q39']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P1532 resource:Q39 }
Switzerland
action filter_type
action find_reverse
entity Switzerland
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Switzerland']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:country_for_sport resource:Switzerland }
[]
common name
Q22409675 Q275989 Q26111355
SYSTEM
Martha Grossenbacher, Marianne Kaufmann-Abderhalden, Sara Wüest
Q26111355 Q275989 Q26396190 Q22409675
(c(Q502895),P1532,Q39)
action filter_type
action find_reverse
entity Q39
relation P1532
type Q502895
[ANSWERS] are Switzerland
[{'concept': 'Q502895'}, 'P1532', 'Q39']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P1532 resource:Q39 }
Sara Wüest Marianne Kaufmann-Abderhalden Salomé Kora Martha Grossenbacher
Martha Grossenbacher, Marianne Kaufmann-Abderhalden and Sara Wüest are Switzerland
Martha Grossenbacher Marianne Kaufmann-Abderhalden Sara Wüest
action filter_type
action find_reverse
entity Switzerland
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Switzerland']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:country_for_sport resource:Switzerland }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q39
P1001
Q14660
USER
Which flag has control over the jurisdiction of Switzerland ?
(c(Q14660),P1001,Q39)
action filter_type
action find_reverse
entity Q39
relation P1001
type Q14660
[{'concept': 'Q14660'}, 'P1001', 'Q39']
SELECT DISTINCT ?r WHERE { ?r property:P1001 resource:Q39 . ?r rdf:type ontology:Q14660 }
Switzerland
action filter_type
action find_reverse
entity Switzerland
relation applies to jurisdiction
type flag
[{'concept': 'flag'}, 'applies to jurisdiction', 'Switzerland']
SELECT DISTINCT ?r WHERE { ?r property:applies_to_jurisdiction resource:Switzerland . ?r rdf:type ontology:flag }
[]
flag
Q124020
SYSTEM
flag of Switzerland
Q124020
(c(Q14660),P1001,Q39)
action filter_type
action find_reverse
entity Q39
relation P1001
type Q14660
The [ANSWER] has control over the jurisdiction of Switzerland
[{'concept': 'Q14660'}, 'P1001', 'Q39']
SELECT DISTINCT ?r WHERE { ?r property:P1001 resource:Q39 . ?r rdf:type ontology:Q14660 }
flag of Switzerland
The flag of Switzerland has control over the jurisdiction of Switzerland
flag of Switzerland
action filter_type
action find_reverse
entity Switzerland
relation applies to jurisdiction
type flag
[{'concept': 'flag'}, 'applies to jurisdiction', 'Switzerland']
SELECT DISTINCT ?r WHERE { ?r property:applies_to_jurisdiction resource:Switzerland . ?r rdf:type ontology:flag }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q124020
P163
Q15617994
USER
Which administrative territory has its flag named that one ?
(c(Q15617994),P163,Q124020)
action filter_type
action find_reverse
entity Q124020
relation P163
type Q15617994
[{'concept': 'Q15617994'}, 'P163', 'Q124020']
SELECT DISTINCT ?u WHERE { ?u property:P163 resource:Q124020 . ?u rdf:type ontology:Q15617994 }
flag of Switzerland
action filter_type
action find_reverse
entity flag of Switzerland
relation flag
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'flag', 'flag of Switzerland']
SELECT DISTINCT ?u WHERE { ?u property:flag resource:flag_of_Switzerland . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39
SYSTEM
Switzerland
Q39
(c(Q15617994),P163,Q124020)
action filter_type
action find_reverse
entity Q124020
relation P163
type Q15617994
[ANSWER] has its flag named that one
[{'concept': 'Q15617994'}, 'P163', 'Q124020']
SELECT DISTINCT ?u WHERE { ?u property:P163 resource:Q124020 . ?u rdf:type ontology:Q15617994 }
Switzerland
Switzerland has its flag named that one
Switzerland
action filter_type
action find_reverse
entity flag of Switzerland
relation flag
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'flag', 'flag of Switzerland']
SELECT DISTINCT ?u WHERE { ?u property:flag resource:flag_of_Switzerland . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]