Simple Question (Direct)
Simple Question
Q242766
P19
Q56061
USER
Which administrative territory is the birthplace of Natasa Dusev-Janics ?
(Q242766,P19,c(Q56061))
action filter_type
action find
entity Q242766
relation P19
type Q56061
['Q242766', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q242766 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Natasa Dusev-Janics
action filter_type
action find
entity Natasa Dusev-Janics
relation place of birth
type administrative territorial entity
['Natasa Dusev-Janics', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Natasa_Dusev-Janics property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q477170
SYSTEM
Bačka Palanka
Q477170
(Q242766,P19,c(Q56061))
action filter_type
action find
entity Q242766
relation P19
type Q56061
[ANSWER] is the birthplace of Natasa Dusev-Janics
['Q242766', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q242766 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Bačka Palanka
Bačka Palanka is the birthplace of Natasa Dusev-Janics
Bačka Palanka
action filter_type
action find
entity Natasa Dusev-Janics
relation place of birth
type administrative territorial entity
['Natasa Dusev-Janics', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Natasa_Dusev-Janics property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q477170
P17
Q15617994
USER
Which administrative territory is that administrative territory present in ?
(Q477170,P17,c(Q15617994))
action filter_type
action find
entity Q477170
relation P17
type Q15617994
['Q477170', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q477170 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Bačka Palanka
action filter_type
action find
entity Bačka Palanka
relation country
type designation for an administrative territorial entity
['Bačka Palanka', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Bačka_Palanka property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q403
SYSTEM
Serbia
Q403
(Q477170,P17,c(Q15617994))
action filter_type
action find
entity Q477170
relation P17
type Q15617994
That administrative territory is of [ANSWER]
['Q477170', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q477170 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Serbia
That administrative territory is of Serbia
Serbia
action filter_type
action find
entity Bačka Palanka
relation country
type designation for an administrative territorial entity
['Bačka Palanka', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Bačka_Palanka property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q477170
P190
Q13220204
USER
Which administrative country subdivision is twin city of Bačka Palanka ?
(c(Q13220204),P190,Q477170)
action filter_type
action find
entity Q477170
relation P190
type Q13220204
[{'concept': 'Q13220204'}, 'P190', 'Q477170']
SELECT DISTINCT ?n WHERE { resource:Q477170 property:P190 ?n . ?n rdf:type ontology:Q13220204 }
Bačka Palanka
action filter_type
action find
entity Bačka Palanka
relation sister city
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Bačka Palanka']
SELECT DISTINCT ?n WHERE { resource:Bačka_Palanka property:sister_city ?n . ?n rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q146453
SYSTEM
Kalush
Q146453
(c(Q13220204),P190,Q477170)
action filter_type
action find
entity Q477170
relation P190
type Q13220204
[ANSWER] is twin city of Bačka Palanka
[{'concept': 'Q13220204'}, 'P190', 'Q477170']
SELECT DISTINCT ?n WHERE { resource:Q477170 property:P190 ?n . ?n rdf:type ontology:Q13220204 }
Kalush
Kalush is twin city of Bačka Palanka
Kalush
action filter_type
action find
entity Bačka Palanka
relation sister city
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Bačka Palanka']
SELECT DISTINCT ?n WHERE { resource:Bačka_Palanka property:sister_city ?n . ?n rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q146453
P47
Q1048835
USER
Which political territory shares border with that administrative country subdivision ?
(Q146453,P47,c(Q1048835))
action filter_type
action find
entity Q146453
relation P47
type Q1048835
['Q146453', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1048835 . resource:Q146453 property:P47 ?b }
Kalush
action filter_type
action find
entity Kalush
relation shares border with
type political territorial entity
['Kalush', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:political_territorial_entity . resource:Kalush property:shares_border_with ?b }
[]
political territorial entity
Q4441911
SYSTEM
Stepanivka
Q4441911
(Q146453,P47,c(Q1048835))
action filter_type
action find
entity Q146453
relation P47
type Q1048835
[ANSWER] shares border with that administrative country subdivision
['Q146453', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1048835 . resource:Q146453 property:P47 ?b }
Stepanivka
Stepanivka shares border with that administrative country subdivision
Stepanivka
action filter_type
action find
entity Kalush
relation shares border with
type political territorial entity
['Kalush', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:political_territorial_entity . resource:Kalush property:shares_border_with ?b }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q695
P530
Q1048835 Q15617994
USER
Which administrative territories have tactful political relations with lesser number of political territories than Palau ?
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q695
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?v ) WHERE { ?d property:P530 ?z . ?d rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q1048835 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { resource:Q695 property:P530 ?f . ?f rdf:type ontology:Q1048835 } } . FILTER ( ?v < ?o ) }
Palau
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Palau
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?v ) WHERE { ?d property:diplomatic_relation ?z . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { resource:Palau property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity } } . FILTER ( ?v < ?o ) }
[]
political territorial entity designation for an administrative territorial entity
Q805 Q858 Q842
SYSTEM
Yemen, Syria, Oman
Q805 Q399 Q398 Q790 Q236 Q842 Q858
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q695
relation P530
type Q1048835
[ANSWERS] have tactful political relations with lesser number of political territories than Palau
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?v ) WHERE { ?d property:P530 ?z . ?d rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q1048835 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { resource:Q695 property:P530 ?f . ?f rdf:type ontology:Q1048835 } } . FILTER ( ?v < ?o ) }
Yemen Armenia Bahrain Haiti Montenegro Oman Syria
Yemen, Syria and Oman have tactful political relations with lesser number of political territories than Palau
Yemen Syria Oman
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Palau
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?v ) WHERE { ?d property:diplomatic_relation ?z . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { resource:Palau property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity } } . FILTER ( ?v < ?o ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q733
P530
Q1048835 Q15617994
USER
And what about Paraguay?
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q733
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?q ) WHERE { ?z property:P530 ?t . ?z rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { resource:Q733 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?q < ?m ) }
Paraguay
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Paraguay
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?q ) WHERE { ?z property:diplomatic_relation ?t . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { resource:Paraguay property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?q < ?m ) }
[]
political territorial entity designation for an administrative territorial entity
Q32 Q1011 Q805
SYSTEM
Luxembourg, Cape Verde, Yemen
Q702 Q805 Q262 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q792 Q790 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q236 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 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 Q858 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q733
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?q ) WHERE { ?z property:P530 ?t . ?z rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { resource:Q733 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?q < ?m ) }
Federated States of Micronesia Yemen Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad El Salvador Haiti South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Montenegro Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Oman 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 Syria Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
Luxembourg Cape Verde Yemen
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Paraguay
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?q ) WHERE { ?z property:diplomatic_relation ?t . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { resource:Paraguay property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?q < ?m ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q513868
P530
Q15617994
USER
Do Kraftisried have tactful political relations with those ones ?
(Q513868,P530,Q32) (Q513868,P530,Q1011) (Q513868,P530,Q805)
action is_in
entity prev_answer
action find
entity Q513868
relation P530
['Q513868', 'P530', 'Q32'] ['Q513868', 'P530', 'Q1011'] ['Q513868', 'P530', 'Q805']
ASK WHERE { resource:Q513868 property:P530 ?o . VALUES ( ?o ) { ( resource:Q702 ) ( resource:Q805 ) ( resource:Q262 ) } }
Kraftisried
action is_in
entity prev_answer
action find
entity Kraftisried
relation diplomatic relation
['Kraftisried', 'diplomatic relation', 'Luxembourg'] ['Kraftisried', 'diplomatic relation', 'Cape Verde'] ['Kraftisried', 'diplomatic relation', 'Yemen']
ASK WHERE { resource:Kraftisried property:diplomatic_relation ?o . VALUES ( ?o ) { ( resource:Federated_States_of_Micronesia ) ( resource:Yemen ) ( resource:Algeria ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q513868,P530,Q32) (Q513868,P530,Q1011) (Q513868,P530,Q805)
action is_in
entity prev_answer
action find
entity Q513868
relation P530
[ANSWER]
['Q513868', 'P530', 'Q32'] ['Q513868', 'P530', 'Q1011'] ['Q513868', 'P530', 'Q805']
ASK WHERE { resource:Q513868 property:P530 ?o . VALUES ( ?o ) { ( resource:Q702 ) ( resource:Q805 ) ( resource:Q262 ) } }
No
action is_in
entity prev_answer
action find
entity Kraftisried
relation diplomatic relation
['Kraftisried', 'diplomatic relation', 'Luxembourg'] ['Kraftisried', 'diplomatic relation', 'Cape Verde'] ['Kraftisried', 'diplomatic relation', 'Yemen']
ASK WHERE { resource:Kraftisried property:diplomatic_relation ?o . VALUES ( ?o ) { ( resource:Federated_States_of_Micronesia ) ( resource:Yemen ) ( resource:Algeria ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q805 Q7833340
P6
Q502895
USER
Is Tran Van Minh the head of the government of Yemen ?
(Q805,P6,Q7833340)
action is_in
entity Q7833340
action find
entity Q805
relation P6
['Q805', 'P6', 'Q7833340']
ASK WHERE { resource:Q805 property:P6 resource:Q7833340 }
Yemen Tran Van Minh
action is_in
entity Tran Van Minh
action find
entity Yemen
relation head of government
['Yemen', 'head of government', 'Tran Van Minh']
ASK WHERE { resource:Yemen property:head_of_government resource:Tran_Van_Minh }
[]
common name
SYSTEM
NO
(Q805,P6,Q7833340)
action is_in
entity Q7833340
action find
entity Q805
relation P6
[ANSWER]
['Q805', 'P6', 'Q7833340']
ASK WHERE { resource:Q805 property:P6 resource:Q7833340 }
No
action is_in
entity Tran Van Minh
action find
entity Yemen
relation head of government
['Yemen', 'head of government', 'Tran Van Minh']
ASK WHERE { resource:Yemen property:head_of_government resource:Tran_Van_Minh }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q477170 Q15216934
P190
Q56061
USER
Is Estabraq sister town of Bačka Palanka ?
(Q477170,P190,Q15216934)
action is_in
entity Q15216934
action find
entity Q477170
relation P190
['Q477170', 'P190', 'Q15216934']
ASK WHERE { resource:Q477170 property:P190 resource:Q15216934 }
Bačka Palanka Estabraq
action is_in
entity Estabraq
action find
entity Bačka Palanka
relation sister city
['Bačka Palanka', 'sister city', 'Estabraq']
ASK WHERE { resource:Bačka_Palanka property:sister_city resource:Estabraq }
[]
administrative territorial entity
SYSTEM
NO
(Q477170,P190,Q15216934)
action is_in
entity Q15216934
action find
entity Q477170
relation P190
[ANSWER]
['Q477170', 'P190', 'Q15216934']
ASK WHERE { resource:Q477170 property:P190 resource:Q15216934 }
No
action is_in
entity Estabraq
action find
entity Bačka Palanka
relation sister city
['Bačka Palanka', 'sister city', 'Estabraq']
ASK WHERE { resource:Bačka_Palanka property:sister_city resource:Estabraq }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with atmost 44 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 44
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?g ) WHERE { ?e property:P530 ?k . ?k rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?k } . FILTER ( ?g <= 44 ) }
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 44
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?g ) WHERE { ?e property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . FILTER ( ?g <= 44 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
164
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 44
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?g ) WHERE { ?e property:P530 ?k . ?k rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?k } . FILTER ( ?g <= 44 ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia 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 Nauru Chile Palau 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 Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
164
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 44
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?g ) WHERE { ?e property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . FILTER ( ?g <= 44 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q146453
P19 P21
Q502895
USER
Which people have place of birth as Kalush and have the gender as male ?
AND((c(Q502895),P19,Q146453), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q146453
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q146453'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?f WHERE { ?f property:P19 resource:Q146453 . ?f property:P21 resource:Q6581097 . ?f rdf:type ontology:Q502895 }
male Kalush
action filter_type
action intersection
action find_reverse
entity Kalush
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Kalush'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?f WHERE { ?f property:place_of_birth resource:Kalush . ?f property:gender resource:male . ?f rdf:type ontology:common_name }
[]
common name
Q20641401 Q7086193 Q5342684 Q7936902 Q11835276 Q4299150 Q11724580 Q7938147 Q12146411 Q1688624
SYSTEM
Some of them are Serhiy Romanishyn, Oleh Haras, Edward Dębicki, Vitaliy Nakonechnyi, Roman Rusanovskyi, Antin Mohylnytsky, Jerzy Felczyński, Vlad, Ivan Pitsan, Yevhen Arzhanov
Q20641401 Q11835276 Q1688624 Q4299150 Q1442389 Q7936902 Q4137176 Q11724580 Q7938147 Q12146411 Q517735 Q7086193 Q4759334 Q19691403 Q5342684
AND((c(Q502895),P19,Q146453), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q146453
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have place of birth as Kalush and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q146453'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?f WHERE { ?f property:P19 resource:Q146453 . ?f property:P21 resource:Q6581097 . ?f rdf:type ontology:Q502895 }
Serhiy Romanishyn Roman Rusanovskyi Yevhen Arzhanov Antin Mohylnytsky Franciszek Jan Smolka Vitaliy Nakonechnyi Yevhen Herenda Jerzy Felczyński Vlad Ivan Pitsan Vasyl Fedoryshyn Oleh Haras Andrii Kviatkovskyi Rudolf Różycki Edward Dębicki
Serhiy Romanishyn, Oleh Haras, Edward Dębicki, Vitaliy Nakonechnyi, Roman Rusanovskyi, Antin Mohylnytsky, Jerzy Felczyński, Vlad, Ivan Pitsan and Yevhen Arzhanov have place of birth as Kalush and have the gender as male
Serhiy Romanishyn Oleh Haras Edward Dębicki Vitaliy Nakonechnyi Roman Rusanovskyi Antin Mohylnytsky Jerzy Felczyński Vlad Ivan Pitsan Yevhen Arzhanov
action filter_type
action intersection
action find_reverse
entity Kalush
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Kalush'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?f WHERE { ?f property:place_of_birth resource:Kalush . ?f property:gender resource:male . ?f rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7086193
P106
Q12737077
USER
Which occupations have that person as his/her 's career ?
(Q7086193,P106,c(Q12737077))
action filter_type
action find
entity Q7086193
relation P106
type Q12737077
['Q7086193', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q7086193 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Oleh Haras
action filter_type
action find
entity Oleh Haras
relation occupation
type occupation
['Oleh Haras', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Oleh_Haras property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q7086193
SYSTEM
Did you mean Oleh Haras ?
Q20641401 Q7086193 Q5342684 Q7936902 Q11835276 Q4299150 Q11724580 Q7938147 Q12146411 Q1688624
(Q20641401,P106,c(Q12737077)) (Q7086193,P106,c(Q12737077)) (Q5342684,P106,c(Q12737077)) (Q7936902,P106,c(Q12737077)) (Q11835276,P106,c(Q12737077)) (Q4299150,P106,c(Q12737077)) (Q11724580,P106,c(Q12737077)) (Q7938147,P106,c(Q12737077)) (Q12146411,P106,c(Q12737077)) (Q1688624,P106,c(Q12737077))
[ANSWER]
['Q20641401', 'P106', {'concept': 'Q12737077'}] ['Q7086193', 'P106', {'concept': 'Q12737077'}] ['Q5342684', 'P106', {'concept': 'Q12737077'}] ['Q7936902', 'P106', {'concept': 'Q12737077'}] ['Q11835276', 'P106', {'concept': 'Q12737077'}] ['Q4299150', 'P106', {'concept': 'Q12737077'}] ['Q11724580', 'P106', {'concept': 'Q12737077'}] ['Q7938147', 'P106', {'concept': 'Q12737077'}] ['Q12146411', 'P106', {'concept': 'Q12737077'}] ['Q1688624', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q7086193 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Serhiy Romanishyn Oleh Haras Edward Dębicki Vitaliy Nakonechnyi Roman Rusanovskyi Antin Mohylnytsky Jerzy Felczyński Vlad Ivan Pitsan Yevhen Arzhanov
Did you mean Oleh Haras ?
Oleh Haras
['Serhiy Romanishyn', 'occupation', {'concept': 'occupation'}] ['Oleh Haras', 'occupation', {'concept': 'occupation'}] ['Edward Dębicki', 'occupation', {'concept': 'occupation'}] ['Vitaliy Nakonechnyi', 'occupation', {'concept': 'occupation'}] ['Roman Rusanovskyi', 'occupation', {'concept': 'occupation'}] ['Antin Mohylnytsky', 'occupation', {'concept': 'occupation'}] ['Jerzy Felczyński', 'occupation', {'concept': 'occupation'}] ['Vlad', 'occupation', {'concept': 'occupation'}] ['Ivan Pitsan', 'occupation', {'concept': 'occupation'}] ['Yevhen Arzhanov', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Oleh_Haras property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
Yes
(Q7086193,P106,c(Q12737077))
['Q7086193', 'P106', {'concept': 'Q12737077'}]
['Oleh Haras', 'occupation', {'concept': 'occupation'}]
[]
Q628099 Q937857
SYSTEM
association football manager, association football player
Q628099 Q937857
(Q7086193,P106,c(Q12737077))
action filter_type
action find
entity Q7086193
relation P106
type Q12737077
Player [ANSWERS] have that person as his/her 's career
['Q7086193', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q7086193 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
association football manager association football player
Player association football manager and association football player have that person as his/her 's career
association football manager association football player
action filter_type
action find
entity Oleh Haras
relation occupation
type occupation
['Oleh Haras', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Oleh_Haras property:occupation ?h . ?h rdf:type ontology:occupation }
[]