Simple Question (Direct)
Simple Question
Q7664038
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Szabolcs Kanta ?
(Q7664038,P27,c(Q15617994))
action filter_type
action find
entity Q7664038
relation P27
type Q15617994
['Q7664038', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q7664038 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Szabolcs Kanta
action filter_type
action find
entity Szabolcs Kanta
relation country of citizenship
type designation for an administrative territorial entity
['Szabolcs Kanta', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Szabolcs_Kanta property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28
SYSTEM
Hungary
Q28
(Q7664038,P27,c(Q15617994))
action filter_type
action find
entity Q7664038
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Szabolcs Kanta
['Q7664038', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q7664038 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Hungary
Hungary is the country of citizenship of Szabolcs Kanta
Hungary
action filter_type
action find
entity Szabolcs Kanta
relation country of citizenship
type designation for an administrative territorial entity
['Szabolcs Kanta', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Szabolcs_Kanta property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q28
P47
Q15617994
USER
Who share the border with that one ?
(Q28,P47,c(Q15617994))
action filter_type
action find
entity Q28
relation P47
type Q15617994
['Q28', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q28 property:P47 ?h . ?h rdf:type ontology:Q15617994 }
Hungary
action filter_type
action find
entity Hungary
relation shares border with
type designation for an administrative territorial entity
['Hungary', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Hungary property:shares_border_with ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q218 Q212 Q214
SYSTEM
Romania, Ukraine, Slovakia
Q212 Q224 Q214 Q215 Q218 Q403
(Q28,P47,c(Q15617994))
action filter_type
action find
entity Q28
relation P47
type Q15617994
[ANSWERS] share the border with that one
['Q28', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q28 property:P47 ?h . ?h rdf:type ontology:Q15617994 }
Ukraine Croatia Slovakia Slovenia Romania Serbia
Romania, Ukraine and Slovakia share the border with that one
Romania Ukraine Slovakia
action filter_type
action find
entity Hungary
relation shares border with
type designation for an administrative territorial entity
['Hungary', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Hungary property:shares_border_with ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
How many administrative territories are the origin of approximately the same number of releases as that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity release
Comparative|Count over More/Less|Single entity type|Clarification
Q212
SYSTEM
Did you mean Ukraine ?
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Did you mean Ukraine ?
Ukraine
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Slovakia. Could you tell me the answer for that?
(c(Q2031291),P495,c(Q15617994))
Q214
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
168
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q145 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands United Kingdom Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
168
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q218
P463
Q56061
USER
Which organization was Romania a member of ?
(Q218,P463,c(Q56061))
action filter_type
action find
entity Q218
relation P463
type Q56061
['Q218', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q218 property:P463 ?w . ?w rdf:type ontology:Q56061 }
Romania
action filter_type
action find
entity Romania
relation member of
type administrative territorial entity
['Romania', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Romania property:member_of ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q458
SYSTEM
European Union
Q458
(Q218,P463,c(Q56061))
action filter_type
action find
entity Q218
relation P463
type Q56061
The [ANSWER] was Romania a member of
['Q218', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q218 property:P463 ?w . ?w rdf:type ontology:Q56061 }
European Union
The European Union was Romania a member of
European Union
action filter_type
action find
entity Romania
relation member of
type administrative territorial entity
['Romania', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Romania property:member_of ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q224
Q56061
USER
And what about Croatia?
(Q224,P463,c(Q56061))
action filter_type
action find
entity Q224
relation P463
type Q56061
['Q224', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q224 property:P463 ?i . ?i rdf:type ontology:Q56061 }
Croatia
action filter_type
action find
entity Croatia
relation member of
type administrative territorial entity
['Croatia', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Croatia property:member_of ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q458
SYSTEM
European Union
Q458
(Q224,P463,c(Q56061))
action filter_type
action find
entity Q224
relation P463
type Q56061
[ANSWER]
['Q224', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q224 property:P463 ?i . ?i rdf:type ontology:Q56061 }
European Union
European Union
action filter_type
action find
entity Croatia
relation member of
type administrative territorial entity
['Croatia', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Croatia property:member_of ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q12347749 Q28
P27 P17
Q15617994
USER
Which administrative territories do Hungary belong to and are the native countriesof Ferenc Martos ?
AND((Q28,P17,c(Q15617994)), (Q12347749,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q28
relation P17
action find
entity Q12347749
relation P27
type Q15617994
{'AND': [['Q28', 'P17', {'concept': 'Q15617994'}], ['Q12347749', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . resource:Q28 property:P17 ?d . resource:Q12347749 property:P27 ?d }
Ferenc Martos Hungary
action filter_type
action intersection
action find
entity Hungary
relation country
action find
entity Ferenc Martos
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Hungary', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Ferenc Martos', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Hungary property:country ?d . resource:Ferenc_Martos property:country_of_citizenship ?d }
[]
designation for an administrative territorial entity
Q28
SYSTEM
Hungary
Q28
AND((Q28,P17,c(Q15617994)), (Q12347749,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q28
relation P17
action find
entity Q12347749
relation P27
type Q15617994
[ANSWER] belong to [ANSWER] and are the native countriesof Ferenc Martos
{'AND': [['Q28', 'P17', {'concept': 'Q15617994'}], ['Q12347749', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . resource:Q28 property:P17 ?d . resource:Q12347749 property:P27 ?d }
Hungary
Hungary belong to Hungary and are the native countriesof Ferenc Martos
Hungary
action filter_type
action intersection
action find
entity Hungary
relation country
action find
entity Ferenc Martos
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Hungary', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Ferenc Martos', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Hungary property:country ?d . resource:Ferenc_Martos property:country_of_citizenship ?d }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12347749
P21
Q290
USER
What is the sex of that person ?
(Q28,P21,c(Q290))
action filter_type
action find
entity Q12347749
relation P21
type Q290
['Q28', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q12347749 property:P21 ?m . ?m rdf:type ontology:Q290 }
Ferenc Martos
action filter_type
action find
entity Ferenc Martos
relation gender
type sex
['Hungary', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Ferenc_Martos property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q28,P21,c(Q290))
action filter_type
action find
entity Q12347749
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q28', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q12347749 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Ferenc Martos
relation gender
type sex
['Hungary', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Ferenc_Martos property:gender ?m . ?m rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12347749
P20
Q56061
USER
Where did that person die ?
(Q6581097,P20,c(Q56061))
action filter_type
action find
entity Q12347749
relation P20
type Q56061
['Q6581097', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q12347749 property:P20 ?r . ?r rdf:type ontology:Q56061 }
Ferenc Martos
action filter_type
action find
entity Ferenc Martos
relation place of death
type administrative territorial entity
['male', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Ferenc_Martos property:place_of_death ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1781
SYSTEM
Budapest
Q1781
(Q6581097,P20,c(Q56061))
action filter_type
action find
entity Q12347749
relation P20
type Q56061
That person died in [ANSWER]
['Q6581097', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q12347749 property:P20 ?r . ?r rdf:type ontology:Q56061 }
Budapest
That person died in Budapest
Budapest
action filter_type
action find
entity Ferenc Martos
relation place of death
type administrative territorial entity
['male', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Ferenc_Martos property:place_of_death ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q28
P127
Q1076486 Q43229
USER
How many sports venues and organizations are owned by Hungary ?
(c(Q1076486),P127,Q28) (c(Q43229),P127,Q28)
action count
action union
action filter_type
action find_reverse
entity Q28
relation P127
type Q1076486
action filter_type
action find_reverse
entity Q28
relation P127
type Q43229
[{'concept': 'Q1076486'}, 'P127', 'Q28'] [{'concept': 'Q43229'}, 'P127', 'Q28']
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { ?n property:P127 resource:Q28 . ?n rdf:type ontology:Q1076486 } UNION { ?n property:P127 resource:Q28 . ?n rdf:type ontology:Q43229 } }
Hungary
action count
action union
action filter_type
action find_reverse
entity Hungary
relation owned by
type sports venue
action filter_type
action find_reverse
entity Hungary
relation owned by
type organization
[{'concept': 'sports venue'}, 'owned by', 'Hungary'] [{'concept': 'organization'}, 'owned by', 'Hungary']
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { ?n property:owned_by resource:Hungary . ?n rdf:type ontology:sports_venue } UNION { ?n property:owned_by resource:Hungary . ?n rdf:type ontology:organization } }
[]
sports venue organization
SYSTEM
1 sports venues and 1 organizations
Q259307 Q1162287
(c(Q1076486),P127,Q28) (c(Q43229),P127,Q28)
action count
action union
action filter_type
action find_reverse
entity Q28
relation P127
type Q1076486
action filter_type
action find_reverse
entity Q28
relation P127
type Q43229
[ANSWER]
[{'concept': 'Q1076486'}, 'P127', 'Q28'] [{'concept': 'Q43229'}, 'P127', 'Q28']
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { ?n property:P127 resource:Q28 . ?n rdf:type ontology:Q1076486 } UNION { ?n property:P127 resource:Q28 . ?n rdf:type ontology:Q43229 } }
Hidegkuti Nándor Stadium MVM Group
1 sports venues and 1 organizations
action count
action union
action filter_type
action find_reverse
entity Hungary
relation owned by
type sports venue
action filter_type
action find_reverse
entity Hungary
relation owned by
type organization
[{'concept': 'sports venue'}, 'owned by', 'Hungary'] [{'concept': 'organization'}, 'owned by', 'Hungary']
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { ?n property:owned_by resource:Hungary . ?n rdf:type ontology:sports_venue } UNION { ?n property:owned_by resource:Hungary . ?n rdf:type ontology:organization } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q28
P291
Q1002697
USER
Which periodical literature has that administrative territory as its publication place ?
action filter_type
action find_reverse
entity Q28
relation P291
type Q1002697
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1002697 . ?w property:P291 resource:Q28 }
Hungary
action filter_type
action find_reverse
entity Hungary
relation place of publication
type periodical literature
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:periodical_literature . ?w property:place_of_publication resource:Hungary }
[]
periodical literature
Q20482212
SYSTEM
Erdélyi Lapok
Q20482212
action filter_type
action find_reverse
entity Q28
relation P291
type Q1002697
[ANSWER] has that administrative territory as its publication place
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1002697 . ?w property:P291 resource:Q28 }
Erdélyi Lapok
Erdélyi Lapok has that administrative territory as its publication place
Erdélyi Lapok
action filter_type
action find_reverse
entity Hungary
relation place of publication
type periodical literature
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:periodical_literature . ?w property:place_of_publication resource:Hungary }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q171852 Q212
P47 P17
Q1048835
USER
Which political territories are present in Ukraine and do Odessa Oblast share a border with ?
AND((c(Q1048835),P17,Q212), (c(Q1048835),P47,Q171852))
action filter_type
action intersection
action find_reverse
entity Q212
relation P17
action find_reverse
entity Q171852
relation P47
type Q1048835
{'AND': [[{'concept': 'Q1048835'}, 'P17', 'Q212'], [{'concept': 'Q1048835'}, 'P47', 'Q171852']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1048835 . ?x property:P17 resource:Q212 . ?x property:P47 resource:Q171852 }
Odessa Oblast Ukraine
action filter_type
action intersection
action find_reverse
entity Ukraine
relation country
action find_reverse
entity Odessa Oblast
relation shares border with
type political territorial entity
{'AND': [[{'concept': 'political territorial entity'}, 'country', 'Ukraine'], [{'concept': 'political territorial entity'}, 'shares border with', 'Odessa Oblast']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_territorial_entity . ?x property:country resource:Ukraine . ?x property:shares_border_with resource:Odessa_Oblast }
[]
political territorial entity
Q180981 Q166709 Q181633
SYSTEM
Kirovohrad Oblast, Vinnytsia Oblast, Mykolaiv Oblast
Q180981 Q166709 Q181633
AND((c(Q1048835),P17,Q212), (c(Q1048835),P47,Q171852))
action filter_type
action intersection
action find_reverse
entity Q212
relation P17
action find_reverse
entity Q171852
relation P47
type Q1048835
[ANSWERS] are present in Ukraine and do Odessa Oblast share a border with
{'AND': [[{'concept': 'Q1048835'}, 'P17', 'Q212'], [{'concept': 'Q1048835'}, 'P47', 'Q171852']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1048835 . ?x property:P17 resource:Q212 . ?x property:P47 resource:Q171852 }
Kirovohrad Oblast Vinnytsia Oblast Mykolaiv Oblast
Kirovohrad Oblast, Vinnytsia Oblast and Mykolaiv Oblast are present in Ukraine and do Odessa Oblast share a border with
Kirovohrad Oblast Vinnytsia Oblast Mykolaiv Oblast
action filter_type
action intersection
action find_reverse
entity Ukraine
relation country
action find_reverse
entity Odessa Oblast
relation shares border with
type political territorial entity
{'AND': [[{'concept': 'political territorial entity'}, 'country', 'Ukraine'], [{'concept': 'political territorial entity'}, 'shares border with', 'Odessa Oblast']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_territorial_entity . ?x property:country resource:Ukraine . ?x property:shares_border_with resource:Odessa_Oblast }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q649
P417
Q502895 Q1445650 Q56061
USER
How many administrative territories have lesser number of people and holidays as their patron saint than Moscow ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action count
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q649
relation P417
type Q502895
type Q1445650
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?h ) WHERE { { ?c rdf:type ontology:Q56061 . ?q rdf:type ontology:Q502895 . ?c property:P417 ?q } UNION { ?c property:P417 ?q . ?c rdf:type ontology:Q56061 . ?q rdf:type ontology:Q1445650 } } GROUP BY ?c } . FILTER ( ?h < ?u ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { resource:Q649 property:P417 ?s . { ?s rdf:type ?k . VALUES ( ?k ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } } } }
Moscow
action count
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Moscow
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?h ) WHERE { { ?c rdf:type ontology:administrative_territorial_entity . ?q rdf:type ontology:common_name . ?c property:patron_saint ?q } UNION { ?c property:patron_saint ?q . ?c rdf:type ontology:administrative_territorial_entity . ?q rdf:type ontology:holiday } } GROUP BY ?c } . FILTER ( ?h < ?u ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { resource:Moscow property:patron_saint ?s . { ?s rdf:type ?k . VALUES ( ?k ) { ( ontology:common_name ) ( ontology:holiday ) } } } } }
[]
common name holiday administrative territorial entity
SYSTEM
33
Q264716 Q12883498 Q54494 Q50057 Q117388 Q6221 Q46718 Q54119 Q81258 Q47074 Q59257 Q4361 Q2914723 Q100129 Q52547 Q116440 Q2284679 Q496890 Q297224 Q259039 Q54556 Q487786 Q100943 Q244193 Q1747381 Q492475 Q334577 Q39493 Q329984 Q47034 Q215080 Q270288 Q102820
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action count
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q649
relation P417
type Q502895
type Q1445650
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?h ) WHERE { { ?c rdf:type ontology:Q56061 . ?q rdf:type ontology:Q502895 . ?c property:P417 ?q } UNION { ?c property:P417 ?q . ?c rdf:type ontology:Q56061 . ?q rdf:type ontology:Q1445650 } } GROUP BY ?c } . FILTER ( ?h < ?u ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { resource:Q649 property:P417 ?s . { ?s rdf:type ?k . VALUES ( ?k ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } } } }
Carzano Pano Platres Belvedere di Spinello Cagnano Amiterno Strangolagalli Brescia Carrè San Pedro Padula Aielli Montefortino Curitiba Nemausus Calvenzano Campomaggiore Arpino General Alvear, Mendoza Balestrate Padergnone Giardinello Africo Orihuela Sorbolo Cagno Polykastro Valença Quetzaltenango Cantello Úbeda Espoo Machala Riccò del Golfo di Spezia Nibbiano
33
action count
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Moscow
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?h ) WHERE { { ?c rdf:type ontology:administrative_territorial_entity . ?q rdf:type ontology:common_name . ?c property:patron_saint ?q } UNION { ?c property:patron_saint ?q . ?c rdf:type ontology:administrative_territorial_entity . ?q rdf:type ontology:holiday } } GROUP BY ?c } . FILTER ( ?h < ?u ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { resource:Moscow property:patron_saint ?s . { ?s rdf:type ?k . VALUES ( ?k ) { ( ontology:common_name ) ( ontology:holiday ) } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q15095
P417
Q502895 Q1445650 Q56061
USER
And what about Albacete?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action count
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q15095
relation P417
type Q502895
type Q1445650
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { resource:Q15095 property:P417 ?l . { VALUES ( ?d ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?l rdf:type ?d } } } . FILTER ( ?f < ?v ) . { SELECT DISTINCT ?o ( COUNT ( ?t ) AS ?f ) WHERE { { ?o property:P417 ?t . ?o rdf:type ontology:Q56061 . ?t rdf:type ontology:Q502895 } UNION { ?o rdf:type ontology:Q56061 . ?t rdf:type ontology:Q1445650 . ?o property:P417 ?t } } GROUP BY ?o } }
Albacete
action count
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Albacete
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { resource:Albacete property:patron_saint ?l . { VALUES ( ?d ) { ( ontology:common_name ) ( ontology:holiday ) } . ?l rdf:type ?d } } } . FILTER ( ?f < ?v ) . { SELECT DISTINCT ?o ( COUNT ( ?t ) AS ?f ) WHERE { { ?o property:patron_saint ?t . ?o rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:common_name } UNION { ?o rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:holiday . ?o property:patron_saint ?t } } GROUP BY ?o } }
[]
common name holiday administrative territorial entity
SYSTEM
33
Q264716 Q12883498 Q54494 Q50057 Q117388 Q6221 Q46718 Q54119 Q81258 Q47074 Q59257 Q4361 Q2914723 Q100129 Q52547 Q116440 Q2284679 Q496890 Q297224 Q259039 Q54556 Q487786 Q100943 Q244193 Q1747381 Q492475 Q334577 Q39493 Q329984 Q47034 Q215080 Q270288 Q102820
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action count
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q15095
relation P417
type Q502895
type Q1445650
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { resource:Q15095 property:P417 ?l . { VALUES ( ?d ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?l rdf:type ?d } } } . FILTER ( ?f < ?v ) . { SELECT DISTINCT ?o ( COUNT ( ?t ) AS ?f ) WHERE { { ?o property:P417 ?t . ?o rdf:type ontology:Q56061 . ?t rdf:type ontology:Q502895 } UNION { ?o rdf:type ontology:Q56061 . ?t rdf:type ontology:Q1445650 . ?o property:P417 ?t } } GROUP BY ?o } }
Carzano Pano Platres Belvedere di Spinello Cagnano Amiterno Strangolagalli Brescia Carrè San Pedro Padula Aielli Montefortino Curitiba Nemausus Calvenzano Campomaggiore Arpino General Alvear, Mendoza Balestrate Padergnone Giardinello Africo Orihuela Sorbolo Cagno Polykastro Valença Quetzaltenango Cantello Úbeda Espoo Machala Riccò del Golfo di Spezia Nibbiano
33
action count
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Albacete
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { resource:Albacete property:patron_saint ?l . { VALUES ( ?d ) { ( ontology:common_name ) ( ontology:holiday ) } . ?l rdf:type ?d } } } . FILTER ( ?f < ?v ) . { SELECT DISTINCT ?o ( COUNT ( ?t ) AS ?f ) WHERE { { ?o property:patron_saint ?t . ?o rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:common_name } UNION { ?o rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:holiday . ?o property:patron_saint ?t } } GROUP BY ?o } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories have diplomatic relations with atmost 6 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 6
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?a ) WHERE { ?g property:P530 ?d . ?g rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1048835 } GROUP BY ?g } . FILTER ( ?a <= 6 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 6
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?a ) WHERE { ?g property:diplomatic_relation ?d . ?g rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?g } . FILTER ( ?a <= 6 ) }
[]
political territorial entity political territorial entity
SYSTEM
12
Q1000 Q40 Q781 Q778 Q183 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 6
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?a ) WHERE { ?g property:P530 ?d . ?g rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1048835 } GROUP BY ?g } . FILTER ( ?a <= 6 ) }
Gabon Austria Antigua and Barbuda The Bahamas Germany Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
12
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 6
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?a ) WHERE { ?g property:diplomatic_relation ?d . ?g rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?g } . FILTER ( ?a <= 6 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with approximately 1 political territory ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 1
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { FILTER ( ?g = 1 ) . { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?g ) WHERE { ?e property:P530 ?p . ?p rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?e } }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { FILTER ( ?g = 1 ) . { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?g ) WHERE { ?e property:diplomatic_relation ?p . ?p rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
72
Q702 Q262 Q265 Q37 Q712 Q717 Q837 Q657 Q792 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q184 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 1
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { FILTER ( ?g = 1 ) . { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?g ) WHERE { ?e property:P530 ?p . ?p rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?e } }
Federated States of Micronesia Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Chad El Salvador South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Belarus Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
72
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { FILTER ( ?g = 1 ) . { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?g ) WHERE { ?e property:diplomatic_relation ?p . ?p rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } }
[]