Simple Question (Direct)
Simple Question
Q604827
P20
Q56061
USER
Where did the expiration of Henri Gobbi occur ?
(Q604827,P20,c(Q56061))
action filter_type
action find
entity Q604827
relation P20
type Q56061
['Q604827', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q604827 property:P20 ?t . ?t rdf:type ontology:Q56061 }
Henri Gobbi
action filter_type
action find
entity Henri Gobbi
relation place of death
type administrative territorial entity
['Henri Gobbi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Henri_Gobbi property:place_of_death ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1781
SYSTEM
Budapest
Q1781
(Q604827,P20,c(Q56061))
action filter_type
action find
entity Q604827
relation P20
type Q56061
The expiration of Henri Gobbi occurred in [ANSWER]
['Q604827', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q604827 property:P20 ?t . ?t rdf:type ontology:Q56061 }
Budapest
The expiration of Henri Gobbi occurred in Budapest
Budapest
action filter_type
action find
entity Henri Gobbi
relation place of death
type administrative territorial entity
['Henri Gobbi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Henri_Gobbi property:place_of_death ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q604827
P802
Q502895
USER
Which people were Henri Gobbi a student of ?
(c(Q502895),P802,Q604827)
action filter_type
action find_reverse
entity Q604827
relation P802
type Q502895
[{'concept': 'Q502895'}, 'P802', 'Q604827']
SELECT DISTINCT ?l WHERE { ?l property:P802 resource:Q604827 . ?l rdf:type ontology:Q502895 }
Henri Gobbi
action filter_type
action find_reverse
entity Henri Gobbi
relation student
type common name
[{'concept': 'common name'}, 'student', 'Henri Gobbi']
SELECT DISTINCT ?l WHERE { ?l property:student resource:Henri_Gobbi . ?l rdf:type ontology:common_name }
[]
common name
Q303964 Q467848
SYSTEM
Károly Thern, Robert Volkmann
Q303964 Q467848
(c(Q502895),P802,Q604827)
action filter_type
action find_reverse
entity Q604827
relation P802
type Q502895
Henri Gobbi were [ANSWERS]
[{'concept': 'Q502895'}, 'P802', 'Q604827']
SELECT DISTINCT ?l WHERE { ?l property:P802 resource:Q604827 . ?l rdf:type ontology:Q502895 }
Károly Thern Robert Volkmann
Henri Gobbi were Károly Thern and Robert Volkmann
Károly Thern Robert Volkmann
action filter_type
action find_reverse
entity Henri Gobbi
relation student
type common name
[{'concept': 'common name'}, 'student', 'Henri Gobbi']
SELECT DISTINCT ?l WHERE { ?l property:student resource:Henri_Gobbi . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q303964 Q467848
P1066
Q502895
USER
Which people were advised by those ones ?
(c(Q502895),P1066,Q303964) (c(Q502895),P1066,Q467848)
action filter_type
action find_reverse
entity prev_answer
relation P1066
type Q502895
[{'concept': 'Q502895'}, 'P1066', 'Q303964'] [{'concept': 'Q502895'}, 'P1066', 'Q467848']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P1066 ?s . VALUES ( ?s ) { ( resource:Q303964 ) ( resource:Q467848 ) } }
Károly Thern Robert Volkmann
action filter_type
action find_reverse
entity prev_answer
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Károly Thern'] [{'concept': 'common name'}, 'student of', 'Robert Volkmann']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:student_of ?s . VALUES ( ?s ) { ( resource:Károly_Thern ) ( resource:Robert_Volkmann ) } }
[]
common name
Q516349 Q604827 Q20588566
SYSTEM
Károly Aggházy, Henri Gobbi, Lajos Serly
Q1289013 Q604827 Q20588566 Q516349 Q604827 Q20437514
(c(Q502895),P1066,Q303964) (c(Q502895),P1066,Q467848)
action filter_type
action find_reverse
entity prev_answer
relation P1066
type Q502895
[ANSWERS] were advised by those ones
[{'concept': 'Q502895'}, 'P1066', 'Q303964'] [{'concept': 'Q502895'}, 'P1066', 'Q467848']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P1066 ?s . VALUES ( ?s ) { ( resource:Q303964 ) ( resource:Q467848 ) } }
Antal Siposs Henri Gobbi Lajos Serly Károly Aggházy Henri Gobbi Károly Szabados
Károly Aggházy, Henri Gobbi and Lajos Serly were advised by those ones
Károly Aggházy Henri Gobbi Lajos Serly
action filter_type
action find_reverse
entity prev_answer
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Károly Thern'] [{'concept': 'common name'}, 'student of', 'Robert Volkmann']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:student_of ?s . VALUES ( ?s ) { ( resource:Károly_Thern ) ( resource:Robert_Volkmann ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q604827
P27
Q15617994
USER
Which administrative territory is Henri Gobbi an inhabitant of ?
(Q604827,P27,c(Q15617994))
action filter_type
action find
entity Q604827
relation P27
type Q15617994
['Q604827', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q604827 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
Henri Gobbi
action filter_type
action find
entity Henri Gobbi
relation country of citizenship
type designation for an administrative territorial entity
['Henri Gobbi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Henri_Gobbi property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28
SYSTEM
Hungary
Q28
(Q604827,P27,c(Q15617994))
action filter_type
action find
entity Q604827
relation P27
type Q15617994
[ANSWER] is Henri Gobbi an inhabitant of
['Q604827', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q604827 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
Hungary
Hungary is Henri Gobbi an inhabitant of
Hungary
action filter_type
action find
entity Henri Gobbi
relation country of citizenship
type designation for an administrative territorial entity
['Henri Gobbi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Henri_Gobbi property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4768776
Q15617994
USER
And also tell me about Anne Sargent?
(Q4768776,P27,c(Q15617994))
action filter_type
action find
entity Q4768776
relation P27
type Q15617994
['Q4768776', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q4768776 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Anne Sargent
action filter_type
action find
entity Anne Sargent
relation country of citizenship
type designation for an administrative territorial entity
['Anne Sargent', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Anne_Sargent property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q4768776,P27,c(Q15617994))
action filter_type
action find
entity Q4768776
relation P27
type Q15617994
[ANSWER]
['Q4768776', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q4768776 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity Anne Sargent
relation country of citizenship
type designation for an administrative territorial entity
['Anne Sargent', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Anne_Sargent property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q399
P530
Q15617994 Q15617994 Q1048835
USER
Which administrative territories have a diplomatic relationship with greater number of administrative territories or political territories than Armenia ?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q399
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?p ) WHERE { { ?t property:P530 ?r . ?t rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } UNION { ?t property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } } GROUP BY ?r } . FILTER ( ?p > ?f ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:P530 resource:Q399 . { ?h rdf:type ?a . VALUES ( ?a ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } } } }
Armenia
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Armenia
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?p ) WHERE { { ?t property:diplomatic_relation ?r . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?t property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } } GROUP BY ?r } . FILTER ( ?p > ?f ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:diplomatic_relation resource:Armenia . { ?h rdf:type ?a . VALUES ( ?a ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q252 Q403 Q258 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q822 Q241 Q31 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q27 Q843 Q222 Q347 Q17 Q1033 Q115 Q114 Q212 Q213 Q916 Q79 Q1016 Q1011 Q953
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q399
relation P530
type Q15617994
type Q1048835
[ANSWERS] have a diplomatic relationship with greater number of administrative territories or political territories than Armenia
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?p ) WHERE { { ?t property:P530 ?r . ?t rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } UNION { ?t property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } } GROUP BY ?r } . FILTER ( ?p > ?f ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:P530 resource:Q399 . { ?h rdf:type ?a . VALUES ( ?a ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } } } }
Israel Yemen India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Indonesia Serbia South Africa Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Lebanon Cuba Belgium United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Ireland Pakistan Albania Liechtenstein Japan Nigeria Ethiopia Kenya Ukraine Czech Republic Angola Egypt Libya Cape Verde Zambia
Italy, Brazil and United States of America have a diplomatic relationship with greater number of administrative territories or political territories than Armenia
Italy Brazil United States of America
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Armenia
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?p ) WHERE { { ?t property:diplomatic_relation ?r . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?t property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } } GROUP BY ?r } . FILTER ( ?p > ?f ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:diplomatic_relation resource:Armenia . { ?h rdf:type ?a . VALUES ( ?a ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1030
P17
Q15617994 Q355304 Q15700808
USER
How many administrative territories do less number of watercourses and urban unit definitions belong to than Namibia ?
(c(Q355304)|c(Q15700808),P17,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q355304
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q15700808
action count
action filter_multi_types
action find_reverse
entity Q1030
relation P17
type Q355304
type Q15700808
[[{'concept': 'Q355304'}, {'concept': 'Q15700808'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?y ) AS ?p ) WHERE { VALUES ( ?v ) { ( ontology:Q355304 ) ( ontology:Q15700808 ) } . ?y rdf:type ?v } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { ?x property:P17 resource:Q1030 . { { ?x rdf:type ontology:Q355304 } UNION { ?x rdf:type ontology:Q15700808 } } } } . FILTER ( ?p < ?g ) }
Namibia
action count
action less
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type watercourse
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type urban unit definition
action count
action filter_multi_types
action find_reverse
entity Namibia
relation country
type watercourse
type urban unit definition
[[{'concept': 'watercourse'}, {'concept': 'urban unit definition'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?y ) AS ?p ) WHERE { VALUES ( ?v ) { ( ontology:watercourse ) ( ontology:urban_unit_definition ) } . ?y rdf:type ?v } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { ?x property:country resource:Namibia . { { ?x rdf:type ontology:watercourse } UNION { ?x rdf:type ontology:urban_unit_definition } } } } . FILTER ( ?p < ?g ) }
[]
designation for an administrative territorial entity watercourse urban unit definition
SYSTEM
134
Q702 Q801 Q1256 Q709 Q398 Q805 Q339952 Q270508 Q684030 Q2172530 Q12536 Q262 Q640426 Q36678 Q736029 Q710 Q565812 Q187035 Q1462 Q657 Q792 Q517333 Q796 Q2001966 Q326029 Q986 Q153529 Q695316 Q4628 Q826 Q165040 Q822 Q244 Q315667 Q811 Q153136 Q1210 Q921 Q155019 Q423 Q983 Q851 Q29999 Q819 Q107426 Q1282 Q159626 Q236 Q233 Q238 Q1045 Q1044 Q1042 Q1041 Q177323 Q313175 Q149621 Q1025 Q1027 Q1020 Q842 Q1029 Q34762 Q1458 Q32 Q228 Q3462133 Q223 Q815731 Q47261 Q229 Q347 Q1050 Q977 Q704288 Q10957559 Q1037 Q1032 Q965 Q967 Q962 Q697 Q695 Q389004 Q754 Q217 Q1013 Q160307 Q164092 Q1483510 Q912 Q2662372 Q917 Q1007 Q1005 Q829700 Q1008 Q971 Q970 Q239502 Q683 Q15581 Q34020 Q2380910 Q686 Q193152 Q574 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q874 Q79 Q696651 Q858 Q878 Q948 Q817 Q810 Q1014 Q1016 Q148499 Q1011 Q945 Q678 Q8575586 Q529605 Q1039 Q672 Q33788 Q11024667 Q1049 Q426025
(c(Q355304)|c(Q15700808),P17,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q355304
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q15700808
action count
action filter_multi_types
action find_reverse
entity Q1030
relation P17
type Q355304
type Q15700808
[ANSWER]
[[{'concept': 'Q355304'}, {'concept': 'Q15700808'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?y ) AS ?p ) WHERE { VALUES ( ?v ) { ( ontology:Q355304 ) ( ontology:Q15700808 ) } . ?y rdf:type ?v } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { ?x property:P17 resource:Q1030 . { { ?x rdf:type ontology:Q355304 } UNION { ?x rdf:type ontology:Q15700808 } } } } . FILTER ( ?p < ?g ) }
Federated States of Micronesia Israel Liguria Marshall Islands Bahrain Yemen Principality of Orange-Nassau Andora Principality of Serbia Electorate of Württemberg Abbasid caliphate Algeria Stahnsdorf West Bank Nassau-Siegen Kiribati Principality of Calenberg Principality of Albania Sardinia Chad El Salvador Principality of Polotsk Iraq Company rule in India Duchy of Brunswick Eritrea Duchy of Milan Schwarzburg-Rudolstadt Faroe Islands Maldives Duchy of Parma Lebanon Barbados Saxe-Weimar Nicaragua Habsburg Empire Lombardy Brunei Duchy of Lorraine North Korea Equatorial Guinea Saudi Arabia Kingdom of the Netherlands Laos Anjou Lazio Württemberg Montenegro Malta San Marino Somalia Sierra Leone Seychelles Senegal developing country Saxe-Lauenburg district Mauritania Mauritius Malawi Oman Mozambique Principality of Bayreuth Calabria Luxembourg Andorra Saxe-Coburg and Gotha Greenland Principality of Bulgaria Duchy of Bavaria Cyprus Liechtenstein Swaziland Djibouti Duchy of Holstein Moldavia Rwanda Niger Burkina Faso Burundi Benin Nauru Palau Wallachia Trinidad and Tobago Republic of Moldova Lesotho Fatimid caliphate Duchy of Saxony Principality of Wales Mali Principality of Minsk Bhutan Guinea-Bissau Gambia Saxe-Jena Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Samoa Principality of Catalonia Niue Duchy of Zaslawye Vanuatu Great Moravia East Timor Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Turkmenistan Egypt Saxe-Eisenach Syria United Arab Emirates Tunisia Kuwait Jordan Liberia Libya Margraviate of Brandenburg Cape Verde Togo Tonga Umayyad Caliphate Electorate of Hesse Sao Tomé and Príncipe Tuvalu New Caledonia Duchy of Mecklenburg-Schwerin Sudan Duchy of Savoy
134
action count
action less
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type watercourse
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type urban unit definition
action count
action filter_multi_types
action find_reverse
entity Namibia
relation country
type watercourse
type urban unit definition
[[{'concept': 'watercourse'}, {'concept': 'urban unit definition'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?y ) AS ?p ) WHERE { VALUES ( ?v ) { ( ontology:watercourse ) ( ontology:urban_unit_definition ) } . ?y rdf:type ?v } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { ?x property:country resource:Namibia . { { ?x rdf:type ontology:watercourse } UNION { ?x rdf:type ontology:urban_unit_definition } } } } . FILTER ( ?p < ?g ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q28
P17
Q15617994 Q355304 Q15700808
USER
And how about Hungary?
(c(Q355304)|c(Q15700808),P17,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q355304
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q15700808
action count
action filter_multi_types
action find_reverse
entity Q28
relation P17
type Q355304
type Q15700808
[[{'concept': 'Q355304'}, {'concept': 'Q15700808'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?z ) WHERE { { ?t property:P17 ?q . ?t rdf:type ontology:Q15700808 . ?q rdf:type ontology:Q15617994 } UNION { ?t property:P17 ?q . ?q rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q355304 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { ?p property:P17 resource:Q28 . { ?p rdf:type ?y . VALUES ( ?y ) { ( ontology:Q355304 ) ( ontology:Q15700808 ) } } } } . FILTER ( ?z < ?n ) }
Hungary
action count
action less
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type watercourse
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type urban unit definition
action count
action filter_multi_types
action find_reverse
entity Hungary
relation country
type watercourse
type urban unit definition
[[{'concept': 'watercourse'}, {'concept': 'urban unit definition'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?z ) WHERE { { ?t property:country ?q . ?t rdf:type ontology:urban_unit_definition . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?t property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:watercourse } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { ?p property:country resource:Hungary . { ?p rdf:type ?y . VALUES ( ?y ) { ( ontology:watercourse ) ( ontology:urban_unit_definition ) } } } } . FILTER ( ?z < ?n ) }
[]
designation for an administrative territorial entity watercourse urban unit definition
SYSTEM
177
Q702 Q804 Q801 Q1256 Q709 Q398 Q805 Q339952 Q270508 Q684030 Q2172530 Q12536 Q262 Q783 Q265 Q214 Q640426 Q36678 Q736029 Q711 Q710 Q837 Q565812 Q187035 Q399 Q1462 Q657 Q792 Q790 Q517333 Q796 Q889 Q2001966 Q326029 Q884 Q958 Q986 Q153529 Q695316 Q4628 Q826 Q165040 Q822 Q241 Q242 Q244 Q315667 Q811 Q153136 Q1210 Q921 Q924 Q155019 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q107426 Q424 Q730 Q1282 Q159626 Q236 Q230 Q233 Q238 Q1045 Q1044 Q1042 Q1041 Q177323 Q313175 Q149621 Q1025 Q1027 Q1020 Q843 Q842 Q1029 Q1028 Q836 Q34762 Q1458 Q786 Q32 Q228 Q3462133 Q227 Q224 Q223 Q222 Q221 Q815731 Q47261 Q229 Q347 Q1050 Q977 Q704288 Q10957559 Q1036 Q1037 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q114 Q117 Q389004 Q754 Q217 Q1013 Q160307 Q164092 Q1483510 Q912 Q2662372 Q917 Q1007 Q1006 Q1005 Q829700 Q1009 Q1008 Q971 Q970 Q239502 Q683 Q15581 Q34020 Q2380910 Q686 Q193152 Q760 Q574 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q874 Q79 Q696651 Q77 Q858 Q878 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q148499 Q1011 Q945 Q678 Q8575586 Q529605 Q1039 Q672 Q33788 Q929 Q11024667 Q863 Q1049 Q426025 Q953
(c(Q355304)|c(Q15700808),P17,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q355304
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q15700808
action count
action filter_multi_types
action find_reverse
entity Q28
relation P17
type Q355304
type Q15700808
[ANSWER]
[[{'concept': 'Q355304'}, {'concept': 'Q15700808'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?z ) WHERE { { ?t property:P17 ?q . ?t rdf:type ontology:Q15700808 . ?q rdf:type ontology:Q15617994 } UNION { ?t property:P17 ?q . ?q rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q355304 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { ?p property:P17 resource:Q28 . { ?p rdf:type ?y . VALUES ( ?y ) { ( ontology:Q355304 ) ( ontology:Q15700808 ) } } } } . FILTER ( ?z < ?n ) }
Federated States of Micronesia Panama Israel Liguria Marshall Islands Bahrain Yemen Principality of Orange-Nassau Andora Principality of Serbia Electorate of Württemberg Abbasid caliphate Algeria Honduras Uzbekistan Slovakia Stahnsdorf West Bank Nassau-Siegen Mongolia Kiribati Nepal Principality of Calenberg Principality of Albania Armenia Sardinia Chad El Salvador Haiti Principality of Polotsk Iraq Afghanistan Company rule in India Duchy of Brunswick South Korea South Sudan Eritrea Duchy of Milan Schwarzburg-Rudolstadt Faroe Islands Maldives Duchy of Parma Lebanon Cuba Belize Barbados Saxe-Weimar Nicaragua Habsburg Empire Lombardy Brunei Tanzania Duchy of Lorraine North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Anjou Cambodia Suriname Lazio Württemberg Montenegro Georgia Malta San Marino Somalia Sierra Leone Seychelles Senegal developing country Saxe-Lauenburg district Mauritania Mauritius Malawi Pakistan Oman Mozambique Morocco Myanmar Principality of Bayreuth Calabria Dominican Republic Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Duchy of Bavaria Cyprus Liechtenstein Swaziland Djibouti Duchy of Holstein Moldavia Uganda Rwanda Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Kenya Ghana Wallachia Trinidad and Tobago Republic of Moldova Lesotho Fatimid caliphate Duchy of Saxony Principality of Wales Mali Principality of Minsk Bhutan Guinea-Bissau Guinea Gambia Saxe-Jena Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Samoa Principality of Catalonia Niue Duchy of Zaslawye Vanuatu Great Moravia Saint Lucia East Timor Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Turkmenistan Egypt Saxe-Eisenach Uruguay Syria United Arab Emirates Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Margraviate of Brandenburg Cape Verde Togo Tonga Umayyad Caliphate Electorate of Hesse Sao Tomé and Príncipe Tuvalu New Caledonia Central African Republic Duchy of Mecklenburg-Schwerin Tajikistan Sudan Duchy of Savoy Zambia
177
action count
action less
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type watercourse
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type urban unit definition
action count
action filter_multi_types
action find_reverse
entity Hungary
relation country
type watercourse
type urban unit definition
[[{'concept': 'watercourse'}, {'concept': 'urban unit definition'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?z ) WHERE { { ?t property:country ?q . ?t rdf:type ontology:urban_unit_definition . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?t property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:watercourse } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { ?p property:country resource:Hungary . { ?p rdf:type ?y . VALUES ( ?y ) { ( ontology:watercourse ) ( ontology:urban_unit_definition ) } } } } . FILTER ( ?z < ?n ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q28 Q865
P530
Q1048835
USER
How many political territories have diplomatic relationships with Hungary or Taiwan ?
(Q28,P530,c(Q1048835)) (Q865,P530,c(Q1048835))
action count
action union
action filter_type
action find
entity Q28
relation P530
type Q1048835
action filter_type
action find
entity Q865
relation P530
type Q1048835
['Q28', 'P530', {'concept': 'Q1048835'}] ['Q865', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { VALUES ( ?h ) { ( resource:Q865 ) ( resource:Q28 ) } . ?h property:P530 ?p }
Hungary Taiwan
action count
action union
action filter_type
action find
entity Hungary
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Taiwan
relation diplomatic relation
type political territorial entity
['Hungary', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Taiwan', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { VALUES ( ?h ) { ( resource:Taiwan ) ( resource:Hungary ) } . ?h property:diplomatic_relation ?p }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(Q28,P530,c(Q1048835)) (Q865,P530,c(Q1048835))
action count
action union
action filter_type
action find
entity Q28
relation P530
type Q1048835
action filter_type
action find
entity Q865
relation P530
type Q1048835
[ANSWER]
['Q28', 'P530', {'concept': 'Q1048835'}] ['Q865', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { VALUES ( ?h ) { ( resource:Q865 ) ( resource:Q28 ) } . ?h property:P530 ?p }
Australia Germany
2
action count
action union
action filter_type
action find
entity Hungary
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Taiwan
relation diplomatic relation
type political territorial entity
['Hungary', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Taiwan', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { VALUES ( ?h ) { ( resource:Taiwan ) ( resource:Hungary ) } . ?h property:diplomatic_relation ?p }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26692963 Q1030
P530 P1001
Q1048835
USER
Which political territories have a diplomatic relationship with Namibia or belong to jurisdiction of mayor of Cabañas de Yepes ?
OR((Q1030,P530,c(Q1048835)), (Q26692963,P1001,c(Q1048835)))
action filter_type
action union
action find
entity Q1030
relation P530
action find
entity Q26692963
relation P1001
type Q1048835
{'OR': [['Q1030', 'P530', {'concept': 'Q1048835'}], ['Q26692963', 'P1001', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1030 property:P530 ?m } UNION { resource:Q26692963 property:P1001 ?m } } . ?m rdf:type ontology:Q1048835 }
mayor of Cabañas de Yepes Namibia
action filter_type
action union
action find
entity Namibia
relation diplomatic relation
action find
entity mayor of Cabañas de Yepes
relation applies to jurisdiction
type political territorial entity
{'OR': [['Namibia', 'diplomatic relation', {'concept': 'political territorial entity'}], ['mayor of Cabañas de Yepes', 'applies to jurisdiction', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Namibia property:diplomatic_relation ?m } UNION { resource:mayor_of_Cabañas_de_Yepes property:applies_to_jurisdiction ?m } } . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1632897 Q408 Q16 Q183
SYSTEM
Cabañas de Yepes, Australia, Canada, Germany
Q1632897 Q408 Q16 Q183
OR((Q1030,P530,c(Q1048835)), (Q26692963,P1001,c(Q1048835)))
action filter_type
action union
action find
entity Q1030
relation P530
action find
entity Q26692963
relation P1001
type Q1048835
[ANSWERS] have a diplomatic relationship with Namibia or belong to jurisdiction of mayor of Cabañas de Yepes
{'OR': [['Q1030', 'P530', {'concept': 'Q1048835'}], ['Q26692963', 'P1001', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1030 property:P530 ?m } UNION { resource:Q26692963 property:P1001 ?m } } . ?m rdf:type ontology:Q1048835 }
Cabañas de Yepes Australia Canada Germany
Cabañas de Yepes, Australia, Canada and Germany have a diplomatic relationship with Namibia or belong to jurisdiction of mayor of Cabañas de Yepes
Cabañas de Yepes Australia Canada Germany
action filter_type
action union
action find
entity Namibia
relation diplomatic relation
action find
entity mayor of Cabañas de Yepes
relation applies to jurisdiction
type political territorial entity
{'OR': [['Namibia', 'diplomatic relation', {'concept': 'political territorial entity'}], ['mayor of Cabañas de Yepes', 'applies to jurisdiction', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Namibia property:diplomatic_relation ?m } UNION { resource:mayor_of_Cabañas_de_Yepes property:applies_to_jurisdiction ?m } } . ?m rdf:type ontology:political_territorial_entity }
[]