Simple Question (Direct)
Simple Question
Q219777
P47
Q20667921
USER
Which french administrative divisions are bordered by Saint-Denis-lès-Sens ?
(Q219777,P47,c(Q20667921))
action filter_type
action find
entity Q219777
relation P47
type Q20667921
['Q219777', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { resource:Q219777 property:P47 ?g . ?g rdf:type ontology:Q20667921 }
Saint-Denis-lès-Sens
action filter_type
action find
entity Saint-Denis-lès-Sens
relation shares border with
type type of french administrative division
['Saint-Denis-lès-Sens', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { resource:Saint-Denis-lès-Sens property:shares_border_with ?g . ?g rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q212420 Q117480 Q208733
SYSTEM
Sens, Cuy, Soucy
Q1139529 Q1434365 Q128580 Q117480 Q1377169 Q208733 Q212420 Q1173435
(Q219777,P47,c(Q20667921))
action filter_type
action find
entity Q219777
relation P47
type Q20667921
[ANSWERS] are bordered by Saint-Denis-lès-Sens
['Q219777', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { resource:Q219777 property:P47 ?g . ?g rdf:type ontology:Q20667921 }
Courtois-sur-Yonne Saint-Martin-du-Tertre Villenavotte Cuy Saint-Clément Soucy Sens Villeperrot
Sens, Cuy and Soucy are bordered by Saint-Denis-lès-Sens
Sens Cuy Soucy
action filter_type
action find
entity Saint-Denis-lès-Sens
relation shares border with
type type of french administrative division
['Saint-Denis-lès-Sens', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { resource:Saint-Denis-lès-Sens property:shares_border_with ?g . ?g rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Simple Question|Single Entity|Indirect
Q212420
P190
Q15617994
USER
Which administrative territory is twin city of that french administrative division ?
(Q212420,P190,c(Q15617994))
action filter_type
action find
entity Q212420
relation P190
type Q15617994
['Q212420', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q212420 property:P190 ?q . ?q rdf:type ontology:Q15617994 }
Sens
action filter_type
action find
entity Sens
relation sister city
type designation for an administrative territorial entity
['Sens', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Sens property:sister_city ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q117480
SYSTEM
Did you mean Cuy ?
Q212420 Q117480 Q208733
(Q212420,P190,c(Q15617994)) (Q117480,P190,c(Q15617994)) (Q208733,P190,c(Q15617994))
[ANSWER]
['Q212420', 'P190', {'concept': 'Q15617994'}] ['Q117480', 'P190', {'concept': 'Q15617994'}] ['Q208733', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q212420 property:P190 ?q . ?q rdf:type ontology:Q15617994 }
Sens Cuy Soucy
Did you mean Cuy ?
Cuy
['Sens', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Cuy', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Soucy', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Sens property:sister_city ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Sens. Could you tell me the answer for that?
(Q212420,P190,c(Q15617994))
Q212420
['Q212420', 'P190', {'concept': 'Q15617994'}]
['Sens', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
[]
Q124925
SYSTEM
Senigallia
Q124925
(Q212420,P190,c(Q15617994))
action filter_type
action find
entity Q212420
relation P190
type Q15617994
[ANSWER] is twin city of that french administrative division
['Q212420', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q212420 property:P190 ?q . ?q rdf:type ontology:Q15617994 }
Senigallia
Senigallia is twin city of that french administrative division
Senigallia
action filter_type
action find
entity Sens
relation sister city
type designation for an administrative territorial entity
['Sens', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Sens property:sister_city ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q212420
P36
Q20667921 Q13220204
USER
How many french administrative divisions and administrative country subdivisions are Sens the capital of ?
(c(Q20667921),P36,Q212420) (c(Q13220204),P36,Q212420)
action count
action union
action filter_type
action find_reverse
entity Q212420
relation P36
type Q20667921
action filter_type
action find_reverse
entity Q212420
relation P36
type Q13220204
[{'concept': 'Q20667921'}, 'P36', 'Q212420'] [{'concept': 'Q13220204'}, 'P36', 'Q212420']
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { ?t rdf:type ?v . VALUES ( ?v ) { ( ontology:Q20667921 ) ( ontology:Q13220204 ) } }
Sens
action count
action union
action filter_type
action find_reverse
entity Sens
relation capital
type type of french administrative division
action filter_type
action find_reverse
entity Sens
relation capital
type second-level administrative country subdivision
[{'concept': 'type of french administrative division'}, 'capital', 'Sens'] [{'concept': 'second-level administrative country subdivision'}, 'capital', 'Sens']
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { ?t rdf:type ?v . VALUES ( ?v ) { ( ontology:type_of_french_administrative_division ) ( ontology:second-level_administrative_country_subdivision ) } }
[]
type of french administrative division second-level administrative country subdivision
SYSTEM
5 french administrative divisions and 1 administrative country subdivisions
Q702534 Q20643374 Q19060252 Q1727480 Q1727481 Q1727479
(c(Q20667921),P36,Q212420) (c(Q13220204),P36,Q212420)
action count
action union
action filter_type
action find_reverse
entity Q212420
relation P36
type Q20667921
action filter_type
action find_reverse
entity Q212420
relation P36
type Q13220204
[ANSWER]
[{'concept': 'Q20667921'}, 'P36', 'Q212420'] [{'concept': 'Q13220204'}, 'P36', 'Q212420']
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { ?t rdf:type ?v . VALUES ( ?v ) { ( ontology:Q20667921 ) ( ontology:Q13220204 ) } }
arrondissement of Sens canton of Sens-2 canton of Sens-1 canton of Sens-Sud-Est canton of Sens-Nord-Est canton of Sens-Ouest
5 french administrative divisions and 1 administrative country subdivisions
action count
action union
action filter_type
action find_reverse
entity Sens
relation capital
type type of french administrative division
action filter_type
action find_reverse
entity Sens
relation capital
type second-level administrative country subdivision
[{'concept': 'type of french administrative division'}, 'capital', 'Sens'] [{'concept': 'second-level administrative country subdivision'}, 'capital', 'Sens']
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { ?t rdf:type ?v . VALUES ( ?v ) { ( ontology:type_of_french_administrative_division ) ( ontology:second-level_administrative_country_subdivision ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q124925
P190
Q56061
USER
Which administrative territories are partner towns of Senigallia ?
(Q124925,P190,c(Q56061))
action filter_type
action find
entity Q124925
relation P190
type Q56061
['Q124925', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . resource:Q124925 property:P190 ?u }
Senigallia
action filter_type
action find
entity Senigallia
relation sister city
type administrative territorial entity
['Senigallia', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . resource:Senigallia property:sister_city ?u }
[]
administrative territorial entity
Q6855 Q170263
SYSTEM
Lörrach, Chester
Q6855 Q170263
(Q124925,P190,c(Q56061))
action filter_type
action find
entity Q124925
relation P190
type Q56061
[ANSWERS] are partner towns of Senigallia
['Q124925', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . resource:Q124925 property:P190 ?u }
Lörrach Chester
Lörrach and Chester are partner towns of Senigallia
Lörrach Chester
action filter_type
action find
entity Senigallia
relation sister city
type administrative territorial entity
['Senigallia', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . resource:Senigallia property:sister_city ?u }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q6855 Q170263
P190
Q56061
USER
Which administrative territories are sister towns of those ones ?
(Q6855,P190,c(Q56061)) (Q170263,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
['Q6855', 'P190', {'concept': 'Q56061'}] ['Q170263', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?j property:P190 ?t . ?t rdf:type ontology:Q56061 . VALUES ( ?j ) { ( resource:Q6855 ) ( resource:Q170263 ) } }
Lörrach Chester
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Lörrach', 'sister city', {'concept': 'administrative territorial entity'}] ['Chester', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?j property:sister_city ?t . ?t rdf:type ontology:administrative_territorial_entity . VALUES ( ?j ) { ( resource:Lörrach ) ( resource:Chester ) } }
[]
administrative territorial entity
Q170263 Q6855
SYSTEM
Chester, Lörrach
Q170263 Q6855
(Q6855,P190,c(Q56061)) (Q170263,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
[ANSWERS] are sister towns of those ones
['Q6855', 'P190', {'concept': 'Q56061'}] ['Q170263', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?j property:P190 ?t . ?t rdf:type ontology:Q56061 . VALUES ( ?j ) { ( resource:Q6855 ) ( resource:Q170263 ) } }
Chester Lörrach
Chester and Lörrach are sister towns of those ones
Chester Lörrach
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Lörrach', 'sister city', {'concept': 'administrative territorial entity'}] ['Chester', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?j property:sister_city ?t . ?t rdf:type ontology:administrative_territorial_entity . VALUES ( ?j ) { ( resource:Lörrach ) ( resource:Chester ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6855
P17
Q1048835
USER
Which political territory does that administrative territory belong to ?
(Q6855,P17,c(Q1048835))
action filter_type
action find
entity Q6855
relation P17
type Q1048835
['Q6855', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q6855 property:P17 ?w . ?w rdf:type ontology:Q1048835 }
Lörrach
action filter_type
action find
entity Lörrach
relation country
type political territorial entity
['Lörrach', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Lörrach property:country ?w . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q170263
SYSTEM
Did you mean Chester ?
Q170263 Q6855
(Q170263,P17,c(Q1048835)) (Q6855,P17,c(Q1048835))
[ANSWER]
['Q170263', 'P17', {'concept': 'Q1048835'}] ['Q6855', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q6855 property:P17 ?w . ?w rdf:type ontology:Q1048835 }
Chester Lörrach
Did you mean Chester ?
Chester
['Chester', 'country', {'concept': 'political territorial entity'}] ['Lörrach', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Lörrach property:country ?w . ?w rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Lörrach. Could you tell me the answer for that?
(Q6855,P17,c(Q1048835))
Q6855
['Q6855', 'P17', {'concept': 'Q1048835'}]
['Lörrach', 'country', {'concept': 'political territorial entity'}]
[]
Q183
SYSTEM
Germany
Q183
(Q6855,P17,c(Q1048835))
action filter_type
action find
entity Q6855
relation P17
type Q1048835
That administrative territory belongs to Federal [ANSWER]
['Q6855', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q6855 property:P17 ?w . ?w rdf:type ontology:Q1048835 }
Germany
That administrative territory belongs to Federal Germany
Germany
action filter_type
action find
entity Lörrach
relation country
type political territorial entity
['Lörrach', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Lörrach property:country ?w . ?w rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories holds diplomatic relationship with atmost 2 political territories ?
(c(Q1048835),P530,c(Q15617994))
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
value 2
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?l ) AS ?d ) WHERE { ?l property:P530 ?v . ?v rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q1048835 } GROUP BY ?v } . FILTER ( ?d <= 2 ) }
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?l ) AS ?d ) WHERE { ?l property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?v } . FILTER ( ?d <= 2 ) }
[]
designation for an administrative territorial entity political territorial entity
Q230 Q55 Q148
SYSTEM
Georgia, Netherlands, People's Republic of China
Q702 Q804 Q800 Q805 Q419 Q668 Q414 Q55 Q262 Q148 Q783 Q784 Q265 Q37 Q712 Q710 Q717 Q837 Q399 Q398 Q657 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q32 Q31 Q924 Q928 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q117 Q754 Q750 Q213 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q858 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q1048835),P530,c(Q15617994))
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
value 2
[ANSWERS] hold diplomatic relationship with atmost 2 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?l ) AS ?d ) WHERE { ?l property:P530 ?v . ?v rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q1048835 } GROUP BY ?v } . FILTER ( ?d <= 2 ) }
Federated States of Micronesia Panama Costa Rica Yemen Peru India Argentina Netherlands Algeria People's Republic of China Honduras Dominica Uzbekistan Lithuania Fiji Kiribati Venezuela Nepal Armenia Bahrain Chad Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Luxembourg Belgium Tanzania Philippines Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ghana Trinidad and Tobago Bolivia Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Syria Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
Georgia, Netherlands and People's Republic of China hold diplomatic relationship with atmost 2 political territories
Georgia Netherlands People's Republic of China
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?l ) AS ?d ) WHERE { ?l property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?v } . FILTER ( ?d <= 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q446489 Q6855
P19 P190
Q20667921
USER
Which french administrative divisions are sister towns of Lörrach or were Tony Hurel born in ?
OR((Q6855,P190,c(Q20667921)), (Q446489,P19,c(Q20667921)))
action filter_type
action union
action find
entity Q6855
relation P190
action find
entity Q446489
relation P19
type Q20667921
{'OR': [['Q6855', 'P190', {'concept': 'Q20667921'}], ['Q446489', 'P19', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q446489 property:P19 ?t } UNION { resource:Q6855 property:P190 ?t } } . ?t rdf:type ontology:Q20667921 }
Tony Hurel Lörrach
action filter_type
action union
action find
entity Lörrach
relation sister city
action find
entity Tony Hurel
relation place of birth
type type of french administrative division
{'OR': [['Lörrach', 'sister city', {'concept': 'type of french administrative division'}], ['Tony Hurel', 'place of birth', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Tony_Hurel property:place_of_birth ?t } UNION { resource:Lörrach property:sister_city ?t } } . ?t rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q212420 Q188743
SYSTEM
Sens, Lisieux
Q212420 Q188743
OR((Q6855,P190,c(Q20667921)), (Q446489,P19,c(Q20667921)))
action filter_type
action union
action find
entity Q6855
relation P190
action find
entity Q446489
relation P19
type Q20667921
[ANSWERS] are sister towns of Lörrach or were Tony Hurel born in
{'OR': [['Q6855', 'P190', {'concept': 'Q20667921'}], ['Q446489', 'P19', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q446489 property:P19 ?t } UNION { resource:Q6855 property:P190 ?t } } . ?t rdf:type ontology:Q20667921 }
Sens Lisieux
Sens and Lisieux are sister towns of Lörrach or were Tony Hurel born in
Sens Lisieux
action filter_type
action union
action find
entity Lörrach
relation sister city
action find
entity Tony Hurel
relation place of birth
type type of french administrative division
{'OR': [['Lörrach', 'sister city', {'concept': 'type of french administrative division'}], ['Tony Hurel', 'place of birth', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Tony_Hurel property:place_of_birth ?t } UNION { resource:Lörrach property:sister_city ?t } } . ?t rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q101663 Q148
P47
Q15617994
USER
Which administrative territories are adjacent to People's Republic of China or Trescore Balneario ?
OR((Q148,P47,c(Q15617994)), (Q101663,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q148
relation P47
action find
entity Q101663
relation P47
type Q15617994
{'OR': [['Q148', 'P47', {'concept': 'Q15617994'}], ['Q101663', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . { { resource:Q148 property:P47 ?f } UNION { resource:Q101663 property:P47 ?f } } }
Trescore Balneario People's Republic of China
action filter_type
action union
action find
entity People's Republic of China
relation shares border with
action find
entity Trescore Balneario
relation shares border with
type designation for an administrative territorial entity
{'OR': [["People's Republic of China", 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Trescore Balneario', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:People's_Republic_of_China property:shares_border_with ?f } UNION { resource:Trescore_Balneario property:shares_border_with ?f } } }
[]
designation for an administrative territorial entity
Q101548 Q881 Q101115 Q100347 Q101208 Q100199 Q53489 Q837 Q863 Q16912
SYSTEM
Some of them are San Paolo d'Argon, Vietnam, Gandosso, Cenate Sotto, Luzzana, Cenate Sopra, Albino, Lombardy, Nepal, Tajikistan, Credaro
Q100347 Q843 Q101783 Q668 Q16912 Q17 Q711 Q836 Q837 Q101039 Q813 Q53489 Q101115 Q101208 Q819 Q101548 Q100149 Q159 Q232 Q101142 Q863 Q881 Q889 Q423 Q100199 Q884 Q917
OR((Q148,P47,c(Q15617994)), (Q101663,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q148
relation P47
action find
entity Q101663
relation P47
type Q15617994
[ANSWERS] are adjacent to People's Republic of China or Trescore Balneario
{'OR': [['Q148', 'P47', {'concept': 'Q15617994'}], ['Q101663', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . { { resource:Q148 property:P47 ?f } UNION { resource:Q101663 property:P47 ?f } } }
Cenate Sotto Pakistan Zandobbio India Credaro Japan Mongolia Myanmar Nepal Entratico Kyrgyzstan Albino, Lombardy Gandosso Luzzana Laos San Paolo d'Argon Carobbio degli Angeli Russia Kazakhstan Gorlago Tajikistan Vietnam Afghanistan North Korea Cenate Sopra South Korea Bhutan
San Paolo d'Argon, Vietnam, Gandosso, Cenate Sotto, Luzzana, Cenate Sopra, Albino, Lombardy, Nepal, Tajikistan and Credaro are adjacent to People's Republic of China or Trescore Balneario
San Paolo d'Argon Vietnam Gandosso Cenate Sotto Luzzana Cenate Sopra Albino, Lombardy Nepal Tajikistan Credaro
action filter_type
action union
action find
entity People's Republic of China
relation shares border with
action find
entity Trescore Balneario
relation shares border with
type designation for an administrative territorial entity
{'OR': [["People's Republic of China", 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Trescore Balneario', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:People's_Republic_of_China property:shares_border_with ?f } UNION { resource:Trescore_Balneario property:shares_border_with ?f } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with min number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?j = ?e ) . { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?j ) WHERE { ?k property:P530 ?c . ?k rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?k } . { SELECT DISTINCT ( MIN ( ?d ) AS ?e ) { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?d ) WHERE { ?p property:P530 ?m . ?p rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?p } } }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?j = ?e ) . { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?j ) WHERE { ?k property:diplomatic_relation ?c . ?k rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . { SELECT DISTINCT ( MIN ( ?d ) AS ?e ) { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?d ) WHERE { ?p property:diplomatic_relation ?m . ?p rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } } }
[]
designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have diplomatic relations with min number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?j = ?e ) . { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?j ) WHERE { ?k property:P530 ?c . ?k rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?k } . { SELECT DISTINCT ( MIN ( ?d ) AS ?e ) { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?d ) WHERE { ?p property:P530 ?m . ?p rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?p } } }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea have diplomatic relations with min number of administrative territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?j = ?e ) . { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?j ) WHERE { ?k property:diplomatic_relation ?c . ?k rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . { SELECT DISTINCT ( MIN ( ?d ) AS ?e ) { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?d ) WHERE { ?p property:diplomatic_relation ?m . ?p rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q183
P47
Q15617994 Q7275
USER
How many administrative territories and states have a shared border with Germany ?
(Q183,P47,c(Q15617994)) (Q183,P47,c(Q7275))
action count
action union
action filter_type
action find
entity Q183
relation P47
type Q15617994
action filter_type
action find
entity Q183
relation P47
type Q7275
['Q183', 'P47', {'concept': 'Q15617994'}] ['Q183', 'P47', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { { resource:Q183 property:P47 ?q . ?q rdf:type ontology:Q15617994 } UNION { resource:Q183 property:P47 ?q . ?q rdf:type ontology:Q7275 } }
Germany
action count
action union
action filter_type
action find
entity Germany
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Germany
relation shares border with
type state
['Germany', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Germany', 'shares border with', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { { resource:Germany property:shares_border_with ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Germany property:shares_border_with ?q . ?q rdf:type ontology:state } }
[]
designation for an administrative territorial entity state
SYSTEM
8 administrative territories and 3 states
Q142 Q213 Q55 Q33946 Q29999 Q310293 Q32 Q31 Q36 Q39 Q16957
(Q183,P47,c(Q15617994)) (Q183,P47,c(Q7275))
action count
action union
action filter_type
action find
entity Q183
relation P47
type Q15617994
action filter_type
action find
entity Q183
relation P47
type Q7275
[ANSWER]
['Q183', 'P47', {'concept': 'Q15617994'}] ['Q183', 'P47', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { { resource:Q183 property:P47 ?q . ?q rdf:type ontology:Q15617994 } UNION { resource:Q183 property:P47 ?q . ?q rdf:type ontology:Q7275 } }
France Czech Republic Netherlands Czechoslovakia Kingdom of the Netherlands Saar Protectorate Luxembourg Belgium Poland Switzerland East Germany
8 administrative territories and 3 states
action count
action union
action filter_type
action find
entity Germany
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Germany
relation shares border with
type state
['Germany', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Germany', 'shares border with', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { { resource:Germany property:shares_border_with ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Germany property:shares_border_with ?q . ?q rdf:type ontology:state } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P35
Q502895
USER
Who are the heads of state of that political territory ?
action filter_type
action find
entity Q183
relation P35
type Q502895
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . resource:Q183 property:P35 ?j }
Germany
action filter_type
action find
entity Germany
relation head of state
type common name
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . resource:Germany property:head_of_state ?j }
[]
common name
Q2567 Q2571 Q2594
SYSTEM
Richard von Weizsäcker, Walter Scheel, Theodor Heuss
Q2569 Q2594 Q2573 Q2563 Q2571 Q2538 Q2551 Q2567 Q2540 Q2582 Q2542
action filter_type
action find
entity Q183
relation P35
type Q502895
The heads of state of that political territory are Emperor [ANSWERS]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . resource:Q183 property:P35 ?j }
Karl Carstens Theodor Heuss Gustav Heinemann Roman Herzog Walter Scheel Joachim Gauck Johannes Rau Richard von Weizsäcker Christian Wulff Heinrich Lübke Horst Köhler
The heads of state of that political territory are Emperor Richard von Weizsäcker, Walter Scheel and Theodor Heuss
Richard von Weizsäcker Walter Scheel Theodor Heuss
action filter_type
action find
entity Germany
relation head of state
type common name
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . resource:Germany property:head_of_state ?j }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2567 Q2571 Q2594
P937
Q56061
USER
Which administrative territories are the work locations of Richard von Weizsäcker, Walter Scheel and Theodor Heuss ?
(Q2567,P937,c(Q56061)) (Q2571,P937,c(Q56061)) (Q2594,P937,c(Q56061))
action union
action filter_type
action find
entity Q2567
relation P937
type Q56061
action filter_type
action find
entity Q2571
relation P937
type Q56061
action filter_type
action find
entity Q2594
relation P937
type Q56061
['Q2567', 'P937', {'concept': 'Q56061'}] ['Q2571', 'P937', {'concept': 'Q56061'}] ['Q2594', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { { resource:Q2567 property:P937 ?o . ?o rdf:type ontology:Q56061 } UNION { resource:Q2571 property:P937 ?o . ?o rdf:type ontology:Q56061 } }
Richard von Weizsäcker Walter Scheel Theodor Heuss
action union
action filter_type
action find
entity Richard von Weizsäcker
relation work location
type administrative territorial entity
action filter_type
action find
entity Walter Scheel
relation work location
type administrative territorial entity
action filter_type
action find
entity Theodor Heuss
relation work location
type administrative territorial entity
['Richard von Weizsäcker', 'work location', {'concept': 'administrative territorial entity'}] ['Walter Scheel', 'work location', {'concept': 'administrative territorial entity'}] ['Theodor Heuss', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { resource:Richard_von_Weizsäcker property:work_location ?o . ?o rdf:type ontology:administrative_territorial_entity } UNION { resource:Walter_Scheel property:work_location ?o . ?o rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q64 Q64 Q1718
SYSTEM
Berlin for 1st, 2nd, Düsseldorf for 3rd
Q64 Q586 Q1718 Q586 Q239 Q64 Q586
(Q2567,P937,c(Q56061)) (Q2571,P937,c(Q56061)) (Q2594,P937,c(Q56061))
action union
action filter_type
action find
entity Q2567
relation P937
type Q56061
action filter_type
action find
entity Q2571
relation P937
type Q56061
action filter_type
action find
entity Q2594
relation P937
type Q56061
[ANSWERS]
['Q2567', 'P937', {'concept': 'Q56061'}] ['Q2571', 'P937', {'concept': 'Q56061'}] ['Q2594', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { { resource:Q2567 property:P937 ?o . ?o rdf:type ontology:Q56061 } UNION { resource:Q2571 property:P937 ?o . ?o rdf:type ontology:Q56061 } }
Berlin Bonn Düsseldorf Bonn Brussels Berlin Bonn
Berlin, Berlin and Düsseldorf are the work locations of Richard von Weizsäcker, Walter Scheel and Theodor Heuss
Berlin Berlin Düsseldorf
action union
action filter_type
action find
entity Richard von Weizsäcker
relation work location
type administrative territorial entity
action filter_type
action find
entity Walter Scheel
relation work location
type administrative territorial entity
action filter_type
action find
entity Theodor Heuss
relation work location
type administrative territorial entity
['Richard von Weizsäcker', 'work location', {'concept': 'administrative territorial entity'}] ['Walter Scheel', 'work location', {'concept': 'administrative territorial entity'}] ['Theodor Heuss', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { resource:Richard_von_Weizsäcker property:work_location ?o . ?o rdf:type ontology:administrative_territorial_entity } UNION { resource:Walter_Scheel property:work_location ?o . ?o rdf:type ontology:administrative_territorial_entity } }
[]