Simple Question (Direct)
Simple Question
Q7448937
P1412
Q34770
USER
Which language is spoken by Selwyn Raab ?
(Q7448937,P1412,c(Q34770))
action filter_type
action find
entity Q7448937
relation P1412
type Q34770
['Q7448937', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q7448937 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
Selwyn Raab
action filter_type
action find
entity Selwyn Raab
relation languages spoken, written or signed
type language
['Selwyn Raab', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Selwyn_Raab property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q7448937,P1412,c(Q34770))
action filter_type
action find
entity Q7448937
relation P1412
type Q34770
The [ANSWER] is spoken by Selwyn Raab
['Q7448937', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q7448937 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
English
The English is spoken by Selwyn Raab
English
action filter_type
action find
entity Selwyn Raab
relation languages spoken, written or signed
type language
['Selwyn Raab', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Selwyn_Raab property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7448937
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q1860,P27,c(Q15617994))
action filter_type
action find
entity Q7448937
relation P27
type Q15617994
['Q1860', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q7448937 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Selwyn Raab
action filter_type
action find
entity Selwyn Raab
relation country of citizenship
type designation for an administrative territorial entity
['English', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Selwyn_Raab property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1860,P27,c(Q15617994))
action filter_type
action find
entity Q7448937
relation P27
type Q15617994
That person belongs to the [ANSWER]
['Q1860', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q7448937 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
United States of America
That person belongs to the United States of America
United States of America
action filter_type
action find
entity Selwyn Raab
relation country of citizenship
type designation for an administrative territorial entity
['English', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Selwyn_Raab property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q30 Q33866 Q11820
P6
Q502895
USER
Does that administrative territory have its government headed by Theodore Roosevelt and Martin Van Buren ?
(Q30,P6,Q33866) (Q30,P6,Q11820)
action is_in
entity Q30
action intersection
action find_reverse
entity Q33866
relation P6
action find_reverse
entity Q11820
relation P6
['Q30', 'P6', 'Q33866'] ['Q30', 'P6', 'Q11820']
ASK WHERE { resource:Q30 property:P6 resource:Q33866 . resource:Q30 property:P6 resource:Q11820 }
United States of America Theodore Roosevelt Martin Van Buren
action is_in
entity United States of America
action intersection
action find_reverse
entity Theodore Roosevelt
relation head of government
action find_reverse
entity Martin Van Buren
relation head of government
['United States of America', 'head of government', 'Theodore Roosevelt'] ['United States of America', 'head of government', 'Martin Van Buren']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Theodore_Roosevelt . resource:United_States_of_America property:head_of_government resource:Martin_Van_Buren }
[]
common name
SYSTEM
YES
(Q30,P6,Q33866) (Q30,P6,Q11820)
action is_in
entity Q30
action intersection
action find_reverse
entity Q33866
relation P6
action find_reverse
entity Q11820
relation P6
[ANSWER]
['Q30', 'P6', 'Q33866'] ['Q30', 'P6', 'Q11820']
ASK WHERE { resource:Q30 property:P6 resource:Q33866 . resource:Q30 property:P6 resource:Q11820 }
Yes
action is_in
entity United States of America
action intersection
action find_reverse
entity Theodore Roosevelt
relation head of government
action find_reverse
entity Martin Van Buren
relation head of government
['United States of America', 'head of government', 'Theodore Roosevelt'] ['United States of America', 'head of government', 'Martin Van Buren']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Theodore_Roosevelt . resource:United_States_of_America property:head_of_government resource:Martin_Van_Buren }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q9056
P407
Q34770 Q2031291 Q234460
USER
Which languages are the languages of work for around the same number of releases or texts as Czech ?
(c(Q2031291)|c(Q234460),P407,c(Q34770))
action approx
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q2031291
action find_reverse_tuple_counts
relation P407
type Q34770
type Q234460
action count
action filter_multi_types
action find_reverse
entity Q9056
relation P407
type Q2031291
type Q234460
[[{'concept': 'Q2031291'}, {'concept': 'Q234460'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?d ) AS ?p ) WHERE { VALUES ( ?b ) { ( ontology:Q2031291 ) ( ontology:Q234460 ) } . ?d rdf:type ?b } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { ?o property:P407 resource:Q9056 . { { ?o rdf:type ontology:Q2031291 } UNION { ?o rdf:type ontology:Q234460 } } } } . FILTER ( ?p = ?x ) }
Czech
action approx
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type release
action find_reverse_tuple_counts
relation language of work or name
type language
type text
action count
action filter_multi_types
action find_reverse
entity Czech
relation language of work or name
type release
type text
[[{'concept': 'release'}, {'concept': 'text'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?d ) AS ?p ) WHERE { VALUES ( ?b ) { ( ontology:release ) ( ontology:text ) } . ?d rdf:type ?b } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { ?o property:language_of_work_or_name resource:Czech . { { ?o rdf:type ontology:release } UNION { ?o rdf:type ontology:text } } } } . FILTER ( ?p = ?x ) }
[]
language release text
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q2031291)|c(Q234460),P407,c(Q34770))
action approx
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q2031291
action find_reverse_tuple_counts
relation P407
type Q34770
type Q234460
action count
action filter_multi_types
action find_reverse
entity Q9056
relation P407
type Q2031291
type Q234460
[ANSWERS] are the languages of work for around the same number of releases or texts as Czech
[[{'concept': 'Q2031291'}, {'concept': 'Q234460'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?d ) AS ?p ) WHERE { VALUES ( ?b ) { ( ontology:Q2031291 ) ( ontology:Q234460 ) } . ?d rdf:type ?b } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { ?o property:P407 resource:Q9056 . { { ?o rdf:type ontology:Q2031291 } UNION { ?o rdf:type ontology:Q234460 } } } } . FILTER ( ?p = ?x ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
Old Egyptian, Old Church Slavonic and Etruscan are the languages of work for around the same number of releases or texts as Czech
Old Egyptian Old Church Slavonic Etruscan
action approx
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type release
action find_reverse_tuple_counts
relation language of work or name
type language
type text
action count
action filter_multi_types
action find_reverse
entity Czech
relation language of work or name
type release
type text
[[{'concept': 'release'}, {'concept': 'text'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?d ) AS ?p ) WHERE { VALUES ( ?b ) { ( ontology:release ) ( ontology:text ) } . ?d rdf:type ?b } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { ?o property:language_of_work_or_name resource:Czech . { { ?o rdf:type ontology:release } UNION { ?o rdf:type ontology:text } } } } . FILTER ( ?p = ?x ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q35726
P364
Q340169
USER
Which media is known to be originally created in that one language ?
(c(Q340169),P364,Q35726)
action filter_type
action find_reverse
entity Q35726
relation P364
type Q340169
[{'concept': 'Q340169'}, 'P364', 'Q35726']
SELECT DISTINCT ?u WHERE { ?u property:P364 resource:Q35726 . ?u rdf:type ontology:Q340169 }
Etruscan
action filter_type
action find_reverse
entity Etruscan
relation original language of work
type media
[{'concept': 'media'}, 'original language of work', 'Etruscan']
SELECT DISTINCT ?u WHERE { ?u property:original_language_of_work resource:Etruscan . ?u rdf:type ontology:media }
[]
media
Clarification for simple ques.
Q447117
SYSTEM
Did you mean Old Egyptian ?
Q447117 Q35499 Q35726
(c(Q340169),P364,Q447117) (c(Q340169),P364,Q35499) (c(Q340169),P364,Q35726)
[ANSWER]
[{'concept': 'Q340169'}, 'P364', 'Q447117'] [{'concept': 'Q340169'}, 'P364', 'Q35499'] [{'concept': 'Q340169'}, 'P364', 'Q35726']
SELECT DISTINCT ?u WHERE { ?u property:P364 resource:Q35726 . ?u rdf:type ontology:Q340169 }
Old Egyptian Old Church Slavonic Etruscan
Did you mean Old Egyptian ?
Old Egyptian
[{'concept': 'media'}, 'original language of work', 'Old Egyptian'] [{'concept': 'media'}, 'original language of work', 'Old Church Slavonic'] [{'concept': 'media'}, 'original language of work', 'Etruscan']
SELECT DISTINCT ?u WHERE { ?u property:original_language_of_work resource:Etruscan . ?u rdf:type ontology:media }
[]
Simple Question (Coreferenced)
USER
No, I meant Etruscan. Could you tell me the answer for that?
(c(Q340169),P364,Q35726)
Q35726
[{'concept': 'Q340169'}, 'P364', 'Q35726']
[{'concept': 'media'}, 'original language of work', 'Etruscan']
[]
Q1244474
SYSTEM
Tabula Cortonensis
Q1244474
(c(Q340169),P364,Q35726)
action filter_type
action find_reverse
entity Q35726
relation P364
type Q340169
[ANSWER] is known to be originally created in that one language
[{'concept': 'Q340169'}, 'P364', 'Q35726']
SELECT DISTINCT ?u WHERE { ?u property:P364 resource:Q35726 . ?u rdf:type ontology:Q340169 }
Tabula Cortonensis
Tabula Cortonensis is known to be originally created in that one language
Tabula Cortonensis
action filter_type
action find_reverse
entity Etruscan
relation original language of work
type media
[{'concept': 'media'}, 'original language of work', 'Etruscan']
SELECT DISTINCT ?u WHERE { ?u property:original_language_of_work resource:Etruscan . ?u rdf:type ontology:media }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1244474 Q35677 Q35726
P364
Q34770
USER
Was that media originally created in Gaagudju language and Etruscan language ?
(Q1244474,P364,Q35677) (Q1244474,P364,Q35726)
action is_in
entity Q1244474
action intersection
action find_reverse
entity Q35677
relation P364
action find_reverse
entity Q35726
relation P364
['Q1244474', 'P364', 'Q35677'] ['Q1244474', 'P364', 'Q35726']
ASK WHERE { resource:Q1244474 property:P364 resource:Q35726 . resource:Q1244474 property:P364 resource:Q35677 }
Tabula Cortonensis Gaagudju language Etruscan
action is_in
entity Tabula Cortonensis
action intersection
action find_reverse
entity Gaagudju language
relation original language of work
action find_reverse
entity Etruscan
relation original language of work
['Tabula Cortonensis', 'original language of work', 'Gaagudju language'] ['Tabula Cortonensis', 'original language of work', 'Etruscan']
ASK WHERE { resource:Tabula_Cortonensis property:original_language_of_work resource:Etruscan . resource:Tabula_Cortonensis property:original_language_of_work resource:Gaagudju_language }
[]
language
SYSTEM
NO and YES respectively
(Q1244474,P364,Q35677) (Q1244474,P364,Q35726)
action is_in
entity Q1244474
action intersection
action find_reverse
entity Q35677
relation P364
action find_reverse
entity Q35726
relation P364
[ANSWER]
['Q1244474', 'P364', 'Q35677'] ['Q1244474', 'P364', 'Q35726']
ASK WHERE { resource:Q1244474 property:P364 resource:Q35726 . resource:Q1244474 property:P364 resource:Q35677 }
NO and YES respectively
action is_in
entity Tabula Cortonensis
action intersection
action find_reverse
entity Gaagudju language
relation original language of work
action find_reverse
entity Etruscan
relation original language of work
['Tabula Cortonensis', 'original language of work', 'Gaagudju language'] ['Tabula Cortonensis', 'original language of work', 'Etruscan']
ASK WHERE { resource:Tabula_Cortonensis property:original_language_of_work resource:Etruscan . resource:Tabula_Cortonensis property:original_language_of_work resource:Gaagudju_language }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P37
Q34770 Q15617994 Q1048835
USER
Which languages are considered to be the official language of around 21 administrative territories and political territories ?
(c(Q15617994)|c(Q1048835),P37,c(Q34770))
action approx
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q15617994
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
value 21
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) ?q WHERE { VALUES ( ?b ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?f rdf:type ?b } GROUP BY ?q } . FILTER ( ?u = 21 ) }
action approx
action union
action find_reverse_tuple_counts
relation official language
type language
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
value 21
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) ?q WHERE { VALUES ( ?b ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?f rdf:type ?b } GROUP BY ?q } . FILTER ( ?u = 21 ) }
[]
language designation for an administrative territorial entity political territorial entity
Q9056 Q8752 Q397
SYSTEM
Czech, Basque, Latin
Q9056 Q652 Q8752 Q1321 Q397 Q8785
(c(Q15617994)|c(Q1048835),P37,c(Q34770))
action approx
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q15617994
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
value 21
[ANSWERS] are considered to be the official language of around 21 administrative territories and political territories
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) ?q WHERE { VALUES ( ?b ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?f rdf:type ?b } GROUP BY ?q } . FILTER ( ?u = 21 ) }
Czech Italian Basque Spanish Latin Armenian
Czech, Basque and Latin are considered to be the official language of around 21 administrative territories and political territories
Czech Basque Latin
action approx
action union
action find_reverse_tuple_counts
relation official language
type language
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
value 21
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) ?q WHERE { VALUES ( ?b ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?f rdf:type ?b } GROUP BY ?q } . FILTER ( ?u = 21 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q664
P37
Q34770 Q1048835
USER
Which political territories are less number of languages the official language of than New Zealand ?
(c(Q1048835),P37,c(Q34770))
action less
action find_tuple_counts
relation P37
type Q1048835
type Q34770
action count
action filter_type
action find
entity Q664
relation P37
type Q34770
[{'concept': 'Q1048835'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?e ) WHERE { ?d rdf:type ontology:Q34770 . ?f rdf:type ontology:Q1048835 . ?f property:P37 ?d } GROUP BY ?f } . FILTER ( ?e < ?o ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { resource:Q664 property:P37 ?r . ?r rdf:type ontology:Q34770 } } }
New Zealand
action less
action find_tuple_counts
relation official language
type political territorial entity
type language
action count
action filter_type
action find
entity New Zealand
relation official language
type language
[{'concept': 'political territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?e ) WHERE { ?d rdf:type ontology:language . ?f rdf:type ontology:political_territorial_entity . ?f property:official_language ?d } GROUP BY ?f } . FILTER ( ?e < ?o ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { resource:New_Zealand property:official_language ?r . ?r rdf:type ontology:language } } }
[]
language political territorial entity
Q183 Q35 Q40
SYSTEM
Germany, Denmark, Austria
Q13116 Q1000 Q2012050 Q49657 Q4540 Q89959 Q193619 Q49662 Q49663 Q49660 Q49661 Q240 Q49655 Q300608 Q4395303 Q181633 Q35 Q171852 Q641138 Q4421880 Q789334 Q42780 Q183 Q49659 Q49654 Q49651 Q231 Q234 Q90027 Q40 Q4218003 Q9331 Q3899 Q9337 Q4410386 Q171965 Q18257 Q4325072
(c(Q1048835),P37,c(Q34770))
action less
action find_tuple_counts
relation P37
type Q1048835
type Q34770
action count
action filter_type
action find
entity Q664
relation P37
type Q34770
[ANSWERS] are less number of languages the official language of than New Zealand
[{'concept': 'Q1048835'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?e ) WHERE { ?d rdf:type ontology:Q34770 . ?f rdf:type ontology:Q1048835 . ?f property:P37 ?d } GROUP BY ?f } . FILTER ( ?e < ?o ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { resource:Q664 property:P37 ?r . ?r rdf:type ontology:Q34770 } } }
Benelux Gabon Donetsk Oblast Schaan Eschen French Community of Belgium Union of South Africa Gamprin Balzers Planken Mauren Brussels Schellenberg A Ver-o-Mar Rivne Mykolaiv Oblast Denmark Odessa Oblast Duchy of Cleves Skypche Balažer Ningbo Germany Ruggell Triesen Triesenberg Walloon Region Flemish Region German-speaking Community of Belgium Austria Kachkarivka Flemish Community Kalimantan Timur Flemish Region Svitlohirske Luhansk Oblast Abella de la Conca Zoriane
Germany, Denmark and Austria are less number of languages the official language of than New Zealand
Germany Denmark Austria
action less
action find_tuple_counts
relation official language
type political territorial entity
type language
action count
action filter_type
action find
entity New Zealand
relation official language
type language
[{'concept': 'political territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?e ) WHERE { ?d rdf:type ontology:language . ?f rdf:type ontology:political_territorial_entity . ?f property:official_language ?d } GROUP BY ?f } . FILTER ( ?e < ?o ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { resource:New_Zealand property:official_language ?r . ?r rdf:type ontology:language } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q685
P37
Q34770 Q1048835
USER
And also tell me about Solomon Islands?
(c(Q1048835),P37,c(Q34770))
action less
action find_tuple_counts
relation P37
type Q1048835
type Q34770
action count
action filter_type
action find
entity Q685
relation P37
type Q34770
[{'concept': 'Q1048835'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { resource:Q685 property:P37 ?z . ?z rdf:type ontology:Q34770 } } . FILTER ( ?c < ?h ) . { SELECT DISTINCT ?k ( COUNT ( ?y ) AS ?c ) WHERE { ?k property:P37 ?y . ?k rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q34770 } GROUP BY ?k } }
Solomon Islands
action less
action find_tuple_counts
relation official language
type political territorial entity
type language
action count
action filter_type
action find
entity Solomon Islands
relation official language
type language
[{'concept': 'political territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { resource:Solomon_Islands property:official_language ?z . ?z rdf:type ontology:language } } . FILTER ( ?c < ?h ) . { SELECT DISTINCT ?k ( COUNT ( ?y ) AS ?c ) WHERE { ?k property:official_language ?y . ?k rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:language } GROUP BY ?k } }
[]
language political territorial entity
Q183 Q35 Q40
SYSTEM
Germany, Denmark, Austria
Q13116 Q1000 Q2012050 Q49657 Q4540 Q89959 Q193619 Q49662 Q49663 Q49660 Q49661 Q240 Q49655 Q300608 Q4395303 Q181633 Q35 Q171852 Q641138 Q4421880 Q789334 Q42780 Q183 Q49659 Q49654 Q49651 Q231 Q234 Q90027 Q40 Q4218003 Q9331 Q3899 Q9337 Q4410386 Q171965 Q18257 Q4325072
(c(Q1048835),P37,c(Q34770))
action less
action find_tuple_counts
relation P37
type Q1048835
type Q34770
action count
action filter_type
action find
entity Q685
relation P37
type Q34770
[ANSWERS]
[{'concept': 'Q1048835'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { resource:Q685 property:P37 ?z . ?z rdf:type ontology:Q34770 } } . FILTER ( ?c < ?h ) . { SELECT DISTINCT ?k ( COUNT ( ?y ) AS ?c ) WHERE { ?k property:P37 ?y . ?k rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q34770 } GROUP BY ?k } }
Benelux Gabon Donetsk Oblast Schaan Eschen French Community of Belgium Union of South Africa Gamprin Balzers Planken Mauren Brussels Schellenberg A Ver-o-Mar Rivne Mykolaiv Oblast Denmark Odessa Oblast Duchy of Cleves Skypche Balažer Ningbo Germany Ruggell Triesen Triesenberg Walloon Region Flemish Region German-speaking Community of Belgium Austria Kachkarivka Flemish Community Kalimantan Timur Flemish Region Svitlohirske Luhansk Oblast Abella de la Conca Zoriane
Germany Denmark Austria
action less
action find_tuple_counts
relation official language
type political territorial entity
type language
action count
action filter_type
action find
entity Solomon Islands
relation official language
type language
[{'concept': 'political territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { resource:Solomon_Islands property:official_language ?z . ?z rdf:type ontology:language } } . FILTER ( ?c < ?h ) . { SELECT DISTINCT ?k ( COUNT ( ?y ) AS ?c ) WHERE { ?k property:official_language ?y . ?k rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:language } GROUP BY ?k } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q183 Q35 Q40
P1001
Q12737077
USER
Which occupations have jurisdiction over Germany, Denmark and Austria ?
(c(Q12737077),P1001,Q183) (c(Q12737077),P1001,Q35) (c(Q12737077),P1001,Q40)
action union
action filter_type
action find_reverse
entity Q183
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q35
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q40
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q183'] [{'concept': 'Q12737077'}, 'P1001', 'Q35'] [{'concept': 'Q12737077'}, 'P1001', 'Q40']
SELECT DISTINCT ?b WHERE { { ?b rdf:type ontology:Q12737077 . ?b property:P1001 resource:Q183 } UNION { ?b property:P1001 resource:Q35 . ?b rdf:type ontology:Q12737077 } }
Germany Denmark Austria
action union
action filter_type
action find_reverse
entity Germany
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity Denmark
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity Austria
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Germany'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Denmark'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Austria']
SELECT DISTINCT ?b WHERE { { ?b rdf:type ontology:occupation . ?b property:applies_to_jurisdiction resource:Germany } UNION { ?b property:applies_to_jurisdiction resource:Denmark . ?b rdf:type ontology:occupation } }
[]
occupation
Q23938055 Q22575628 Q22575092
SYSTEM
Federal Minister of the Interior, Federal Minister of the Interior, Federal Minister of Finance
Q22575628 Q363637 Q19731005 Q2006176 Q22575092 Q23016036 Q1939559 Q1939555 Q248352 Q518564 Q4970706 Q25223 Q56024 Q56022 Q2325058 Q504272 Q514725 Q1005821 Q5690600 Q24300568 Q6865812 Q18913290 Q7689385 Q20069142 Q18913275 Q18913269 Q12311817 Q12341969 Q795477 Q1311756 Q5340905 Q1815344 Q1030099 Q6317024 Q12310252 Q5449541 Q6866144 Q6865806 Q6443269 Q23938055 Q19360771 Q5468294 Q17535155 Q692110 Q25273208 Q24256358 Q1006398 Q19666653 Q1714331 Q24255995 Q475658 Q24256102
(c(Q12737077),P1001,Q183) (c(Q12737077),P1001,Q35) (c(Q12737077),P1001,Q40)
action union
action filter_type
action find_reverse
entity Q183
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q35
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q40
relation P1001
type Q12737077
[ANSWERS] have jurisdiction over Germany, Denmark and Austria
[{'concept': 'Q12737077'}, 'P1001', 'Q183'] [{'concept': 'Q12737077'}, 'P1001', 'Q35'] [{'concept': 'Q12737077'}, 'P1001', 'Q40']
SELECT DISTINCT ?b WHERE { { ?b rdf:type ontology:Q12737077 . ?b property:P1001 resource:Q183 } UNION { ?b property:P1001 resource:Q35 . ?b rdf:type ontology:Q12737077 } }
Federal Minister of the Interior President of the Bundesrat of Germany Parliamentary Secretary in Germany Minister for Foreign Affairs Federal Minister of Finance Minister of Defence Member of Landtag member of the German Bundestag Bundesminister Federal Minister for Special Affairs of Germany Federal Chancellor of Germany President of Germany President of the Bundestag Chancellor of Germany German Minister of State Vice-Chancellor of Germany Landrat Federal Commissioner for Data Protection and Freedom of Information Health Minister Minister for Food, Agriculture and Fisheries Minister for Ecclesiastical Affairs of Denmark Speaker of the Folketing Tax Minister of Denmark Danish Minister of Transport Minister of Health Minister of the Interior member of the Folketing Minister of Economic and Business Affairs Prime Minister of Denmark Minister for the Environment Education Minister of Denmark Defence Minister of Denmark Culture Minister of Denmark Justice Minister of Denmark Danish commerce minister Finance Minister of Denmark Minister of Foreign Affairs Minister for Development Cooperation of Denmark Kultus Minister of Denmark Federal Minister of the Interior member of the Austrian federal council Foreign Minister of Austria Member of the National Council of Austria Vice-Chancellor of Austria Austrian Students' Association chairperson Federal Minister for Health Federal Chancellor of Austria Landesrat Federal Minister of Justice Federal Minister for Transport, Innovation and Technology President of Austria Federal Minister of Science and Research
Federal Minister of the Interior, Federal Minister of the Interior and Federal Minister of Finance have jurisdiction over Germany, Denmark and Austria
Federal Minister of the Interior Federal Minister of the Interior Federal Minister of Finance
action union
action filter_type
action find_reverse
entity Germany
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity Denmark
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity Austria
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Germany'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Denmark'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Austria']
SELECT DISTINCT ?b WHERE { { ?b rdf:type ontology:occupation . ?b property:applies_to_jurisdiction resource:Germany } UNION { ?b property:applies_to_jurisdiction resource:Denmark . ?b rdf:type ontology:occupation } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q23938055
P361
Q35798
USER
What is that occupation a component of ?
(Q23938055,P361,c(Q35798))
action filter_type
action find
entity Q23938055
relation P361
type Q35798
['Q23938055', 'P361', {'concept': 'Q35798'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q35798 . resource:Q23938055 property:P361 ?n }
Federal Minister of the Interior
action filter_type
action find
entity Federal Minister of the Interior
relation part of
type executive branch
['Federal Minister of the Interior', 'part of', {'concept': 'executive branch'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:executive_branch . resource:Federal_Minister_of_the_Interior property:part_of ?n }
[]
executive branch
Clarification for simple ques.
Q22575092
SYSTEM
Did you mean Federal Minister of Finance ?
Q23938055 Q22575628 Q22575092
(Q23938055,P361,c(Q35798)) (Q22575628,P361,c(Q35798)) (Q22575092,P361,c(Q35798))
[ANSWER]
['Q23938055', 'P361', {'concept': 'Q35798'}] ['Q22575628', 'P361', {'concept': 'Q35798'}] ['Q22575092', 'P361', {'concept': 'Q35798'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q35798 . resource:Q23938055 property:P361 ?n }
Federal Minister of the Interior Federal Minister of the Interior Federal Minister of Finance
Did you mean Federal Minister of Finance ?
Federal Minister of Finance
['Federal Minister of the Interior', 'part of', {'concept': 'executive branch'}] ['Federal Minister of the Interior', 'part of', {'concept': 'executive branch'}] ['Federal Minister of Finance', 'part of', {'concept': 'executive branch'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:executive_branch . resource:Federal_Minister_of_the_Interior property:part_of ?n }
[]
Simple Question (Coreferenced)
USER
No, I meant Federal Minister of the Interior. Could you tell me the answer for that?
(Q23938055,P361,c(Q35798))
Q23938055
['Q23938055', 'P361', {'concept': 'Q35798'}]
['Federal Minister of the Interior', 'part of', {'concept': 'executive branch'}]
[]
Q695599
SYSTEM
Austrian Federal Government
Q695599
(Q23938055,P361,c(Q35798))
action filter_type
action find
entity Q23938055
relation P361
type Q35798
That occupation a component of is the [ANSWER]
['Q23938055', 'P361', {'concept': 'Q35798'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q35798 . resource:Q23938055 property:P361 ?n }
Austrian Federal Government
That occupation a component of is the Austrian Federal Government
Austrian Federal Government
action filter_type
action find
entity Federal Minister of the Interior
relation part of
type executive branch
['Federal Minister of the Interior', 'part of', {'concept': 'executive branch'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:executive_branch . resource:Federal_Minister_of_the_Interior property:part_of ?n }
[]