Simple Question (Direct)
Simple Question
Q11736173
P19
Q486972
USER
Which human settlement was Karol Lutostański born at ?
(Q11736173,P19,c(Q486972))
action filter_type
action find
entity Q11736173
relation P19
type Q486972
['Q11736173', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?o WHERE { resource:Q11736173 property:P19 ?o . ?o rdf:type ontology:Q486972 }
Karol Lutostański
action filter_type
action find
entity Karol Lutostański
relation place of birth
type human settlement
['Karol Lutostański', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?o WHERE { resource:Karol_Lutostański property:place_of_birth ?o . ?o rdf:type ontology:human_settlement }
[]
human settlement
Q104740
SYSTEM
Radom
Q104740
(Q11736173,P19,c(Q486972))
action filter_type
action find
entity Q11736173
relation P19
type Q486972
Karol Lutostański was born in [ANSWER]
['Q11736173', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?o WHERE { resource:Q11736173 property:P19 ?o . ?o rdf:type ontology:Q486972 }
Radom
Karol Lutostański was born in Radom
Radom
action filter_type
action find
entity Karol Lutostański
relation place of birth
type human settlement
['Karol Lutostański', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?o WHERE { resource:Karol_Lutostański property:place_of_birth ?o . ?o rdf:type ontology:human_settlement }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11736173
P27
Q15617994
USER
Which administrative territory is the native country of Karol Lutostański ?
(Q11736173,P27,c(Q15617994))
action filter_type
action find
entity Q11736173
relation P27
type Q15617994
['Q11736173', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q15617994 . resource:Q11736173 property:P27 ?j }
Karol Lutostański
action filter_type
action find
entity Karol Lutostański
relation country of citizenship
type designation for an administrative territorial entity
['Karol Lutostański', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Karol_Lutostański property:country_of_citizenship ?j }
[]
designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(Q11736173,P27,c(Q15617994))
action filter_type
action find
entity Q11736173
relation P27
type Q15617994
The [ANSWER] is the native country of Karol Lutostański
['Q11736173', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q15617994 . resource:Q11736173 property:P27 ?j }
Poland
The Poland is the native country of Karol Lutostański
Poland
action filter_type
action find
entity Karol Lutostański
relation country of citizenship
type designation for an administrative territorial entity
['Karol Lutostański', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Karol_Lutostański property:country_of_citizenship ?j }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11736173
P21
Q290
USER
What is the sex of that person ?
(Q36,P21,c(Q290))
action filter_type
action find
entity Q11736173
relation P21
type Q290
['Q36', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q11736173 property:P21 ?e . ?e rdf:type ontology:Q290 }
Karol Lutostański
action filter_type
action find
entity Karol Lutostański
relation gender
type sex
['Poland', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Karol_Lutostański property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q36,P21,c(Q290))
action filter_type
action find
entity Q11736173
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q36', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q11736173 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Karol Lutostański
relation gender
type sex
['Poland', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Karol_Lutostański property:gender ?e . ?e rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q36
P463
Q56061 Q874405
USER
How many administrative territories and social groups were Poland a member of ?
(Q36,P463,c(Q56061)) (Q36,P463,c(Q874405))
action count
action union
action filter_type
action find
entity Q36
relation P463
type Q56061
action filter_type
action find
entity Q36
relation P463
type Q874405
['Q36', 'P463', {'concept': 'Q56061'}] ['Q36', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { ?b rdf:type ?d . VALUES ( ?d ) { ( ontology:Q56061 ) ( ontology:Q874405 ) } }
Poland
action count
action union
action filter_type
action find
entity Poland
relation member of
type administrative territorial entity
action filter_type
action find
entity Poland
relation member of
type social group
['Poland', 'member of', {'concept': 'administrative territorial entity'}] ['Poland', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { ?b rdf:type ?d . VALUES ( ?d ) { ( ontology:administrative_territorial_entity ) ( ontology:social_group ) } }
[]
administrative territorial entity social group
SYSTEM
1 administrative territories and 4 social groups
Q376150 Q782942 Q458 Q8908 Q7817
(Q36,P463,c(Q56061)) (Q36,P463,c(Q874405))
action count
action union
action filter_type
action find
entity Q36
relation P463
type Q56061
action filter_type
action find
entity Q36
relation P463
type Q874405
[ANSWER]
['Q36', 'P463', {'concept': 'Q56061'}] ['Q36', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { ?b rdf:type ?d . VALUES ( ?d ) { ( ontology:Q56061 ) ( ontology:Q874405 ) } }
International Telecommunication Union Australia Group European Union Council of Europe World Health Organization
1 administrative territories and 4 social groups
action count
action union
action filter_type
action find
entity Poland
relation member of
type administrative territorial entity
action filter_type
action find
entity Poland
relation member of
type social group
['Poland', 'member of', {'concept': 'administrative territorial entity'}] ['Poland', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { ?b rdf:type ?d . VALUES ( ?d ) { ( ontology:administrative_territorial_entity ) ( ontology:social_group ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q15617994 Q1076486 Q2668072
USER
Which administrative territories are around 479 sports venues and collections situated in ?
(c(Q1076486)|c(Q2668072),P17,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q1076486
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2668072
value 479
[[{'concept': 'Q1076486'}, {'concept': 'Q2668072'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?p = 479 ) . { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?p ) WHERE { ?q rdf:type ?c . VALUES ( ?c ) { ( ontology:Q1076486 ) ( ontology:Q2668072 ) } } GROUP BY ?b } }
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type sports venue
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type collection
value 479
[[{'concept': 'sports venue'}, {'concept': 'collection'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?p = 479 ) . { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?p ) WHERE { ?q rdf:type ?c . VALUES ( ?c ) { ( ontology:sports_venue ) ( ontology:collection ) } } GROUP BY ?b } }
[]
designation for an administrative territorial entity sports venue collection
Q38 Q55 Q142
SYSTEM
Italy, Netherlands, France
Q142 Q55 Q145 Q38 Q17 Q29
(c(Q1076486)|c(Q2668072),P17,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q1076486
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2668072
value 479
[ANSWERS] are around 479 sports venues and collections situated in
[[{'concept': 'Q1076486'}, {'concept': 'Q2668072'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?p = 479 ) . { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?p ) WHERE { ?q rdf:type ?c . VALUES ( ?c ) { ( ontology:Q1076486 ) ( ontology:Q2668072 ) } } GROUP BY ?b } }
France Netherlands United Kingdom Italy Japan Spain
Italy, Netherlands and France are around 479 sports venues and collections situated in
Italy Netherlands France
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type sports venue
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type collection
value 479
[[{'concept': 'sports venue'}, {'concept': 'collection'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?p = 479 ) . { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?p ) WHERE { ?q rdf:type ?c . VALUES ( ?c ) { ( ontology:sports_venue ) ( ontology:collection ) } } GROUP BY ?b } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5498189 Q11736173
P19 P20
Q56061
USER
Which administrative territories did the expiration of Karol Lutostański occur or are the birthplace of Frederick Karl ?
OR((Q11736173,P20,c(Q56061)), (Q5498189,P19,c(Q56061)))
action filter_type
action union
action find
entity Q11736173
relation P20
action find
entity Q5498189
relation P19
type Q56061
{'OR': [['Q11736173', 'P20', {'concept': 'Q56061'}], ['Q5498189', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q11736173 property:P20 ?z } UNION { resource:Q5498189 property:P19 ?z } } . ?z rdf:type ontology:Q56061 }
Frederick Karl Karol Lutostański
action filter_type
action union
action find
entity Karol Lutostański
relation place of death
action find
entity Frederick Karl
relation place of birth
type administrative territorial entity
{'OR': [['Karol Lutostański', 'place of death', {'concept': 'administrative territorial entity'}], ['Frederick Karl', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Karol_Lutostański property:place_of_death ?z } UNION { resource:Frederick_Karl property:place_of_birth ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q270 Q18419
SYSTEM
Warsaw, Brooklyn
Q270 Q18419
OR((Q11736173,P20,c(Q56061)), (Q5498189,P19,c(Q56061)))
action filter_type
action union
action find
entity Q11736173
relation P20
action find
entity Q5498189
relation P19
type Q56061
The expiration of Karol Lutostański occurred in [ANSWERS] or are the birthplace of Frederick Karl
{'OR': [['Q11736173', 'P20', {'concept': 'Q56061'}], ['Q5498189', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q11736173 property:P20 ?z } UNION { resource:Q5498189 property:P19 ?z } } . ?z rdf:type ontology:Q56061 }
Warsaw Brooklyn
The expiration of Karol Lutostański occurred in Warsaw and Brooklyn or are the birthplace of Frederick Karl
Warsaw Brooklyn
action filter_type
action union
action find
entity Karol Lutostański
relation place of death
action find
entity Frederick Karl
relation place of birth
type administrative territorial entity
{'OR': [['Karol Lutostański', 'place of death', {'concept': 'administrative territorial entity'}], ['Frederick Karl', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Karol_Lutostański property:place_of_death ?z } UNION { resource:Frederick_Karl property:place_of_birth ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q15617994 Q201658 Q838948
USER
How many administrative territories are the origins of around 3746 film genres or works of art ?
(c(Q201658)|c(Q838948),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
value 3746
[[{'concept': 'Q201658'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) ?d WHERE { VALUES ( ?l ) { ( ontology:Q838948 ) ( ontology:Q201658 ) } . ?e rdf:type ?l } GROUP BY ?d } . FILTER ( ?s = 3746 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
value 3746
[[{'concept': 'film genre'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) ?d WHERE { VALUES ( ?l ) { ( ontology:work_of_art ) ( ontology:film_genre ) } . ?e rdf:type ?l } GROUP BY ?d } . FILTER ( ?s = 3746 ) }
[]
designation for an administrative territorial entity film genre work of art
SYSTEM
165
Q805 Q804 Q801 Q800 Q1462 Q419 Q414 Q55 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(Q201658)|c(Q838948),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
value 3746
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) ?d WHERE { VALUES ( ?l ) { ( ontology:Q838948 ) ( ontology:Q201658 ) } . ?e rdf:type ?l } GROUP BY ?d } . FILTER ( ?s = 3746 ) }
Yemen Panama Israel Costa Rica Sardinia Peru Argentina Netherlands 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
165
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
value 3746
[[{'concept': 'film genre'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) ?d WHERE { VALUES ( ?l ) { ( ontology:work_of_art ) ( ontology:film_genre ) } . ?e rdf:type ?l } GROUP BY ?d } . FILTER ( ?s = 3746 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7901 Q36
P47
Q1048835
USER
Which political territories are bordered by Poland or Vogelsbergkreis ?
OR((Q36,P47,c(Q1048835)), (Q7901,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q36
relation P47
action find
entity Q7901
relation P47
type Q1048835
{'OR': [['Q36', 'P47', {'concept': 'Q1048835'}], ['Q7901', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q36 property:P47 ?q } UNION { resource:Q7901 property:P47 ?q } } . ?q rdf:type ontology:Q1048835 }
Vogelsbergkreis Poland
action filter_type
action union
action find
entity Poland
relation shares border with
action find
entity Vogelsbergkreis
relation shares border with
type political territorial entity
{'OR': [['Poland', 'shares border with', {'concept': 'political territorial entity'}], ['Vogelsbergkreis', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Poland property:shares_border_with ?q } UNION { resource:Vogelsbergkreis property:shares_border_with ?q } } . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q7899 Q183 Q7911
SYSTEM
Fulda, Germany, Main-Kinzig-Kreis
Q7899 Q183 Q7911
OR((Q36,P47,c(Q1048835)), (Q7901,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q36
relation P47
action find
entity Q7901
relation P47
type Q1048835
[ANSWERS] are bordered by Poland or Vogelsbergkreis
{'OR': [['Q36', 'P47', {'concept': 'Q1048835'}], ['Q7901', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q36 property:P47 ?q } UNION { resource:Q7901 property:P47 ?q } } . ?q rdf:type ontology:Q1048835 }
Fulda Germany Main-Kinzig-Kreis
Fulda, Germany and Main-Kinzig-Kreis are bordered by Poland or Vogelsbergkreis
Fulda Germany Main-Kinzig-Kreis
action filter_type
action union
action find
entity Poland
relation shares border with
action find
entity Vogelsbergkreis
relation shares border with
type political territorial entity
{'OR': [['Poland', 'shares border with', {'concept': 'political territorial entity'}], ['Vogelsbergkreis', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Poland property:shares_border_with ?q } UNION { resource:Vogelsbergkreis property:shares_border_with ?q } } . ?q rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which administrative territories have diplomatic relations with approximately 3 political territories ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 3
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?i = 3 ) . { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?i ) WHERE { ?g property:P530 ?k . ?g rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 } GROUP BY ?g } }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 3
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?i = 3 ) . { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?i ) WHERE { ?g property:diplomatic_relation ?k . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?g } }
[]
political territorial entity designation for an administrative territorial entity
Q30 Q159 Q55
SYSTEM
United States of America, Russia, Netherlands
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q851 Q733 Q734 Q736 Q233 Q20 Q1041 Q27 Q843 Q184 Q1029 Q1028 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 3
[ANSWERS] have diplomatic relations with approximately 3 political territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?i = 3 ) . { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?i ) WHERE { ?g property:P530 ?k . ?g rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 } GROUP BY ?g } }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Saudi Arabia Paraguay Guyana Ecuador Malta Norway Senegal Ireland Pakistan Belarus Mozambique Morocco Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
United States of America, Russia and Netherlands have diplomatic relations with approximately 3 political territories
United States of America Russia Netherlands
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 3
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?i = 3 ) . { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?i ) WHERE { ?g property:diplomatic_relation ?k . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?g } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q184
P530
Q15617994
USER
Do Belarus have diplomatic associations with those ones ?
(Q184,P530,Q30) (Q184,P530,Q159) (Q184,P530,Q55)
action is_in
entity prev_answer
action find
entity Q184
relation P530
['Q184', 'P530', 'Q30'] ['Q184', 'P530', 'Q159'] ['Q184', 'P530', 'Q55']
ASK WHERE { resource:Q184 property:P530 ?u . VALUES ( ?u ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q800 ) } }
Belarus
action is_in
entity prev_answer
action find
entity Belarus
relation diplomatic relation
['Belarus', 'diplomatic relation', 'United States of America'] ['Belarus', 'diplomatic relation', 'Russia'] ['Belarus', 'diplomatic relation', 'Netherlands']
ASK WHERE { resource:Belarus property:diplomatic_relation ?u . VALUES ( ?u ) { ( resource:Panama ) ( resource:Israel ) ( resource:Costa_Rica ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q184,P530,Q30) (Q184,P530,Q159) (Q184,P530,Q55)
action is_in
entity prev_answer
action find
entity Q184
relation P530
[ANSWER]
['Q184', 'P530', 'Q30'] ['Q184', 'P530', 'Q159'] ['Q184', 'P530', 'Q55']
ASK WHERE { resource:Q184 property:P530 ?u . VALUES ( ?u ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q800 ) } }
Yes
action is_in
entity prev_answer
action find
entity Belarus
relation diplomatic relation
['Belarus', 'diplomatic relation', 'United States of America'] ['Belarus', 'diplomatic relation', 'Russia'] ['Belarus', 'diplomatic relation', 'Netherlands']
ASK WHERE { resource:Belarus property:diplomatic_relation ?u . VALUES ( ?u ) { ( resource:Panama ) ( resource:Israel ) ( resource:Costa_Rica ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q159
P85
Q484692
USER
Which are the national anthems of Russia ?
(Q159,P85,c(Q484692))
action filter_type
action find
entity Q159
relation P85
type Q484692
['Q159', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?k WHERE { resource:Q159 property:P85 ?k . ?k rdf:type ontology:Q484692 }
Russia
action filter_type
action find
entity Russia
relation anthem
type hymn
['Russia', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?k WHERE { resource:Russia property:anthem ?k . ?k rdf:type ontology:hymn }
[]
hymn
Q2058180 Q1225991
SYSTEM
Patrioticheskaya Pesnya, National Anthem of Russia
Q2058180 Q1225991
(Q159,P85,c(Q484692))
action filter_type
action find
entity Q159
relation P85
type Q484692
The national anthems of Russia are the [ANSWERS]
['Q159', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?k WHERE { resource:Q159 property:P85 ?k . ?k rdf:type ontology:Q484692 }
Patrioticheskaya Pesnya National Anthem of Russia
The national anthems of Russia are the Patrioticheskaya Pesnya and National Anthem of Russia
Patrioticheskaya Pesnya National Anthem of Russia
action filter_type
action find
entity Russia
relation anthem
type hymn
['Russia', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?k WHERE { resource:Russia property:anthem ?k . ?k rdf:type ontology:hymn }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q601252
Q484692
USER
And what about Banovina of Croatia?
(Q601252,P85,c(Q484692))
action filter_type
action find
entity Q601252
relation P85
type Q484692
['Q601252', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q484692 . resource:Q601252 property:P85 ?i }
Banovina of Croatia
action filter_type
action find
entity Banovina of Croatia
relation anthem
type hymn
['Banovina of Croatia', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:hymn . resource:Banovina_of_Croatia property:anthem ?i }
[]
hymn
Q1317821
SYSTEM
National Anthem of the Kingdom of Yugoslavia
Q1317821
(Q601252,P85,c(Q484692))
action filter_type
action find
entity Q601252
relation P85
type Q484692
[ANSWER]
['Q601252', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q484692 . resource:Q601252 property:P85 ?i }
National Anthem of the Kingdom of Yugoslavia
National Anthem of the Kingdom of Yugoslavia
action filter_type
action find
entity Banovina of Croatia
relation anthem
type hymn
['Banovina of Croatia', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:hymn . resource:Banovina_of_Croatia property:anthem ?i }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P85
Q7275 Q1048835
USER
How many states and political territories have that hymn as their national anthem ?
(c(Q7275),P85,Q1317821) (c(Q1048835),P85,Q1317821) (c(Q7275),P85,Q1317821) (c(Q1048835),P85,Q1317821)
action count
action union
action filter_type
action find_reverse
entity Q1317821
relation P85
type Q7275
action filter_type
action find_reverse
entity Q1317821
relation P85
type Q1048835
[{'concept': 'Q7275'}, 'P85', 'Q1317821'] [{'concept': 'Q1048835'}, 'P85', 'Q1317821'] [{'concept': 'Q7275'}, 'P85', 'Q1317821'] [{'concept': 'Q1048835'}, 'P85', 'Q1317821']
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { ?i property:P85 resource:Q1317821 . ?i rdf:type ontology:Q7275 } UNION { ?i rdf:type ontology:Q1048835 . ?i property:P85 resource:Q1317821 } }
action count
action union
action filter_type
action find_reverse
entity National Anthem of the Kingdom of Yugoslavia
relation anthem
type state
action filter_type
action find_reverse
entity National Anthem of the Kingdom of Yugoslavia
relation anthem
type political territorial entity
[{'concept': 'state'}, 'anthem', 'National Anthem of the Kingdom of Yugoslavia'] [{'concept': 'political territorial entity'}, 'anthem', 'National Anthem of the Kingdom of Yugoslavia'] [{'concept': 'state'}, 'anthem', 'National Anthem of the Kingdom of Yugoslavia'] [{'concept': 'political territorial entity'}, 'anthem', 'National Anthem of the Kingdom of Yugoslavia']
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { ?i property:anthem resource:National_Anthem_of_the_Kingdom_of_Yugoslavia . ?i rdf:type ontology:state } UNION { ?i rdf:type ontology:political_territorial_entity . ?i property:anthem resource:National_Anthem_of_the_Kingdom_of_Yugoslavia } }
[]
state political territorial entity
SYSTEM
1 states and 1 political territories
Q601252 Q191077
(c(Q7275),P85,Q1317821) (c(Q1048835),P85,Q1317821) (c(Q7275),P85,Q1317821) (c(Q1048835),P85,Q1317821)
action count
action union
action filter_type
action find_reverse
entity Q1317821
relation P85
type Q7275
action filter_type
action find_reverse
entity Q1317821
relation P85
type Q1048835
[ANSWER]
[{'concept': 'Q7275'}, 'P85', 'Q1317821'] [{'concept': 'Q1048835'}, 'P85', 'Q1317821'] [{'concept': 'Q7275'}, 'P85', 'Q1317821'] [{'concept': 'Q1048835'}, 'P85', 'Q1317821']
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { ?i property:P85 resource:Q1317821 . ?i rdf:type ontology:Q7275 } UNION { ?i rdf:type ontology:Q1048835 . ?i property:P85 resource:Q1317821 } }
Banovina of Croatia Kingdom of Yugoslavia
1 states and 1 political territories
action count
action union
action filter_type
action find_reverse
entity National Anthem of the Kingdom of Yugoslavia
relation anthem
type state
action filter_type
action find_reverse
entity National Anthem of the Kingdom of Yugoslavia
relation anthem
type political territorial entity
[{'concept': 'state'}, 'anthem', 'National Anthem of the Kingdom of Yugoslavia'] [{'concept': 'political territorial entity'}, 'anthem', 'National Anthem of the Kingdom of Yugoslavia'] [{'concept': 'state'}, 'anthem', 'National Anthem of the Kingdom of Yugoslavia'] [{'concept': 'political territorial entity'}, 'anthem', 'National Anthem of the Kingdom of Yugoslavia']
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { ?i property:anthem resource:National_Anthem_of_the_Kingdom_of_Yugoslavia . ?i rdf:type ontology:state } UNION { ?i rdf:type ontology:political_territorial_entity . ?i property:anthem resource:National_Anthem_of_the_Kingdom_of_Yugoslavia } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q271864 Q1317821
P85
Q7275
USER
Which states have an anthem named National Anthem of the Kingdom of Yugoslavia or National anthem of Mongolia ?
OR((c(Q7275),P85,Q1317821), (c(Q7275),P85,Q271864))
action filter_type
action union
action find_reverse
entity Q1317821
relation P85
action find_reverse
entity Q271864
relation P85
type Q7275
{'OR': [[{'concept': 'Q7275'}, 'P85', 'Q1317821'], [{'concept': 'Q7275'}, 'P85', 'Q271864']]}
SELECT DISTINCT ?d WHERE { { ?d property:P85 ?j . VALUES ( ?j ) { ( resource:Q1317821 ) ( resource:Q271864 ) } } . ?d rdf:type ontology:Q7275 }
National anthem of Mongolia National Anthem of the Kingdom of Yugoslavia
action filter_type
action union
action find_reverse
entity National Anthem of the Kingdom of Yugoslavia
relation anthem
action find_reverse
entity National anthem of Mongolia
relation anthem
type state
{'OR': [[{'concept': 'state'}, 'anthem', 'National Anthem of the Kingdom of Yugoslavia'], [{'concept': 'state'}, 'anthem', 'National anthem of Mongolia']]}
SELECT DISTINCT ?d WHERE { { ?d property:anthem ?j . VALUES ( ?j ) { ( resource:National_Anthem_of_the_Kingdom_of_Yugoslavia ) ( resource:National_anthem_of_Mongolia ) } } . ?d rdf:type ontology:state }
[]
state
Q191077 Q212056
SYSTEM
Kingdom of Yugoslavia, Mongolian People's Republic
Q191077 Q212056
OR((c(Q7275),P85,Q1317821), (c(Q7275),P85,Q271864))
action filter_type
action union
action find_reverse
entity Q1317821
relation P85
action find_reverse
entity Q271864
relation P85
type Q7275
[ANSWERS] have an anthem named National Anthem of the Kingdom of Yugoslavia or National anthem of Mongolia
{'OR': [[{'concept': 'Q7275'}, 'P85', 'Q1317821'], [{'concept': 'Q7275'}, 'P85', 'Q271864']]}
SELECT DISTINCT ?d WHERE { { ?d property:P85 ?j . VALUES ( ?j ) { ( resource:Q1317821 ) ( resource:Q271864 ) } } . ?d rdf:type ontology:Q7275 }
Kingdom of Yugoslavia Mongolian People's Republic
Kingdom of Yugoslavia and Mongolian People's Republic have an anthem named National Anthem of the Kingdom of Yugoslavia or National anthem of Mongolia
Kingdom of Yugoslavia Mongolian People's Republic
action filter_type
action union
action find_reverse
entity National Anthem of the Kingdom of Yugoslavia
relation anthem
action find_reverse
entity National anthem of Mongolia
relation anthem
type state
{'OR': [[{'concept': 'state'}, 'anthem', 'National Anthem of the Kingdom of Yugoslavia'], [{'concept': 'state'}, 'anthem', 'National anthem of Mongolia']]}
SELECT DISTINCT ?d WHERE { { ?d property:anthem ?j . VALUES ( ?j ) { ( resource:National_Anthem_of_the_Kingdom_of_Yugoslavia ) ( resource:National_anthem_of_Mongolia ) } } . ?d rdf:type ontology:state }
[]