Simple Question (Direct)
Simple Question
Q66218
P47
Q56061
USER
Which administrative territories are adjacent to Kandersteg ?
(Q66218,P47,c(Q56061))
action filter_type
action find
entity Q66218
relation P47
type Q56061
['Q66218', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q66218 property:P47 ?r . ?r rdf:type ontology:Q56061 }
Kandersteg
action filter_type
action find
entity Kandersteg
relation shares border with
type administrative territorial entity
['Kandersteg', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Kandersteg property:shares_border_with ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64011 Q66208
SYSTEM
Lauterbrunnen, Frutigen
Q64011 Q66208
(Q66218,P47,c(Q56061))
action filter_type
action find
entity Q66218
relation P47
type Q56061
[ANSWERS] are adjacent to Kandersteg
['Q66218', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q66218 property:P47 ?r . ?r rdf:type ontology:Q56061 }
Lauterbrunnen Frutigen
Lauterbrunnen and Frutigen are adjacent to Kandersteg
Lauterbrunnen Frutigen
action filter_type
action find
entity Kandersteg
relation shares border with
type administrative territorial entity
['Kandersteg', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Kandersteg property:shares_border_with ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q64011 Q66208
P47
Q13220204
USER
Which administrative country subdivisions share border with those administrative territories ?
(Q64011,P47,c(Q13220204)) (Q66208,P47,c(Q13220204))
action filter_type
action find
entity prev_answer
relation P47
type Q13220204
['Q64011', 'P47', {'concept': 'Q13220204'}] ['Q66208', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ?m WHERE { ?h property:P47 ?m . VALUES ( ?h ) { ( resource:Q64011 ) ( resource:Q66208 ) } . ?m rdf:type ontology:Q13220204 }
Lauterbrunnen Frutigen
action filter_type
action find
entity prev_answer
relation shares border with
type second-level administrative country subdivision
['Lauterbrunnen', 'shares border with', {'concept': 'second-level administrative country subdivision'}] ['Frutigen', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?m WHERE { ?h property:shares_border_with ?m . VALUES ( ?h ) { ( resource:Lauterbrunnen ) ( resource:Frutigen ) } . ?m rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q70716 Q66218 Q66218
SYSTEM
Fieschertal for 1st, Kandersteg for 2nd, 3rd
Q68327 Q65560 Q66218 Q66017 Q66378 Q67496 Q70716 Q66009 Q66218 Q66378
(Q64011,P47,c(Q13220204)) (Q66208,P47,c(Q13220204))
action filter_type
action find
entity prev_answer
relation P47
type Q13220204
[ANSWERS]
['Q64011', 'P47', {'concept': 'Q13220204'}] ['Q66208', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ?m WHERE { ?h property:P47 ?m . VALUES ( ?h ) { ( resource:Q64011 ) ( resource:Q66208 ) } . ?m rdf:type ontology:Q13220204 }
Aeschi bei Spiez Gündlischwand Kandersteg Lütschental Reichenbach im Kandertal Blatten Fieschertal Saxeten Kandersteg Reichenbach im Kandertal
Fieschertal, Kandersteg and Kandersteg share border with those administrative territories
Fieschertal Kandersteg Kandersteg
action filter_type
action find
entity prev_answer
relation shares border with
type second-level administrative country subdivision
['Lauterbrunnen', 'shares border with', {'concept': 'second-level administrative country subdivision'}] ['Frutigen', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?m WHERE { ?h property:shares_border_with ?m . VALUES ( ?h ) { ( resource:Lauterbrunnen ) ( resource:Frutigen ) } . ?m rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q66218
P17
Q15617994
USER
Which administrative territory is that administrative country subdivision a part of ?
(Q70716,P17,c(Q15617994)) (Q66218,P17,c(Q15617994)) (Q66218,P17,c(Q15617994))
action filter_type
action find
entity Q66218
relation P17
type Q15617994
['Q70716', 'P17', {'concept': 'Q15617994'}] ['Q66218', 'P17', {'concept': 'Q15617994'}] ['Q66218', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q66218 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
Kandersteg
action filter_type
action find
entity Kandersteg
relation country
type designation for an administrative territorial entity
['Fieschertal', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Kandersteg', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Kandersteg', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Kandersteg property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39
SYSTEM
Switzerland
Q39
(Q70716,P17,c(Q15617994)) (Q66218,P17,c(Q15617994)) (Q66218,P17,c(Q15617994))
action filter_type
action find
entity Q66218
relation P17
type Q15617994
[ANSWER] is that administrative country subdivision a part of
['Q70716', 'P17', {'concept': 'Q15617994'}] ['Q66218', 'P17', {'concept': 'Q15617994'}] ['Q66218', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q66218 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
Switzerland
Switzerland is that administrative country subdivision a part of
Switzerland
action filter_type
action find
entity Kandersteg
relation country
type designation for an administrative territorial entity
['Fieschertal', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Kandersteg', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Kandersteg', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Kandersteg property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q7033929 Q39
P47 P495
Q15617994
USER
Which administrative territories have a shared border with Switzerland and are the countries of origin of Nightmare Weekend ?
AND((Q39,P47,c(Q15617994)), (Q7033929,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q39
relation P47
action find
entity Q7033929
relation P495
type Q15617994
{'AND': [['Q39', 'P47', {'concept': 'Q15617994'}], ['Q7033929', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q39 property:P47 ?t . resource:Q7033929 property:P495 ?t }
Nightmare Weekend Switzerland
action filter_type
action intersection
action find
entity Switzerland
relation shares border with
action find
entity Nightmare Weekend
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Switzerland', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Nightmare Weekend', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Switzerland property:shares_border_with ?t . resource:Nightmare_Weekend property:country_of_origin ?t }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
AND((Q39,P47,c(Q15617994)), (Q7033929,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q39
relation P47
action find
entity Q7033929
relation P495
type Q15617994
[ANSWER] have a shared border with Switzerland and are the countries of origin of Nightmare Weekend
{'AND': [['Q39', 'P47', {'concept': 'Q15617994'}], ['Q7033929', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q39 property:P47 ?t . resource:Q7033929 property:P495 ?t }
France
France have a shared border with Switzerland and are the countries of origin of Nightmare Weekend
France
action filter_type
action intersection
action find
entity Switzerland
relation shares border with
action find
entity Nightmare Weekend
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Switzerland', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Nightmare Weekend', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Switzerland property:shares_border_with ?t . resource:Nightmare_Weekend property:country_of_origin ?t }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q201658 Q15416
USER
Which administrative territories are the countries of origin of greater number of film genres or television programs than that administrative territory ?
(c(Q201658)|c(Q15416),P495,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q142
relation P495
type Q201658
type Q15416
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?l ) WHERE { VALUES ( ?i ) { ( ontology:Q201658 ) ( ontology:Q15416 ) } . ?a rdf:type ?i } GROUP BY ?g } . FILTER ( ?l > ?r ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { ?w property:P495 resource:Q142 . { ?w rdf:type ?p . VALUES ( ?p ) { ( ontology:Q15416 ) ( ontology:Q201658 ) } } } } }
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity France
relation country of origin
type film genre
type television program
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?l ) WHERE { VALUES ( ?i ) { ( ontology:film_genre ) ( ontology:television_program ) } . ?a rdf:type ?i } GROUP BY ?g } . FILTER ( ?l > ?r ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { ?w property:country_of_origin resource:France . { ?w rdf:type ?p . VALUES ( ?p ) { ( ontology:television_program ) ( ontology:film_genre ) } } } } }
[]
designation for an administrative territorial entity film genre television program
Q38 Q30 Q145
SYSTEM
Italy, United States of America, United Kingdom
Q668 Q145 Q884 Q30 Q38 Q96 Q17
(c(Q201658)|c(Q15416),P495,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q142
relation P495
type Q201658
type Q15416
[ANSWERS] are the countries of origin of greater number of film genres or television programs than that administrative territory
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?l ) WHERE { VALUES ( ?i ) { ( ontology:Q201658 ) ( ontology:Q15416 ) } . ?a rdf:type ?i } GROUP BY ?g } . FILTER ( ?l > ?r ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { ?w property:P495 resource:Q142 . { ?w rdf:type ?p . VALUES ( ?p ) { ( ontology:Q15416 ) ( ontology:Q201658 ) } } } } }
India United Kingdom South Korea United States of America Italy Mexico Japan
Italy, United States of America and United Kingdom are the countries of origin of greater number of film genres or television programs than that administrative territory
Italy United States of America United Kingdom
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity France
relation country of origin
type film genre
type television program
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?l ) WHERE { VALUES ( ?i ) { ( ontology:film_genre ) ( ontology:television_program ) } . ?a rdf:type ?i } GROUP BY ?g } . FILTER ( ?l > ?r ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { ?w property:country_of_origin resource:France . { ?w rdf:type ?p . VALUES ( ?p ) { ( ontology:television_program ) ( ontology:film_genre ) } } } } }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q6581072 Q66208
P19 P21
Q502895
USER
Which people were born at Frutigen and do not have gender of female ?
AND((c(Q502895),P19,Q66208), NOT((c(Q502895),P21,Q6581072)))
action filter_type
action difference
action find_reverse
entity Q66208
relation P19
action find_reverse
entity Q6581072
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q66208'], {'NOT': [[{'concept': 'Q502895'}, 'P21', 'Q6581072']]}]}
SELECT DISTINCT ?w WHERE { MINUS { ?w property:P21 resource:Q6581072 } . ?w property:P19 resource:Q66208 . ?w rdf:type ontology:Q502895 }
female Frutigen
action filter_type
action difference
action find_reverse
entity Frutigen
relation place of birth
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Frutigen'], {'NOT': [[{'concept': 'common name'}, 'gender', 'female']]}]}
SELECT DISTINCT ?w WHERE { MINUS { ?w property:gender resource:female } . ?w property:place_of_birth resource:Frutigen . ?w rdf:type ontology:common_name }
[]
common name
Q325857 Q121412 Q74519 Q1806214 Q1426476 Q15732408 Q52355 Q119388 Q115985 Q1085367
SYSTEM
Heinz Inniger, Albert Steiner, Jürg Grossen, Lars Grossen, Lorenz Giovanelli, Simon Gempeler, Michael Schmid, Albert Rösti, Simon Trummer, Christoph Kunz
Q325857 Q121412 Q74519 Q1806214 Q1426476 Q15732408 Q52355 Q119388 Q115985 Q1085367
AND((c(Q502895),P19,Q66208), NOT((c(Q502895),P21,Q6581072)))
action filter_type
action difference
action find_reverse
entity Q66208
relation P19
action find_reverse
entity Q6581072
relation P21
type Q502895
[ANSWERS] were born at Frutigen and do not have gender of female
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q66208'], {'NOT': [[{'concept': 'Q502895'}, 'P21', 'Q6581072']]}]}
SELECT DISTINCT ?w WHERE { MINUS { ?w property:P21 resource:Q6581072 } . ?w property:P19 resource:Q66208 . ?w rdf:type ontology:Q502895 }
Heinz Inniger Albert Steiner Jürg Grossen Lars Grossen Lorenz Giovanelli Simon Gempeler Michael Schmid Albert Rösti Simon Trummer Christoph Kunz
Heinz Inniger, Albert Steiner, Jürg Grossen, Lars Grossen, Lorenz Giovanelli, Simon Gempeler, Michael Schmid, Albert Rösti, Simon Trummer and Christoph Kunz were born at Frutigen and do not have gender of female
Heinz Inniger Albert Steiner Jürg Grossen Lars Grossen Lorenz Giovanelli Simon Gempeler Michael Schmid Albert Rösti Simon Trummer Christoph Kunz
action filter_type
action difference
action find_reverse
entity Frutigen
relation place of birth
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Frutigen'], {'NOT': [[{'concept': 'common name'}, 'gender', 'female']]}]}
SELECT DISTINCT ?w WHERE { MINUS { ?w property:gender resource:female } . ?w property:place_of_birth resource:Frutigen . ?w rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q119388
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q119388,P27,c(Q15617994))
action filter_type
action find
entity Q119388
relation P27
type Q15617994
['Q119388', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . resource:Q119388 property:P27 ?i }
Albert Rösti
action filter_type
action find
entity Albert Rösti
relation country of citizenship
type designation for an administrative territorial entity
['Albert Rösti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Albert_Rösti property:country_of_citizenship ?i }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q325857
SYSTEM
Did you mean Heinz Inniger ?
Q325857 Q121412 Q74519 Q1806214 Q1426476 Q15732408 Q52355 Q119388 Q115985 Q1085367
(Q325857,P27,c(Q15617994)) (Q121412,P27,c(Q15617994)) (Q74519,P27,c(Q15617994)) (Q1806214,P27,c(Q15617994)) (Q1426476,P27,c(Q15617994)) (Q15732408,P27,c(Q15617994)) (Q52355,P27,c(Q15617994)) (Q119388,P27,c(Q15617994)) (Q115985,P27,c(Q15617994)) (Q1085367,P27,c(Q15617994))
[ANSWER]
['Q325857', 'P27', {'concept': 'Q15617994'}] ['Q121412', 'P27', {'concept': 'Q15617994'}] ['Q74519', 'P27', {'concept': 'Q15617994'}] ['Q1806214', 'P27', {'concept': 'Q15617994'}] ['Q1426476', 'P27', {'concept': 'Q15617994'}] ['Q15732408', 'P27', {'concept': 'Q15617994'}] ['Q52355', 'P27', {'concept': 'Q15617994'}] ['Q119388', 'P27', {'concept': 'Q15617994'}] ['Q115985', 'P27', {'concept': 'Q15617994'}] ['Q1085367', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . resource:Q119388 property:P27 ?i }
Heinz Inniger Albert Steiner Jürg Grossen Lars Grossen Lorenz Giovanelli Simon Gempeler Michael Schmid Albert Rösti Simon Trummer Christoph Kunz
Did you mean Heinz Inniger ?
Heinz Inniger
['Heinz Inniger', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Albert Steiner', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Jürg Grossen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Lars Grossen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Lorenz Giovanelli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Simon Gempeler', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Michael Schmid', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Albert Rösti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Simon Trummer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Christoph Kunz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Albert_Rösti property:country_of_citizenship ?i }
[]
Simple Question (Coreferenced)
USER
No, I meant Albert Rösti. Could you tell me the answer for that?
(Q119388,P27,c(Q15617994))
Q119388
['Q119388', 'P27', {'concept': 'Q15617994'}]
['Albert Rösti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
[]
Q39
SYSTEM
Switzerland
Q39
(Q119388,P27,c(Q15617994))
action filter_type
action find
entity Q119388
relation P27
type Q15617994
[ANSWER] is that person a civilian of
['Q119388', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . resource:Q119388 property:P27 ?i }
Switzerland
Switzerland is that person a civilian of
Switzerland
action filter_type
action find
entity Albert Rösti
relation country of citizenship
type designation for an administrative territorial entity
['Albert Rösti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Albert_Rösti property:country_of_citizenship ?i }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q39 Q67022
P17
Q13220204
USER
Is Kriechenwil located in that administrative territory ?
(Q67022,P17,Q39)
action is_in
entity Q39
action find
entity Q67022
relation P17
['Q67022', 'P17', 'Q39']
ASK WHERE { resource:Q67022 property:P17 resource:Q39 }
Switzerland Kriechenwil
action is_in
entity Switzerland
action find
entity Kriechenwil
relation country
['Kriechenwil', 'country', 'Switzerland']
ASK WHERE { resource:Kriechenwil property:country resource:Switzerland }
[]
second-level administrative country subdivision
SYSTEM
YES
(Q67022,P17,Q39)
action is_in
entity Q39
action find
entity Q67022
relation P17
[ANSWER]
['Q67022', 'P17', 'Q39']
ASK WHERE { resource:Q67022 property:P17 resource:Q39 }
Yes
action is_in
entity Switzerland
action find
entity Kriechenwil
relation country
['Kriechenwil', 'country', 'Switzerland']
ASK WHERE { resource:Kriechenwil property:country resource:Switzerland }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q212
P530
Q15617994 Q15617994
USER
How many administrative territories have a diplomatic relationship with lesser number of administrative territories than Ukraine ?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q212
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:P530 ?x . ?c rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?r < ?y ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { ?j rdf:type ontology:Q15617994 . resource:Q212 property:P530 ?j } } }
Ukraine
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Ukraine
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:diplomatic_relation ?x . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?r < ?y ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ukraine property:diplomatic_relation ?j } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
103
Q702 Q804 Q800 Q419 Q55 Q783 Q784 Q265 Q712 Q710 Q717 Q837 Q398 Q657 Q792 Q790 Q958 Q986 Q242 Q244 Q811 Q33 Q924 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1027 Q1020 Q189 Q842 Q184 Q1029 Q1028 Q736 Q786 Q225 Q221 Q96 Q229 Q902 Q1036 Q1037 Q1032 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q117 Q754 Q750 Q217 Q214 Q218 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q212
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:P530 ?x . ?c rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?r < ?y ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { ?j rdf:type ontology:Q15617994 . resource:Q212 property:P530 ?j } } }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Honduras Dominica Uzbekistan Fiji Kiribati Venezuela Nepal Bahrain Chad El Salvador Haiti South Sudan Eritrea Belize Barbados Nicaragua Finland Tanzania Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Mauritius Malawi Iceland Oman Belarus Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Republic of Macedonia Mexico Cyprus Bangladesh Uganda Rwanda Niger Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ghana Trinidad and Tobago Bolivia Republic of Moldova Slovakia Romania Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia Thailand
103
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Ukraine
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:diplomatic_relation ?x . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?r < ?y ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ukraine property:diplomatic_relation ?j } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19844559 Q1806214
P27
Q15617994
USER
Which administrative territories do Lars Grossen or José da Silva Maia Ferreira belong to ?
OR((Q1806214,P27,c(Q15617994)), (Q19844559,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1806214
relation P27
action find
entity Q19844559
relation P27
type Q15617994
{'OR': [['Q1806214', 'P27', {'concept': 'Q15617994'}], ['Q19844559', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { ?r property:P27 ?l . VALUES ( ?r ) { ( resource:Q1806214 ) ( resource:Q19844559 ) } } . ?l rdf:type ontology:Q15617994 }
José da Silva Maia Ferreira Lars Grossen
action filter_type
action union
action find
entity Lars Grossen
relation country of citizenship
action find
entity José da Silva Maia Ferreira
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Lars Grossen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['José da Silva Maia Ferreira', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { ?r property:country_of_citizenship ?l . VALUES ( ?r ) { ( resource:Lars_Grossen ) ( resource:José_da_Silva_Maia_Ferreira ) } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39 Q916
SYSTEM
Switzerland, Angola
Q39 Q916
OR((Q1806214,P27,c(Q15617994)), (Q19844559,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1806214
relation P27
action find
entity Q19844559
relation P27
type Q15617994
[ANSWERS] Lars Grossen or José da Silva Maia Ferreira belong to
{'OR': [['Q1806214', 'P27', {'concept': 'Q15617994'}], ['Q19844559', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { ?r property:P27 ?l . VALUES ( ?r ) { ( resource:Q1806214 ) ( resource:Q19844559 ) } } . ?l rdf:type ontology:Q15617994 }
Switzerland Angola
Switzerland and Angola Lars Grossen or José da Silva Maia Ferreira belong to
Switzerland Angola
action filter_type
action union
action find
entity Lars Grossen
relation country of citizenship
action find
entity José da Silva Maia Ferreira
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Lars Grossen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['José da Silva Maia Ferreira', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { ?r property:country_of_citizenship ?l . VALUES ( ?r ) { ( resource:Lars_Grossen ) ( resource:José_da_Silva_Maia_Ferreira ) } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q39
P137
Q811979 Q41176
USER
How many architectural structures or buildings were managed by Switzerland ?
(c(Q811979),P137,Q39) (c(Q41176),P137,Q39)
action count
action union
action filter_type
action find_reverse
entity Q39
relation P137
type Q811979
action filter_type
action find_reverse
entity Q39
relation P137
type Q41176
[{'concept': 'Q811979'}, 'P137', 'Q39'] [{'concept': 'Q41176'}, 'P137', 'Q39']
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { VALUES ( ?a ) { ( ontology:Q811979 ) ( ontology:Q41176 ) } . ?f rdf:type ?a }
Switzerland
action count
action union
action filter_type
action find_reverse
entity Switzerland
relation operator
type architectural structure
action filter_type
action find_reverse
entity Switzerland
relation operator
type building
[{'concept': 'architectural structure'}, 'operator', 'Switzerland'] [{'concept': 'building'}, 'operator', 'Switzerland']
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { VALUES ( ?a ) { ( ontology:architectural_structure ) ( ontology:building ) } . ?f rdf:type ?a }
[]
architectural structure building
SYSTEM
2
Q894830 Q689140
(c(Q811979),P137,Q39) (c(Q41176),P137,Q39)
action count
action union
action filter_type
action find_reverse
entity Q39
relation P137
type Q811979
action filter_type
action find_reverse
entity Q39
relation P137
type Q41176
[ANSWER]
[{'concept': 'Q811979'}, 'P137', 'Q39'] [{'concept': 'Q41176'}, 'P137', 'Q39']
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { VALUES ( ?a ) { ( ontology:Q811979 ) ( ontology:Q41176 ) } . ?f rdf:type ?a }
Embassy of Switzerland, Bonn Embassy of Switzerland, Berlin
2
action count
action union
action filter_type
action find_reverse
entity Switzerland
relation operator
type architectural structure
action filter_type
action find_reverse
entity Switzerland
relation operator
type building
[{'concept': 'architectural structure'}, 'operator', 'Switzerland'] [{'concept': 'building'}, 'operator', 'Switzerland']
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { VALUES ( ?a ) { ( ontology:architectural_structure ) ( ontology:building ) } . ?f rdf:type ?a }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6198405 Q1426476
P19
Q56061
USER
Which administrative territories were Lorenz Giovanelli or Jim Sundberg born ?
OR((Q1426476,P19,c(Q56061)), (Q6198405,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1426476
relation P19
action find
entity Q6198405
relation P19
type Q56061
{'OR': [['Q1426476', 'P19', {'concept': 'Q56061'}], ['Q6198405', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?o ) { ( resource:Q6198405 ) ( resource:Q1426476 ) } . ?o property:P19 ?s } . ?s rdf:type ontology:Q56061 }
Jim Sundberg Lorenz Giovanelli
action filter_type
action union
action find
entity Lorenz Giovanelli
relation place of birth
action find
entity Jim Sundberg
relation place of birth
type administrative territorial entity
{'OR': [['Lorenz Giovanelli', 'place of birth', {'concept': 'administrative territorial entity'}], ['Jim Sundberg', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?o ) { ( resource:Jim_Sundberg ) ( resource:Lorenz_Giovanelli ) } . ?o property:place_of_birth ?s } . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q782574 Q66208
SYSTEM
Galesburg, Frutigen
Q782574 Q66208
OR((Q1426476,P19,c(Q56061)), (Q6198405,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1426476
relation P19
action find
entity Q6198405
relation P19
type Q56061
[ANSWERS] were Lorenz Giovanelli or Jim Sundberg born
{'OR': [['Q1426476', 'P19', {'concept': 'Q56061'}], ['Q6198405', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?o ) { ( resource:Q6198405 ) ( resource:Q1426476 ) } . ?o property:P19 ?s } . ?s rdf:type ontology:Q56061 }
Galesburg Frutigen
Galesburg and Frutigen were Lorenz Giovanelli or Jim Sundberg born
Galesburg Frutigen
action filter_type
action union
action find
entity Lorenz Giovanelli
relation place of birth
action find
entity Jim Sundberg
relation place of birth
type administrative territorial entity
{'OR': [['Lorenz Giovanelli', 'place of birth', {'concept': 'administrative territorial entity'}], ['Jim Sundberg', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?o ) { ( resource:Jim_Sundberg ) ( resource:Lorenz_Giovanelli ) } . ?o property:place_of_birth ?s } . ?s rdf:type ontology:administrative_territorial_entity }
[]