Simple Question (Direct)
Simple Question
Q4355859
P102
Q7210356
USER
Which party does Lenore Zann belong to ?
(Q4355859,P102,c(Q7210356))
action filter_type
action find
entity Q4355859
relation P102
type Q7210356
['Q4355859', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?r WHERE { resource:Q4355859 property:P102 ?r . ?r rdf:type ontology:Q7210356 }
Lenore Zann
action filter_type
action find
entity Lenore Zann
relation member of political party
type political organization
['Lenore Zann', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?r WHERE { resource:Lenore_Zann property:member_of_political_party ?r . ?r rdf:type ontology:political_organization }
[]
political organization
Q3345047
SYSTEM
Nova Scotia New Democratic Party
Q3345047
(Q4355859,P102,c(Q7210356))
action filter_type
action find
entity Q4355859
relation P102
type Q7210356
Lenore Zann belongs to [ANSWER]
['Q4355859', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?r WHERE { resource:Q4355859 property:P102 ?r . ?r rdf:type ontology:Q7210356 }
Nova Scotia New Democratic Party
Lenore Zann belongs to Nova Scotia New Democratic Party
Nova Scotia New Democratic Party
action filter_type
action find
entity Lenore Zann
relation member of political party
type political organization
['Lenore Zann', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?r WHERE { resource:Lenore_Zann property:member_of_political_party ?r . ?r rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4355859
P39
Q12737077
USER
What was the position for which that person was appointed ?
(Q3345047,P39,c(Q12737077))
action filter_type
action find
entity Q4355859
relation P39
type Q12737077
['Q3345047', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q4355859 property:P39 ?j . ?j rdf:type ontology:Q12737077 }
Lenore Zann
action filter_type
action find
entity Lenore Zann
relation position held
type occupation
['Nova Scotia New Democratic Party', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Lenore_Zann property:position_held ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q18239264
SYSTEM
member of the Nova Scotia House of Assembly
Q18239264
(Q3345047,P39,c(Q12737077))
action filter_type
action find
entity Q4355859
relation P39
type Q12737077
The [ANSWER]
['Q3345047', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q4355859 property:P39 ?j . ?j rdf:type ontology:Q12737077 }
member of the Nova Scotia House of Assembly
The member of the Nova Scotia House of Assembly
member of the Nova Scotia House of Assembly
action filter_type
action find
entity Lenore Zann
relation position held
type occupation
['Nova Scotia New Democratic Party', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Lenore_Zann property:position_held ?j . ?j rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q7835791 Q4355859
P27
Q1048835
USER
Which political territories are the countries of citizenship of Lenore Zann and Traugott Bernhard Zwar ?
AND((Q4355859,P27,c(Q1048835)), (Q7835791,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q4355859
relation P27
action find
entity Q7835791
relation P27
type Q1048835
{'AND': [['Q4355859', 'P27', {'concept': 'Q1048835'}], ['Q7835791', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1048835 . resource:Q4355859 property:P27 ?u . resource:Q7835791 property:P27 ?u }
Traugott Bernhard Zwar Lenore Zann
action filter_type
action intersection
action find
entity Lenore Zann
relation country of citizenship
action find
entity Traugott Bernhard Zwar
relation country of citizenship
type political territorial entity
{'AND': [['Lenore Zann', 'country of citizenship', {'concept': 'political territorial entity'}], ['Traugott Bernhard Zwar', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_territorial_entity . resource:Lenore_Zann property:country_of_citizenship ?u . resource:Traugott_Bernhard_Zwar property:country_of_citizenship ?u }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
AND((Q4355859,P27,c(Q1048835)), (Q7835791,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q4355859
relation P27
action find
entity Q7835791
relation P27
type Q1048835
[ANSWER] is the countries of citizenship of Lenore Zann and Traugott Bernhard Zwar
{'AND': [['Q4355859', 'P27', {'concept': 'Q1048835'}], ['Q7835791', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1048835 . resource:Q4355859 property:P27 ?u . resource:Q7835791 property:P27 ?u }
Australia
Australia is the countries of citizenship of Lenore Zann and Traugott Bernhard Zwar
Australia
action filter_type
action intersection
action find
entity Lenore Zann
relation country of citizenship
action find
entity Traugott Bernhard Zwar
relation country of citizenship
type political territorial entity
{'AND': [['Lenore Zann', 'country of citizenship', {'concept': 'political territorial entity'}], ['Traugott Bernhard Zwar', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_territorial_entity . resource:Lenore_Zann property:country_of_citizenship ?u . resource:Traugott_Bernhard_Zwar property:country_of_citizenship ?u }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q926811 Q7835791
P47 P27
Q1048835
USER
Which political territories are Traugott Bernhard Zwar an inhabitant of or are adjacent to Valdesamario ?
OR((Q7835791,P27,c(Q1048835)), (Q926811,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q7835791
relation P27
action find
entity Q926811
relation P47
type Q1048835
{'OR': [['Q7835791', 'P27', {'concept': 'Q1048835'}], ['Q926811', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q926811 property:P47 ?c } UNION { resource:Q7835791 property:P27 ?c } } . ?c rdf:type ontology:Q1048835 }
Valdesamario Traugott Bernhard Zwar
action filter_type
action union
action find
entity Traugott Bernhard Zwar
relation country of citizenship
action find
entity Valdesamario
relation shares border with
type political territorial entity
{'OR': [['Traugott Bernhard Zwar', 'country of citizenship', {'concept': 'political territorial entity'}], ['Valdesamario', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Valdesamario property:shares_border_with ?c } UNION { resource:Traugott_Bernhard_Zwar property:country_of_citizenship ?c } } . ?c rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1615429 Q137729 Q1622304 Q408 Q44791 Q137179 Q519749
SYSTEM
Soto y Amío, Quintana del Castillo, Villagatón, Australia, Igüeña, Riello, Las Omañas
Q1615429 Q137729 Q1622304 Q408 Q44791 Q137179 Q519749
OR((Q7835791,P27,c(Q1048835)), (Q926811,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q7835791
relation P27
action find
entity Q926811
relation P47
type Q1048835
[ANSWERS] are Traugott Bernhard Zwar an inhabitant of or are adjacent to Valdesamario
{'OR': [['Q7835791', 'P27', {'concept': 'Q1048835'}], ['Q926811', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q926811 property:P47 ?c } UNION { resource:Q7835791 property:P27 ?c } } . ?c rdf:type ontology:Q1048835 }
Soto y Amío Quintana del Castillo Villagatón Australia Igüeña Riello Las Omañas
Soto y Amío, Quintana del Castillo, Villagatón, Australia, Igüeña, Riello and Las Omañas are Traugott Bernhard Zwar an inhabitant of or are adjacent to Valdesamario
Soto y Amío Quintana del Castillo Villagatón Australia Igüeña Riello Las Omañas
action filter_type
action union
action find
entity Traugott Bernhard Zwar
relation country of citizenship
action find
entity Valdesamario
relation shares border with
type political territorial entity
{'OR': [['Traugott Bernhard Zwar', 'country of citizenship', {'concept': 'political territorial entity'}], ['Valdesamario', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Valdesamario property:shares_border_with ?c } UNION { resource:Traugott_Bernhard_Zwar property:country_of_citizenship ?c } } . ?c rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q43
P530
Q1048835 Q15617994
USER
Which administrative territories are known to have diplomatic connections with less number of political territories than Turkey ?
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q43
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { resource:Q43 property:P530 ?o . ?o rdf:type ontology:Q15617994 } } . FILTER ( ?m < ?a ) . { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?m ) WHERE { ?e property:P530 ?r . ?e rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?e } }
Turkey
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Turkey
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { resource:Turkey property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?m < ?a ) . { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?m ) WHERE { ?e property:diplomatic_relation ?r . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?e } }
[]
political territorial entity designation for an administrative territorial entity
Q55 Q148 Q184
SYSTEM
Netherlands, People's Republic of China, Belarus
Q702 Q804 Q800 Q805 Q419 Q668 Q414 Q55 Q262 Q148 Q783 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q32 Q31 Q924 Q928 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q117 Q754 Q750 Q213 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q858 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q43
relation P530
type Q15617994
[ANSWERS] are known to have diplomatic connections with less number of political territories than Turkey
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { resource:Q43 property:P530 ?o . ?o rdf:type ontology:Q15617994 } } . FILTER ( ?m < ?a ) . { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?m ) WHERE { ?e property:P530 ?r . ?e rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?e } }
Federated States of Micronesia Panama Costa Rica Yemen Peru India Argentina Netherlands Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Luxembourg Belgium Tanzania Philippines Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ghana Trinidad and Tobago Bolivia Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Syria Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
Netherlands, People's Republic of China and Belarus are known to have diplomatic connections with less number of political territories than Turkey
Netherlands People's Republic of China Belarus
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Turkey
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { resource:Turkey property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?m < ?a ) . { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?m ) WHERE { ?e property:diplomatic_relation ?r . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?e } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q884
P530
Q1048835 Q15617994
USER
And what about South Korea?
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q884
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?u ) WHERE { ?l property:P530 ?m . ?l rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q1048835 } GROUP BY ?l } . FILTER ( ?u < ?k ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Q884 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } }
South Korea
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity South Korea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?u ) WHERE { ?l property:diplomatic_relation ?m . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:political_territorial_entity } GROUP BY ?l } . FILTER ( ?u < ?k ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:South_Korea property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
political territorial entity designation for an administrative territorial entity
Q55 Q148 Q184
SYSTEM
Netherlands, People's Republic of China, Belarus
Q702 Q804 Q800 Q805 Q419 Q668 Q414 Q55 Q262 Q148 Q783 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q32 Q31 Q924 Q928 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q117 Q754 Q750 Q213 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q858 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q884
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?u ) WHERE { ?l property:P530 ?m . ?l rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q1048835 } GROUP BY ?l } . FILTER ( ?u < ?k ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Q884 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Costa Rica Yemen Peru India Argentina Netherlands Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Luxembourg Belgium Tanzania Philippines Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ghana Trinidad and Tobago Bolivia Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Syria Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
Netherlands People's Republic of China Belarus
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity South Korea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?u ) WHERE { ?l property:diplomatic_relation ?m . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:political_territorial_entity } GROUP BY ?l } . FILTER ( ?u < ?k ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:South_Korea property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relations with around 37 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 37
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?e ) WHERE { ?k property:P530 ?s . ?s rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 } GROUP BY ?k } . FILTER ( ?e = 37 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 37
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?e ) WHERE { ?k property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?k } . FILTER ( ?e = 37 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 37
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?e ) WHERE { ?k property:P530 ?s . ?s rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 } GROUP BY ?k } . FILTER ( ?e = 37 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 37
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?e ) WHERE { ?k property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?k } . FILTER ( ?e = 37 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q15174
P190
Q13220204 Q56061 Q1048835
USER
Which political territories are a sister city of lesser number of administrative country subdivisions and administrative territories than Shenzhen ?
(c(Q1048835),P190,c(Q13220204)|c(Q56061))
action less
action union
action find_tuple_counts
relation P190
type Q1048835
type Q13220204
action find_tuple_counts
relation P190
type Q1048835
type Q56061
action count
action filter_multi_types
action find
entity Q15174
relation P190
type Q13220204
type Q56061
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q13220204'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) ?p WHERE { { ?p property:P190 ?a . ?p rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q13220204 } UNION { ?p property:P190 ?a . ?a rdf:type ontology:Q56061 . ?p rdf:type ontology:Q1048835 } } GROUP BY ?p } . FILTER ( ?v < ?o ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { resource:Q15174 property:P190 ?b . { { ?b rdf:type ontology:Q13220204 } UNION { ?b rdf:type ontology:Q56061 } } } } }
Shenzhen
action less
action union
action find_tuple_counts
relation sister city
type political territorial entity
type second-level administrative country subdivision
action find_tuple_counts
relation sister city
type political territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Shenzhen
relation sister city
type second-level administrative country subdivision
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) ?p WHERE { { ?p property:sister_city ?a . ?p rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?p property:sister_city ?a . ?a rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:political_territorial_entity } } GROUP BY ?p } . FILTER ( ?v < ?o ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { resource:Shenzhen property:sister_city ?b . { { ?b rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?b rdf:type ontology:administrative_territorial_entity } } } } }
[]
second-level administrative country subdivision administrative territorial entity political territorial entity
Q763 Q778 Q761735
SYSTEM
Saint Kitts and Nevis, The Bahamas, Montblanc
Q473250 Q484717 Q1442814 Q5963 Q1628188 Q36947 Q1794732 Q15473 Q484552 Q15471 Q786126 Q1643855 Q13010 Q927931 Q147774 Q1765078 Q6022 Q910410 Q2101408 Q5913 Q187826 Q1312844 Q2047561 Q1391501 Q207111 Q164197 Q926713 Q15619 Q321331 Q1853429 Q667682 Q686837 Q476793 Q919050 Q8554 Q12590 Q433632 Q12595 Q842713 Q1649476 Q210887 Q30002 Q659450 Q189952 Q693258 Q644891 Q12153 Q4480 Q15470 Q1312654 Q168376 Q496368 Q686304 Q624967 Q11286 Q20937 Q13150 Q496588 Q13156 Q496424 Q824651 Q208669 Q8602 Q15430 Q984508 Q7909 Q109188 Q7902 Q538809 Q7905 Q815631 Q7907 Q12339 Q63004 Q277302 Q1021521 Q642083 Q752280 Q326651 Q41157 Q899884 Q1750915 Q832246 Q542958 Q2566267 Q752137 Q164867 Q12647 Q1793709 Q11746 Q499922 Q1655081 Q376393 Q3741 Q2392504 Q1161455 Q34028 Q211889 Q820229 Q226009 Q54902 Q840362 Q427330 Q596761 Q1439157 Q398698 Q1616611 Q505610 Q12110 Q1621191 Q13916 Q487268 Q13424 Q535531 Q49581 Q180200 Q1637478 Q1407143 Q13521 Q1606055 Q787022 Q1101945 Q844784 Q694833 Q5123 Q1110343 Q4970 Q1769167 Q13785 Q193780 Q574340 Q178993 Q15950 Q3850873 Q161945 Q64010 Q140203 Q917693 Q485129 Q156819 Q1757489 Q258722 Q1614754 Q1613282 Q375925 Q550974 Q254699 Q956558 Q12690 Q824122 Q1010314 Q1915208 Q741765 Q478818 Q102848 Q15602 Q737161 Q1410782 Q583280 Q1750269 Q180981 Q695889 Q1651727 Q489839 Q740833 Q487801 Q13855 Q1730870 Q12587 Q15649 Q592747 Q913492 Q1786658 Q750968 Q12022 Q12028 Q500494 Q10436 Q1919317 Q1771128 Q1635711 Q3397684 Q205681 Q428954 Q48344 Q1650316 Q748078 Q11822 Q15429 Q798747 Q8184 Q8182 Q691525 Q980131 Q33961 Q1758806 Q616621 Q1651638 Q7898 Q188905 Q735759 Q583032 Q739495 Q7894 Q15551 Q15553 Q1386351 Q973325 Q15558 Q462218 Q937763 Q898563 Q371748 Q817960 Q693913 Q641221 Q167436 Q12812 Q1763754 Q840373 Q767222 Q1763574 Q170322 Q42956 Q55480 Q189848 Q1641529 Q12102 Q12101 Q761735 Q281272 Q1757392 Q192370 Q377244 Q847329 Q216802 Q1993019 Q13922 Q604810 Q512009 Q497801 Q1601699 Q131620 Q385017 Q12075 Q221749 Q1917834 Q1632577 Q572800 Q639422 Q170247 Q47475 Q11492 Q642046 Q4068849 Q1754551 Q1024828 Q844038 Q1807777 Q492533 Q845424 Q487096 Q491667 Q638181 Q1648251 Q623685 Q622836 Q622830 Q672483 Q748867 Q15968 Q993466 Q1639365 Q430147 Q15639 Q427505 Q1758141 Q2004395 Q6178 Q13490 Q13491 Q836948 Q936624 Q1641454 Q534483 Q1605505 Q555913 Q615722 Q995637 Q465085 Q729958 Q12034 Q468563 Q2967 Q856583 Q918586 Q944264 Q943431 Q2099330 Q632621 Q581589 Q932808 Q122208 Q696797 Q1616138 Q1794121 Q1229949 Q1751908 Q18288148 Q763 Q502975 Q1998520 Q477311 Q207257 Q15652 Q984529 Q1228759 Q488555 Q49571 Q983473 Q695456 Q755695 Q3586 Q1026229 Q92161 Q851020 Q643919 Q1312465 Q10863 Q5978 Q515016 Q714538 Q928094 Q825883 Q668324 Q582995 Q697126 Q11720 Q484981 Q1272870 Q1651692 Q1649698 Q385923 Q677038 Q12534 Q501674 Q1767561 Q550985 Q13804 Q741749 Q1628531 Q1601614 Q353618 Q42780 Q10445 Q574869 Q919046 Q497692 Q984821 Q837051 Q13936 Q2064788 Q13930 Q619692 Q1641746 Q15597 Q23042 Q1637309 Q1998560 Q211925 Q5783 Q5785 Q835012 Q976534 Q1368982 Q202316 Q13149 Q290824 Q13755 Q986084 Q2244278 Q1368868 Q12711 Q1982975 Q13614 Q817302 Q6839 Q1630141 Q1757428 Q7911 Q596885 Q77433 Q318314 Q1646869 Q927800 Q749696 Q41161 Q28301 Q1613587 Q929759 Q74881 Q622823 Q983433 Q15974 Q830776 Q242906 Q1228035 Q15623 Q15622 Q15621 Q3303729 Q15626 Q10485 Q671272 Q1657213 Q240 Q1607392 Q1605519 Q904212 Q946068 Q192387 Q2044406 Q842211 Q1242382 Q203040 Q201149 Q68744 Q12335 Q229659 Q904130 Q13022 Q13159 Q778 Q15408 Q1751916 Q714613 Q1768489 Q646564 Q47593 Q215822 Q984642
(c(Q1048835),P190,c(Q13220204)|c(Q56061))
action less
action union
action find_tuple_counts
relation P190
type Q1048835
type Q13220204
action find_tuple_counts
relation P190
type Q1048835
type Q56061
action count
action filter_multi_types
action find
entity Q15174
relation P190
type Q13220204
type Q56061
[ANSWERS] are a sister city of lesser number of administrative country subdivisions and administrative territories than Shenzhen
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q13220204'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) ?p WHERE { { ?p property:P190 ?a . ?p rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q13220204 } UNION { ?p property:P190 ?a . ?a rdf:type ontology:Q56061 . ?p rdf:type ontology:Q1048835 } } GROUP BY ?p } . FILTER ( ?v < ?o ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { resource:Q15174 property:P190 ?b . { { ?b rdf:type ontology:Q13220204 } UNION { ?b rdf:type ontology:Q56061 } } } } }
Macaé San Sebastián de los Reyes Mazaricos Hanover region Cangas Salvador Maracanaú Santa Coloma de Gramenet Algeciras Sant Adrià de Besòs Mundaka Monroy Arbúcies Cabra Zarautz Urussanga Göttingen Tres Cantos Guimarães Lüchow-Dannenberg Móstoles Alberic Cerdà Briviesca North Lanarkshire Coslada Parintins El Prat de Llobregat Novo Hamburgo Valverde Peñafiel, Spain Karrantza Arévalo Molina de Aragón Rhein-Pfalz-Kreis Malgrat de Mar Santa Cruz de La Palma Palafolls Itajaí Algemesí Sanlúcar de Barrameda Chengdu Santarém Lääne-Viru County San Bartolomé de Tirajana Ruente Vilafant Balmaseda L'Hospitalet de Llobregat Carlet Vitória Wrexham Itambé Arafo Castelló d'Empúries Gyeonggi Province Torrox Oñati Montilla Calatayud Parla Maringá Westerwaldkreis Mollet del Vallès Sant Sadurní d'Anoia Main-Taunus-Kreis Pelotas Marburg-Biedenkopf Peligros Lahn-Dill-Kreis Belinho Rheingau-Taunus-Kreis Sant Joan de les Abadesses Tocina Chiclana de la Frontera São João de Loure Arnedo Almagro, Ciudad Real Pomerode North Jeolla Province Ciutadella de Menorca Callosa de Segura Duruelo de la Sierra Torrelodones San Borja Tàrrega Rügen Vielha e Mijaran Iúna, Espírito Santo Wuhan Porto Seguro Pastrana Brieskow-Finkenheerd Special Region of Yogyakarta Barreiro Macael Diamantina, Minas Gerais East Dunbartonshire Tomelloso Encantado Fuenlabrada Mondoñedo Salobreña Malpica de Bergantiños Criciúma Salvatierra/Agurain Crevillent Flintshire Arenys de Mar A Estrada Barberà del Vallès Candelaria Cassà de la Selva Farroupilha Jaca Harju County Quaraí Santa Amalia Sant Feliu de Guíxols Caudete Autol Veranópolis Vale of Glamorgan Gramado Monzón Vélez-Rubio Hangzhou Cigales Cavite Almuñécar Las Gabias Palmas Igualada Rivne Torrent Caspe Zafra Santana do Livramento Burgo de Osma-Ciudad de Osma Joinville Cehegín Canals Medina de Pomar Alcaudete Vila Nova de Cerveira Atarfe Alanís Sádaba Sort Tui Museros Torredonjimeno San Fernando São José dos Pinhais Paiporta Cornellà de Llobregat Calanda Iznalloz Uncastillo Nova Pádua Kirovohrad Oblast Alfaro, La Rioja Pedrajas de San Esteban Torrejón de Ardoz Santa Maria Barakaldo Vic Oliveira do Douro, Vila Nova de Gaia Santa Susanna Sant Vicenç dels Horts Las Rozas de Madrid Manilva Casca, Rio Grande do Sul Segorbe Montgat Teià Padrón Kulmbach Benifaió Carcaixent Abanilla Pontarddulais Cascavel Los Palacios y Villafranca Recife Villafeliche Neath Port Talbot County Borough Roses Martorelles Mondorf-les-Bains Enz Rastatt Villa El Salvador District Massaranduba, Santa Catarina Aratiba Arroio do Meio Escalona Cella Hersfeld-Rotenburg Ouro Preto Collado Villalba Maracena Vilanova de Arousa Schwalm-Eder-Kreis Sitges Vilanova i la Geltrú Alcalá del Río Villanueva de la Cañada Cubelles Governador Valadares Graus Valdepeñas San Lorenzo de El Escorial Rhondda Cynon Taf Medina del Campo Viveiro João Pessoa Tortosa Bigastro Valdemoro Clavijo São Mateus, Espírito Santo Qingdao Harbin Colmenar Viejo Guernica Mora Caldes d'Estrac Arenys de Munt Montblanc Linares Ilópolis Tartu County Catoira Comillas Falkirk Meliana Cerdanyola del Vallès Markina-Xemein San Sebastián de La Gomera Tolosa Villamanrique de la Condesa Natal Valencia de Don Juan Vilassar de Dalt Torrevieja Albaida Benalup-Casas Viejas Alcañiz Pozuelo de Alarcón Jinan Sigüenza Mataró Calahorra Argoncilhe Mostardas Luso Valverde del Camino Itiúba Andorra Peniscola Reus San Vicente del Raspeig / Sant Vicent del Raspeig Alcalá la Real Medina de Rioseco Ólvega Teresópolis Caruaru Ordizia Baiona Santa Margarita de Montbui Santa Cruz Cabrália La Muela Teror Sant Feliu de Llobregat Majadahonda São Pedro do Butiá Piraquara Oder-Spree Palafrugell Palamós Toro Fuentepelayo Calatorao Barcarrota Celanova Castril Santa Fe Torredembarra Almadén Mochola Alella Nova Friburgo Rendsburg-Eckernförde Gaspar, Santa Catarina Oliva Tacoronte, Santa Cruz de Tenerife Granadilla de Abona Vicente López Partido Archena Oyón-Oion Ormaiztegi Olocau Balaguer Pilas Aquiraz El Perelló San Martín de Valdeiglesias Metropolitan City of Florence Saint Kitts and Nevis Barbastro L'Eliana Amposta East Lothian Viladecans Cariñena La Unión Baeza Sos del Rey Católico Novelda Bailén Fuenmayor East Java Miraflores Changchun Xàbia Torfaen County Borough Benifairó de la Valldigna Picassent Hildesheim Castuera Zapsonj Ponta Porã Valls San Adrián Lanjarón Bridgend County Borough Shenyang Láchar Santiago de Figueiró Tudela de Duero Alaquàs Alcúdia San Miguel de Abona Sant Pol de Mar Alhama de Granada Valverde de Júcar Armilla Manlleu Chipiona Quintanar de la Orden Gerena Adeje Ningbo Forchheim Pedrola Consuegra Arganda del Rey Onda Mequinenza Sant Cugat del Vallès Lapa Almansa La Zubia Huelma Castelldefels Paterna Ezcaray Blanca East Renfrewshire Andalusia Cayman Islands Vilafranca del Penedès Castrillo Mota de Judíos Azuaga Foz do Iguaçu Nerja Ondara Bulacan Bétera Tías, Las Palmas Berantevilla Vall de Boí Los Alcázares Banyoles Benicarló Figueres Sayalonga Monte Belo do Sul Main-Kinzig-Kreis Blaenau Gwent County Borough Leganés Ipatinga Les Alqueries Bronniki Albalat de la Ribera South Jeolla Province Olinda Fregenal de la Sierra El Vendrell Dalian Uruguaiana Güímar Vilanova del Camí Yanoshi Ponta Grossa Ugao-Miraballes Martorell Gavà Esplugues de Llobregat Magdalena del Mar Olesa de Montserrat Deggendorf Calp Venta de Baños Brussels Madridejos Zuera Fraga Lezama Londrina L'Alcúdia San Fernando de Henares Elorrio El Puerto de Santa María Fife Xiamen Ripoll Zumaia Ribeira Amer Cañete la Real The Bahamas Castellterçol Villanueva del Pardillo Serne Utrillas Santo Domingo de la Calzada Belém Puertollano Canfranc
Saint Kitts and Nevis, The Bahamas and Montblanc are a sister city of lesser number of administrative country subdivisions and administrative territories than Shenzhen
Saint Kitts and Nevis The Bahamas Montblanc
action less
action union
action find_tuple_counts
relation sister city
type political territorial entity
type second-level administrative country subdivision
action find_tuple_counts
relation sister city
type political territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Shenzhen
relation sister city
type second-level administrative country subdivision
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) ?p WHERE { { ?p property:sister_city ?a . ?p rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?p property:sister_city ?a . ?a rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:political_territorial_entity } } GROUP BY ?p } . FILTER ( ?v < ?o ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { resource:Shenzhen property:sister_city ?b . { { ?b rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?b rdf:type ontology:administrative_territorial_entity } } } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2373234 Q763
P463
Q484652
USER
Which international organizations were Saint Kitts and Nevis or François Autain a member of ?
OR((Q763,P463,c(Q484652)), (Q2373234,P463,c(Q484652)))
action filter_type
action union
action find
entity Q763
relation P463
action find
entity Q2373234
relation P463
type Q484652
{'OR': [['Q763', 'P463', {'concept': 'Q484652'}], ['Q2373234', 'P463', {'concept': 'Q484652'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q763 property:P463 ?u } UNION { resource:Q2373234 property:P463 ?u } } . ?u rdf:type ontology:Q484652 }
François Autain Saint Kitts and Nevis
action filter_type
action union
action find
entity Saint Kitts and Nevis
relation member of
action find
entity François Autain
relation member of
type international organization
{'OR': [['Saint Kitts and Nevis', 'member of', {'concept': 'international organization'}], ['François Autain', 'member of', {'concept': 'international organization'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Saint_Kitts_and_Nevis property:member_of ?u } UNION { resource:François_Autain property:member_of ?u } } . ?u rdf:type ontology:international_organization }
[]
international organization
Q496967 Q7785 Q1065 Q939743 Q294278 Q205995 Q1043527
SYSTEM
Alliance of Small Island States, Commonwealth of Nations, United Nations, Parliamentary Assembly of the Council of Europe, African, Caribbean and Pacific Group of States, Caribbean Community, Multilateral Investment Guarantee Agency
Q496967 Q7785 Q1065 Q939743 Q294278 Q205995 Q1043527
OR((Q763,P463,c(Q484652)), (Q2373234,P463,c(Q484652)))
action filter_type
action union
action find
entity Q763
relation P463
action find
entity Q2373234
relation P463
type Q484652
[ANSWERS] were Saint Kitts and Nevis or François Autain a member of
{'OR': [['Q763', 'P463', {'concept': 'Q484652'}], ['Q2373234', 'P463', {'concept': 'Q484652'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q763 property:P463 ?u } UNION { resource:Q2373234 property:P463 ?u } } . ?u rdf:type ontology:Q484652 }
Alliance of Small Island States Commonwealth of Nations United Nations Parliamentary Assembly of the Council of Europe African, Caribbean and Pacific Group of States Caribbean Community Multilateral Investment Guarantee Agency
Alliance of Small Island States, Commonwealth of Nations, United Nations, Parliamentary Assembly of the Council of Europe, African, Caribbean and Pacific Group of States, Caribbean Community and Multilateral Investment Guarantee Agency were Saint Kitts and Nevis or François Autain a member of
Alliance of Small Island States Commonwealth of Nations United Nations Parliamentary Assembly of the Council of Europe African, Caribbean and Pacific Group of States Caribbean Community Multilateral Investment Guarantee Agency
action filter_type
action union
action find
entity Saint Kitts and Nevis
relation member of
action find
entity François Autain
relation member of
type international organization
{'OR': [['Saint Kitts and Nevis', 'member of', {'concept': 'international organization'}], ['François Autain', 'member of', {'concept': 'international organization'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Saint_Kitts_and_Nevis property:member_of ?u } UNION { resource:François_Autain property:member_of ?u } } . ?u rdf:type ontology:international_organization }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q408
P530
Q1048835 Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with approximately the same number of political territories or administrative territories as Australia ?
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action approx
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find
entity Q408
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { resource:Q408 property:P530 ?z . { { ?z rdf:type ontology:Q1048835 } UNION { ?z rdf:type ontology:Q15617994 } } } } . FILTER ( ?f = ?g ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) ?m WHERE { { ?m property:P530 ?e . ?m rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1048835 } UNION { ?m property:P530 ?e . ?m rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } } GROUP BY ?m } }
Australia
action approx
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Australia
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { resource:Australia property:diplomatic_relation ?z . { { ?z rdf:type ontology:political_territorial_entity } UNION { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?f = ?g ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) ?m WHERE { { ?m property:diplomatic_relation ?e . ?m rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:political_territorial_entity } UNION { ?m property:diplomatic_relation ?e . ?m rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?m } }
[]
political territorial entity designation for an administrative territorial entity political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action approx
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find
entity Q408
relation P530
type Q1048835
type Q15617994
[ANSWERS] have ambassadorial relations with approximately the same number of political territories or administrative territories as Australia
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { resource:Q408 property:P530 ?z . { { ?z rdf:type ontology:Q1048835 } UNION { ?z rdf:type ontology:Q15617994 } } } } . FILTER ( ?f = ?g ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) ?m WHERE { { ?m property:P530 ?e . ?m rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1048835 } UNION { ?m property:P530 ?e . ?m rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } } GROUP BY ?m } }
Germany Australia
Germany and Australia have ambassadorial relations with approximately the same number of political territories or administrative territories as Australia
Germany Australia
action approx
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Australia
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { resource:Australia property:diplomatic_relation ?z . { { ?z rdf:type ontology:political_territorial_entity } UNION { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?f = ?g ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) ?m WHERE { { ?m property:diplomatic_relation ?e . ?m rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:political_territorial_entity } UNION { ?m property:diplomatic_relation ?e . ?m rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?m } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6698768
P530
Q15617994
USER
Are Ludham Bridge known to have diplomatic connections with those political territories ?
(Q6698768,P530,Q183) (Q6698768,P530,Q408)
action is_in
entity prev_answer
action find
entity Q6698768
relation P530
['Q6698768', 'P530', 'Q183'] ['Q6698768', 'P530', 'Q408']
ASK WHERE { VALUES ( ?k ) { ( resource:Q183 ) ( resource:Q408 ) } . resource:Q6698768 property:P530 ?k }
Ludham Bridge
action is_in
entity prev_answer
action find
entity Ludham Bridge
relation diplomatic relation
['Ludham Bridge', 'diplomatic relation', 'Germany'] ['Ludham Bridge', 'diplomatic relation', 'Australia']
ASK WHERE { VALUES ( ?k ) { ( resource:Germany ) ( resource:Australia ) } . resource:Ludham_Bridge property:diplomatic_relation ?k }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q6698768,P530,Q183) (Q6698768,P530,Q408)
action is_in
entity prev_answer
action find
entity Q6698768
relation P530
[ANSWER]
['Q6698768', 'P530', 'Q183'] ['Q6698768', 'P530', 'Q408']
ASK WHERE { VALUES ( ?k ) { ( resource:Q183 ) ( resource:Q408 ) } . resource:Q6698768 property:P530 ?k }
No
action is_in
entity prev_answer
action find
entity Ludham Bridge
relation diplomatic relation
['Ludham Bridge', 'diplomatic relation', 'Germany'] ['Ludham Bridge', 'diplomatic relation', 'Australia']
ASK WHERE { VALUES ( ?k ) { ( resource:Germany ) ( resource:Australia ) } . resource:Ludham_Bridge property:diplomatic_relation ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q778
P138
Q19832486
USER
Which locomotive class is the eponym of The Bahamas ?
(c(Q19832486),P138,Q778)
action filter_type
action find_reverse
entity Q778
relation P138
type Q19832486
[{'concept': 'Q19832486'}, 'P138', 'Q778']
SELECT DISTINCT ?x WHERE { ?x property:P138 resource:Q778 . ?x rdf:type ontology:Q19832486 }
The Bahamas
action filter_type
action find_reverse
entity The Bahamas
relation named after
type locomotive class
[{'concept': 'locomotive class'}, 'named after', 'The Bahamas']
SELECT DISTINCT ?x WHERE { ?x property:named_after resource:The_Bahamas . ?x rdf:type ontology:locomotive_class }
[]
locomotive class
Q6459112
SYSTEM
LMS Jubilee Class 5596 Bahamas
Q6459112
(c(Q19832486),P138,Q778)
action filter_type
action find_reverse
entity Q778
relation P138
type Q19832486
[ANSWER] is the eponym of The Bahamas
[{'concept': 'Q19832486'}, 'P138', 'Q778']
SELECT DISTINCT ?x WHERE { ?x property:P138 resource:Q778 . ?x rdf:type ontology:Q19832486 }
LMS Jubilee Class 5596 Bahamas
LMS Jubilee Class 5596 Bahamas is the eponym of The Bahamas
LMS Jubilee Class 5596 Bahamas
action filter_type
action find_reverse
entity The Bahamas
relation named after
type locomotive class
[{'concept': 'locomotive class'}, 'named after', 'The Bahamas']
SELECT DISTINCT ?x WHERE { ?x property:named_after resource:The_Bahamas . ?x rdf:type ontology:locomotive_class }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6459112
P176
Q43229
USER
Which organization is the manufacturer of that locomotive class ?
(Q6459112,P176,c(Q43229))
action filter_type
action find
entity Q6459112
relation P176
type Q43229
['Q6459112', 'P176', {'concept': 'Q43229'}]
SELECT DISTINCT ?i WHERE { resource:Q6459112 property:P176 ?i . ?i rdf:type ontology:Q43229 }
LMS Jubilee Class 5596 Bahamas
action filter_type
action find
entity LMS Jubilee Class 5596 Bahamas
relation manufacturer
type organization
['LMS Jubilee Class 5596 Bahamas', 'manufacturer', {'concept': 'organization'}]
SELECT DISTINCT ?i WHERE { resource:LMS_Jubilee_Class_5596_Bahamas property:manufacturer ?i . ?i rdf:type ontology:organization }
[]
organization
Q751494
SYSTEM
North British Locomotive Company
Q751494
(Q6459112,P176,c(Q43229))
action filter_type
action find
entity Q6459112
relation P176
type Q43229
[ANSWER] is the manufacturer of that locomotive class
['Q6459112', 'P176', {'concept': 'Q43229'}]
SELECT DISTINCT ?i WHERE { resource:Q6459112 property:P176 ?i . ?i rdf:type ontology:Q43229 }
North British Locomotive Company
North British Locomotive Company is the manufacturer of that locomotive class
North British Locomotive Company
action filter_type
action find
entity LMS Jubilee Class 5596 Bahamas
relation manufacturer
type organization
['LMS Jubilee Class 5596 Bahamas', 'manufacturer', {'concept': 'organization'}]
SELECT DISTINCT ?i WHERE { resource:LMS_Jubilee_Class_5596_Bahamas property:manufacturer ?i . ?i rdf:type ontology:organization }
[]