Simple Question (Direct)
Simple Question
Q18911824
P20
Q56061
USER
Where did Russell D. George expire ?
(Q18911824,P20,c(Q56061))
action filter_type
action find
entity Q18911824
relation P20
type Q56061
['Q18911824', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q18911824 property:P20 ?d . ?d rdf:type ontology:Q56061 }
Russell D. George
action filter_type
action find
entity Russell D. George
relation place of death
type administrative territorial entity
['Russell D. George', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Russell_D._George property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q16554
SYSTEM
Denver
Q16554
(Q18911824,P20,c(Q56061))
action filter_type
action find
entity Q18911824
relation P20
type Q56061
Russell D. George expired [ANSWER]
['Q18911824', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q18911824 property:P20 ?d . ?d rdf:type ontology:Q56061 }
Denver
Russell D. George expired Denver
Denver
action filter_type
action find
entity Russell D. George
relation place of death
type administrative territorial entity
['Russell D. George', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Russell_D._George property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18911824
P19
Q56061
USER
Where was Russell D. George born ?
(Q18911824,P19,c(Q56061))
action filter_type
action find
entity Q18911824
relation P19
type Q56061
['Q18911824', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q18911824 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Russell D. George
action filter_type
action find
entity Russell D. George
relation place of birth
type administrative territorial entity
['Russell D. George', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Russell_D._George property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1095333
SYSTEM
Claremont
Q1095333
(Q18911824,P19,c(Q56061))
action filter_type
action find
entity Q18911824
relation P19
type Q56061
Russell D. George was born in [ANSWER]
['Q18911824', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q18911824 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Claremont
Russell D. George was born in Claremont
Claremont
action filter_type
action find
entity Russell D. George
relation place of birth
type administrative territorial entity
['Russell D. George', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Russell_D._George property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17181015 Q18911824
P27
Q15617994
USER
Which administrative territories are Russell D. George or Lorenc Trashi a civilian of ?
OR((Q18911824,P27,c(Q15617994)), (Q17181015,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q18911824
relation P27
action find
entity Q17181015
relation P27
type Q15617994
{'OR': [['Q18911824', 'P27', {'concept': 'Q15617994'}], ['Q17181015', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . { { resource:Q18911824 property:P27 ?n } UNION { resource:Q17181015 property:P27 ?n } } }
Lorenc Trashi Russell D. George
action filter_type
action union
action find
entity Russell D. George
relation country of citizenship
action find
entity Lorenc Trashi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Russell D. George', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Lorenc Trashi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Russell_D._George property:country_of_citizenship ?n } UNION { resource:Lorenc_Trashi property:country_of_citizenship ?n } } }
[]
designation for an administrative territorial entity
Q30 Q222 Q145
SYSTEM
United States of America, Albania, United Kingdom
Q30 Q222 Q145
OR((Q18911824,P27,c(Q15617994)), (Q17181015,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q18911824
relation P27
action find
entity Q17181015
relation P27
type Q15617994
[ANSWERS] are Russell D. George or Lorenc Trashi a civilian of
{'OR': [['Q18911824', 'P27', {'concept': 'Q15617994'}], ['Q17181015', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . { { resource:Q18911824 property:P27 ?n } UNION { resource:Q17181015 property:P27 ?n } } }
United States of America Albania United Kingdom
United States of America, Albania and United Kingdom are Russell D. George or Lorenc Trashi a civilian of
United States of America Albania United Kingdom
action filter_type
action union
action find
entity Russell D. George
relation country of citizenship
action find
entity Lorenc Trashi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Russell D. George', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Lorenc Trashi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Russell_D._George property:country_of_citizenship ?n } UNION { resource:Lorenc_Trashi property:country_of_citizenship ?n } } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q15416 Q838948
USER
How many administrative territories are the countries of origin of less number of television programs or works of art than that administrative territory ?
(c(Q15416)|c(Q838948),P495,c(Q15617994))
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q838948 }
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:work_of_art }
[]
designation for an administrative territorial entity television program work of art
Comparative|Count over More/Less|Mult. entity type|Clarification
Q222
SYSTEM
Did you mean Albania ?
(c(Q15416)|c(Q838948),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q838948 }
Did you mean Albania ?
Albania
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:work_of_art }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant United Kingdom. Could you tell me the answer for that?
(c(Q15416)|c(Q838948),P495,c(Q15617994))
Q145
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
166
Q805 Q804 Q801 Q800 Q1462 Q419 Q414 Q142 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(Q15416)|c(Q838948),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q838948 }
Yemen Panama Israel Costa Rica Sardinia Peru Argentina France 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
166
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories have ambassadorial relations with atmost 48 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 48
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?i ) AS ?t ) WHERE { ?m property:P530 ?i . ?m rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?m } . FILTER ( ?t <= 48 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 48
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?i ) AS ?t ) WHERE { ?m property:diplomatic_relation ?i . ?m rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . FILTER ( ?t <= 48 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 48
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?i ) AS ?t ) WHERE { ?m property:P530 ?i . ?m rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?m } . FILTER ( ?t <= 48 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 48
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?i ) AS ?t ) WHERE { ?m property:diplomatic_relation ?i . ?m rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . FILTER ( ?t <= 48 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q15617994 Q1048835 Q15617994
USER
Which administrative territories are known to have diplomatic connections with around 50 administrative territories and political territories ?
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 50
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?o ) WHERE { { ?g property:P530 ?e . ?e rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } UNION { ?g property:P530 ?e . ?g rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q1048835 } } GROUP BY ?g } . FILTER ( ?o = 50 ) }
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 50
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?o ) WHERE { { ?g property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?g property:diplomatic_relation ?e . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity } } GROUP BY ?g } . FILTER ( ?o = 50 ) }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
Q155 Q184
SYSTEM
Brazil, Belarus
Q155 Q184
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 50
[ANSWERS] are known to have diplomatic connections with around 50 administrative territories and political territories
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?o ) WHERE { { ?g property:P530 ?e . ?e rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } UNION { ?g property:P530 ?e . ?g rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q1048835 } } GROUP BY ?g } . FILTER ( ?o = 50 ) }
Brazil Belarus
Brazil and Belarus are known to have diplomatic connections with around 50 administrative territories and political territories
Brazil Belarus
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 50
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?o ) WHERE { { ?g property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?g property:diplomatic_relation ?e . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity } } GROUP BY ?g } . FILTER ( ?o = 50 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q15617994 Q56061 Q515
USER
Which administrative territories have exactly 1 administrative territories and cities as their capital ?
(c(Q56061)|c(Q515),P1376,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
value 1
[[{'concept': 'Q56061'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?i WHERE { { ?h property:P1376 ?i . ?i rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q56061 } UNION { ?h property:P1376 ?i . ?i rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q515 } } GROUP BY ?i } . FILTER ( ?q = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
value 1
[[{'concept': 'administrative territorial entity'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?i WHERE { { ?h property:capital_of ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:administrative_territorial_entity } UNION { ?h property:capital_of ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:city } } GROUP BY ?i } . FILTER ( ?q = 1 ) }
[]
designation for an administrative territorial entity administrative territorial entity city
Q230 Q159 Q55
SYSTEM
Georgia, Russia, Netherlands
Q804 Q801 Q800 Q1098820 Q419 Q414 Q55 Q783 Q784 Q786 Q568833 Q1452650 Q2998020 Q399 Q398 Q1465069 Q1324549 Q1979 Q159 Q1664120 Q12526 Q1974 Q611074 Q2007299 Q1254171 Q220249 Q979470 Q1270648 Q1899307 Q30675 Q983 Q730 Q734 Q736 Q1280 Q1282 Q1338277 Q384731 Q1816477 Q1273 Q1279 Q1025 Q1049 Q1027 Q189 Q843 Q2007 Q184 Q1029 Q1028 Q1390630 Q1452 Q815731 Q31074 Q31075 Q96 Q1050 Q311803 Q298 Q29937 Q115 Q114 Q117 Q30786 Q1270638 Q1788988 Q1544445 Q466061 Q1515346 Q683 Q1483510 Q3924533 Q12559 Q1270636 Q34020 Q760 Q14762300 Q696651 Q3528124 Q2719360 Q948 Q1243 Q945 Q639100 Q855327 Q328134 Q1237 Q701 Q702 Q968630 Q705 Q707 Q4450475 Q668 Q1093 Q1090684 Q1263830 Q833 Q3509886 Q836 Q837 Q2305610 Q565812 Q1460 Q2068764 Q1462 Q403 Q691890 Q45 Q43 Q792 Q790 Q796 Q794 Q1232680 Q889 Q884 Q881 Q231168 Q241 Q1965 Q242 Q1437719 Q1244497 Q29965 Q33 Q32 Q31 Q37 Q36 Q34 Q3361 Q39 Q302479 Q541095 Q2567535 Q3068 Q3389 Q30644 Q236 Q230 Q232 Q233 Q1777256 Q238 Q12549 Q129003 Q1101 Q1206596 Q3139 Q902 Q1036 Q1037 Q1032 Q1030 Q1024985 Q1039 Q694 Q695 Q754 Q752 Q750 Q2562901 Q31068 Q31067 Q31065 Q1773268 Q30835 Q30831 Q574 Q1558632 Q191 Q79 Q77 Q878 Q46130 Q3044651 Q3044714 Q3044715 Q30682 Q30683 Q1951 Q2091235 Q2006764 Q1952 Q669802 Q753795 Q1256 Q1250 Q452565 Q3305157 Q684030 Q2567507 Q3044623 Q651394 Q30946 Q3044781 Q712 Q711 Q710 Q717 Q3044777 Q12770 Q657 Q1789890 Q12538 Q954 Q1393469 Q953 Q2001966 Q1886098 Q958 Q986 Q219 Q957825 Q826 Q822 Q689837 Q1142326 Q153136 Q2621010 Q1974486 Q153091 Q693658 Q1508927 Q1948 Q654849 Q2038939 Q311794 Q12661 Q20 Q27 Q28 Q1366860 Q148 Q227 Q225 Q30650 Q223 Q222 Q221 Q47261 Q311668 Q229 Q228 Q1410315 Q1989 Q60011 Q967 Q963 Q2921370 Q2921378 Q2310748 Q252157 Q1210 Q1216 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1786286 Q1009 Q1008 Q2380910 Q1438 Q686 Q30832 Q891165 Q817 Q810 Q811 Q813 Q18046648 Q819 Q29 Q617646 Q72670 Q12545 Q2309262 Q863 Q2023 Q869 Q568751 Q334714 Q15116736 Q2150573 Q142 Q685048 Q29943 Q145 Q262 Q2009 Q12820 Q265 Q3342 Q842 Q378004 Q1150452 Q691368 Q1263 Q475035 Q2003 Q3240 Q2662372 Q686924 Q30669 Q30662 Q4628 Q455705 Q770 Q1856181 Q1077283 Q921 Q4712 Q928 Q929 Q858 Q423 Q424 Q851 Q29999 Q854 Q2226837 Q165763 Q1447 Q2360428 Q30656 Q12717 Q1045 Q1044 Q1042 Q1041 Q31070 Q3336 Q30797 Q1904 Q347 Q3462133 Q30815 Q153402 Q3207 Q894973 Q894972 Q894971 Q894970 Q1053888 Q3044677 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q244 Q1090691 Q977 Q2218506 Q692290 Q974 Q971 Q970 Q4464271 Q2502354 Q30630 Q775 Q774 Q776 Q1019 Q773 Q772 Q1014 Q1016 Q1011 Q1013 Q678 Q8575586 Q1579364 Q31079 Q2629692 Q549746 Q695660
(c(Q56061)|c(Q515),P1376,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
value 1
[ANSWERS] have exactly 1 administrative territories and cities as their capital
[[{'concept': 'Q56061'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?i WHERE { { ?h property:P1376 ?i . ?i rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q56061 } UNION { ?h property:P1376 ?i . ?i rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q515 } } GROUP BY ?i } . FILTER ( ?q = 1 ) }
Panama Israel Costa Rica Gênes Peru Argentina Netherlands Honduras Dominica Dominican Republic Meuse-Inférieure Ombrone Corse Armenia Bahrain Frise Uthukela District Municipality Prince Edward Island Russia Alfred Nzo District Municipality Gironde British Columbia Mopani District Municipality OR Tambo District Municipality Dr Ruth Segomotsi Mompati District Municipality Eden District Municipality Seine-et-Oise Sieg Overberg District Municipality Minya Governorate Equatorial Guinea Suriname Guyana Ecuador Umbria Lazio Sambre-et-Meuse John Taolo Gaetsewe District Municipality Lejweleputswa District Municipality Tuscany Marche Mauritania Sudan Mauritius Iceland Pakistan Northwest Territories Belarus Mozambique Morocco Ourthe Basilicata Principality of Bulgaria Al Sharqia Governorate Qalyubia Governorate Mexico Swaziland Umgungundlovu District Municipality Chile Aswan Governorate Ethiopia Kenya Ghana Monufia Governorate Rhine Trasimène Sekhukhune District Municipality Petén Department Gert Sibande District Municipality Samoa Principality of Wales Province of Brescia Isère Ruhr Niue Saint Lucia single-tier municipality Saxe-Eisenach Tibre Duchy of Luxembourg Tunisia Veneto Togo Principality of Reuss-Gera Kouilou Department 6th of October Governorate Trentino-South Tyrol North Holland Federated States of Micronesia Taro Zeeland Flevoland Talitsky District India Limburg Montserrat Frances Baard District Municipality Malaysia Sègre-Ter Myanmar Nepal Vhembe District Municipality Principality of Calenberg Sicily Archa Darugha Sardinia Serbia Corcyre Portugal Turkey El Salvador Haiti Iraq Iran Ithaque Afghanistan South Korea Vietnam Zuyderzée Cuba New Brunswick Belize Thabo Mofutsanyana District Municipality Ehlanzeni District Municipality Asyut Governorate Finland Luxembourg Belgium Lithuania Poland Sweden Doubs Switzerland Ems-Occidental Rhin-et-Moselle Pô Loire-Atlantique Finistère Damietta Governorate Montenegro Georgia Kazakhstan Malta Dzerzhinsky District, Kaluga Oblast San Marino Ille-et-Vilaine French Southern and Antarctic Lands North Brabant Deux-Nèthes Alpes-Maritimes Bangladesh Uganda Rwanda Niger Namibia Cacadu District Municipality Sao Tomé and Príncipe South Holland Palau Trinidad and Tobago Groningen Bolivia West Coast District Municipality Dakahlia Governorate Ismailia Governorate Qena Governorate ZF Mgcawu District Municipality Gharbia Governorate Red Sea Governorate East Timor Rome Estonia Egypt Uruguay United Arab Emirates Rhône Louverture Ouest Ozama Matrouh Governorate Beni Suef Governorate Alberta Ugu District Municipality Xhariep District Municipality Nova Scotia Quiché Department Briceni District Liguria Friuli–Venezia Giulia Amajuba District Municipality Mella Principality of Serbia Arno Cibao Ramensky District Kafr el-Sheikh Governorate Sud Fiji Mongolia Kiribati Venezuela Nord Somme Chad West Rand District Municipality Haute-Garonne Zimbabwe Jemmapes Zambia Company rule in India Pixley ka Seme District Municipality South Sudan Eritrea Bulgaria Yssel-Supérieur Maldives Lebanon Spanish Sahara Seine Habsburg Empire Principality of Vitebsk Cape Winelands District Municipality Duchy of Prussia Izabal Department Méditerranée Manitoba Joe Gqabi District Municipality Sedibeng District Municipality iLembe District Municipality Nord Norway Ireland Hungary Escaut People's Republic of China Azerbaijan Bosnia and Herzegovina New Valley Governorate Greenland Albania Republic of Macedonia Duchy of Bavaria UThungulu District Municipality Cyprus Andorra Fezile Dabi District Municipality Saskatchewan Kars Oblast Burundi Botswana Bouches-de-l'Èbre-Montserrat Bouches-de-l'Èbre Liamone Sarre Lombardy Piedmont Mali Bhutan Angola Guinea-Bissau Guinea Gambia Kuban Oblast Cameroon Côte d'Ivoire Duchy of Zaslawye Campania Vanuatu Giza Governorate Bojanala Platinum District Municipality Kuwait Jordan Nicaragua Kyrgyzstan department Stad en Landen of Groningen Laos Spain Namakwa District Municipality Batumi Oblast Hérault Zululand District Municipality Tajikistan Nunavut Thailand Mont-Tonnerre Duchy of Athens Jaén District Unterelsaß France Simplon Alexandria Governorate United Kingdom Algeria Yukon Yvelines Uzbekistan Côte-d'Or Oman Forêts Dr Kenneth Kaunda District Municipality Léman Emilia-Romagna Helwan Governorate Newfoundland and Labrador Bouches-du-Rhône Principality of Minsk Mer-Égée Sohag Governorate North Sinai Governorate Faroe Islands Amathole District Municipality Friesland Nkangala District Municipality Chris Hani District Municipality Brunei Duchy of Burgundy Philippines Central African Republic Syria North Korea Cambodia Saudi Arabia Kingdom of the Netherlands Sri Lanka Umzinyathi District Municipality Waldeck Apulia Tijuana Municipality Faiyum Governorate Bas-Rhin Somalia Sierra Leone Seychelles Senegal Suez Governorate Corse-du-Sud Luxor Governorate Ontario Liechtenstein Saxe-Coburg and Gotha South Sinai Governorate Roer Aude Bouches-du-Rhin Bouches-de-l'Yssel Bouches-de-l'Escaut Bouches-de-la-Meuse Central Karoo District Municipality Samaná Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Barbados Ter Djibouti Kineshemsky District Capricorn District Municipality Democratic Republic of the Congo Republic of the Congo Comoros Principality of Trubetsk Principality of Goroden Beheira Governorate Gelderland Guatemala Utrecht Madagascar Overijssel Drenthe Liberia Libya Cape Verde Lesotho Tonga Umayyad Caliphate Lys Port Said Governorate Simferopol municipality Sisonke District Municipality Guatemala Department
Georgia, Russia and Netherlands have exactly 1 administrative territories and cities as their capital
Georgia Russia Netherlands
action equal
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
value 1
[[{'concept': 'administrative territorial entity'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?i WHERE { { ?h property:capital_of ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:administrative_territorial_entity } UNION { ?h property:capital_of ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:city } } GROUP BY ?i } . FILTER ( ?q = 1 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q183
P530
Q1048835
USER
Do Germany have diplomatic relations with those administrative territories ?
(Q183,P530,Q230) (Q183,P530,Q159) (Q183,P530,Q55)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q230'] ['Q183', 'P530', 'Q159'] ['Q183', 'P530', 'Q55']
ASK WHERE { resource:Q183 property:P530 ?x . VALUES ( ?x ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q800 ) } }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Georgia'] ['Germany', 'diplomatic relation', 'Russia'] ['Germany', 'diplomatic relation', 'Netherlands']
ASK WHERE { resource:Germany property:diplomatic_relation ?x . VALUES ( ?x ) { ( resource:Panama ) ( resource:Israel ) ( resource:Costa_Rica ) } }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q230) (Q183,P530,Q159) (Q183,P530,Q55)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q230'] ['Q183', 'P530', 'Q159'] ['Q183', 'P530', 'Q55']
ASK WHERE { resource:Q183 property:P530 ?x . VALUES ( ?x ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q800 ) } }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Georgia'] ['Germany', 'diplomatic relation', 'Russia'] ['Germany', 'diplomatic relation', 'Netherlands']
ASK WHERE { resource:Germany property:diplomatic_relation ?x . VALUES ( ?x ) { ( resource:Panama ) ( resource:Israel ) ( resource:Costa_Rica ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q145 Q37 Q574269
P530
Q15617994
USER
Is United Kingdom known to have diplomatic connections with Lithuania and Böbingen an der Rems ?
(Q145,P530,Q37) (Q145,P530,Q574269)
action is_in
entity Q145
action intersection
action find_reverse
entity Q37
relation P530
action find_reverse
entity Q574269
relation P530
['Q145', 'P530', 'Q37'] ['Q145', 'P530', 'Q574269']
ASK WHERE { resource:Q145 property:P530 resource:Q37 . resource:Q145 property:P530 resource:Q574269 }
United Kingdom Lithuania Böbingen an der Rems
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Lithuania
relation diplomatic relation
action find_reverse
entity Böbingen an der Rems
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'Lithuania'] ['United Kingdom', 'diplomatic relation', 'Böbingen an der Rems']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:Lithuania . resource:United_Kingdom property:diplomatic_relation resource:Böbingen_an_der_Rems }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q145,P530,Q37) (Q145,P530,Q574269)
action is_in
entity Q145
action intersection
action find_reverse
entity Q37
relation P530
action find_reverse
entity Q574269
relation P530
[ANSWER]
['Q145', 'P530', 'Q37'] ['Q145', 'P530', 'Q574269']
ASK WHERE { resource:Q145 property:P530 resource:Q37 . resource:Q145 property:P530 resource:Q574269 }
YES and NO respectively
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Lithuania
relation diplomatic relation
action find_reverse
entity Böbingen an der Rems
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'Lithuania'] ['United Kingdom', 'diplomatic relation', 'Böbingen an der Rems']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:Lithuania . resource:United_Kingdom property:diplomatic_relation resource:Böbingen_an_der_Rems }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1001
Q15617994 Q11204 Q35798
USER
How many administrative territories come under the supervision of exactly 3 legislatures or executive branches ?
(c(Q11204)|c(Q35798),P1001,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q11204
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q35798
value 3
[[{'concept': 'Q11204'}, {'concept': 'Q35798'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) ?e WHERE { VALUES ( ?x ) { ( ontology:Q11204 ) ( ontology:Q35798 ) } . ?d rdf:type ?x } GROUP BY ?e } . FILTER ( ?z = 3 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type legislature
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type executive branch
value 3
[[{'concept': 'legislature'}, {'concept': 'executive branch'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) ?e WHERE { VALUES ( ?x ) { ( ontology:legislature ) ( ontology:executive_branch ) } . ?d rdf:type ?x } GROUP BY ?e } . FILTER ( ?z = 3 ) }
[]
designation for an administrative territorial entity legislature executive branch
SYSTEM
2
Q1952 Q854
(c(Q11204)|c(Q35798),P1001,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q11204
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q35798
value 3
[ANSWER]
[[{'concept': 'Q11204'}, {'concept': 'Q35798'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) ?e WHERE { VALUES ( ?x ) { ( ontology:Q11204 ) ( ontology:Q35798 ) } . ?d rdf:type ?x } GROUP BY ?e } . FILTER ( ?z = 3 ) }
Nova Scotia Sri Lanka
2
action count
action equal
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type legislature
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type executive branch
value 3
[[{'concept': 'legislature'}, {'concept': 'executive branch'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) ?e WHERE { VALUES ( ?x ) { ( ontology:legislature ) ( ontology:executive_branch ) } . ?d rdf:type ?x } GROUP BY ?e } . FILTER ( ?z = 3 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P1532
Q1194951
USER
Who represents Brazil ?
(c(Q1194951),P1532,Q155)
action filter_type
action find_reverse
entity Q155
relation P1532
type Q1194951
[{'concept': 'Q1194951'}, 'P1532', 'Q155']
SELECT DISTINCT ?v WHERE { ?v property:P1532 resource:Q155 . ?v rdf:type ontology:Q1194951 }
Brazil
action filter_type
action find_reverse
entity Brazil
relation country for sport
type national sports team
[{'concept': 'national sports team'}, 'country for sport', 'Brazil']
SELECT DISTINCT ?v WHERE { ?v property:country_for_sport resource:Brazil . ?v rdf:type ontology:national_sports_team }
[]
national sports team
Q83459
SYSTEM
Brazil national football team
Q83459
(c(Q1194951),P1532,Q155)
action filter_type
action find_reverse
entity Q155
relation P1532
type Q1194951
And [ANSWER] represents Brazil
[{'concept': 'Q1194951'}, 'P1532', 'Q155']
SELECT DISTINCT ?v WHERE { ?v property:P1532 resource:Q155 . ?v rdf:type ontology:Q1194951 }
Brazil national football team
And Brazil national football team represents Brazil
Brazil national football team
action filter_type
action find_reverse
entity Brazil
relation country for sport
type national sports team
[{'concept': 'national sports team'}, 'country for sport', 'Brazil']
SELECT DISTINCT ?v WHERE { ?v property:country_for_sport resource:Brazil . ?v rdf:type ontology:national_sports_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q159
P137
Q2424752
USER
Which product is the administrator of Russia ?
(c(Q2424752),P137,Q159)
action filter_type
action find_reverse
entity Q159
relation P137
type Q2424752
[{'concept': 'Q2424752'}, 'P137', 'Q159']
SELECT DISTINCT ?x WHERE { ?x property:P137 resource:Q159 . ?x rdf:type ontology:Q2424752 }
Russia
action filter_type
action find_reverse
entity Russia
relation operator
type product
[{'concept': 'product'}, 'operator', 'Russia']
SELECT DISTINCT ?x WHERE { ?x property:operator resource:Russia . ?x rdf:type ontology:product }
[]
product
Q17374524
SYSTEM
Mi-24PN
Q17374524
(c(Q2424752),P137,Q159)
action filter_type
action find_reverse
entity Q159
relation P137
type Q2424752
[ANSWER] is the administrator of Russia
[{'concept': 'Q2424752'}, 'P137', 'Q159']
SELECT DISTINCT ?x WHERE { ?x property:P137 resource:Q159 . ?x rdf:type ontology:Q2424752 }
Mi-24PN
Mi-24PN is the administrator of Russia
Mi-24PN
action filter_type
action find_reverse
entity Russia
relation operator
type product
[{'concept': 'product'}, 'operator', 'Russia']
SELECT DISTINCT ?x WHERE { ?x property:operator resource:Russia . ?x rdf:type ontology:product }
[]