Simple Question (Direct)
Simple Question
Q2062852
P57
Q502895
USER
Who was Long Weekend directed by ?
(Q2062852,P57,c(Q502895))
action filter_type
action find
entity Q2062852
relation P57
type Q502895
['Q2062852', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q2062852 property:P57 ?g . ?g rdf:type ontology:Q502895 }
Long Weekend
action filter_type
action find
entity Long Weekend
relation director
type common name
['Long Weekend', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Long_Weekend property:director ?g . ?g rdf:type ontology:common_name }
[]
common name
Q1061316
SYSTEM
Jamie Blanks
Q1061316
(Q2062852,P57,c(Q502895))
action filter_type
action find
entity Q2062852
relation P57
type Q502895
Long Weekend was directed by [ANSWER] by
['Q2062852', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q2062852 property:P57 ?g . ?g rdf:type ontology:Q502895 }
Jamie Blanks
Long Weekend was directed by Jamie Blanks by
Jamie Blanks
action filter_type
action find
entity Long Weekend
relation director
type common name
['Long Weekend', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Long_Weekend property:director ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2062852
P364
Q34770
USER
Which language was used originally for the creation of Long Weekend ?
(Q2062852,P364,c(Q34770))
action filter_type
action find
entity Q2062852
relation P364
type Q34770
['Q2062852', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { resource:Q2062852 property:P364 ?p . ?p rdf:type ontology:Q34770 }
Long Weekend
action filter_type
action find
entity Long Weekend
relation original language of work
type language
['Long Weekend', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { resource:Long_Weekend property:original_language_of_work ?p . ?p rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q2062852,P364,c(Q34770))
action filter_type
action find
entity Q2062852
relation P364
type Q34770
[ANSWER] was used originally for the creation of Long Weekend
['Q2062852', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { resource:Q2062852 property:P364 ?p . ?p rdf:type ontology:Q34770 }
English
English was used originally for the creation of Long Weekend
English
action filter_type
action find
entity Long Weekend
relation original language of work
type language
['Long Weekend', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { resource:Long_Weekend property:original_language_of_work ?p . ?p rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2062852
P495
Q1048835
USER
Where did Long Weekend originate ?
(Q2062852,P495,c(Q1048835))
action filter_type
action find
entity Q2062852
relation P495
type Q1048835
['Q2062852', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { resource:Q2062852 property:P495 ?z . ?z rdf:type ontology:Q1048835 }
Long Weekend
action filter_type
action find
entity Long Weekend
relation country of origin
type political territorial entity
['Long Weekend', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Long_Weekend property:country_of_origin ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
(Q2062852,P495,c(Q1048835))
action filter_type
action find
entity Q2062852
relation P495
type Q1048835
Long Weekend originated from [ANSWER]
['Q2062852', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { resource:Q2062852 property:P495 ?z . ?z rdf:type ontology:Q1048835 }
Australia
Long Weekend originated from Australia
Australia
action filter_type
action find
entity Long Weekend
relation country of origin
type political territorial entity
['Long Weekend', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Long_Weekend property:country_of_origin ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4726201
Q1048835
USER
And how about Alice to Nowhere?
(Q4726201,P495,c(Q1048835))
action filter_type
action find
entity Q4726201
relation P495
type Q1048835
['Q4726201', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { resource:Q4726201 property:P495 ?z . ?z rdf:type ontology:Q1048835 }
Alice to Nowhere
action filter_type
action find
entity Alice to Nowhere
relation country of origin
type political territorial entity
['Alice to Nowhere', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Alice_to_Nowhere property:country_of_origin ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
(Q4726201,P495,c(Q1048835))
action filter_type
action find
entity Q4726201
relation P495
type Q1048835
[ANSWER]
['Q4726201', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { resource:Q4726201 property:P495 ?z . ?z rdf:type ontology:Q1048835 }
Australia
Australia
action filter_type
action find
entity Alice to Nowhere
relation country of origin
type political territorial entity
['Alice to Nowhere', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Alice_to_Nowhere property:country_of_origin ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q408 Q7230637
P530
Q15617994
USER
Does Port Gaverne have diplomatic relationships with Australia ?
(Q408,P530,Q7230637)
action is_in
entity Q7230637
action find
entity Q408
relation P530
['Q408', 'P530', 'Q7230637']
ASK WHERE { resource:Q408 property:P530 resource:Q7230637 }
Australia Port Gaverne
action is_in
entity Port Gaverne
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Port Gaverne']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Port_Gaverne }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q408,P530,Q7230637)
action is_in
entity Q7230637
action find
entity Q408
relation P530
[ANSWER]
['Q408', 'P530', 'Q7230637']
ASK WHERE { resource:Q408 property:P530 resource:Q7230637 }
No
action is_in
entity Port Gaverne
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Port Gaverne']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Port_Gaverne }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q8752
P37
Q34770 Q13220204 Q15617994
USER
Which languages are considered to be the official language of lesser number of administrative country subdivisions and administrative territories than Basque ?
(c(Q13220204)|c(Q15617994),P37,c(Q34770))
action less
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action find_reverse_tuple_counts
relation P37
type Q34770
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q8752
relation P37
type Q13220204
type Q15617994
[[{'concept': 'Q13220204'}, {'concept': 'Q15617994'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?t ) WHERE { ?k rdf:type ?n . VALUES ( ?n ) { ( ontology:Q13220204 ) ( ontology:Q15617994 ) } } GROUP BY ?f } . FILTER ( ?t < ?j ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:P37 resource:Q8752 . { { ?a rdf:type ontology:Q13220204 } UNION { ?a rdf:type ontology:Q15617994 } } } } }
Basque
action less
action union
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation official language
type language
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Basque
relation official language
type second-level administrative country subdivision
type designation for an administrative territorial entity
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'designation for an administrative territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?t ) WHERE { ?k rdf:type ?n . VALUES ( ?n ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?f } . FILTER ( ?t < ?j ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:official_language resource:Basque . { { ?a rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } }
[]
language second-level administrative country subdivision designation for an administrative territorial entity
Q33251 Q35499 Q35726
SYSTEM
Church Slavonic, Old Church Slavonic, Etruscan
Q33251 Q13211 Q3110592 Q36206 Q36880 Q33976 Q35499 Q35726
(c(Q13220204)|c(Q15617994),P37,c(Q34770))
action less
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action find_reverse_tuple_counts
relation P37
type Q34770
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q8752
relation P37
type Q13220204
type Q15617994
[ANSWERS] are considered to be the official language of lesser number of administrative country subdivisions and administrative territories than Basque
[[{'concept': 'Q13220204'}, {'concept': 'Q15617994'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?t ) WHERE { ?k rdf:type ?n . VALUES ( ?n ) { ( ontology:Q13220204 ) ( ontology:Q15617994 ) } } GROUP BY ?f } . FILTER ( ?t < ?j ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:P37 resource:Q8752 . { { ?a rdf:type ontology:Q13220204 } UNION { ?a rdf:type ontology:Q15617994 } } } } }
Church Slavonic Ruthenian written Chinese Lak Bulgar language Sardinian language Old Church Slavonic Etruscan
Church Slavonic, Old Church Slavonic and Etruscan are considered to be the official language of lesser number of administrative country subdivisions and administrative territories than Basque
Church Slavonic Old Church Slavonic Etruscan
action less
action union
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation official language
type language
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Basque
relation official language
type second-level administrative country subdivision
type designation for an administrative territorial entity
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'designation for an administrative territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?t ) WHERE { ?k rdf:type ?n . VALUES ( ?n ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?f } . FILTER ( ?t < ?j ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:official_language resource:Basque . { { ?a rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q397
P37
Q34770 Q13220204 Q15617994
USER
And what about Latin?
(c(Q13220204)|c(Q15617994),P37,c(Q34770))
action less
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action find_reverse_tuple_counts
relation P37
type Q34770
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q397
relation P37
type Q13220204
type Q15617994
[[{'concept': 'Q13220204'}, {'concept': 'Q15617994'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { ?y property:P37 resource:Q397 . { { ?y rdf:type ontology:Q13220204 } UNION { ?y rdf:type ontology:Q15617994 } } } } . FILTER ( ?p < ?s ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) ?o WHERE { { ?z property:P37 ?o . ?o rdf:type ontology:Q34770 . ?z rdf:type ontology:Q13220204 } UNION { ?z property:P37 ?o . ?o rdf:type ontology:Q34770 . ?z rdf:type ontology:Q15617994 } } GROUP BY ?o } }
Latin
action less
action union
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation official language
type language
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Latin
relation official language
type second-level administrative country subdivision
type designation for an administrative territorial entity
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'designation for an administrative territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { ?y property:official_language resource:Latin . { { ?y rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?p < ?s ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) ?o WHERE { { ?z property:official_language ?o . ?o rdf:type ontology:language . ?z rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?z property:official_language ?o . ?o rdf:type ontology:language . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?o } }
[]
language second-level administrative country subdivision designation for an administrative territorial entity
Q33251 Q35499 Q35726
SYSTEM
Church Slavonic, Old Church Slavonic, Etruscan
Q33251 Q13211 Q3110592 Q36206 Q36880 Q33976 Q35499 Q35726
(c(Q13220204)|c(Q15617994),P37,c(Q34770))
action less
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action find_reverse_tuple_counts
relation P37
type Q34770
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q397
relation P37
type Q13220204
type Q15617994
[ANSWERS]
[[{'concept': 'Q13220204'}, {'concept': 'Q15617994'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { ?y property:P37 resource:Q397 . { { ?y rdf:type ontology:Q13220204 } UNION { ?y rdf:type ontology:Q15617994 } } } } . FILTER ( ?p < ?s ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) ?o WHERE { { ?z property:P37 ?o . ?o rdf:type ontology:Q34770 . ?z rdf:type ontology:Q13220204 } UNION { ?z property:P37 ?o . ?o rdf:type ontology:Q34770 . ?z rdf:type ontology:Q15617994 } } GROUP BY ?o } }
Church Slavonic Ruthenian written Chinese Lak Bulgar language Sardinian language Old Church Slavonic Etruscan
Church Slavonic Old Church Slavonic Etruscan
action less
action union
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation official language
type language
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Latin
relation official language
type second-level administrative country subdivision
type designation for an administrative territorial entity
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'designation for an administrative territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { ?y property:official_language resource:Latin . { { ?y rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?p < ?s ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) ?o WHERE { { ?z property:official_language ?o . ?o rdf:type ontology:language . ?z rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?z property:official_language ?o . ?o rdf:type ontology:language . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?o } }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P364
Q34770 Q21114848
USER
Which languages are considered to be the original language of creation of approximately the same number of magazine genres as that language ?
(c(Q21114848),P364,c(Q34770))
[{'concept': 'Q21114848'}, 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { ?z property:P364 ?y . ?z rdf:type ontology:Q21114848 . ?y rdf:type ontology:Q34770 }
[{'concept': 'magazine genre'}, 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { ?z property:original_language_of_work ?y . ?z rdf:type ontology:magazine_genre . ?y rdf:type ontology:language }
[]
language magazine genre
Comparative|More/Less|Single entity type|Clarification
Q33251
SYSTEM
Did you mean Church Slavonic ?
(c(Q21114848),P364,c(Q34770))
[ANSWER]
[{'concept': 'Q21114848'}, 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { ?z property:P364 ?y . ?z rdf:type ontology:Q21114848 . ?y rdf:type ontology:Q34770 }
Did you mean Church Slavonic ?
Church Slavonic
[{'concept': 'magazine genre'}, 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { ?z property:original_language_of_work ?y . ?z rdf:type ontology:magazine_genre . ?y rdf:type ontology:language }
[]
Comparative Reasoning (All)
USER
No, I meant Etruscan. Could you tell me the answer for that?
(c(Q21114848),P364,c(Q34770))
Q35726
[{'concept': 'Q21114848'}, 'P364', {'concept': 'Q34770'}]
[{'concept': 'magazine genre'}, 'original language of work', {'concept': 'language'}]
[]
Q56530 Q182695 Q35499
SYSTEM
Wappo language, Late Old Japanese, Old Church Slavonic
Q132659 Q13414913 Q13211 Q35499 Q35668 Q8785 Q1072111 Q34909 Q36765 Q33251 Q18130932 Q35726 Q36206 Q1321 Q33976 Q397 Q10862919 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q56530 Q25164 Q36790 Q29977 Q182695 Q3110592 Q837985 Q783605
(c(Q21114848),P364,c(Q34770))
[ANSWERS] are considered to be the original language of creation of approximately the same number of magazine genres as that language
[{'concept': 'Q21114848'}, 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { ?z property:P364 ?y . ?z rdf:type ontology:Q21114848 . ?y rdf:type ontology:Q34770 }
Egyptian hieroglyphs Simplified Chinese Ruthenian Old Church Slavonic Hittite Armenian Galician-Portuguese Old Icelandic Demotic Church Slavonic Traditional Chinese Etruscan Lak Spanish Sardinian language Latin Tibetan language Czech Basque classical Chinese Italian Old Norse language Bokmål Wappo language Nynorsk Sumerian Gaulish Late Old Japanese written Chinese Middle High German Written vernacular Chinese
Wappo language, Late Old Japanese and Old Church Slavonic are considered to be the original language of creation of approximately the same number of magazine genres as that language
Wappo language Late Old Japanese Old Church Slavonic
[{'concept': 'magazine genre'}, 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { ?z property:original_language_of_work ?y . ?z rdf:type ontology:magazine_genre . ?y rdf:type ontology:language }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P282
Q2001982 Q8192 Q34770
USER
Which languages have writing system as min number of notations and writing systems ?
(c(Q34770),P282,c(Q2001982)|c(Q8192))
action argmin
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q8192
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?a ) { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?n ) WHERE { VALUES ( ?h ) { ( ontology:Q2001982 ) ( ontology:Q8192 ) } . ?s rdf:type ?h } GROUP BY ?f } } . { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?i ) WHERE { { ?b property:P282 ?p . ?p rdf:type ontology:Q2001982 . ?b rdf:type ontology:Q34770 } UNION { ?b property:P282 ?p . ?p rdf:type ontology:Q8192 . ?b rdf:type ontology:Q34770 } } GROUP BY ?b } . FILTER ( ?i = ?a ) }
action argmin
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type writing system
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'writing system'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?a ) { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?n ) WHERE { VALUES ( ?h ) { ( ontology:notation ) ( ontology:writing_system ) } . ?s rdf:type ?h } GROUP BY ?f } } . { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?i ) WHERE { { ?b property:writing_system ?p . ?p rdf:type ontology:notation . ?b rdf:type ontology:language } UNION { ?b property:writing_system ?p . ?p rdf:type ontology:writing_system . ?b rdf:type ontology:language } } GROUP BY ?b } . FILTER ( ?i = ?a ) }
[]
notation writing system language
Q1860 Q447117 Q36708
SYSTEM
English, Old Egyptian, Norn
Q7102906 Q20832 Q20831 Q1133488 Q13414913 Q402878 Q36708 Q13211 Q36741 Q35499 Q35668 Q8785 Q35726 Q1321 Q21161949 Q25167 Q33251 Q18130932 Q21161942 Q1639124 Q11732220 Q33976 Q856383 Q149838 Q47625 Q36822 Q33879 Q7362035 Q56472 Q6047309 Q8752 Q36178 Q9056 Q397 Q56512 Q35505 Q36957 Q25164 Q56982 Q35308 Q1860 Q36116 Q29977 Q36464 Q837985 Q447117 Q7511561 Q652 Q33982
(c(Q34770),P282,c(Q2001982)|c(Q8192))
action argmin
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q8192
[ANSWERS] have writing system as min number of notations and writing systems
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?a ) { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?n ) WHERE { VALUES ( ?h ) { ( ontology:Q2001982 ) ( ontology:Q8192 ) } . ?s rdf:type ?h } GROUP BY ?f } } . { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?i ) WHERE { { ?b property:P282 ?p . ?p rdf:type ontology:Q2001982 . ?b rdf:type ontology:Q34770 } UNION { ?b property:P282 ?p . ?p rdf:type ontology:Q8192 . ?b rdf:type ontology:Q34770 } } GROUP BY ?b } . FILTER ( ?i = ?a ) }
Orizaba Nahuatl Wailaki language Cahto language Old Gutnish Simplified Chinese Middle Polish Norn Ruthenian Polabian Old Church Slavonic Hittite 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 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 Nivkh language Middle High German Old Egyptian Sierra Puebla Nahuatl Italian Low Prussian
English, Old Egyptian and Norn have writing system as min number of notations and writing systems
English Old Egyptian Norn
action argmin
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type writing system
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'writing system'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?a ) { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?n ) WHERE { VALUES ( ?h ) { ( ontology:notation ) ( ontology:writing_system ) } . ?s rdf:type ?h } GROUP BY ?f } } . { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?i ) WHERE { { ?b property:writing_system ?p . ?p rdf:type ontology:notation . ?b rdf:type ontology:language } UNION { ?b property:writing_system ?p . ?p rdf:type ontology:writing_system . ?b rdf:type ontology:language } } GROUP BY ?b } . FILTER ( ?i = ?a ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q35499
P1412
Q502895
USER
Who talks in Old Church Slavonic ?
(c(Q502895),P1412,Q35499)
action filter_type
action find_reverse
entity Q35499
relation P1412
type Q502895
[{'concept': 'Q502895'}, 'P1412', 'Q35499']
SELECT DISTINCT ?u WHERE { ?u property:P1412 resource:Q35499 . ?u rdf:type ontology:Q502895 }
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 ?u WHERE { ?u property:languages_spoken,_written_or_signed resource:Old_Church_Slavonic . ?u rdf:type ontology:common_name }
[]
common name
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] talk in Old Church Slavonic
[{'concept': 'Q502895'}, 'P1412', 'Q35499']
SELECT DISTINCT ?u WHERE { ?u property:P1412 resource:Q35499 . ?u rdf:type ontology:Q502895 }
Gregory Tsamblak Constantine of Preslav John Exarch
Gregory Tsamblak, Constantine of Preslav and John Exarch talk in Old Church Slavonic
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 ?u WHERE { ?u property:languages_spoken,_written_or_signed resource:Old_Church_Slavonic . ?u rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1146725
P20
Q56061
USER
Where did that person expire ?
(Q1146725,P20,c(Q56061))
action filter_type
action find
entity Q1146725
relation P20
type Q56061
['Q1146725', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . resource:Q1146725 property:P20 ?t }
Constantine of Preslav
action filter_type
action find
entity Constantine of Preslav
relation place of death
type administrative territorial entity
['Constantine of Preslav', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . resource:Constantine_of_Preslav property:place_of_death ?t }
[]
administrative territorial entity
Clarification for simple ques.
Q723304
SYSTEM
Did you mean Gregory Tsamblak ?
Q723304 Q1146725 Q650558
(Q723304,P20,c(Q56061)) (Q1146725,P20,c(Q56061)) (Q650558,P20,c(Q56061))
[ANSWER]
['Q723304', 'P20', {'concept': 'Q56061'}] ['Q1146725', 'P20', {'concept': 'Q56061'}] ['Q650558', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . resource:Q1146725 property:P20 ?t }
Gregory Tsamblak Constantine of Preslav John Exarch
Did you mean Gregory Tsamblak ?
Gregory Tsamblak
['Gregory Tsamblak', 'place of death', {'concept': 'administrative territorial entity'}] ['Constantine of Preslav', 'place of death', {'concept': 'administrative territorial entity'}] ['John Exarch', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . resource:Constantine_of_Preslav property:place_of_death ?t }
[]
Simple Question (Coreferenced)
USER
No, I meant Constantine of Preslav. Could you tell me the answer for that?
(Q1146725,P20,c(Q56061))
Q1146725
['Q1146725', 'P20', {'concept': 'Q56061'}]
['Constantine of Preslav', 'place of death', {'concept': 'administrative territorial entity'}]
[]
Q243616
SYSTEM
Preslav
Q243616
(Q1146725,P20,c(Q56061))
action filter_type
action find
entity Q1146725
relation P20
type Q56061
That person expired in [ANSWER]
['Q1146725', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . resource:Q1146725 property:P20 ?t }
Preslav
That person expired in Preslav
Preslav
action filter_type
action find
entity Constantine of Preslav
relation place of death
type administrative territorial entity
['Constantine of Preslav', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . resource:Constantine_of_Preslav property:place_of_death ?t }
[]