Simple Question (Direct)
Simple Question
Q5250728
P734
Q82799
USER
Who is associated with Yoshitaka Watanabe ?
(Q5250728,P734,c(Q82799))
action filter_type
action find
entity Q5250728
relation P734
type Q82799
['Q5250728', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?v WHERE { resource:Q5250728 property:P734 ?v . ?v rdf:type ontology:Q82799 }
Yoshitaka Watanabe
action filter_type
action find
entity Yoshitaka Watanabe
relation family name
type name
['Yoshitaka Watanabe', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?v WHERE { resource:Yoshitaka_Watanabe property:family_name ?v . ?v rdf:type ontology:name }
[]
name
Q10983405
SYSTEM
Watanabe
Q10983405
(Q5250728,P734,c(Q82799))
action filter_type
action find
entity Q5250728
relation P734
type Q82799
Mori [ANSWER] is associated with Yoshitaka [ANSWER]
['Q5250728', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?v WHERE { resource:Q5250728 property:P734 ?v . ?v rdf:type ontology:Q82799 }
Watanabe
Mori Watanabe is associated with Yoshitaka Watanabe
Watanabe
action filter_type
action find
entity Yoshitaka Watanabe
relation family name
type name
['Yoshitaka Watanabe', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?v WHERE { resource:Yoshitaka_Watanabe property:family_name ?v . ?v rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5250728
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
(Q10983405,P27,c(Q15617994))
action filter_type
action find
entity Q5250728
relation P27
type Q15617994
['Q10983405', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q5250728 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Yoshitaka Watanabe
action filter_type
action find
entity Yoshitaka Watanabe
relation country of citizenship
type designation for an administrative territorial entity
['Watanabe', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Yoshitaka_Watanabe property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q10983405,P27,c(Q15617994))
action filter_type
action find
entity Q5250728
relation P27
type Q15617994
To [ANSWER] is the native country of that person
['Q10983405', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q5250728 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Japan
To Japan is the native country of that person
Japan
action filter_type
action find
entity Yoshitaka Watanabe
relation country of citizenship
type designation for an administrative territorial entity
['Watanabe', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Yoshitaka_Watanabe property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q17 Q242692 Q30
P530
Q15617994
USER
Does Japan have tactful political relations with Gerano and United States of America ?
(Q17,P530,Q242692) (Q17,P530,Q30)
action is_in
entity Q17
action intersection
action find_reverse
entity Q242692
relation P530
action find_reverse
entity Q30
relation P530
['Q17', 'P530', 'Q242692'] ['Q17', 'P530', 'Q30']
ASK WHERE { resource:Q17 property:P530 resource:Q242692 . resource:Q17 property:P530 resource:Q30 }
Japan Gerano United States of America
action is_in
entity Japan
action intersection
action find_reverse
entity Gerano
relation diplomatic relation
action find_reverse
entity United States of America
relation diplomatic relation
['Japan', 'diplomatic relation', 'Gerano'] ['Japan', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Japan property:diplomatic_relation resource:Gerano . resource:Japan property:diplomatic_relation resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q17,P530,Q242692) (Q17,P530,Q30)
action is_in
entity Q17
action intersection
action find_reverse
entity Q242692
relation P530
action find_reverse
entity Q30
relation P530
[ANSWER]
['Q17', 'P530', 'Q242692'] ['Q17', 'P530', 'Q30']
ASK WHERE { resource:Q17 property:P530 resource:Q242692 . resource:Q17 property:P530 resource:Q30 }
NO and YES respectively
action is_in
entity Japan
action intersection
action find_reverse
entity Gerano
relation diplomatic relation
action find_reverse
entity United States of America
relation diplomatic relation
['Japan', 'diplomatic relation', 'Gerano'] ['Japan', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Japan property:diplomatic_relation resource:Gerano . resource:Japan property:diplomatic_relation resource:United_States_of_America }
[]
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 relations with around 24 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 24
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?a ) WHERE { ?o property:P530 ?q . ?o rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } GROUP BY ?o } . FILTER ( ?a = 24 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 24
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?a ) WHERE { ?o property:diplomatic_relation ?q . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . FILTER ( ?a = 24 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
9
Q801 Q805 Q142 Q159 Q30 Q929 Q114 Q858 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 24
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?a ) WHERE { ?o property:P530 ?q . ?o rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } GROUP BY ?o } . FILTER ( ?a = 24 ) }
Israel Yemen France Russia United States of America Central African Republic Kenya Syria Zambia
9
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 24
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?a ) WHERE { ?o property:diplomatic_relation ?q . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . FILTER ( ?a = 24 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q15617994 Q14524493 Q82799
USER
How many administrative territories are the etymology of around 1 terrains and names ?
(c(Q14524493)|c(Q82799),P138,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q14524493
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q82799
value 1
[[{'concept': 'Q14524493'}, {'concept': 'Q82799'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { FILTER ( ?r = 1 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) ?i WHERE { { ?b property:P138 ?i . ?i rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q14524493 } UNION { ?i rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q82799 . ?b property:P138 ?i } } GROUP BY ?i } }
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type terrain
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type name
value 1
[[{'concept': 'terrain'}, {'concept': 'name'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { FILTER ( ?r = 1 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) ?i WHERE { { ?b property:named_after ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:terrain } UNION { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:name . ?b property:named_after ?i } } GROUP BY ?i } }
[]
designation for an administrative territorial entity terrain name
SYSTEM
4
Q1273 Q622505 Q50932 Q573523
(c(Q14524493)|c(Q82799),P138,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q14524493
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q82799
value 1
[ANSWER]
[[{'concept': 'Q14524493'}, {'concept': 'Q82799'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { FILTER ( ?r = 1 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) ?i WHERE { { ?b property:P138 ?i . ?i rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q14524493 } UNION { ?i rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q82799 . ?b property:P138 ?i } } GROUP BY ?i } }
Tuscany Rauen Helpt Flechtingen
4
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type terrain
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type name
value 1
[[{'concept': 'terrain'}, {'concept': 'name'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { FILTER ( ?r = 1 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) ?i WHERE { { ?b property:named_after ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:terrain } UNION { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:name . ?b property:named_after ?i } } GROUP BY ?i } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q221
P17
Q15617994 Q3947 Q1048835
USER
How many administrative territories are approximately the same number of houses and political territories a part of as Republic of Macedonia ?
(c(Q3947)|c(Q1048835),P17,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3947
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q221
relation P17
type Q3947
type Q1048835
[[{'concept': 'Q3947'}, {'concept': 'Q1048835'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?t ) AS ?f ) WHERE { VALUES ( ?l ) { ( ontology:Q3947 ) ( ontology:Q1048835 ) } . ?t rdf:type ?l } GROUP BY ?o } . FILTER ( ?f = ?x ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { ?n property:P17 resource:Q221 . { { ?n rdf:type ontology:Q1048835 } UNION { ?n rdf:type ontology:Q3947 } } } } }
Republic of Macedonia
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type house
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Republic of Macedonia
relation country
type house
type political territorial entity
[[{'concept': 'house'}, {'concept': 'political territorial entity'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?t ) AS ?f ) WHERE { VALUES ( ?l ) { ( ontology:house ) ( ontology:political_territorial_entity ) } . ?t rdf:type ?l } GROUP BY ?o } . FILTER ( ?f = ?x ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { ?n property:country resource:Republic_of_Macedonia . { { ?n rdf:type ontology:political_territorial_entity } UNION { ?n rdf:type ontology:house } } } } }
[]
designation for an administrative territorial entity house political territorial entity
SYSTEM
232
Q702 Q804 Q801 Q800 Q1256 Q709 Q398 Q805 Q339952 Q419 Q270508 Q668 Q684030 Q2172530 Q414 Q142 Q55 Q12536 Q262 Q148 Q783 Q784 Q265 Q214 Q640426 Q36678 Q736029 Q712 Q711 Q710 Q717 Q837 Q565812 Q187035 Q252 Q399 Q1462 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q790 Q517333 Q796 Q794 Q954 Q889 Q2001966 Q326029 Q884 Q958 Q881 Q986 Q219 Q153529 Q695316 Q4628 Q826 Q165040 Q822 Q241 Q242 Q244 Q315667 Q811 Q736 Q153136 Q1210 Q33 Q921 Q31 Q30 Q924 Q36 Q34 Q928 Q155019 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q107426 Q424 Q730 Q1282 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1042 Q1041 Q27 Q28 Q177323 Q313175 Q149621 Q1025 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q836 Q34762 Q1458 Q786 Q32 Q228 Q3462133 Q227 Q225 Q224 Q223 Q222 Q221 Q815731 Q47261 Q96 Q229 Q347 Q1050 Q977 Q17 Q704288 Q10957559 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q389004 Q754 Q750 Q213 Q211 Q217 Q1013 Q215 Q218 Q160307 Q164092 Q37 Q1483510 Q912 Q2662372 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q829700 Q1009 Q1008 Q971 Q970 Q239502 Q683 Q15581 Q34020 Q2380910 Q686 Q193152 Q760 Q574 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q874 Q79 Q696651 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q148499 Q1011 Q945 Q678 Q8575586 Q529605 Q1039 Q672 Q33788 Q929 Q11024667 Q863 Q1049 Q869 Q426025 Q953
(c(Q3947)|c(Q1048835),P17,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3947
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q221
relation P17
type Q3947
type Q1048835
[ANSWER]
[[{'concept': 'Q3947'}, {'concept': 'Q1048835'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?t ) AS ?f ) WHERE { VALUES ( ?l ) { ( ontology:Q3947 ) ( ontology:Q1048835 ) } . ?t rdf:type ?l } GROUP BY ?o } . FILTER ( ?f = ?x ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { ?n property:P17 resource:Q221 . { { ?n rdf:type ontology:Q1048835 } UNION { ?n rdf:type ontology:Q3947 } } } } }
Federated States of Micronesia Panama Israel Costa Rica Liguria Marshall Islands Bahrain Yemen Principality of Orange-Nassau Peru Andora India Principality of Serbia Electorate of Württemberg Argentina France Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Dominica Uzbekistan Slovakia Stahnsdorf West Bank Nassau-Siegen Fiji Mongolia Kiribati Venezuela Nepal Principality of Calenberg Principality of Albania Indonesia Armenia Sardinia Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Haiti Principality of Polotsk Iraq Iran Zimbabwe Afghanistan Company rule in India Duchy of Brunswick South Korea South Sudan Vietnam Eritrea Bulgaria Duchy of Milan Schwarzburg-Rudolstadt Faroe Islands Maldives Duchy of Parma Lebanon Cuba Belize Barbados Saxe-Weimar Nicaragua Ecuador Habsburg Empire Lombardy Finland Brunei Belgium United States of America Tanzania Poland Sweden Philippines Duchy of Lorraine Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Anjou Cambodia Suriname Lazio Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Seychelles Senegal Ireland Hungary developing country Saxe-Lauenburg district Mauritania Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Myanmar Principality of Bayreuth Calabria Dominican Republic Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Duchy of Bavaria Mexico Cyprus Liechtenstein Swaziland Djibouti Japan Duchy of Holstein Moldavia Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Wallachia Trinidad and Tobago Bolivia Czech Republic Latvia Republic of Moldova Lesotho Slovenia Romania Fatimid caliphate Duchy of Saxony Lithuania Principality of Wales Mali Principality of Minsk Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Saxe-Jena Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Samoa Principality of Catalonia Niue Duchy of Zaslawye Vanuatu Great Moravia Saint Lucia East Timor Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Turkmenistan Egypt Saxe-Eisenach Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Margraviate of Brandenburg Cape Verde Togo Tonga Umayyad Caliphate Electorate of Hesse Sao Tomé and Príncipe Tuvalu New Caledonia Central African Republic Duchy of Mecklenburg-Schwerin Tajikistan Sudan Thailand Duchy of Savoy Zambia
232
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type house
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Republic of Macedonia
relation country
type house
type political territorial entity
[[{'concept': 'house'}, {'concept': 'political territorial entity'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?t ) AS ?f ) WHERE { VALUES ( ?l ) { ( ontology:house ) ( ontology:political_territorial_entity ) } . ?t rdf:type ?l } GROUP BY ?o } . FILTER ( ?f = ?x ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { ?n property:country resource:Republic_of_Macedonia . { { ?n rdf:type ontology:political_territorial_entity } UNION { ?n rdf:type ontology:house } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q222
P17
Q15617994 Q3947 Q1048835
USER
And what about Albania?
(c(Q3947)|c(Q1048835),P17,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3947
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q222
relation P17
type Q3947
type Q1048835
[[{'concept': 'Q3947'}, {'concept': 'Q1048835'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) ?c WHERE { { ?u property:P17 ?c . ?c rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q3947 } UNION { ?c rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q1048835 . ?u property:P17 ?c } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { ?v property:P17 resource:Q222 . { { ?v rdf:type ontology:Q3947 } UNION { ?v rdf:type ontology:Q1048835 } } } } . FILTER ( ?o = ?g ) }
Albania
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type house
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Albania
relation country
type house
type political territorial entity
[[{'concept': 'house'}, {'concept': 'political territorial entity'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) ?c WHERE { { ?u property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:house } UNION { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:political_territorial_entity . ?u property:country ?c } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { ?v property:country resource:Albania . { { ?v rdf:type ontology:house } UNION { ?v rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?o = ?g ) }
[]
designation for an administrative territorial entity house political territorial entity
SYSTEM
232
Q702 Q804 Q801 Q800 Q1256 Q709 Q398 Q805 Q339952 Q419 Q270508 Q668 Q684030 Q2172530 Q414 Q142 Q55 Q12536 Q262 Q148 Q783 Q784 Q265 Q214 Q640426 Q36678 Q736029 Q712 Q711 Q710 Q717 Q837 Q565812 Q187035 Q252 Q399 Q1462 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q790 Q517333 Q796 Q794 Q954 Q889 Q2001966 Q326029 Q884 Q958 Q881 Q986 Q219 Q153529 Q695316 Q4628 Q826 Q165040 Q822 Q241 Q242 Q244 Q315667 Q811 Q736 Q153136 Q1210 Q33 Q921 Q31 Q30 Q924 Q36 Q34 Q928 Q155019 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q107426 Q424 Q730 Q1282 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1042 Q1041 Q27 Q28 Q177323 Q313175 Q149621 Q1025 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q836 Q34762 Q1458 Q786 Q32 Q228 Q3462133 Q227 Q225 Q224 Q223 Q222 Q221 Q815731 Q47261 Q96 Q229 Q347 Q1050 Q977 Q17 Q704288 Q10957559 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q389004 Q754 Q750 Q213 Q211 Q217 Q1013 Q215 Q218 Q160307 Q164092 Q37 Q1483510 Q912 Q2662372 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q829700 Q1009 Q1008 Q971 Q970 Q239502 Q683 Q15581 Q34020 Q2380910 Q686 Q193152 Q760 Q574 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q874 Q79 Q696651 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q148499 Q1011 Q945 Q678 Q8575586 Q529605 Q1039 Q672 Q33788 Q929 Q11024667 Q863 Q1049 Q869 Q426025 Q953
(c(Q3947)|c(Q1048835),P17,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3947
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q222
relation P17
type Q3947
type Q1048835
[ANSWER]
[[{'concept': 'Q3947'}, {'concept': 'Q1048835'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) ?c WHERE { { ?u property:P17 ?c . ?c rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q3947 } UNION { ?c rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q1048835 . ?u property:P17 ?c } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { ?v property:P17 resource:Q222 . { { ?v rdf:type ontology:Q3947 } UNION { ?v rdf:type ontology:Q1048835 } } } } . FILTER ( ?o = ?g ) }
Federated States of Micronesia Panama Israel Costa Rica Liguria Marshall Islands Bahrain Yemen Principality of Orange-Nassau Peru Andora India Principality of Serbia Electorate of Württemberg Argentina France Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Dominica Uzbekistan Slovakia Stahnsdorf West Bank Nassau-Siegen Fiji Mongolia Kiribati Venezuela Nepal Principality of Calenberg Principality of Albania Indonesia Armenia Sardinia Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Haiti Principality of Polotsk Iraq Iran Zimbabwe Afghanistan Company rule in India Duchy of Brunswick South Korea South Sudan Vietnam Eritrea Bulgaria Duchy of Milan Schwarzburg-Rudolstadt Faroe Islands Maldives Duchy of Parma Lebanon Cuba Belize Barbados Saxe-Weimar Nicaragua Ecuador Habsburg Empire Lombardy Finland Brunei Belgium United States of America Tanzania Poland Sweden Philippines Duchy of Lorraine Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Anjou Cambodia Suriname Lazio Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Seychelles Senegal Ireland Hungary developing country Saxe-Lauenburg district Mauritania Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Myanmar Principality of Bayreuth Calabria Dominican Republic Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Duchy of Bavaria Mexico Cyprus Liechtenstein Swaziland Djibouti Japan Duchy of Holstein Moldavia Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Wallachia Trinidad and Tobago Bolivia Czech Republic Latvia Republic of Moldova Lesotho Slovenia Romania Fatimid caliphate Duchy of Saxony Lithuania Principality of Wales Mali Principality of Minsk Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Saxe-Jena Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Samoa Principality of Catalonia Niue Duchy of Zaslawye Vanuatu Great Moravia Saint Lucia East Timor Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Turkmenistan Egypt Saxe-Eisenach Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Margraviate of Brandenburg Cape Verde Togo Tonga Umayyad Caliphate Electorate of Hesse Sao Tomé and Príncipe Tuvalu New Caledonia Central African Republic Duchy of Mecklenburg-Schwerin Tajikistan Sudan Thailand Duchy of Savoy Zambia
232
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type house
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Albania
relation country
type house
type political territorial entity
[[{'concept': 'house'}, {'concept': 'political territorial entity'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) ?c WHERE { { ?u property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:house } UNION { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:political_territorial_entity . ?u property:country ?c } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { ?v property:country resource:Albania . { { ?v rdf:type ontology:house } UNION { ?v rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?o = ?g ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17
P291
Q26971562
USER
What was published in Japan ?
(c(Q26971562),P291,Q17)
action filter_type
action find_reverse
entity Q17
relation P291
type Q26971562
[{'concept': 'Q26971562'}, 'P291', 'Q17']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q26971562 . ?g property:P291 resource:Q17 }
Japan
action filter_type
action find_reverse
entity Japan
relation place of publication
type comic format
[{'concept': 'comic format'}, 'place of publication', 'Japan']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:comic_format . ?g property:place_of_publication resource:Japan }
[]
comic format
Q15041698
SYSTEM
360°
Q15041698
(c(Q26971562),P291,Q17)
action filter_type
action find_reverse
entity Q17
relation P291
type Q26971562
Japan [ANSWER] was published in Japan
[{'concept': 'Q26971562'}, 'P291', 'Q17']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q26971562 . ?g property:P291 resource:Q17 }
360°
Japan 360° was published in Japan
360°
action filter_type
action find_reverse
entity Japan
relation place of publication
type comic format
[{'concept': 'comic format'}, 'place of publication', 'Japan']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:comic_format . ?g property:place_of_publication resource:Japan }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q13149161 Q17
P530 P17
Q15617994
USER
Which administrative territories holds diplomatic relationship with Japan or do Purba Tua belong to ?
OR((Q17,P530,c(Q15617994)), (Q13149161,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q17
relation P530
action find
entity Q13149161
relation P17
type Q15617994
{'OR': [['Q17', 'P530', {'concept': 'Q15617994'}], ['Q13149161', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q17 property:P530 ?w } UNION { resource:Q13149161 property:P17 ?w } } . ?w rdf:type ontology:Q15617994 }
Purba Tua Japan
action filter_type
action union
action find
entity Japan
relation diplomatic relation
action find
entity Purba Tua
relation country
type designation for an administrative territorial entity
{'OR': [['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Purba Tua', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Japan property:diplomatic_relation ?w } UNION { resource:Purba_Tua property:country ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q227 Q801 Q142 Q884 Q159 Q711 Q145 Q30 Q869
SYSTEM
Some of them are Italy, Azerbaijan, Israel, France, South Korea, Russia, Mongolia, United Kingdom, United States of America, Thailand
Q227 Q142 Q711 Q884 Q159 Q801 Q145 Q155 Q30 Q252 Q869 Q38
OR((Q17,P530,c(Q15617994)), (Q13149161,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q17
relation P530
action find
entity Q13149161
relation P17
type Q15617994
[ANSWERS] hold diplomatic relationship with Japan or do Purba Tua belong to
{'OR': [['Q17', 'P530', {'concept': 'Q15617994'}], ['Q13149161', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q17 property:P530 ?w } UNION { resource:Q13149161 property:P17 ?w } } . ?w rdf:type ontology:Q15617994 }
Azerbaijan France Mongolia South Korea Russia Israel United Kingdom Brazil United States of America Indonesia Thailand Italy
Italy, Azerbaijan, Israel, France, South Korea, Russia, Mongolia, United Kingdom, United States of America and Thailand hold diplomatic relationship with Japan or do Purba Tua belong to
Italy Azerbaijan Israel France South Korea Russia Mongolia United Kingdom United States of America Thailand
action filter_type
action union
action find
entity Japan
relation diplomatic relation
action find
entity Purba Tua
relation country
type designation for an administrative territorial entity
{'OR': [['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Purba Tua', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Japan property:diplomatic_relation ?w } UNION { resource:Purba_Tua property:country ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q4813419 Q38
P530 P17
Q15617994
USER
Which administrative territories holds diplomatic relationship with Italy and are Izadkhvast District present in ?
AND((Q38,P530,c(Q15617994)), (Q4813419,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q38
relation P530
action find
entity Q4813419
relation P17
type Q15617994
{'AND': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q4813419', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { resource:Q4813419 property:P17 ?g . resource:Q38 property:P530 ?g . ?g rdf:type ontology:Q15617994 }
Izadkhvast District Italy
action filter_type
action intersection
action find
entity Italy
relation diplomatic relation
action find
entity Izadkhvast District
relation country
type designation for an administrative territorial entity
{'AND': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Izadkhvast District', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { resource:Izadkhvast_District property:country ?g . resource:Italy property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q794
SYSTEM
Iran
Q794
AND((Q38,P530,c(Q15617994)), (Q4813419,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q38
relation P530
action find
entity Q4813419
relation P17
type Q15617994
[ANSWER] holds diplomatic relationship with Italy and are Izadkhvast District present in
{'AND': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q4813419', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { resource:Q4813419 property:P17 ?g . resource:Q38 property:P530 ?g . ?g rdf:type ontology:Q15617994 }
Iran
Iran holds diplomatic relationship with Italy and are Izadkhvast District present in
Iran
action filter_type
action intersection
action find
entity Italy
relation diplomatic relation
action find
entity Izadkhvast District
relation country
type designation for an administrative territorial entity
{'AND': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Izadkhvast District', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { resource:Izadkhvast_District property:country ?g . resource:Italy property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2342494 Q2031291
USER
How many administrative territories are the origin of less number of collectables or releases than that administrative territory ?
(c(Q2342494)|c(Q2031291),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q794
relation P495
type Q2342494
type Q2031291
[[{'concept': 'Q2342494'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { ?n property:P495 resource:Q794 . { { ?n rdf:type ontology:Q2342494 } UNION { ?n rdf:type ontology:Q2031291 } } } } . FILTER ( ?p < ?g ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) ?r WHERE { { ?b property:P495 ?r . ?r rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q2342494 } UNION { ?b property:P495 ?r . ?r rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q2031291 } } GROUP BY ?r } }
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_multi_types
action find_reverse
entity Iran
relation country of origin
type collectable
type release
[[{'concept': 'collectable'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { ?n property:country_of_origin resource:Iran . { { ?n rdf:type ontology:collectable } UNION { ?n rdf:type ontology:release } } } } . FILTER ( ?p < ?g ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) ?r WHERE { { ?b property:country_of_origin ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:collectable } UNION { ?b property:country_of_origin ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:release } } GROUP BY ?r } }
[]
designation for an administrative territorial entity collectable release
SYSTEM
122
Q805 Q804 Q800 Q1462 Q12536 Q262 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q1460 Q398 Q403 Q657 Q792 Q790 Q4628 Q796 Q954 Q889 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q32 Q924 Q423 Q983 Q851 Q733 Q29999 Q819 Q424 Q730 Q1013 Q159626 Q236 Q232 Q233 Q238 Q1045 Q1044 Q1041 Q921 Q1049 Q1025 Q1027 Q1020 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q221 Q229 Q347 Q1036 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q962 Q963 Q115 Q114 Q117 Q754 Q750 Q212 Q211 Q217 Q214 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q869 Q953
(c(Q2342494)|c(Q2031291),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q794
relation P495
type Q2342494
type Q2031291
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { ?n property:P495 resource:Q794 . { { ?n rdf:type ontology:Q2342494 } UNION { ?n rdf:type ontology:Q2031291 } } } } . FILTER ( ?p < ?g ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) ?r WHERE { { ?b property:P495 ?r . ?r rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q2342494 } UNION { ?b property:P495 ?r . ?r rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q2031291 } } GROUP BY ?r } }
Yemen Panama Costa Rica Sardinia Abbasid caliphate Algeria Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Sicily Bahrain Serbia Chad El Salvador Haiti Faroe Islands Iraq Zimbabwe Afghanistan South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Luxembourg Tanzania North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Laos Cambodia Suriname Lesotho Württemberg Montenegro Kazakhstan Malta San Marino Somalia Sierra Leone Senegal Brunei Sudan Mauritania Mauritius Malawi Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Republic of Macedonia Cyprus Liechtenstein Uganda Rwanda Democratic Republic of the Congo Niger Namibia Burkina Faso Burundi Benin Botswana Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Latvia Republic of Moldova Slovakia 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 Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Thailand Zambia
122
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_multi_types
action find_reverse
entity Iran
relation country of origin
type collectable
type release
[[{'concept': 'collectable'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { ?n property:country_of_origin resource:Iran . { { ?n rdf:type ontology:collectable } UNION { ?n rdf:type ontology:release } } } } . FILTER ( ?p < ?g ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) ?r WHERE { { ?b property:country_of_origin ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:collectable } UNION { ?b property:country_of_origin ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:release } } GROUP BY ?r } }
[]