Simple Question (Direct)
Simple Question
Q1137020
P495
Q15617994
USER
Which administrative territory is the country of origin of Erotica ?
(Q1137020,P495,c(Q15617994))
action filter_type
action find
entity Q1137020
relation P495
type Q15617994
['Q1137020', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q1137020 property:P495 ?c . ?c rdf:type ontology:Q15617994 }
Erotica
action filter_type
action find
entity Erotica
relation country of origin
type designation for an administrative territorial entity
['Erotica', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Erotica property:country_of_origin ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1137020,P495,c(Q15617994))
action filter_type
action find
entity Q1137020
relation P495
type Q15617994
[ANSWER] is the country of origin of Erotica
['Q1137020', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q1137020 property:P495 ?c . ?c rdf:type ontology:Q15617994 }
United States of America
United States of America is the country of origin of Erotica
United States of America
action filter_type
action find
entity Erotica
relation country of origin
type designation for an administrative territorial entity
['Erotica', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Erotica property:country_of_origin ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1137020
P407
Q34770
USER
Which language is that literary work in ?
(Q30,P407,c(Q34770))
action filter_type
action find
entity Q1137020
relation P407
type Q34770
['Q30', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q1137020 property:P407 ?b . ?b rdf:type ontology:Q34770 }
Erotica
action filter_type
action find
entity Erotica
relation language of work or name
type language
['United States of America', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Erotica property:language_of_work_or_name ?b . ?b rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q30,P407,c(Q34770))
action filter_type
action find
entity Q1137020
relation P407
type Q34770
Which language is that literary work in
['Q30', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q1137020 property:P407 ?b . ?b rdf:type ontology:Q34770 }
English
Which language is that literary work in
English
action filter_type
action find
entity Erotica
relation language of work or name
type language
['United States of America', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Erotica property:language_of_work_or_name ?b . ?b rdf:type ontology:language }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P282
Q2001982 Q9779 Q34770
USER
How many languages adopt approximately the same number of notations or alphabets as the writing system as that language ?
(c(Q34770),P282,c(Q2001982)|c(Q9779))
action count
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q1860
relation P282
type Q2001982
type Q9779
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) ?a WHERE { ?u rdf:type ?l . VALUES ( ?l ) { ( ontology:Q2001982 ) ( ontology:Q9779 ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:Q1860 property:P282 ?k . { { ?k rdf:type ontology:Q2001982 } UNION { ?k rdf:type ontology:Q9779 } } } } . FILTER ( ?h = ?g ) }
action count
action approx
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity English
relation writing system
type notation
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) ?a WHERE { ?u rdf:type ?l . VALUES ( ?l ) { ( ontology:notation ) ( ontology:alphabet ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:English property:writing_system ?k . { { ?k rdf:type ontology:notation } UNION { ?k rdf:type ontology:alphabet } } } } . FILTER ( ?h = ?g ) }
[]
notation alphabet language
SYSTEM
43
Q7102906 Q20832 Q20831 Q1133488 Q13414913 Q402878 Q36708 Q36741 Q35668 Q1669994 Q8785 Q35726 Q1321 Q21161949 Q25167 Q18130932 Q11732220 Q33976 Q856383 Q149838 Q47625 Q36822 Q33879 Q7362035 Q56472 Q6047309 Q8752 Q36178 Q9056 Q397 Q56512 Q35505 Q36957 Q25164 Q56982 Q35308 Q1860 Q36116 Q29977 Q837985 Q447117 Q7511561 Q33982
(c(Q34770),P282,c(Q2001982)|c(Q9779))
action count
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q1860
relation P282
type Q2001982
type Q9779
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) ?a WHERE { ?u rdf:type ?l . VALUES ( ?l ) { ( ontology:Q2001982 ) ( ontology:Q9779 ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:Q1860 property:P282 ?k . { { ?k rdf:type ontology:Q2001982 } UNION { ?k rdf:type ontology:Q9779 } } } } . FILTER ( ?h = ?g ) }
Orizaba Nahuatl Wailaki language Cahto language Old Gutnish Simplified Chinese Middle Polish Norn Polabian Hittite Minoan language Armenian Etruscan Spanish Serbian written in Latin script Bokmål Traditional Chinese Archaic Greek Sardinian language Pictish Old Polish Burgundian Slovincian language Pangasinan language Roman Khowar Shuadit language Central Nahuatl Basque Nabataean language Czech Latin Anêm language Old Norse language Umbrian Nynorsk Judaeo-Portuguese Old Irish English Middle Irish Gaulish Middle High German Old Egyptian Sierra Puebla Nahuatl Low Prussian
43
action count
action approx
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity English
relation writing system
type notation
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) ?a WHERE { ?u rdf:type ?l . VALUES ( ?l ) { ( ontology:notation ) ( ontology:alphabet ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:English property:writing_system ?k . { { ?k rdf:type ontology:notation } UNION { ?k rdf:type ontology:alphabet } } } } . FILTER ( ?h = ?g ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2630093
P1533
Q82799
USER
Which name matches Jason ?
(Q2630093,P1533,c(Q82799))
action filter_type
action find
entity Q2630093
relation P1533
type Q82799
['Q2630093', 'P1533', {'concept': 'Q82799'}]
SELECT DISTINCT ?c WHERE { resource:Q2630093 property:P1533 ?c . ?c rdf:type ontology:Q82799 }
Jason
action filter_type
action find
entity Jason
relation family name identical to this first name
type name
['Jason', 'family name identical to this first name', {'concept': 'name'}]
SELECT DISTINCT ?c WHERE { resource:Jason property:family_name_identical_to_this_first_name ?c . ?c rdf:type ontology:name }
[]
name
Q16871143
SYSTEM
Jason
Q16871143
(Q2630093,P1533,c(Q82799))
action filter_type
action find
entity Q2630093
relation P1533
type Q82799
[ANSWER] matches [ANSWER]
['Q2630093', 'P1533', {'concept': 'Q82799'}]
SELECT DISTINCT ?c WHERE { resource:Q2630093 property:P1533 ?c . ?c rdf:type ontology:Q82799 }
Jason
Jason matches Jason
Jason
action filter_type
action find
entity Jason
relation family name identical to this first name
type name
['Jason', 'family name identical to this first name', {'concept': 'name'}]
SELECT DISTINCT ?c WHERE { resource:Jason property:family_name_identical_to_this_first_name ?c . ?c rdf:type ontology:name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P407
Q34770 Q82799
USER
Which languages are the languages of work for min number of names ?
(c(Q82799),P407,Q447117)
action argmin
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
[{'concept': 'Q82799'}, 'P407', 'Q447117']
SELECT DISTINCT ?o WHERE { FILTER ( ?u = ?q ) . { SELECT DISTINCT ?o ( COUNT ( ?f ) AS ?u ) WHERE { ?f property:P407 ?o . ?f rdf:type ontology:Q82799 . ?o rdf:type ontology:Q34770 } GROUP BY ?o } . { SELECT DISTINCT ( MIN ( ?z ) AS ?q ) { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?z ) WHERE { ?v property:P407 ?n . ?n rdf:type ontology:Q34770 . ?v rdf:type ontology:Q82799 } GROUP BY ?n } } }
action argmin
action find_reverse_tuple_counts
relation language of work or name
type language
type name
[{'concept': 'name'}, 'language of work or name', 'Old Egyptian']
SELECT DISTINCT ?o WHERE { FILTER ( ?u = ?q ) . { SELECT DISTINCT ?o ( COUNT ( ?f ) AS ?u ) WHERE { ?f property:language_of_work_or_name ?o . ?f rdf:type ontology:name . ?o rdf:type ontology:language } GROUP BY ?o } . { SELECT DISTINCT ( MIN ( ?z ) AS ?q ) { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?z ) WHERE { ?v property:language_of_work_or_name ?n . ?n rdf:type ontology:language . ?v rdf:type ontology:name } GROUP BY ?n } } }
[]
language name
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q35726 Q34909 Q27403 Q1420587 Q36206 Q33976 Q33879 Q10498031 Q37041 Q25167 Q25164 Q36790 Q447117
(c(Q82799),P407,Q447117)
action argmin
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
[ANSWERS] are the languages of work for min number of names
[{'concept': 'Q82799'}, 'P407', 'Q447117']
SELECT DISTINCT ?o WHERE { FILTER ( ?u = ?q ) . { SELECT DISTINCT ?o ( COUNT ( ?f ) AS ?u ) WHERE { ?f property:P407 ?o . ?f rdf:type ontology:Q82799 . ?o rdf:type ontology:Q34770 } GROUP BY ?o } . { SELECT DISTINCT ( MIN ( ?z ) AS ?q ) { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?z ) WHERE { ?v property:P407 ?n . ?n rdf:type ontology:Q34770 . ?v rdf:type ontology:Q82799 } GROUP BY ?n } } }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Etruscan Old Icelandic Galatian Høgnorsk Lak Sardinian language Pangasinan language Old East Norse classical Chinese Bokmål Nynorsk Sumerian Old Egyptian
Old Egyptian, Old Church Slavonic and Etruscan are the languages of work for min number of names
Old Egyptian Old Church Slavonic Etruscan
action argmin
action find_reverse_tuple_counts
relation language of work or name
type language
type name
[{'concept': 'name'}, 'language of work or name', 'Old Egyptian']
SELECT DISTINCT ?o WHERE { FILTER ( ?u = ?q ) . { SELECT DISTINCT ?o ( COUNT ( ?f ) AS ?u ) WHERE { ?f property:language_of_work_or_name ?o . ?f rdf:type ontology:name . ?o rdf:type ontology:language } GROUP BY ?o } . { SELECT DISTINCT ( MIN ( ?z ) AS ?q ) { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?z ) WHERE { ?v property:language_of_work_or_name ?n . ?n rdf:type ontology:language . ?v rdf:type ontology:name } GROUP BY ?n } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q35499
P1412
Q502895
USER
Which people use that language ?
(c(Q502895),P1412,Q35499)
action filter_type
action find_reverse
entity Q35499
relation P1412
type Q502895
[{'concept': 'Q502895'}, 'P1412', 'Q35499']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . ?z property:P1412 resource:Q35499 }
Old Church Slavonic
action filter_type
action find_reverse
entity Old Church Slavonic
relation languages spoken, written or signed
type common name
[{'concept': 'common name'}, 'languages spoken, written or signed', 'Old Church Slavonic']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . ?z property:languages_spoken,_written_or_signed resource:Old_Church_Slavonic }
[]
common name
Clarification for simple ques.
Q447117
SYSTEM
Did you mean Old Egyptian ?
Q447117 Q35499 Q35726
(c(Q502895),P1412,Q447117) (c(Q502895),P1412,Q35499) (c(Q502895),P1412,Q35726)
[ANSWER]
[{'concept': 'Q502895'}, 'P1412', 'Q447117'] [{'concept': 'Q502895'}, 'P1412', 'Q35499'] [{'concept': 'Q502895'}, 'P1412', 'Q35726']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . ?z property:P1412 resource:Q35499 }
Old Egyptian Old Church Slavonic Etruscan
Did you mean Old Egyptian ?
Old Egyptian
[{'concept': 'common name'}, 'languages spoken, written or signed', 'Old Egyptian'] [{'concept': 'common name'}, 'languages spoken, written or signed', 'Old Church Slavonic'] [{'concept': 'common name'}, 'languages spoken, written or signed', 'Etruscan']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . ?z property:languages_spoken,_written_or_signed resource:Old_Church_Slavonic }
[]
Simple Question (Coreferenced)
USER
No, I meant Old Church Slavonic. Could you tell me the answer for that?
(c(Q502895),P1412,Q35499)
Q35499
[{'concept': 'Q502895'}, 'P1412', 'Q35499']
[{'concept': 'common name'}, 'languages spoken, written or signed', 'Old Church Slavonic']
[]
Q723304 Q1146725 Q650558
SYSTEM
Gregory Tsamblak, Constantine of Preslav, John Exarch
Q723304 Q1146725 Q650558
(c(Q502895),P1412,Q35499)
action filter_type
action find_reverse
entity Q35499
relation P1412
type Q502895
[ANSWERS] use that language
[{'concept': 'Q502895'}, 'P1412', 'Q35499']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . ?z property:P1412 resource:Q35499 }
Gregory Tsamblak Constantine of Preslav John Exarch
Gregory Tsamblak, Constantine of Preslav and John Exarch use that language
Gregory Tsamblak Constantine of Preslav John Exarch
action filter_type
action find_reverse
entity Old Church Slavonic
relation languages spoken, written or signed
type common name
[{'concept': 'common name'}, 'languages spoken, written or signed', 'Old Church Slavonic']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . ?z property:languages_spoken,_written_or_signed resource:Old_Church_Slavonic }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1146725
P1412
Q34770
USER
Which language does that person speak in ?
(Q1146725,P1412,c(Q34770))
action filter_type
action find
entity Q1146725
relation P1412
type Q34770
['Q1146725', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q34770 . resource:Q1146725 property:P1412 ?a }
Constantine of Preslav
action filter_type
action find
entity Constantine of Preslav
relation languages spoken, written or signed
type language
['Constantine of Preslav', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:language . resource:Constantine_of_Preslav property:languages_spoken,_written_or_signed ?a }
[]
language
Clarification for simple ques.
Q650558
SYSTEM
Did you mean John Exarch ?
Q723304 Q1146725 Q650558
(Q723304,P1412,c(Q34770)) (Q1146725,P1412,c(Q34770)) (Q650558,P1412,c(Q34770))
[ANSWER]
['Q723304', 'P1412', {'concept': 'Q34770'}] ['Q1146725', 'P1412', {'concept': 'Q34770'}] ['Q650558', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q34770 . resource:Q1146725 property:P1412 ?a }
Gregory Tsamblak Constantine of Preslav John Exarch
Did you mean John Exarch ?
John Exarch
['Gregory Tsamblak', 'languages spoken, written or signed', {'concept': 'language'}] ['Constantine of Preslav', 'languages spoken, written or signed', {'concept': 'language'}] ['John Exarch', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:language . resource:Constantine_of_Preslav property:languages_spoken,_written_or_signed ?a }
[]
Simple Question (Coreferenced)
USER
No, I meant Constantine of Preslav. Could you tell me the answer for that?
(Q1146725,P1412,c(Q34770))
Q1146725
['Q1146725', 'P1412', {'concept': 'Q34770'}]
['Constantine of Preslav', 'languages spoken, written or signed', {'concept': 'language'}]
[]
Q35499
SYSTEM
Old Church Slavonic
Q35499
(Q1146725,P1412,c(Q34770))
action filter_type
action find
entity Q1146725
relation P1412
type Q34770
That person speaks in [ANSWER]
['Q1146725', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q34770 . resource:Q1146725 property:P1412 ?a }
Old Church Slavonic
That person speaks in Old Church Slavonic
Old Church Slavonic
action filter_type
action find
entity Constantine of Preslav
relation languages spoken, written or signed
type language
['Constantine of Preslav', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:language . resource:Constantine_of_Preslav property:languages_spoken,_written_or_signed ?a }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P37
Q34770 Q1048835
USER
Which political territories designates min number of languages as their official language ?
(c(Q1048835),P37,c(Q34770))
action argmin
action find_tuple_counts
relation P37
type Q1048835
type Q34770
[{'concept': 'Q1048835'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?g ) { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?j ) WHERE { ?i property:P37 ?f . ?i rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q34770 } GROUP BY ?i } } . { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?c ) WHERE { ?u property:P37 ?b . ?u rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q34770 } GROUP BY ?u } . FILTER ( ?c = ?g ) }
action argmin
action find_tuple_counts
relation official language
type political territorial entity
type language
[{'concept': 'political territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?g ) { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?j ) WHERE { ?i property:official_language ?f . ?i rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:language } GROUP BY ?i } } . { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?c ) WHERE { ?u property:official_language ?b . ?u rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:language } GROUP BY ?u } . FILTER ( ?c = ?g ) }
[]
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 argmin
action find_tuple_counts
relation P37
type Q1048835
type Q34770
[ANSWERS] designate min number of languages as their official language
[{'concept': 'Q1048835'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?g ) { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?j ) WHERE { ?i property:P37 ?f . ?i rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q34770 } GROUP BY ?i } } . { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?c ) WHERE { ?u property:P37 ?b . ?u rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q34770 } GROUP BY ?u } . FILTER ( ?c = ?g ) }
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 designate min number of languages as their official language
Germany Denmark Austria
action argmin
action find_tuple_counts
relation official language
type political territorial entity
type language
[{'concept': 'political territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?g ) { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?j ) WHERE { ?i property:official_language ?f . ?i rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:language } GROUP BY ?i } } . { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?c ) WHERE { ?u property:official_language ?b . ?u rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:language } GROUP BY ?u } . FILTER ( ?c = ?g ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relations with around 7 political territories ?
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 7
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?l ) WHERE { ?m property:P530 ?q . ?m rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } GROUP BY ?m } . FILTER ( ?l = 7 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 7
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?l ) WHERE { ?m property:diplomatic_relation ?q . ?m rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?m } . FILTER ( ?l = 7 ) }
[]
political territorial entity political territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 7
[ANSWER] have diplomatic relations with around 7 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?l ) WHERE { ?m property:P530 ?q . ?m rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } GROUP BY ?m } . FILTER ( ?l = 7 ) }
Germany
Germany have diplomatic relations with around 7 political territories
Germany
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 7
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?l ) WHERE { ?m property:diplomatic_relation ?q . ?m rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?m } . FILTER ( ?l = 7 ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P276
Q13365595
USER
What is situated at that political territory ?
(c(Q13365595),P276,Q183)
action filter_type
action find_reverse
entity Q183
relation P276
type Q13365595
[{'concept': 'Q13365595'}, 'P276', 'Q183']
SELECT DISTINCT ?r WHERE { ?r property:P276 resource:Q183 . ?r rdf:type ontology:Q13365595 }
Germany
action filter_type
action find_reverse
entity Germany
relation location
type proportional representation
[{'concept': 'proportional representation'}, 'location', 'Germany']
SELECT DISTINCT ?r WHERE { ?r property:location resource:Germany . ?r rdf:type ontology:proportional_representation }
[]
proportional representation
Q555931
SYSTEM
German federal election, 2013
Q555931
(c(Q13365595),P276,Q183)
action filter_type
action find_reverse
entity Q183
relation P276
type Q13365595
[ANSWER] is situated at that political territory
[{'concept': 'Q13365595'}, 'P276', 'Q183']
SELECT DISTINCT ?r WHERE { ?r property:P276 resource:Q183 . ?r rdf:type ontology:Q13365595 }
German federal election, 2013
German federal election, 2013 is situated at that political territory
German federal election, 2013
action filter_type
action find_reverse
entity Germany
relation location
type proportional representation
[{'concept': 'proportional representation'}, 'location', 'Germany']
SELECT DISTINCT ?r WHERE { ?r property:location resource:Germany . ?r rdf:type ontology:proportional_representation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P793
Q846882
USER
What event is that political territory associated with ?
(Q555931,P793,c(Q846882))
action filter_type
action find
entity Q183
relation P793
type Q846882
['Q555931', 'P793', {'concept': 'Q846882'}]
SELECT DISTINCT ?t WHERE { resource:Q183 property:P793 ?t . ?t rdf:type ontology:Q846882 }
Germany
action filter_type
action find
entity Germany
relation significant event
type sources of law
['German federal election, 2013', 'significant event', {'concept': 'sources of law'}]
SELECT DISTINCT ?t WHERE { resource:Germany property:significant_event ?t . ?t rdf:type ontology:sources_of_law }
[]
sources of law
Q56045
SYSTEM
Basic Law for the Federal Republic of Germany
Q56045
(Q555931,P793,c(Q846882))
action filter_type
action find
entity Q183
relation P793
type Q846882
That political territory is associated with [ANSWER]
['Q555931', 'P793', {'concept': 'Q846882'}]
SELECT DISTINCT ?t WHERE { resource:Q183 property:P793 ?t . ?t rdf:type ontology:Q846882 }
Basic Law for the Federal Republic of Germany
That political territory is associated with Basic Law for the Federal Republic of Germany
Basic Law for the Federal Republic of Germany
action filter_type
action find
entity Germany
relation significant event
type sources of law
['German federal election, 2013', 'significant event', {'concept': 'sources of law'}]
SELECT DISTINCT ?t WHERE { resource:Germany property:significant_event ?t . ?t rdf:type ontology:sources_of_law }
[]