Simple Question (Direct)
Simple Question
Q1875893
P19
Q2983893
USER
Which urban district was Charles Malik Whitfield born at ?
(Q1875893,P19,c(Q2983893))
action filter_type
action find
entity Q1875893
relation P19
type Q2983893
['Q1875893', 'P19', {'concept': 'Q2983893'}]
SELECT DISTINCT ?x WHERE { resource:Q1875893 property:P19 ?x . ?x rdf:type ontology:Q2983893 }
Charles Malik Whitfield
action filter_type
action find
entity Charles Malik Whitfield
relation place of birth
type urban district
['Charles Malik Whitfield', 'place of birth', {'concept': 'urban district'}]
SELECT DISTINCT ?x WHERE { resource:Charles_Malik_Whitfield property:place_of_birth ?x . ?x rdf:type ontology:urban_district }
[]
urban district
Q18426
SYSTEM
The Bronx
Q18426
(Q1875893,P19,c(Q2983893))
action filter_type
action find
entity Q1875893
relation P19
type Q2983893
Charles Malik Whitfield was born in [ANSWER]
['Q1875893', 'P19', {'concept': 'Q2983893'}]
SELECT DISTINCT ?x WHERE { resource:Q1875893 property:P19 ?x . ?x rdf:type ontology:Q2983893 }
The Bronx
Charles Malik Whitfield was born in The Bronx
The Bronx
action filter_type
action find
entity Charles Malik Whitfield
relation place of birth
type urban district
['Charles Malik Whitfield', 'place of birth', {'concept': 'urban district'}]
SELECT DISTINCT ?x WHERE { resource:Charles_Malik_Whitfield property:place_of_birth ?x . ?x rdf:type ontology:urban_district }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1875893
P27
Q15617994
USER
Which administrative territory is Charles Malik Whitfield a civilian of ?
(Q1875893,P27,c(Q15617994))
action filter_type
action find
entity Q1875893
relation P27
type Q15617994
['Q1875893', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q1875893 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Charles Malik Whitfield
action filter_type
action find
entity Charles Malik Whitfield
relation country of citizenship
type designation for an administrative territorial entity
['Charles Malik Whitfield', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Charles_Malik_Whitfield property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1875893,P27,c(Q15617994))
action filter_type
action find
entity Q1875893
relation P27
type Q15617994
[ANSWER] is Charles Malik Whitfield a civilian of
['Q1875893', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q1875893 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
United States of America
United States of America is Charles Malik Whitfield a civilian of
United States of America
action filter_type
action find
entity Charles Malik Whitfield
relation country of citizenship
type designation for an administrative territorial entity
['Charles Malik Whitfield', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Charles_Malik_Whitfield property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5394132
Q15617994
USER
And what about Ernesto Brown?
(Q5394132,P27,c(Q15617994))
action filter_type
action find
entity Q5394132
relation P27
type Q15617994
['Q5394132', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q5394132 property:P27 ?u }
Ernesto Brown
action filter_type
action find
entity Ernesto Brown
relation country of citizenship
type designation for an administrative territorial entity
['Ernesto Brown', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ernesto_Brown property:country_of_citizenship ?u }
[]
designation for an administrative territorial entity
Q414
SYSTEM
Argentina
Q414
(Q5394132,P27,c(Q15617994))
action filter_type
action find
entity Q5394132
relation P27
type Q15617994
[ANSWER]
['Q5394132', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q5394132 property:P27 ?u }
Argentina
Argentina
action filter_type
action find
entity Ernesto Brown
relation country of citizenship
type designation for an administrative territorial entity
['Ernesto Brown', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ernesto_Brown property:country_of_citizenship ?u }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q414 Q4314954 Q82635
P530
Q15617994
USER
Does that administrative territory have tactful political relations with ethnic district and Calenzano ?
(Q414,P530,Q4314954) (Q414,P530,Q82635)
action is_in
entity Q414
action intersection
action find_reverse
entity Q4314954
relation P530
action find_reverse
entity Q82635
relation P530
['Q414', 'P530', 'Q4314954'] ['Q414', 'P530', 'Q82635']
ASK WHERE { resource:Q414 property:P530 resource:Q82635 . resource:Q414 property:P530 resource:Q4314954 }
Argentina ethnic district Calenzano
action is_in
entity Argentina
action intersection
action find_reverse
entity ethnic district
relation diplomatic relation
action find_reverse
entity Calenzano
relation diplomatic relation
['Argentina', 'diplomatic relation', 'ethnic district'] ['Argentina', 'diplomatic relation', 'Calenzano']
ASK WHERE { resource:Argentina property:diplomatic_relation resource:Calenzano . resource:Argentina property:diplomatic_relation resource:ethnic_district }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q414,P530,Q4314954) (Q414,P530,Q82635)
action is_in
entity Q414
action intersection
action find_reverse
entity Q4314954
relation P530
action find_reverse
entity Q82635
relation P530
[ANSWER]
['Q414', 'P530', 'Q4314954'] ['Q414', 'P530', 'Q82635']
ASK WHERE { resource:Q414 property:P530 resource:Q82635 . resource:Q414 property:P530 resource:Q4314954 }
No
action is_in
entity Argentina
action intersection
action find_reverse
entity ethnic district
relation diplomatic relation
action find_reverse
entity Calenzano
relation diplomatic relation
['Argentina', 'diplomatic relation', 'ethnic district'] ['Argentina', 'diplomatic relation', 'Calenzano']
ASK WHERE { resource:Argentina property:diplomatic_relation resource:Calenzano . resource:Argentina property:diplomatic_relation resource:ethnic_district }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q30 Q11869 Q12816343
P6
Q502895
USER
Does United States of America have its government headed by William Henry Harrison and Ernő Számadó ?
(Q30,P6,Q11869) (Q30,P6,Q12816343)
action is_in
entity Q30
action intersection
action find_reverse
entity Q11869
relation P6
action find_reverse
entity Q12816343
relation P6
['Q30', 'P6', 'Q11869'] ['Q30', 'P6', 'Q12816343']
ASK WHERE { resource:Q30 property:P6 resource:Q11869 . resource:Q30 property:P6 resource:Q12816343 }
United States of America William Henry Harrison Ernő Számadó
action is_in
entity United States of America
action intersection
action find_reverse
entity William Henry Harrison
relation head of government
action find_reverse
entity Ernő Számadó
relation head of government
['United States of America', 'head of government', 'William Henry Harrison'] ['United States of America', 'head of government', 'Ernő Számadó']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:William_Henry_Harrison . resource:United_States_of_America property:head_of_government resource:Ernő_Számadó }
[]
common name
SYSTEM
YES and NO respectively
(Q30,P6,Q11869) (Q30,P6,Q12816343)
action is_in
entity Q30
action intersection
action find_reverse
entity Q11869
relation P6
action find_reverse
entity Q12816343
relation P6
[ANSWER]
['Q30', 'P6', 'Q11869'] ['Q30', 'P6', 'Q12816343']
ASK WHERE { resource:Q30 property:P6 resource:Q11869 . resource:Q30 property:P6 resource:Q12816343 }
YES and NO respectively
action is_in
entity United States of America
action intersection
action find_reverse
entity William Henry Harrison
relation head of government
action find_reverse
entity Ernő Számadó
relation head of government
['United States of America', 'head of government', 'William Henry Harrison'] ['United States of America', 'head of government', 'Ernő Számadó']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:William_Henry_Harrison . resource:United_States_of_America property:head_of_government resource:Ernő_Számadó }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q18426 Q30
P17
Q15617994
USER
Is The Bronx a part of United States of America ?
(Q18426,P17,Q30)
action is_in
entity Q30
action find
entity Q18426
relation P17
['Q18426', 'P17', 'Q30']
ASK WHERE { resource:Q18426 property:P17 resource:Q30 }
The Bronx United States of America
action is_in
entity United States of America
action find
entity The Bronx
relation country
['The Bronx', 'country', 'United States of America']
ASK WHERE { resource:The_Bronx property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q18426,P17,Q30)
action is_in
entity Q30
action find
entity Q18426
relation P17
[ANSWER]
['Q18426', 'P17', 'Q30']
ASK WHERE { resource:Q18426 property:P17 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity The Bronx
relation country
['The Bronx', 'country', 'United States of America']
ASK WHERE { resource:The_Bronx property:country resource:United_States_of_America }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with max number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?q ) { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?s ) WHERE { ?j property:P530 ?k . ?j rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?j } } . FILTER ( ?d = ?q ) . { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?d ) WHERE { ?y property:P530 ?r . ?y rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } GROUP BY ?y } }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?q ) { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?s ) WHERE { ?j property:diplomatic_relation ?k . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } } . FILTER ( ?d = ?q ) . { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?d ) WHERE { ?y property:diplomatic_relation ?r . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
And [ANSWER] have diplomatic relations with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?q ) { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?s ) WHERE { ?j property:P530 ?k . ?j rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?j } } . FILTER ( ?d = ?q ) . { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?d ) WHERE { ?y property:P530 ?r . ?y rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } GROUP BY ?y } }
Georgia
And Georgia have diplomatic relations with max number of administrative territories
Georgia
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?q ) { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?s ) WHERE { ?j property:diplomatic_relation ?k . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } } . FILTER ( ?d = ?q ) . { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?d ) WHERE { ?y property:diplomatic_relation ?r . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2342494 Q838948
USER
How many administrative territories are the origins of less number of collectables and works of art than that administrative territory ?
(c(Q2342494)|c(Q838948),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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q230
relation P495
type Q2342494
type Q838948
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { ?k property:P495 resource:Q230 . { VALUES ( ?u ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?k rdf:type ?u } } } . FILTER ( ?r < ?c ) . { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?r ) WHERE { VALUES ( ?w ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?o rdf:type ?w } GROUP BY ?n } }
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 work of art
action count
action filter_multi_types
action find_reverse
entity Georgia
relation country of origin
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { ?k property:country_of_origin resource:Georgia . { VALUES ( ?u ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?k rdf:type ?u } } } . FILTER ( ?r < ?c ) . { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?r ) WHERE { VALUES ( ?w ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?o rdf:type ?w } GROUP BY ?n } }
[]
designation for an administrative territorial entity collectable work of art
SYSTEM
112
Q805 Q804 Q800 Q1462 Q12536 Q262 Q783 Q265 Q37 Q36678 Q712 Q711 Q1460 Q399 Q398 Q657 Q792 Q790 Q4628 Q796 Q954 Q889 Q958 Q986 Q826 Q822 Q242 Q244 Q811 Q153136 Q924 Q423 Q983 Q851 Q733 Q29999 Q819 Q730 Q1013 Q159626 Q236 Q232 Q233 Q238 Q1045 Q1044 Q1041 Q921 Q1049 Q1025 Q1027 Q1020 Q184 Q1029 Q736 Q786 Q227 Q225 Q223 Q221 Q229 Q347 Q1036 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q962 Q963 Q115 Q114 Q117 Q754 Q750 Q212 Q211 Q217 Q214 Q215 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q953
(c(Q2342494)|c(Q838948),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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q230
relation P495
type Q2342494
type Q838948
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { ?k property:P495 resource:Q230 . { VALUES ( ?u ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?k rdf:type ?u } } } . FILTER ( ?r < ?c ) . { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?r ) WHERE { VALUES ( ?w ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?o rdf:type ?w } GROUP BY ?n } }
Yemen Panama Costa Rica Sardinia Abbasid caliphate Algeria Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Sicily Armenia Bahrain Chad El Salvador Haiti Faroe Islands Iraq Zimbabwe Afghanistan South Sudan Eritrea Maldives Lebanon Belize Barbados Nicaragua Habsburg Empire Tanzania North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Laos Suriname Lesotho Württemberg Montenegro Kazakhstan Malta San Marino Somalia Sierra Leone Senegal Brunei Sudan Mauritania Mauritius Malawi Belarus Mozambique Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina 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 Slovenia Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Zambia
112
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 work of art
action count
action filter_multi_types
action find_reverse
entity Georgia
relation country of origin
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { ?k property:country_of_origin resource:Georgia . { VALUES ( ?u ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?k rdf:type ?u } } } . FILTER ( ?r < ?c ) . { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?r ) WHERE { VALUES ( ?w ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?o rdf:type ?w } GROUP BY ?n } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q15617994 Q79007 Q1048835
USER
How many administrative territories are namesakes of atmost 2 streets and political territories ?
(c(Q79007)|c(Q1048835),P138,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q79007
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q1048835
value 2
[[{'concept': 'Q79007'}, {'concept': 'Q1048835'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?q ) WHERE { { ?m property:P138 ?j . ?j rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q79007 } UNION { ?j rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q1048835 . ?m property:P138 ?j } } GROUP BY ?j } . FILTER ( ?q <= 2 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type street
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type political territorial entity
value 2
[[{'concept': 'street'}, {'concept': 'political territorial entity'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?q ) WHERE { { ?m property:named_after ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:street } UNION { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:political_territorial_entity . ?m property:named_after ?j } } GROUP BY ?j } . FILTER ( ?q <= 2 ) }
[]
designation for an administrative territorial entity street political territorial entity
SYSTEM
383
Q804 Q572949 Q801 Q800 Q103408 Q419 Q81077 Q414 Q1799797 Q55 Q2871 Q490521 Q786 Q40806 Q157598 Q224139 Q3898 Q159 Q155 Q12689 Q52240 Q3476 Q17686 Q46490 Q3372 Q243474 Q7281814 Q549449 Q13376 Q13373 Q42803 Q82670 Q636991 Q739 Q100125 Q730 Q733 Q6681 Q736 Q12798 Q586072 Q1280 Q1282 Q17827 Q1273 Q913434 Q1279 Q186538 Q640473 Q189 Q184 Q1028 Q1458 Q570120 Q18421666 Q167215 Q42777 Q159856 Q6274 Q279028 Q2396564 Q53127 Q298 Q115 Q114 Q41158 Q626792 Q549749 Q40871 Q43055 Q42509 Q629830 Q1427674 Q53334 Q3922 Q42839 Q7603016 Q42835 Q505191 Q279373 Q3697039 Q58457 Q3326 Q214929 Q627935 Q2719360 Q948 Q42942 Q1243 Q519157 Q3266 Q3105 Q269476 Q33788 Q6122 Q42931 Q700831 Q80599 Q705 Q539059 Q668 Q185619 Q5084 Q6231 Q660185 Q6237 Q5642 Q99950 Q45 Q792 Q790 Q796 Q21200959 Q794 Q889 Q884 Q12788 Q26727498 Q632209 Q241 Q11340 Q11343 Q585248 Q155622 Q3798 Q12515 Q33 Q32 Q31 Q30 Q37 Q36 Q34 Q39 Q38 Q1023890 Q101226 Q42906 Q40516 Q1987554 Q159626 Q236 Q232 Q129003 Q81729 Q1101 Q1206596 Q391167 Q3038 Q52981 Q3139 Q514208 Q3468865 Q36784 Q622505 Q555328 Q1037 Q1033 Q1030 Q53873 Q18040 Q3926245 Q697 Q186115 Q39985 Q750 Q50156 Q42749 Q570035 Q540441 Q13137 Q1630 Q2009 Q39912 Q498534 Q40866 Q40862 Q191 Q1435624 Q79 Q769621 Q77 Q46130 Q512943 Q305352 Q192917 Q94979 Q39395 Q176 Q487929 Q674852 Q478142 Q1951 Q1952 Q536647 Q116706 Q1256 Q40641 Q634084 Q40131 Q102634 Q100368 Q3278 Q19207 Q522459 Q144711 Q712 Q717 Q42993 Q488513 Q243311 Q503160 Q2993085 Q42996 Q954 Q690417 Q826 Q822 Q1142326 Q244095 Q223459 Q42419 Q502434 Q13645 Q155019 Q6986 Q258974 Q1527970 Q107426 Q14943702 Q681329 Q12661 Q20 Q5274 Q28 Q29 Q111460 Q50932 Q20489 Q390125 Q205050 Q581067 Q894049 Q40611 Q161825 Q359324 Q34607 Q223 Q222 Q221 Q229 Q228 Q580447 Q10957559 Q23178 Q968 Q965 Q2152015 Q333389 Q627223 Q2938 Q1210 Q1216 Q503757 Q917 Q916 Q1005 Q573523 Q40497 Q2742 Q1438 Q81740 Q837 Q17669 Q810 Q811 Q813 Q255361 Q819 Q654138 Q81261 Q493437 Q863 Q574429 Q869 Q111543 Q102736 Q269174 Q278221 Q12434 Q20077 Q31872 Q95067 Q95066 Q142 Q53246 Q1948 Q262 Q148 Q157266 Q3319482 Q264620 Q39971 Q73532 Q42626 Q42628 Q499045 Q490167 Q20103 Q10312 Q2009898 Q774 Q42245 Q4431 Q770 Q131633 Q2596432 Q928 Q19306 Q759201 Q424 Q675616 Q854 Q9574 Q2790 Q566435 Q496885 Q42984 Q552822 Q6998 Q155144 Q645814 Q2139159 Q1041 Q216977 Q489929 Q629664 Q1904 Q393594 Q41003 Q347 Q43046 Q81138 Q17 Q15059063 Q42668 Q3940173 Q4066675 Q138823 Q697787 Q47578 Q11337 Q211 Q159605 Q215 Q1837 Q501626 Q554187 Q23247 Q974 Q971 Q496978 Q23238 Q11119 Q566795 Q631654 Q42192 Q645340 Q9187 Q42926 Q775 Q14870 Q100041 Q1019 Q772 Q1014 Q1016 Q16104 Q243337 Q42441 Q182248 Q20458 Q20517
(c(Q79007)|c(Q1048835),P138,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q79007
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q1048835
value 2
[ANSWER]
[[{'concept': 'Q79007'}, {'concept': 'Q1048835'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?q ) WHERE { { ?m property:P138 ?j . ?j rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q79007 } UNION { ?j rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q1048835 . ?m property:P138 ?j } } GROUP BY ?j } . FILTER ( ?q <= 2 ) }
Panama Solnhofen Israel Costa Rica Adro Peru Montecorvino Rovella Argentina Wolfskehlen Netherlands Hagen Strausberg Dominican Republic Pedavena Kulmbach Frasso Sabino Castrop-Rauxel Russia Brazil Pas-de-Calais Pontremoli L'Aquila Tortona Arcole Eure Rees Radyr Prince of Orange Pistoia Lucca Olginate Fiesole Jacobsdorf Colombia Calcio, Lombardy Suriname Paraguay Crotone Ecuador Vendée Chorin Umbria Lazio Moncalvo Tuscany Les Halles Marche Arzachena Hohenstein Iceland Belarus Morocco Calabria Hollenstedt Loguivy-de-la-Mer Cernusco Lombardone Abbiategrasso Duchy of Brabant Sondrio Simmering Mallee Farra d'Isonzo Chile Ethiopia Kenya Cortina d'Ampezzo Fehrbellin Heinsen Livigno Gorgonzola Bussero Meerfeld Wernborn Remanzacco Detmold Brivio Mitino Calco Leuna Rovereto Crescenzago Caiazzo Corrèze Pitigliano Berkenbrück Duchy of Luxembourg Tunisia Lierna Veneto Templin Charente Vosges Perinaldo New Caledonia Asti Merate Sögel Auletta Zeeland Kelbra India Cernusco sul Naviglio hamlet Cremona Huangpu District Lecco Brilon Predappio Portugal El Salvador Haiti Iraq Keroland Iran Afghanistan South Korea Val-de-Marne Mirafiori Basedow Cuba Sprockhövel Wetter (Ruhr) Glienicke/Nordbahn Bernkastel-Kues Flensburg Gard Finland Luxembourg Belgium United States of America Lithuania Poland Sweden Switzerland Italy Huangpu District Mapello Cologno Monzese Bormio Nieder-Roden Württemberg Montenegro Kazakhstan French Southern and Antarctic Lands Radeberg North Brabant Deux-Nèthes Ozieri Helgoland Faenza Alpes-Maritimes Jettenbach Tõravere region of France Rauen Urmitz Rwanda Nigeria Namibia Diamante Candelo QT8 Nauru Montmartre Brugherio Bolivia Secinaro Paderno d'Adda Hillesheim Tautenburg Teramo Altona Yukon Usmate Velate Diepholz Giussano Saronno Estonia Yasnaya Polyana Egypt Sanshui District Uruguay Rhône Sailauf Aban Erice Pianoro Sovico Quebec Milazzo Dätgen Schierstein Alberta Nova Scotia Dassow Ceccano Liguria Macherio Trebur Chiavenna Monsummano Terme Cisano Bergamasco Charente-Maritime Canosio Bad Harzburg Ettringen Fiji Venezuela Gessate Anklam Sacrofano Wolfratshausen Levashovo, Saint Petersburg Pero Zimbabwe Währing Maldives Lebanon Seine Bellagio Borbona Vimodrone Sangerhausen Tempio Pausania Duchy of Lorraine Gotha Bitburg Ober-Roden Anjou Sprendlingen Dümmer Nord Norway Balve Hungary Spain Pontevico Helpt Savigliano Linz am Rhein Geilenkirchen Britz Borodino (village), Mozhaysky District, Moscow Oblast Casteggio Daun Admont Este Greenland Albania Republic of Macedonia Cyprus Andorra Duchy of Styria Moldavia Bisceglie Warburg Burkina Faso Riedelbach Palau Briesen Leverkusen Lombardy Piedmont Oberammergau Bhutan Angola Gambia Flechtingen Carnate Münster Campania Lauta Nepal Serravalle Scrivia Jordan Nicaragua Kyrgyzstan Werfen Laos Rhede, Lower Saxony Rudersberg Arneburg Tajikistan Seeheim-Jugenheim Thailand Provaglio d'Iseo San Marcello Pistoiese Worpswede Berchtesgaden Bad Honnef Werdau Moosburg an der Isar Ambivere Alzano Lombardo France Codroipo Manitoba Algeria People's Republic of China Sternberg Molegbe Garching bei München Gela Ruhpolding Vercurago Robbiate Sinagra, Sicily Pielenhofen Assisi Tavagnasco Oberhöchstadt Guatemala Robecco d'Oglio Bad Köstritz Friesland Hallstatt Euvelgunne Philippines Altamura Auerbach Cambodia Langenzersdorf Sri Lanka Pino Torinese Udine Erpel Isnello Turbigo Mecklenburg-Güstrow Freising Alsace-Lorraine Kröpelin Reichenbach Senegal Coreglia Antelminelli Avola Arbesbach Ontario Agia Paraskevi Palestro Liechtenstein Olgiate Molgora Nocera Inferiore Japan Kellaways Pudost Rogoredo Annino Farnese, Lazio Duchy of Limburg Vittorio Veneto Herdecke Latvia Tivoli Slovenia Wohldorf-Ohlstedt Wildeshausen Lunden Belgirate Democratic Republic of the Congo Republic of the Congo Roccapalumba Baveno Warstein Schalkenmehren Selent San Donato Milanese Brenk Carmagnola Calolziocorte Gelderland Siegburg Carpi Madagascar Drenthe Liberia Libya Ahrensburg Issum Cassina de' Pecchi Nordwalde Gubbio Treiso
383
action count
action atmost
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type street
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type political territorial entity
value 2
[[{'concept': 'street'}, {'concept': 'political territorial entity'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?q ) WHERE { { ?m property:named_after ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:street } UNION { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:political_territorial_entity . ?m property:named_after ?j } } GROUP BY ?j } . FILTER ( ?q <= 2 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q224
P530
Q15617994 Q15617994
USER
How many administrative territories have a diplomatic relationship with lesser number of administrative territories than Croatia ?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q224
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:P530 ?f . ?f rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { ?q property:P530 resource:Q224 . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?d < ?k ) }
Croatia
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Croatia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { ?q property:diplomatic_relation resource:Croatia . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?d < ?k ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
103
Q702 Q804 Q800 Q419 Q55 Q783 Q784 Q265 Q712 Q710 Q717 Q837 Q398 Q657 Q792 Q790 Q958 Q986 Q242 Q244 Q811 Q33 Q924 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1027 Q1020 Q189 Q842 Q184 Q1029 Q1028 Q736 Q786 Q225 Q221 Q96 Q229 Q902 Q1036 Q1037 Q1032 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q117 Q754 Q750 Q217 Q214 Q218 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q224
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:P530 ?f . ?f rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { ?q property:P530 resource:Q224 . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?d < ?k ) }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Honduras Dominica Uzbekistan Fiji Kiribati Venezuela Nepal Bahrain Chad El Salvador Haiti South Sudan Eritrea Belize Barbados Nicaragua Finland Tanzania Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Mauritius Malawi Iceland Oman Belarus Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Republic of Macedonia Mexico Cyprus Bangladesh Uganda Rwanda Niger Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ghana Trinidad and Tobago Bolivia Republic of Moldova Slovakia Romania Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia Thailand
103
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Croatia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { ?q property:diplomatic_relation resource:Croatia . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?d < ?k ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q230
P1532
Q1194951
USER
Who plays for Georgia ?
(c(Q1194951),P1532,Q230)
action filter_type
action find_reverse
entity Q230
relation P1532
type Q1194951
[{'concept': 'Q1194951'}, 'P1532', 'Q230']
SELECT DISTINCT ?d WHERE { ?d property:P1532 resource:Q230 . ?d rdf:type ontology:Q1194951 }
Georgia
action filter_type
action find_reverse
entity Georgia
relation country for sport
type national sports team
[{'concept': 'national sports team'}, 'country for sport', 'Georgia']
SELECT DISTINCT ?d WHERE { ?d property:country_for_sport resource:Georgia . ?d rdf:type ontology:national_sports_team }
[]
national sports team
Q186268
SYSTEM
Georgia national football team
Q186268
(c(Q1194951),P1532,Q230)
action filter_type
action find_reverse
entity Q230
relation P1532
type Q1194951
And [ANSWER] plays for Georgia
[{'concept': 'Q1194951'}, 'P1532', 'Q230']
SELECT DISTINCT ?d WHERE { ?d property:P1532 resource:Q230 . ?d rdf:type ontology:Q1194951 }
Georgia national football team
And Georgia national football team plays for Georgia
Georgia national football team
action filter_type
action find_reverse
entity Georgia
relation country for sport
type national sports team
[{'concept': 'national sports team'}, 'country for sport', 'Georgia']
SELECT DISTINCT ?d WHERE { ?d property:country_for_sport resource:Georgia . ?d rdf:type ontology:national_sports_team }
[]