Simple Question (Direct)
Simple Question
Q3048324
P27
Q15617994
USER
Which administrative territory is Eduardo Dibós Chappuis an inhabitant of ?
(Q3048324,P27,c(Q15617994))
action filter_type
action find
entity Q3048324
relation P27
type Q15617994
['Q3048324', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q3048324 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Eduardo Dibós Chappuis
action filter_type
action find
entity Eduardo Dibós Chappuis
relation country of citizenship
type designation for an administrative territorial entity
['Eduardo Dibós Chappuis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Eduardo_Dibós_Chappuis property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q419
SYSTEM
Peru
Q419
(Q3048324,P27,c(Q15617994))
action filter_type
action find
entity Q3048324
relation P27
type Q15617994
[ANSWER] is Eduardo Dibós Chappuis an inhabitant of
['Q3048324', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q3048324 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Peru
Peru is Eduardo Dibós Chappuis an inhabitant of
Peru
action filter_type
action find
entity Eduardo Dibós Chappuis
relation country of citizenship
type designation for an administrative territorial entity
['Eduardo Dibós Chappuis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Eduardo_Dibós_Chappuis property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3048324
P1412
Q34770
USER
Which language is that person capable of writing ?
(Q419,P1412,c(Q34770))
action filter_type
action find
entity Q3048324
relation P1412
type Q34770
['Q419', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?z WHERE { resource:Q3048324 property:P1412 ?z . ?z rdf:type ontology:Q34770 }
Eduardo Dibós Chappuis
action filter_type
action find
entity Eduardo Dibós Chappuis
relation languages spoken, written or signed
type language
['Peru', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?z WHERE { resource:Eduardo_Dibós_Chappuis property:languages_spoken,_written_or_signed ?z . ?z rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q419,P1412,c(Q34770))
action filter_type
action find
entity Q3048324
relation P1412
type Q34770
[ANSWER] is that person capable of writing
['Q419', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?z WHERE { resource:Q3048324 property:P1412 ?z . ?z rdf:type ontology:Q34770 }
Spanish
Spanish is that person capable of writing
Spanish
action filter_type
action find
entity Eduardo Dibós Chappuis
relation languages spoken, written or signed
type language
['Peru', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?z WHERE { resource:Eduardo_Dibós_Chappuis property:languages_spoken,_written_or_signed ?z . ?z rdf:type ontology:language }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q149838
P282
Q9779 Q8192 Q34770
USER
How many languages are around the same number of alphabets or writing systems the writing system of as Old Polish ?
(c(Q34770),P282,c(Q9779)|c(Q8192))
action count
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q8192
action count
action filter_multi_types
action find
entity Q149838
relation P282
type Q9779
type Q8192
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { resource:Q149838 property:P282 ?p . { VALUES ( ?r ) { ( ontology:Q9779 ) ( ontology:Q8192 ) } . ?p rdf:type ?r } } } . FILTER ( ?j = ?x ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) ?f WHERE { { ?f property:P282 ?b . ?f rdf:type ontology:Q34770 . ?b rdf:type ontology:Q9779 } UNION { ?f property:P282 ?b . ?f rdf:type ontology:Q34770 . ?b rdf:type ontology:Q8192 } } GROUP BY ?f } }
Old Polish
action count
action approx
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type writing system
action count
action filter_multi_types
action find
entity Old Polish
relation writing system
type alphabet
type writing system
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'writing system'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { resource:Old_Polish property:writing_system ?p . { VALUES ( ?r ) { ( ontology:alphabet ) ( ontology:writing_system ) } . ?p rdf:type ?r } } } . FILTER ( ?j = ?x ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) ?f WHERE { { ?f property:writing_system ?b . ?f rdf:type ontology:language . ?b rdf:type ontology:alphabet } UNION { ?f property:writing_system ?b . ?f rdf:type ontology:language . ?b rdf:type ontology:writing_system } } GROUP BY ?f } }
[]
alphabet writing system language
SYSTEM
49
Q7102906 Q20832 Q29572 Q20831 Q1133488 Q13414913 Q402878 Q36708 Q35470 Q36741 Q35668 Q8785 Q35726 Q1321 Q21161949 Q25167 Q18130932 Q11732220 Q33976 Q856383 Q149838 Q47625 Q36822 Q2705672 Q33879 Q7362035 Q36795 Q56472 Q6047309 Q8752 Q36178 Q9056 Q397 Q20972034 Q56512 Q35505 Q36957 Q25164 Q56982 Q35308 Q36790 Q1860 Q36116 Q36751 Q29977 Q837985 Q447117 Q7511561 Q33982
(c(Q34770),P282,c(Q9779)|c(Q8192))
action count
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q8192
action count
action filter_multi_types
action find
entity Q149838
relation P282
type Q9779
type Q8192
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { resource:Q149838 property:P282 ?p . { VALUES ( ?r ) { ( ontology:Q9779 ) ( ontology:Q8192 ) } . ?p rdf:type ?r } } } . FILTER ( ?j = ?x ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) ?f WHERE { { ?f property:P282 ?b . ?f rdf:type ontology:Q34770 . ?b rdf:type ontology:Q9779 } UNION { ?f property:P282 ?b . ?f rdf:type ontology:Q34770 . ?b rdf:type ontology:Q8192 } } GROUP BY ?f } }
Orizaba Nahuatl Wailaki language Avestan Cahto language Old Gutnish Simplified Chinese Middle Polish Norn Elamite language Polabian Hittite Armenian Etruscan Spanish Serbian written in Latin script Bokmål Traditional Chinese Archaic Greek Sardinian language Pictish Old Polish Burgundian Slovincian language Paeonian language Pangasinan language Roman Khowar Tartessian Shuadit language Central Nahuatl Basque Nabataean language Czech Latin Classic Greek Anêm language Old Norse language Umbrian Nynorsk Judaeo-Portuguese Old Irish Sumerian English Middle Irish Phrygian language Gaulish Middle High German Old Egyptian Sierra Puebla Nahuatl Low Prussian
49
action count
action approx
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type writing system
action count
action filter_multi_types
action find
entity Old Polish
relation writing system
type alphabet
type writing system
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'writing system'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { resource:Old_Polish property:writing_system ?p . { VALUES ( ?r ) { ( ontology:alphabet ) ( ontology:writing_system ) } . ?p rdf:type ?r } } } . FILTER ( ?j = ?x ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) ?f WHERE { { ?f property:writing_system ?b . ?f rdf:type ontology:language . ?b rdf:type ontology:alphabet } UNION { ?f property:writing_system ?b . ?f rdf:type ontology:language . ?b rdf:type ontology:writing_system } } GROUP BY ?f } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q35726
P282
Q9779 Q8192 Q34770
USER
And what about Etruscan?
(c(Q34770),P282,c(Q9779)|c(Q8192))
action count
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q8192
action count
action filter_multi_types
action find
entity Q35726
relation P282
type Q9779
type Q8192
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { resource:Q35726 property:P282 ?g . { { ?g rdf:type ontology:Q9779 } UNION { ?g rdf:type ontology:Q8192 } } } } . FILTER ( ?l = ?h ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) ?u WHERE { ?j rdf:type ?v . VALUES ( ?v ) { ( ontology:Q8192 ) ( ontology:Q9779 ) } } GROUP BY ?u } }
Etruscan
action count
action approx
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type writing system
action count
action filter_multi_types
action find
entity Etruscan
relation writing system
type alphabet
type writing system
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'writing system'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { resource:Etruscan property:writing_system ?g . { { ?g rdf:type ontology:alphabet } UNION { ?g rdf:type ontology:writing_system } } } } . FILTER ( ?l = ?h ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) ?u WHERE { ?j rdf:type ?v . VALUES ( ?v ) { ( ontology:writing_system ) ( ontology:alphabet ) } } GROUP BY ?u } }
[]
alphabet writing system language
SYSTEM
49
Q7102906 Q20832 Q29572 Q20831 Q1133488 Q13414913 Q402878 Q36708 Q35470 Q36741 Q35668 Q8785 Q35726 Q1321 Q21161949 Q25167 Q18130932 Q11732220 Q33976 Q856383 Q149838 Q47625 Q36822 Q2705672 Q33879 Q7362035 Q36795 Q56472 Q6047309 Q8752 Q36178 Q9056 Q397 Q20972034 Q56512 Q35505 Q36957 Q25164 Q56982 Q35308 Q36790 Q1860 Q36116 Q36751 Q29977 Q837985 Q447117 Q7511561 Q33982
(c(Q34770),P282,c(Q9779)|c(Q8192))
action count
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q8192
action count
action filter_multi_types
action find
entity Q35726
relation P282
type Q9779
type Q8192
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { resource:Q35726 property:P282 ?g . { { ?g rdf:type ontology:Q9779 } UNION { ?g rdf:type ontology:Q8192 } } } } . FILTER ( ?l = ?h ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) ?u WHERE { ?j rdf:type ?v . VALUES ( ?v ) { ( ontology:Q8192 ) ( ontology:Q9779 ) } } GROUP BY ?u } }
Orizaba Nahuatl Wailaki language Avestan Cahto language Old Gutnish Simplified Chinese Middle Polish Norn Elamite language Polabian Hittite Armenian Etruscan Spanish Serbian written in Latin script Bokmål Traditional Chinese Archaic Greek Sardinian language Pictish Old Polish Burgundian Slovincian language Paeonian language Pangasinan language Roman Khowar Tartessian Shuadit language Central Nahuatl Basque Nabataean language Czech Latin Classic Greek Anêm language Old Norse language Umbrian Nynorsk Judaeo-Portuguese Old Irish Sumerian English Middle Irish Phrygian language Gaulish Middle High German Old Egyptian Sierra Puebla Nahuatl Low Prussian
49
action count
action approx
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type writing system
action count
action filter_multi_types
action find
entity Etruscan
relation writing system
type alphabet
type writing system
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'writing system'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { resource:Etruscan property:writing_system ?g . { { ?g rdf:type ontology:alphabet } UNION { ?g rdf:type ontology:writing_system } } } } . FILTER ( ?l = ?h ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) ?u WHERE { ?j rdf:type ?v . VALUES ( ?v ) { ( ontology:writing_system ) ( ontology:alphabet ) } } GROUP BY ?u } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5258865 Q419
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with Peru or do Dennis Powell belong to ?
OR((Q419,P530,c(Q15617994)), (Q5258865,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q419
relation P530
action find
entity Q5258865
relation P27
type Q15617994
{'OR': [['Q419', 'P530', {'concept': 'Q15617994'}], ['Q5258865', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . { { resource:Q5258865 property:P27 ?u } UNION { resource:Q419 property:P530 ?u } } }
Dennis Powell Peru
action filter_type
action union
action find
entity Peru
relation diplomatic relation
action find
entity Dennis Powell
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Peru', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Dennis Powell', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Dennis_Powell property:country_of_citizenship ?u } UNION { resource:Peru property:diplomatic_relation ?u } } }
[]
designation for an administrative territorial entity
Q155 Q38 Q30
SYSTEM
Brazil, Italy, United States of America
Q155 Q38 Q30
OR((Q419,P530,c(Q15617994)), (Q5258865,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q419
relation P530
action find
entity Q5258865
relation P27
type Q15617994
[ANSWERS] have diplomatic relationships with Peru or do Dennis Powell belong to
{'OR': [['Q419', 'P530', {'concept': 'Q15617994'}], ['Q5258865', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . { { resource:Q5258865 property:P27 ?u } UNION { resource:Q419 property:P530 ?u } } }
Brazil Italy United States of America
Brazil, Italy and United States of America have diplomatic relationships with Peru or do Dennis Powell belong to
Brazil Italy United States of America
action filter_type
action union
action find
entity Peru
relation diplomatic relation
action find
entity Dennis Powell
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Peru', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Dennis Powell', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Dennis_Powell property:country_of_citizenship ?u } UNION { resource:Peru property:diplomatic_relation ?u } } }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2088357 Q2031291
USER
Which administrative territories are the origins of approximately the same number of musical ensembles and releases as that administrative territory ?
(c(Q2088357)|c(Q2031291),P495,c(Q15617994))
[[{'concept': 'Q2088357'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { ?r property:P495 ?y . VALUES ( ?r ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:Q2088357 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
[[{'concept': 'musical ensemble'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { ?r property:country_of_origin ?y . VALUES ( ?r ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:musical_ensemble . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
designation for an administrative territorial entity musical ensemble release
Comparative|More/Less|Mult. entity type|Clarification
Q38
SYSTEM
Did you mean Italy ?
(c(Q2088357)|c(Q2031291),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2088357'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { ?r property:P495 ?y . VALUES ( ?r ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:Q2088357 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
Did you mean Italy ?
Italy
[[{'concept': 'musical ensemble'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { ?r property:country_of_origin ?y . VALUES ( ?r ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:musical_ensemble . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
Comparative Reasoning (All)
USER
No, I meant United States of America. Could you tell me the answer for that?
(c(Q2088357)|c(Q2031291),P495,c(Q15617994))
Q30
[[{'concept': 'Q2088357'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'musical ensemble'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q30
SYSTEM
United States of America
Q30
(c(Q2088357)|c(Q2031291),P495,c(Q15617994))
[ANSWER] is the origins of approximately the same number of musical ensembles and releases as that administrative territory
[[{'concept': 'Q2088357'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2088357 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
United States of America
United States of America is the origins of approximately the same number of musical ensembles and releases as that administrative territory
United States of America
[[{'concept': 'musical ensemble'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:musical_ensemble . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P282
Q9779 Q2001982 Q34770
USER
Which languages utilizes atmost 2 alphabets or notations as the writing system ?
(c(Q34770),P282,c(Q9779)|c(Q2001982))
action atmost
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q2001982
value 2
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?i WHERE { { ?i property:P282 ?a . ?i rdf:type ontology:Q34770 . ?a rdf:type ontology:Q9779 } UNION { ?i property:P282 ?a . ?a rdf:type ontology:Q2001982 . ?i rdf:type ontology:Q34770 } } GROUP BY ?i } . FILTER ( ?m <= 2 ) }
action atmost
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type notation
value 2
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'notation'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?i WHERE { { ?i property:writing_system ?a . ?i rdf:type ontology:language . ?a rdf:type ontology:alphabet } UNION { ?i property:writing_system ?a . ?a rdf:type ontology:notation . ?i rdf:type ontology:language } } GROUP BY ?i } . FILTER ( ?m <= 2 ) }
[]
alphabet notation language
Q29572 Q1860 Q447117
SYSTEM
Avestan, English, Old Egyptian
Q7102906 Q182695 Q20832 Q29572 Q20831 Q1133488 Q13414913 Q402878 Q36708 Q35470 Q13211 Q36741 Q35499 Q35668 Q1669994 Q8785 Q35726 Q1321 Q21161949 Q25167 Q33251 Q18130932 Q21161942 Q1639124 Q11732220 Q33976 Q856383 Q149838 Q47625 Q36822 Q2705672 Q33879 Q7362035 Q36795 Q56472 Q6047309 Q8752 Q36178 Q9056 Q397 Q20972034 Q56512 Q35505 Q36957 Q25164 Q56982 Q35308 Q36790 Q1860 Q36116 Q36751 Q29977 Q36464 Q837985 Q447117 Q7511561 Q652 Q33982
(c(Q34770),P282,c(Q9779)|c(Q2001982))
action atmost
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q2001982
value 2
[ANSWERS] utilize atmost 2 alphabets or notations as the writing system
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?i WHERE { { ?i property:P282 ?a . ?i rdf:type ontology:Q34770 . ?a rdf:type ontology:Q9779 } UNION { ?i property:P282 ?a . ?a rdf:type ontology:Q2001982 . ?i rdf:type ontology:Q34770 } } GROUP BY ?i } . FILTER ( ?m <= 2 ) }
Orizaba Nahuatl Late Old Japanese Wailaki language Avestan Cahto language Old Gutnish Simplified Chinese Middle Polish Norn Elamite language Ruthenian Polabian Old Church Slavonic Hittite Minoan language Armenian Etruscan Spanish Serbian written in Latin script Bokmål Church Slavonic Traditional Chinese Serbian written in Cyrillic Slavoserbian Archaic Greek Sardinian language Pictish Old Polish Burgundian Slovincian language Paeonian language Pangasinan language Roman Khowar Tartessian Shuadit language Central Nahuatl Basque Nabataean language Czech Latin Classic Greek Anêm language Old Norse language Umbrian Nynorsk Judaeo-Portuguese Old Irish Sumerian English Middle Irish Phrygian language Gaulish Nivkh language Middle High German Old Egyptian Sierra Puebla Nahuatl Italian Low Prussian
Avestan, English and Old Egyptian utilize atmost 2 alphabets or notations as the writing system
Avestan English Old Egyptian
action atmost
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type notation
value 2
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'notation'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?i WHERE { { ?i property:writing_system ?a . ?i rdf:type ontology:language . ?a rdf:type ontology:alphabet } UNION { ?i property:writing_system ?a . ?a rdf:type ontology:notation . ?i rdf:type ontology:language } } GROUP BY ?i } . FILTER ( ?m <= 2 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q15617994 Q7725634 Q2031291
USER
Which administrative territories did exactly 7 literary works and releases originate ?
(c(Q7725634)|c(Q2031291),P495,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
value 7
[[{'concept': 'Q7725634'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) ?z WHERE { VALUES ( ?e ) { ( ontology:Q7725634 ) ( ontology:Q2031291 ) } . ?n rdf:type ?e } GROUP BY ?z } . FILTER ( ?b = 7 ) }
action equal
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
value 7
[[{'concept': 'literary work'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) ?z WHERE { VALUES ( ?e ) { ( ontology:literary_work ) ( ontology:release ) } . ?n rdf:type ?e } GROUP BY ?z } . FILTER ( ?b = 7 ) }
[]
designation for an administrative territorial entity literary work release
Q419 Q20 Q902
SYSTEM
Peru, Norway, Bangladesh
Q419 Q20 Q902
(c(Q7725634)|c(Q2031291),P495,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
value 7
Exactly 7 literary works and releases originated from [ANSWERS]
[[{'concept': 'Q7725634'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) ?z WHERE { VALUES ( ?e ) { ( ontology:Q7725634 ) ( ontology:Q2031291 ) } . ?n rdf:type ?e } GROUP BY ?z } . FILTER ( ?b = 7 ) }
Peru Norway Bangladesh
Exactly 7 literary works and releases originated from Peru, Norway and Bangladesh
Peru Norway Bangladesh
action equal
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
value 7
[[{'concept': 'literary work'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) ?z WHERE { VALUES ( ?e ) { ( ontology:literary_work ) ( ontology:release ) } . ?n rdf:type ?e } GROUP BY ?z } . FILTER ( ?b = 7 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q419 Q20 Q902
P495
Q15416
USER
What are Peru, Norway and Bangladesh a country of origin of ?
(c(Q15416),P495,Q419) (c(Q15416),P495,Q20) (c(Q15416),P495,Q902)
action union
action filter_type
action find_reverse
entity Q419
relation P495
type Q15416
action filter_type
action find_reverse
entity Q20
relation P495
type Q15416
action filter_type
action find_reverse
entity Q902
relation P495
type Q15416
[{'concept': 'Q15416'}, 'P495', 'Q419'] [{'concept': 'Q15416'}, 'P495', 'Q20'] [{'concept': 'Q15416'}, 'P495', 'Q902']
SELECT DISTINCT ?u WHERE { { ?u property:P495 resource:Q419 . ?u rdf:type ontology:Q15416 } UNION { ?u property:P495 resource:Q20 . ?u rdf:type ontology:Q15416 } }
Peru Norway Bangladesh
action union
action filter_type
action find_reverse
entity Peru
relation country of origin
type television program
action filter_type
action find_reverse
entity Norway
relation country of origin
type television program
action filter_type
action find_reverse
entity Bangladesh
relation country of origin
type television program
[{'concept': 'television program'}, 'country of origin', 'Peru'] [{'concept': 'television program'}, 'country of origin', 'Norway'] [{'concept': 'television program'}, 'country of origin', 'Bangladesh']
SELECT DISTINCT ?u WHERE { { ?u property:country_of_origin resource:Peru . ?u rdf:type ontology:television_program } UNION { ?u property:country_of_origin resource:Norway . ?u rdf:type ontology:television_program } }
[]
television program
Q20112252 Q20723554 Q1758072
SYSTEM
Acquitted, Occupied, Lilyhammer
Q978479 Q9021536 Q2918666 Q5351335 Q20898597 Q9077526 Q5920970 Q6051500 Q4545949 Q15728044 Q763178 Q12199016 Q5415213 Q5710192 Q6048311 Q5351333 Q5785362 Q5169688 Q1248423 Q8076450 Q913530 Q5005063 Q10689374 Q1758072 Q7232819 Q6371510 Q6547985 Q2843534 Q6371920 Q7455974 Q1758643 Q19384069 Q3372915 Q16523014 Q16523015 Q4967176 Q1763148 Q7672276 Q1768738 Q1803035 Q18819745 Q5434385 Q7944465 Q10465845 Q5203217 Q2372621 Q5980186 Q7883509 Q5907141 Q12005439 Q26262783 Q15279312 Q1781495 Q7691432 Q5360430 Q16250198 Q6514009 Q5015152 Q11963255 Q7193641 Q20723554 Q10659531 Q18707059 Q1764292 Q11990104 Q19391179 Q6516343 Q7416422 Q21264931 Q27312160 Q1776755 Q11974897 Q11964978 Q5350488 Q1630877 Q17415692 Q11976207 Q1770622 Q20112252 Q7810250 Q6711415 Q11979573 Q1760874 Q7773058 Q4162674 Q7712590 Q16823323 Q16844011 Q4855431 Q10964548 Q18526138 Q16252751 Q7402989 Q16243610 Q16995594 Q6434003
(c(Q15416),P495,Q419) (c(Q15416),P495,Q20) (c(Q15416),P495,Q902)
action union
action filter_type
action find_reverse
entity Q419
relation P495
type Q15416
action filter_type
action find_reverse
entity Q20
relation P495
type Q15416
action filter_type
action find_reverse
entity Q902
relation P495
type Q15416
[ANSWERS] are Peru, Norway and Bangladesh a country of origin of
[{'concept': 'Q15416'}, 'P495', 'Q419'] [{'concept': 'Q15416'}, 'P495', 'Q20'] [{'concept': 'Q15416'}, 'P495', 'Q902']
SELECT DISTINCT ?u WHERE { { ?u property:P495 resource:Q419 . ?u rdf:type ontology:Q15416 } UNION { ?u property:P495 resource:Q20 . ?u rdf:type ontology:Q15416 } }
Al Fondo Hay Sitio Leonela, muriendo de amor María Emilia, querida El Gran Show: Reyes del Show Mother's Love la novela Simplemente María Isabella Operación Triunfo 100% Fanáticos Avenida Perú Pobre diabla Pataclaun Eva del Edén Así es la vida Obsesión El Gran Show Latin Lover Corazón de fuego Luz María ¿Quién quiere ser millonario? Milagros Bésame Tonto TV-aksjonen Lilyhammer Portveien 2 Karl & Co Lille Lørdag City of Friends Karl III Sesam Stasjon Nytt på nytt Nr. 13 Idol City of Friends: Halloween Havoc City of Friends: Father Christmas Mix Up Brigaden Nissene på låven TV 2 Nyhetene Himmelblå So You Think You Can Dance Scandinavia The Third Eye Fanthomas Våg og vinn Dag D'ække bare, bare Bernt The Amazing Race Norge I kveld med Thomas Giertsen Undercover Boss Norge Hos Martin Televimsen Landskap Ville vesten Fleksnes Fataliteter Team Antonsen Elias: The Little Rescue Boat The Julekalender Typisk norsk Ca. Lykkelig Casino Piker, vin og sang Occupied SK 917 har nettopp landet Mammon Robinsonekspedisjonen Mot i brøstet Sushi Uti vår hage Sandmann – Historien om en sosialistisk supermann The Games Vikingane Rød snø Hellfjord Deadline Torp Ekko av Ibsen Hotel Cæsar Store studio Hvaler Brødrene Dal Acquitted Titten Tei Lørdagsredaksjonen Juritzen direkte Hjernevask The Voice – Norges beste stemme Vaffelhjarte The Adventures of Montu Miah Bishaash Bohubrihi Bangladeshi Idol Shomoyer Kotha MasterChef Bangladesh Pakhal Sakin Sarisuri BBC Janala Mojay Mojay Shekha Ke Hotey Chay Kotipoti Kothao Keu Nei
Acquitted, Occupied and Lilyhammer are Peru, Norway and Bangladesh a country of origin of
Acquitted Occupied Lilyhammer
action union
action filter_type
action find_reverse
entity Peru
relation country of origin
type television program
action filter_type
action find_reverse
entity Norway
relation country of origin
type television program
action filter_type
action find_reverse
entity Bangladesh
relation country of origin
type television program
[{'concept': 'television program'}, 'country of origin', 'Peru'] [{'concept': 'television program'}, 'country of origin', 'Norway'] [{'concept': 'television program'}, 'country of origin', 'Bangladesh']
SELECT DISTINCT ?u WHERE { { ?u property:country_of_origin resource:Peru . ?u rdf:type ontology:television_program } UNION { ?u property:country_of_origin resource:Norway . ?u rdf:type ontology:television_program } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q20112252 Q20723554 Q1758072
P57
Q502895
USER
Which people served as the directed of Acquitted, Occupied and Lilyhammer ?
(Q20112252,P57,c(Q502895)) (Q20723554,P57,c(Q502895)) (Q1758072,P57,c(Q502895))
action union
action filter_type
action find
entity Q20112252
relation P57
type Q502895
action filter_type
action find
entity Q20723554
relation P57
type Q502895
action filter_type
action find
entity Q1758072
relation P57
type Q502895
['Q20112252', 'P57', {'concept': 'Q502895'}] ['Q20723554', 'P57', {'concept': 'Q502895'}] ['Q1758072', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { resource:Q20112252 property:P57 ?c . ?c rdf:type ontology:Q502895 } UNION { resource:Q20723554 property:P57 ?c . ?c rdf:type ontology:Q502895 } }
Acquitted Occupied Lilyhammer
action union
action filter_type
action find
entity Acquitted
relation director
type common name
action filter_type
action find
entity Occupied
relation director
type common name
action filter_type
action find
entity Lilyhammer
relation director
type common name
['Acquitted', 'director', {'concept': 'common name'}] ['Occupied', 'director', {'concept': 'common name'}] ['Lilyhammer', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { resource:Acquitted property:director ?c . ?c rdf:type ontology:common_name } UNION { resource:Occupied property:director ?c . ?c rdf:type ontology:common_name } }
[]
common name
Q16165163 Q1810480 Q3056581
SYSTEM
John Andreas Andersen, Pål Sletaune, Erik Skjoldbjærg
Q17096928 Q11998626 Q16165163 Q17106795 Q1810480 Q3056581 Q15734183
(Q20112252,P57,c(Q502895)) (Q20723554,P57,c(Q502895)) (Q1758072,P57,c(Q502895))
action union
action filter_type
action find
entity Q20112252
relation P57
type Q502895
action filter_type
action find
entity Q20723554
relation P57
type Q502895
action filter_type
action find
entity Q1758072
relation P57
type Q502895
[ANSWERS] served as the directed of Acquitted, Occupied and Lilyhammer
['Q20112252', 'P57', {'concept': 'Q502895'}] ['Q20723554', 'P57', {'concept': 'Q502895'}] ['Q1758072', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { resource:Q20112252 property:P57 ?c . ?c rdf:type ontology:Q502895 } UNION { resource:Q20723554 property:P57 ?c . ?c rdf:type ontology:Q502895 } }
Geir Henning Hopland Rune Denstad Langlo John Andreas Andersen Erik Richter Strand Pål Sletaune Erik Skjoldbjærg Simen Alsvik
John Andreas Andersen, Pål Sletaune and Erik Skjoldbjærg served as the directed of Acquitted, Occupied and Lilyhammer
John Andreas Andersen Pål Sletaune Erik Skjoldbjærg
action union
action filter_type
action find
entity Acquitted
relation director
type common name
action filter_type
action find
entity Occupied
relation director
type common name
action filter_type
action find
entity Lilyhammer
relation director
type common name
['Acquitted', 'director', {'concept': 'common name'}] ['Occupied', 'director', {'concept': 'common name'}] ['Lilyhammer', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { resource:Acquitted property:director ?c . ?c rdf:type ontology:common_name } UNION { resource:Occupied property:director ?c . ?c rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3056581
P58
Q15416
USER
What is that person a screwriter of ?
(c(Q15416),P58,Q3056581)
action filter_type
action find_reverse
entity Q3056581
relation P58
type Q15416
[{'concept': 'Q15416'}, 'P58', 'Q3056581']
SELECT DISTINCT ?e WHERE { ?e property:P58 resource:Q3056581 . ?e rdf:type ontology:Q15416 }
Erik Skjoldbjærg
action filter_type
action find_reverse
entity Erik Skjoldbjærg
relation screenwriter
type television program
[{'concept': 'television program'}, 'screenwriter', 'Erik Skjoldbjærg']
SELECT DISTINCT ?e WHERE { ?e property:screenwriter resource:Erik_Skjoldbjærg . ?e rdf:type ontology:television_program }
[]
television program
Clarification for simple ques.
Q3056581
SYSTEM
Did you mean Erik Skjoldbjærg ?
Q16165163 Q1810480 Q3056581
(c(Q15416),P58,Q16165163) (c(Q15416),P58,Q1810480) (c(Q15416),P58,Q3056581)
[ANSWER]
[{'concept': 'Q15416'}, 'P58', 'Q16165163'] [{'concept': 'Q15416'}, 'P58', 'Q1810480'] [{'concept': 'Q15416'}, 'P58', 'Q3056581']
SELECT DISTINCT ?e WHERE { ?e property:P58 resource:Q3056581 . ?e rdf:type ontology:Q15416 }
John Andreas Andersen Pål Sletaune Erik Skjoldbjærg
Did you mean Erik Skjoldbjærg ?
Erik Skjoldbjærg
[{'concept': 'television program'}, 'screenwriter', 'John Andreas Andersen'] [{'concept': 'television program'}, 'screenwriter', 'Pål Sletaune'] [{'concept': 'television program'}, 'screenwriter', 'Erik Skjoldbjærg']
SELECT DISTINCT ?e WHERE { ?e property:screenwriter resource:Erik_Skjoldbjærg . ?e rdf:type ontology:television_program }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q15416),P58,Q3056581)
[{'concept': 'Q15416'}, 'P58', 'Q3056581']
[{'concept': 'television program'}, 'screenwriter', 'Erik Skjoldbjærg']
[]
Q20723554
SYSTEM
Occupied
Q20723554
(c(Q15416),P58,Q3056581)
action filter_type
action find_reverse
entity Q3056581
relation P58
type Q15416
That person a screwriter of is [ANSWER]
[{'concept': 'Q15416'}, 'P58', 'Q3056581']
SELECT DISTINCT ?e WHERE { ?e property:P58 resource:Q3056581 . ?e rdf:type ontology:Q15416 }
Occupied
That person a screwriter of is Occupied
Occupied
action filter_type
action find_reverse
entity Erik Skjoldbjærg
relation screenwriter
type television program
[{'concept': 'television program'}, 'screenwriter', 'Erik Skjoldbjærg']
SELECT DISTINCT ?e WHERE { ?e property:screenwriter resource:Erik_Skjoldbjærg . ?e rdf:type ontology:television_program }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P495
Q15617994
USER
How many administrative territories are the countries of origin of that television program ?
(Q20723554,P495,c(Q15617994))
action count
action filter_type
action find
entity Q20723554
relation P495
type Q15617994
['Q20723554', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { ?m rdf:type ontology:Q15617994 . resource:Q20723554 property:P495 ?m }
action count
action filter_type
action find
entity Occupied
relation country of origin
type designation for an administrative territorial entity
['Occupied', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Occupied property:country_of_origin ?m }
[]
designation for an administrative territorial entity
SYSTEM
1
Q20
(Q20723554,P495,c(Q15617994))
action count
action filter_type
action find
entity Q20723554
relation P495
type Q15617994
[ANSWER]
['Q20723554', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { ?m rdf:type ontology:Q15617994 . resource:Q20723554 property:P495 ?m }
Norway
1
action count
action filter_type
action find
entity Occupied
relation country of origin
type designation for an administrative territorial entity
['Occupied', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Occupied property:country_of_origin ?m }
[]