Simple Question (Direct)
Simple Question
Q1330302
P27
Q1048835
USER
Which political territory is Elisabeth Stein a civilian of ?
(Q1330302,P27,c(Q1048835))
action filter_type
action find
entity Q1330302
relation P27
type Q1048835
['Q1330302', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q1330302 property:P27 ?w . ?w rdf:type ontology:Q1048835 }
Elisabeth Stein
action filter_type
action find
entity Elisabeth Stein
relation country of citizenship
type political territorial entity
['Elisabeth Stein', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Elisabeth_Stein property:country_of_citizenship ?w . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1330302,P27,c(Q1048835))
action filter_type
action find
entity Q1330302
relation P27
type Q1048835
The [ANSWER] is Elisabeth Stein a civilian of
['Q1330302', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q1330302 property:P27 ?w . ?w rdf:type ontology:Q1048835 }
Germany
The Germany is Elisabeth Stein a civilian of
Germany
action filter_type
action find
entity Elisabeth Stein
relation country of citizenship
type political territorial entity
['Elisabeth Stein', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Elisabeth_Stein property:country_of_citizenship ?w . ?w rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1330302
P734
Q82799
USER
Who has the surname that person ?
(Q183,P734,c(Q82799))
action filter_type
action find
entity Q1330302
relation P734
type Q82799
['Q183', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { resource:Q1330302 property:P734 ?g . ?g rdf:type ontology:Q82799 }
Elisabeth Stein
action filter_type
action find
entity Elisabeth Stein
relation family name
type name
['Germany', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { resource:Elisabeth_Stein property:family_name ?g . ?g rdf:type ontology:name }
[]
name
Q2339506
SYSTEM
Stein
Q2339506
(Q183,P734,c(Q82799))
action filter_type
action find
entity Q1330302
relation P734
type Q82799
[ANSWER] has the surname that person
['Q183', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { resource:Q1330302 property:P734 ?g . ?g rdf:type ontology:Q82799 }
Stein
Stein has the surname that person
Stein
action filter_type
action find
entity Elisabeth Stein
relation family name
type name
['Germany', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { resource:Elisabeth_Stein property:family_name ?g . ?g rdf:type ontology:name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q183
P530
Q15617994
USER
How many administrative territories have a diplomatic relationship with Germany ?
(Q183,P530,c(Q15617994))
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
['Q183', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { ?r rdf:type ontology:Q15617994 . resource:Q183 property:P530 ?r }
Germany
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Germany property:diplomatic_relation ?r }
[]
designation for an administrative territorial entity
SYSTEM
124
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 Q228 Q227 Q225 Q224 Q222 Q96 Q229 Q347 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
(Q183,P530,c(Q15617994))
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
[ANSWER]
['Q183', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { ?r rdf:type ontology:Q15617994 . resource:Q183 property:P530 ?r }
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 Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Liechtenstein 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
124
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Germany property:diplomatic_relation ?r }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q142
P530
Q15617994
USER
And what about France?
(Q142,P530,c(Q15617994))
action count
action filter_type
action find
entity Q142
relation P530
type Q15617994
['Q142', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { ?f rdf:type ontology:Q15617994 . resource:Q142 property:P530 ?f }
France
action count
action filter_type
action find
entity France
relation diplomatic relation
type designation for an administrative territorial entity
['France', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:France property:diplomatic_relation ?f }
[]
designation for an administrative territorial entity
SYSTEM
15
Q711 Q159 Q222 Q801 Q145 Q155 Q1011 Q228 Q32 Q17 Q30 Q399 Q27 Q403 Q38
(Q142,P530,c(Q15617994))
action count
action filter_type
action find
entity Q142
relation P530
type Q15617994
[ANSWER]
['Q142', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { ?f rdf:type ontology:Q15617994 . resource:Q142 property:P530 ?f }
Mongolia Russia Albania Israel United Kingdom Brazil Cape Verde Andorra Luxembourg Japan United States of America Armenia Ireland Serbia Italy
15
action count
action filter_type
action find
entity France
relation diplomatic relation
type designation for an administrative territorial entity
['France', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:France property:diplomatic_relation ?f }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q79
Q15617994
USER
And also tell me about Egypt?
(Q79,P530,c(Q15617994))
action count
action filter_type
action find
entity Q79
relation P530
type Q15617994
['Q79', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { resource:Q79 property:P530 ?a . ?a rdf:type ontology:Q15617994 }
Egypt
action count
action filter_type
action find
entity Egypt
relation diplomatic relation
type designation for an administrative territorial entity
['Egypt', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { resource:Egypt property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
4
(Q79,P530,c(Q15617994))
action count
action filter_type
action find
entity Q79
relation P530
type Q15617994
[ANSWER]
['Q79', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { resource:Q79 property:P530 ?a . ?a rdf:type ontology:Q15617994 }
4
action count
action filter_type
action find
entity Egypt
relation diplomatic relation
type designation for an administrative territorial entity
['Egypt', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { resource:Egypt property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q39546 Q82799 Q82799
USER
How many names are named after atmost 1 tools or names ?
(c(Q82799),P138,c(Q39546)|c(Q82799))
action count
action atmost
action union
action find_tuple_counts
relation P138
type Q82799
type Q39546
action find_tuple_counts
relation P138
type Q82799
type Q82799
value 1
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q39546'}, {'concept': 'Q82799'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) ?l WHERE { VALUES ( ?d ) { ( ontology:Q39546 ) ( ontology:Q82799 ) } . ?f rdf:type ?d } GROUP BY ?l } . FILTER ( ?p <= 1 ) }
action count
action atmost
action union
action find_tuple_counts
relation named after
type name
type tool
action find_tuple_counts
relation named after
type name
type name
value 1
[{'concept': 'name'}, 'named after', [{'concept': 'tool'}, {'concept': 'name'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) ?l WHERE { VALUES ( ?d ) { ( ontology:tool ) ( ontology:name ) } . ?f rdf:type ?d } GROUP BY ?l } . FILTER ( ?p <= 1 ) }
[]
tool name name
SYSTEM
109
Q18335877 Q25212228 Q6501864 Q27022433 Q18198499 Q16281329 Q25368020 Q23727105 Q18043344 Q16428618 Q1069827 Q46767 Q1061262 Q19558843 Q25115046 Q16871796 Q23688105 Q23599481 Q1158323 Q1370531 Q16869665 Q1158446 Q1158882 Q8046631 Q11231408 Q24699545 Q13099004 Q17747435 Q15785531 Q21508058 Q16869754 Q5352294 Q20747163 Q813701 Q17847495 Q15629400 Q1746111 Q23885849 Q1812295 Q25343999 Q21161805 Q21449089 Q23783070 Q1643088 Q21507928 Q2909103 Q24529820 Q807882 Q21448754 Q23995126 Q25058808 Q21501910 Q18198433 Q13553585 Q24805372 Q24451619 Q21491852 Q19847573 Q568872 Q25303577 Q1260304 Q714189 Q21493520 Q18309769 Q17643158 Q21506697 Q2160221 Q16865178 Q26985935 Q179234 Q21517798 Q18198435 Q688520 Q928249 Q318363 Q24566045 Q1724227 Q26262632 Q23773623 Q20027829 Q18578754 Q25201582 Q1882407 Q24035235 Q22738156 Q13626156 Q19831835 Q16965278 Q20818054 Q16883336 Q16860286 Q25326750 Q16865812 Q20963077 Q612479 Q1755217 Q17625919 Q26247962 Q22922124 Q24689291 Q16877784 Q23301520 Q16865123 Q16148136 Q20727079 Q16881199 Q21491815 Q19899706 Q24229341
(c(Q82799),P138,c(Q39546)|c(Q82799))
action count
action atmost
action union
action find_tuple_counts
relation P138
type Q82799
type Q39546
action find_tuple_counts
relation P138
type Q82799
type Q82799
value 1
[ANSWER]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q39546'}, {'concept': 'Q82799'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) ?l WHERE { VALUES ( ?d ) { ( ontology:Q39546 ) ( ontology:Q82799 ) } . ?f rdf:type ?d } GROUP BY ?l } . FILTER ( ?p <= 1 ) }
Prévot Émile-Louis Kaplan Danziger Elizur Sha'aban Racine Poisson Renard Súla Rosario Meyer Ruby Pseudo-Lucian Louarn Lancaster de Bragança Bouvier Albrecht Meister (surname) Draper Smith Fisher Yael Fischer Saunier Larsen Ruzena Barber Delaroche Eastman Fisichella Saccharomyces carlsbergensis Becker Rózsa Dimorphotheca ecklonis Michael Gregorio Achaz Van Leemput Grenier Cain Lebreton Potier Ramos Mouton Boissel Rameau Barbus Müller Ahrens Mercier Dumoulin Boulanger Peleg Gold Bigot Métivier Poulain Laserbeak Palmer Vallon Berger Duce Bergmann Macdara If-Jesus-Christ-Had-Not-Died-For-Thee-Thou-Hadst-Been-Damned Lenormand Roche Bureau Froment Cro-Magnon Appenzeller Phanuel Arminia Kelly Abel Pignon Rose Ofer Lamour Saxon Voisin Roux MacGowan Kleineidam Zijlstra Ackermann Qutb Wald Giolla Íosa Silver Boucher Février Couture Aryaman Koehler Magowan Du Moulin Master of The Hours of Henri II von Mecklenburg-Schwerin Vigneron Napoli Aonchotheca moraveci Buffet Archer Schultheiss Picard Le Guen Sawyer Toscano
109
action count
action atmost
action union
action find_tuple_counts
relation named after
type name
type tool
action find_tuple_counts
relation named after
type name
type name
value 1
[{'concept': 'name'}, 'named after', [{'concept': 'tool'}, {'concept': 'name'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) ?l WHERE { VALUES ( ?d ) { ( ontology:tool ) ( ontology:name ) } . ?f rdf:type ?d } GROUP BY ?l } . FILTER ( ?p <= 1 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q17 Q183
P530
Q15617994
USER
Which administrative territories have diplomatic relationships with Germany and Japan ?
AND((Q183,P530,c(Q15617994)), (Q17,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q17
relation P530
type Q15617994
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q17', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { resource:Q183 property:P530 ?l . resource:Q17 property:P530 ?l . ?l rdf:type ontology:Q15617994 }
Japan Germany
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity Japan
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:Germany property:diplomatic_relation ?l . resource:Japan property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q884 Q142 Q869 Q801 Q711 Q38 Q145 Q227 Q159
SYSTEM
Some of them are Brazil, South Korea, France, Thailand, Israel, Mongolia, Italy, United Kingdom, Azerbaijan, Russia
Q227 Q142 Q711 Q884 Q159 Q801 Q145 Q155 Q30 Q869 Q38
AND((Q183,P530,c(Q15617994)), (Q17,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q17
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with Germany and Japan
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q17', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { resource:Q183 property:P530 ?l . resource:Q17 property:P530 ?l . ?l rdf:type ontology:Q15617994 }
Azerbaijan France Mongolia South Korea Russia Israel United Kingdom Brazil United States of America Thailand Italy
Brazil, South Korea, France, Thailand, Israel, Mongolia, Italy, United Kingdom, Azerbaijan and Russia have diplomatic relationships with Germany and Japan
Brazil South Korea France Thailand Israel Mongolia Italy United Kingdom Azerbaijan Russia
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity Japan
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:Germany property:diplomatic_relation ?l . resource:Japan property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P530
Q1048835
USER
How many political territories have diplomatic relationships with that administrative territory ?
(Q711,P530,c(Q1048835))
['Q711', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q19110470 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
['Mongolia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Mongolia property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Quantitative|Count|Single entity type|Clarification
Q159
SYSTEM
Did you mean Russia ?
(Q155,P530,c(Q1048835)) (Q884,P530,c(Q1048835)) (Q142,P530,c(Q1048835)) (Q869,P530,c(Q1048835)) (Q801,P530,c(Q1048835)) (Q711,P530,c(Q1048835)) (Q38,P530,c(Q1048835)) (Q145,P530,c(Q1048835)) (Q227,P530,c(Q1048835)) (Q159,P530,c(Q1048835))
[ANSWER]
['Q155', 'P530', {'concept': 'Q1048835'}] ['Q884', 'P530', {'concept': 'Q1048835'}] ['Q142', 'P530', {'concept': 'Q1048835'}] ['Q869', 'P530', {'concept': 'Q1048835'}] ['Q801', 'P530', {'concept': 'Q1048835'}] ['Q711', 'P530', {'concept': 'Q1048835'}] ['Q38', 'P530', {'concept': 'Q1048835'}] ['Q145', 'P530', {'concept': 'Q1048835'}] ['Q227', 'P530', {'concept': 'Q1048835'}] ['Q159', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q19110470 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
Did you mean Russia ?
Russia
['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}] ['South Korea', 'diplomatic relation', {'concept': 'political territorial entity'}] ['France', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Thailand', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Israel', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Mongolia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'political territorial entity'}] ['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Azerbaijan', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Russia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Mongolia property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Mongolia. Could you tell me the answer for that?
(Q711,P530,c(Q1048835))
Q711
['Q711', 'P530', {'concept': 'Q1048835'}]
['Mongolia', 'diplomatic relation', {'concept': 'political territorial entity'}]
[]
SYSTEM
3
Q183 Q16 Q408
(Q711,P530,c(Q1048835))
[ANSWER]
['Q711', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q19110470 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
Germany Canada Australia
3
['Mongolia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Mongolia property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q28
P530
Q15617994 Q1048835 Q15617994
USER
Which administrative territories have tactful political relations with lesser number of administrative territories and political territories than Hungary ?
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action less
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find
entity Q28
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) ?k WHERE { { ?k property:P530 ?g . ?k rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } UNION { ?k rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1048835 . ?k property:P530 ?g } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { resource:Q28 property:P530 ?r . { VALUES ( ?z ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?r rdf:type ?z } } } . FILTER ( ?t < ?b ) }
Hungary
action less
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Hungary
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) ?k WHERE { { ?k property:diplomatic_relation ?g . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:political_territorial_entity . ?k property:diplomatic_relation ?g } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { resource:Hungary property:diplomatic_relation ?r . { VALUES ( ?z ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?r rdf:type ?z } } } . FILTER ( ?t < ?b ) }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
Q214 Q211 Q1049
SYSTEM
Slovakia, Latvia, Sudan
Q702 Q804 Q262 Q265 Q712 Q837 Q398 Q657 Q792 Q790 Q958 Q986 Q242 Q244 Q811 Q924 Q983 Q29999 Q854 Q819 Q424 Q730 Q236 Q232 Q238 Q1045 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q1028 Q786 Q221 Q1036 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q117 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q774 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action less
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find
entity Q28
relation P530
type Q15617994
type Q1048835
[ANSWERS] have tactful political relations with lesser number of administrative territories and political territories than Hungary
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) ?k WHERE { { ?k property:P530 ?g . ?k rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } UNION { ?k rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1048835 . ?k property:P530 ?g } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { resource:Q28 property:P530 ?r . { VALUES ( ?z ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?r rdf:type ?z } } } . FILTER ( ?t < ?b ) }
Federated States of Micronesia Panama Algeria Uzbekistan Fiji Nepal Bahrain Chad El Salvador Haiti South Sudan Eritrea Belize Barbados Nicaragua Tanzania Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Montenegro Kazakhstan San Marino Somalia Brunei Sudan Mauritius Malawi Iceland Oman Morocco Dominican Republic Republic of Macedonia Uganda Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ghana Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Guatemala Kuwait Madagascar Togo Tonga New Caledonia
Slovakia, Latvia and Sudan have tactful political relations with lesser number of administrative territories and political territories than Hungary
Slovakia Latvia Sudan
action less
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Hungary
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) ?k WHERE { { ?k property:diplomatic_relation ?g . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:political_territorial_entity . ?k property:diplomatic_relation ?g } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { resource:Hungary property:diplomatic_relation ?r . { VALUES ( ?z ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?r rdf:type ?z } } } . FILTER ( ?t < ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q115
P530
Q15617994 Q1048835 Q15617994
USER
And also tell me about Ethiopia?
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action less
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find
entity Q115
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?t WHERE { { ?y rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 . ?t property:P530 ?y } UNION { ?t property:P530 ?y . ?y rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { resource:Q115 property:P530 ?v . { { ?v rdf:type ontology:Q15617994 } UNION { ?v rdf:type ontology:Q1048835 } } } } . FILTER ( ?z < ?p ) }
Ethiopia
action less
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Ethiopia
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?t WHERE { { ?y rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t property:diplomatic_relation ?y } UNION { ?t property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { resource:Ethiopia property:diplomatic_relation ?v . { { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?v rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?z < ?p ) }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
Q214 Q211 Q1049
SYSTEM
Slovakia, Latvia, Sudan
Q702 Q804 Q262 Q265 Q712 Q837 Q398 Q657 Q792 Q790 Q958 Q986 Q242 Q244 Q811 Q924 Q983 Q29999 Q854 Q819 Q424 Q730 Q236 Q232 Q238 Q1045 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q1028 Q786 Q221 Q1036 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q117 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q774 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action less
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find
entity Q115
relation P530
type Q15617994
type Q1048835
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?t WHERE { { ?y rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 . ?t property:P530 ?y } UNION { ?t property:P530 ?y . ?y rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { resource:Q115 property:P530 ?v . { { ?v rdf:type ontology:Q15617994 } UNION { ?v rdf:type ontology:Q1048835 } } } } . FILTER ( ?z < ?p ) }
Federated States of Micronesia Panama Algeria Uzbekistan Fiji Nepal Bahrain Chad El Salvador Haiti South Sudan Eritrea Belize Barbados Nicaragua Tanzania Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Montenegro Kazakhstan San Marino Somalia Brunei Sudan Mauritius Malawi Iceland Oman Morocco Dominican Republic Republic of Macedonia Uganda Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ghana Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Guatemala Kuwait Madagascar Togo Tonga New Caledonia
Slovakia Latvia Sudan
action less
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Ethiopia
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?t WHERE { { ?y rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t property:diplomatic_relation ?y } UNION { ?t property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { resource:Ethiopia property:diplomatic_relation ?v . { { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?v rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?z < ?p ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P47
Q15617994 Q3062294
USER
How many administrative territories or Latin phrases share the border with that administrative territory ?
(Q1049,P47,c(Q15617994)) (Q1049,P47,c(Q3062294)) (Q214,P47,c(Q15617994)) (Q214,P47,c(Q3062294)) (Q211,P47,c(Q15617994)) (Q211,P47,c(Q3062294)) (Q1049,P47,c(Q15617994)) (Q1049,P47,c(Q3062294))
['Q1049', 'P47', {'concept': 'Q15617994'}] ['Q1049', 'P47', {'concept': 'Q3062294'}] ['Q214', 'P47', {'concept': 'Q15617994'}] ['Q214', 'P47', {'concept': 'Q3062294'}] ['Q211', 'P47', {'concept': 'Q15617994'}] ['Q211', 'P47', {'concept': 'Q3062294'}] ['Q1049', 'P47', {'concept': 'Q15617994'}] ['Q1049', 'P47', {'concept': 'Q3062294'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q209703 property:P47 ?z } UNION { resource:Q209703 property:P47 ?y } UNION { resource:Q7541598 property:P47 ?z } UNION { resource:Q7541598 property:P47 ?y } UNION { resource:Q6497226 property:P47 ?z } UNION { resource:Q6497226 property:P47 ?y } UNION { resource:Q209703 property:P47 ?z } UNION { resource:Q209703 property:P47 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q3062294 }
['Sudan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Sudan', 'shares border with', {'concept': 'Latin phrase'}] ['Slovakia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Slovakia', 'shares border with', {'concept': 'Latin phrase'}] ['Latvia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Latvia', 'shares border with', {'concept': 'Latin phrase'}] ['Sudan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Sudan', 'shares border with', {'concept': 'Latin phrase'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Sudan property:shares_border_with ?z } UNION { resource:Sudan property:shares_border_with ?y } UNION { resource:Slovakia property:shares_border_with ?z } UNION { resource:Slovakia property:shares_border_with ?y } UNION { resource:Latvia property:shares_border_with ?z } UNION { resource:Latvia property:shares_border_with ?y } UNION { resource:Sudan property:shares_border_with ?z } UNION { resource:Sudan property:shares_border_with ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:Latin_phrase }
[]
designation for an administrative territorial entity Latin phrase
Quantitative|Count|Mult. entity type|Clarification
Q214
SYSTEM
Did you mean Slovakia ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q209703 property:P47 ?z } UNION { resource:Q209703 property:P47 ?y } UNION { resource:Q7541598 property:P47 ?z } UNION { resource:Q7541598 property:P47 ?y } UNION { resource:Q6497226 property:P47 ?z } UNION { resource:Q6497226 property:P47 ?y } UNION { resource:Q209703 property:P47 ?z } UNION { resource:Q209703 property:P47 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q3062294 }
Did you mean Slovakia ?
Slovakia
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Sudan property:shares_border_with ?z } UNION { resource:Sudan property:shares_border_with ?y } UNION { resource:Slovakia property:shares_border_with ?z } UNION { resource:Slovakia property:shares_border_with ?y } UNION { resource:Latvia property:shares_border_with ?z } UNION { resource:Latvia property:shares_border_with ?y } UNION { resource:Sudan property:shares_border_with ?z } UNION { resource:Sudan property:shares_border_with ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:Latin_phrase }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Sudan. Could you tell me the answer for that?
(Q1049,P47,c(Q15617994)) (Q1049,P47,c(Q3062294)) (Q214,P47,c(Q15617994)) (Q214,P47,c(Q3062294)) (Q211,P47,c(Q15617994)) (Q211,P47,c(Q3062294)) (Q1049,P47,c(Q15617994)) (Q1049,P47,c(Q3062294))
Q1049
['Q1049', 'P47', {'concept': 'Q15617994'}] ['Q1049', 'P47', {'concept': 'Q3062294'}] ['Q214', 'P47', {'concept': 'Q15617994'}] ['Q214', 'P47', {'concept': 'Q3062294'}] ['Q211', 'P47', {'concept': 'Q15617994'}] ['Q211', 'P47', {'concept': 'Q3062294'}] ['Q1049', 'P47', {'concept': 'Q15617994'}] ['Q1049', 'P47', {'concept': 'Q3062294'}]
['Sudan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Sudan', 'shares border with', {'concept': 'Latin phrase'}] ['Slovakia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Slovakia', 'shares border with', {'concept': 'Latin phrase'}] ['Latvia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Latvia', 'shares border with', {'concept': 'Latin phrase'}] ['Sudan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Sudan', 'shares border with', {'concept': 'Latin phrase'}]
[]
SYSTEM
11
Q986 Q1036 Q620634 Q1016 Q974 Q657 Q115 Q114 Q79 Q929 Q958
(Q1049,P47,c(Q15617994)) (Q1049,P47,c(Q3062294)) (Q214,P47,c(Q15617994)) (Q214,P47,c(Q3062294)) (Q211,P47,c(Q15617994)) (Q211,P47,c(Q3062294)) (Q1049,P47,c(Q15617994)) (Q1049,P47,c(Q3062294))
[ANSWER]
['Q1049', 'P47', {'concept': 'Q15617994'}] ['Q1049', 'P47', {'concept': 'Q3062294'}] ['Q214', 'P47', {'concept': 'Q15617994'}] ['Q214', 'P47', {'concept': 'Q3062294'}] ['Q211', 'P47', {'concept': 'Q15617994'}] ['Q211', 'P47', {'concept': 'Q3062294'}] ['Q1049', 'P47', {'concept': 'Q15617994'}] ['Q1049', 'P47', {'concept': 'Q3062294'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q209703 property:P47 ?z } UNION { resource:Q209703 property:P47 ?y } UNION { resource:Q7541598 property:P47 ?z } UNION { resource:Q7541598 property:P47 ?y } UNION { resource:Q6497226 property:P47 ?z } UNION { resource:Q6497226 property:P47 ?y } UNION { resource:Q209703 property:P47 ?z } UNION { resource:Q209703 property:P47 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q3062294 }
Eritrea Uganda Bir Tawil Libya Democratic Republic of the Congo Chad Ethiopia Kenya Egypt Central African Republic South Sudan
11
['Sudan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Sudan', 'shares border with', {'concept': 'Latin phrase'}] ['Slovakia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Slovakia', 'shares border with', {'concept': 'Latin phrase'}] ['Latvia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Latvia', 'shares border with', {'concept': 'Latin phrase'}] ['Sudan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Sudan', 'shares border with', {'concept': 'Latin phrase'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Sudan property:shares_border_with ?z } UNION { resource:Sudan property:shares_border_with ?y } UNION { resource:Slovakia property:shares_border_with ?z } UNION { resource:Slovakia property:shares_border_with ?y } UNION { resource:Latvia property:shares_border_with ?z } UNION { resource:Latvia property:shares_border_with ?y } UNION { resource:Sudan property:shares_border_with ?z } UNION { resource:Sudan property:shares_border_with ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:Latin_phrase }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q1267889 Q355304 Q15617994
USER
How many administrative territories are located next to atleast 7 waterways and watercourses ?
(c(Q15617994),P206,c(Q1267889)|c(Q355304))
action count
action atleast
action union
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action find_tuple_counts
relation P206
type Q15617994
type Q355304
value 7
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?t ) WHERE { { ?u property:P206 ?x . ?x rdf:type ontology:Q1267889 . ?u rdf:type ontology:Q15617994 } UNION { ?u rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q355304 . ?u property:P206 ?x } } GROUP BY ?u } . FILTER ( ?t >= 7 ) }
action count
action atleast
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
value 7
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?t ) WHERE { { ?u property:located_next_to_body_of_water ?x . ?x rdf:type ontology:waterway . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:watercourse . ?u property:located_next_to_body_of_water ?x } } GROUP BY ?u } . FILTER ( ?t >= 7 ) }
[]
waterway watercourse designation for an administrative territorial entity
SYSTEM
2
Q214 Q36
(c(Q15617994),P206,c(Q1267889)|c(Q355304))
action count
action atleast
action union
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action find_tuple_counts
relation P206
type Q15617994
type Q355304
value 7
[ANSWER]
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?t ) WHERE { { ?u property:P206 ?x . ?x rdf:type ontology:Q1267889 . ?u rdf:type ontology:Q15617994 } UNION { ?u rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q355304 . ?u property:P206 ?x } } GROUP BY ?u } . FILTER ( ?t >= 7 ) }
Slovakia Poland
2
action count
action atleast
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
value 7
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?t ) WHERE { { ?u property:located_next_to_body_of_water ?x . ?x rdf:type ontology:waterway . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:watercourse . ?u property:located_next_to_body_of_water ?x } } GROUP BY ?u } . FILTER ( ?t >= 7 ) }
[]