Simple Question (Direct)
Simple Question
Q3817646
P734
Q82799
USER
Which name is associated with Kyle Davies ?
(Q3817646,P734,c(Q82799))
action filter_type
action find
entity Q3817646
relation P734
type Q82799
['Q3817646', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q82799 . resource:Q3817646 property:P734 ?o }
Kyle Davies
action filter_type
action find
entity Kyle Davies
relation family name
type name
['Kyle Davies', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:name . resource:Kyle_Davies property:family_name ?o }
[]
name
Q1177810
SYSTEM
Davies
Q1177810
(Q3817646,P734,c(Q82799))
action filter_type
action find
entity Q3817646
relation P734
type Q82799
S [ANSWER] is associated with Kyle [ANSWER]
['Q3817646', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q82799 . resource:Q3817646 property:P734 ?o }
Davies
S Davies is associated with Kyle Davies
Davies
action filter_type
action find
entity Kyle Davies
relation family name
type name
['Kyle Davies', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:name . resource:Kyle_Davies property:family_name ?o }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1177810 Q1860
P407
Q34770
USER
Is English the language of work for Davies ?
(Q1177810,P407,Q1860)
action is_in
entity Q1860
action find
entity Q1177810
relation P407
['Q1177810', 'P407', 'Q1860']
ASK WHERE { resource:Q1177810 property:P407 resource:Q1860 }
Davies English
action is_in
entity English
action find
entity Davies
relation language of work or name
['Davies', 'language of work or name', 'English']
ASK WHERE { resource:Davies property:language_of_work_or_name resource:English }
[]
language
SYSTEM
YES
(Q1177810,P407,Q1860)
action is_in
entity Q1860
action find
entity Q1177810
relation P407
[ANSWER]
['Q1177810', 'P407', 'Q1860']
ASK WHERE { resource:Q1177810 property:P407 resource:Q1860 }
Yes
action is_in
entity English
action find
entity Davies
relation language of work or name
['Davies', 'language of work or name', 'English']
ASK WHERE { resource:Davies property:language_of_work_or_name resource:English }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q3817646 Q53356
P27
Q15617994
USER
Is Kyle Davies a civilian of San Giovanni al Natisone ?
(Q3817646,P27,Q53356)
action is_in
entity Q53356
action find
entity Q3817646
relation P27
['Q3817646', 'P27', 'Q53356']
ASK WHERE { resource:Q3817646 property:P27 resource:Q53356 }
Kyle Davies San Giovanni al Natisone
action is_in
entity San Giovanni al Natisone
action find
entity Kyle Davies
relation country of citizenship
['Kyle Davies', 'country of citizenship', 'San Giovanni al Natisone']
ASK WHERE { resource:Kyle_Davies property:country_of_citizenship resource:San_Giovanni_al_Natisone }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q3817646,P27,Q53356)
action is_in
entity Q53356
action find
entity Q3817646
relation P27
[ANSWER]
['Q3817646', 'P27', 'Q53356']
ASK WHERE { resource:Q3817646 property:P27 resource:Q53356 }
No
action is_in
entity San Giovanni al Natisone
action find
entity Kyle Davies
relation country of citizenship
['Kyle Davies', 'country of citizenship', 'San Giovanni al Natisone']
ASK WHERE { resource:Kyle_Davies property:country_of_citizenship resource:San_Giovanni_al_Natisone }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1177810 Q1860
P407
Q34770
USER
Is Davies in English ?
(Q1177810,P407,Q1860)
action is_in
entity Q1860
action find
entity Q1177810
relation P407
['Q1177810', 'P407', 'Q1860']
ASK WHERE { resource:Q1177810 property:P407 resource:Q1860 }
Davies English
action is_in
entity English
action find
entity Davies
relation language of work or name
['Davies', 'language of work or name', 'English']
ASK WHERE { resource:Davies property:language_of_work_or_name resource:English }
[]
language
SYSTEM
YES
(Q1177810,P407,Q1860)
action is_in
entity Q1860
action find
entity Q1177810
relation P407
[ANSWER]
['Q1177810', 'P407', 'Q1860']
ASK WHERE { resource:Q1177810 property:P407 resource:Q1860 }
Yes
action is_in
entity English
action find
entity Davies
relation language of work or name
['Davies', 'language of work or name', 'English']
ASK WHERE { resource:Davies property:language_of_work_or_name resource:English }
[]
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 ?u WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?o ) { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?k ) WHERE { ?y property:P407 ?m . ?m rdf:type ontology:Q34770 . ?y rdf:type ontology:Q82799 } GROUP BY ?m } } . FILTER ( ?v = ?o ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?v ) WHERE { ?i property:P407 ?u . ?u rdf:type ontology:Q34770 . ?i rdf:type ontology:Q82799 } GROUP BY ?u } }
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 ?u WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?o ) { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?k ) WHERE { ?y property:language_of_work_or_name ?m . ?m rdf:type ontology:language . ?y rdf:type ontology:name } GROUP BY ?m } } . FILTER ( ?v = ?o ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?v ) WHERE { ?i property:language_of_work_or_name ?u . ?u rdf:type ontology:language . ?i rdf:type ontology:name } GROUP BY ?u } }
[]
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 ?u WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?o ) { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?k ) WHERE { ?y property:P407 ?m . ?m rdf:type ontology:Q34770 . ?y rdf:type ontology:Q82799 } GROUP BY ?m } } . FILTER ( ?v = ?o ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?v ) WHERE { ?i property:P407 ?u . ?u rdf:type ontology:Q34770 . ?i rdf:type ontology:Q82799 } GROUP BY ?u } }
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 ?u WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?o ) { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?k ) WHERE { ?y property:language_of_work_or_name ?m . ?m rdf:type ontology:language . ?y rdf:type ontology:name } GROUP BY ?m } } . FILTER ( ?v = ?o ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?v ) WHERE { ?i property:language_of_work_or_name ?u . ?u rdf:type ontology:language . ?i rdf:type ontology:name } GROUP BY ?u } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P1412
Q502895
USER
How many people speaks that language ?
(c(Q502895),P1412,Q35499)
[{'concept': 'Q502895'}, 'P1412', 'Q35499']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P1412 resource:Q35499 . ?z rdf:type ontology:Q502895 }
[{'concept': 'common name'}, 'languages spoken, written or signed', 'Old Church Slavonic']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:languages_spoken,_written_or_signed resource:Old_Church_Slavonic . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q35726
SYSTEM
Did you mean Etruscan ?
(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 ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P1412 resource:Q35499 . ?z rdf:type ontology:Q502895 }
Did you mean Etruscan ?
Etruscan
[{'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 ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:languages_spoken,_written_or_signed resource:Old_Church_Slavonic . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
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']
[]
SYSTEM
3
Q650558 Q723304 Q1146725
(c(Q502895),P1412,Q35499)
[ANSWER]
[{'concept': 'Q502895'}, 'P1412', 'Q35499']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P1412 resource:Q35499 . ?z rdf:type ontology:Q502895 }
John Exarch Gregory Tsamblak Constantine of Preslav
3
[{'concept': 'common name'}, 'languages spoken, written or signed', 'Old Church Slavonic']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:languages_spoken,_written_or_signed resource:Old_Church_Slavonic . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q35499
P282
Q9779
USER
Which alphabet is used as the script for Old Church Slavonic ?
(Q35499,P282,c(Q9779))
action filter_type
action find
entity Q35499
relation P282
type Q9779
['Q35499', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?z WHERE { resource:Q35499 property:P282 ?z . ?z rdf:type ontology:Q9779 }
Old Church Slavonic
action filter_type
action find
entity Old Church Slavonic
relation writing system
type alphabet
['Old Church Slavonic', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?z WHERE { resource:Old_Church_Slavonic property:writing_system ?z . ?z rdf:type ontology:alphabet }
[]
alphabet
Q442244
SYSTEM
Early Cyrillic alphabet
Q442244
(Q35499,P282,c(Q9779))
action filter_type
action find
entity Q35499
relation P282
type Q9779
The [ANSWER] is used as the script for Old Church Slavonic
['Q35499', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?z WHERE { resource:Q35499 property:P282 ?z . ?z rdf:type ontology:Q9779 }
Early Cyrillic alphabet
The Early Cyrillic alphabet is used as the script for Old Church Slavonic
Early Cyrillic alphabet
action filter_type
action find
entity Old Church Slavonic
relation writing system
type alphabet
['Old Church Slavonic', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?z WHERE { resource:Old_Church_Slavonic property:writing_system ?z . ?z rdf:type ontology:alphabet }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P282
Q8192 Q34770
USER
How many writing systems are the writing systems of atleast 1 language known as ?
(c(Q34770),P282,c(Q8192))
action count
action atleast
action find_reverse_tuple_counts
relation P282
type Q8192
type Q34770
value 1
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?r ) WHERE { ?e property:P282 ?m . ?m rdf:type ontology:Q8192 . ?e rdf:type ontology:Q34770 } GROUP BY ?m } . FILTER ( ?r >= 1 ) }
action count
action atleast
action find_reverse_tuple_counts
relation writing system
type writing system
type language
value 1
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?r ) WHERE { ?e property:writing_system ?m . ?m rdf:type ontology:writing_system . ?e rdf:type ontology:language } GROUP BY ?m } . FILTER ( ?r >= 1 ) }
[]
writing system language
SYSTEM
3
Q82946 Q30972 Q48332
(c(Q34770),P282,c(Q8192))
action count
action atleast
action find_reverse_tuple_counts
relation P282
type Q8192
type Q34770
value 1
[ANSWER]
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?r ) WHERE { ?e property:P282 ?m . ?m rdf:type ontology:Q8192 . ?e rdf:type ontology:Q34770 } GROUP BY ?m } . FILTER ( ?r >= 1 ) }
katakana Linear A hiragana
3
action count
action atleast
action find_reverse_tuple_counts
relation writing system
type writing system
type language
value 1
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?r ) WHERE { ?e property:writing_system ?m . ?m rdf:type ontology:writing_system . ?e rdf:type ontology:language } GROUP BY ?m } . FILTER ( ?r >= 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q10326255 Q53356
P27 P17
Q15617994
USER
Which administrative territories are San Giovanni al Natisone a part of or do Mariana Villar belong to ?
OR((Q53356,P17,c(Q15617994)), (Q10326255,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q53356
relation P17
action find
entity Q10326255
relation P27
type Q15617994
{'OR': [['Q53356', 'P17', {'concept': 'Q15617994'}], ['Q10326255', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q53356 property:P17 ?i } UNION { resource:Q10326255 property:P27 ?i } } . ?i rdf:type ontology:Q15617994 }
Mariana Villar San Giovanni al Natisone
action filter_type
action union
action find
entity San Giovanni al Natisone
relation country
action find
entity Mariana Villar
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['San Giovanni al Natisone', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Mariana Villar', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:San_Giovanni_al_Natisone property:country ?i } UNION { resource:Mariana_Villar property:country_of_citizenship ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q45
SYSTEM
Italy, Portugal
Q38 Q45
OR((Q53356,P17,c(Q15617994)), (Q10326255,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q53356
relation P17
action find
entity Q10326255
relation P27
type Q15617994
[ANSWERS] are San Giovanni al Natisone a part of or do Mariana Villar belong to
{'OR': [['Q53356', 'P17', {'concept': 'Q15617994'}], ['Q10326255', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q53356 property:P17 ?i } UNION { resource:Q10326255 property:P27 ?i } } . ?i rdf:type ontology:Q15617994 }
Italy Portugal
Italy and Portugal are San Giovanni al Natisone a part of or do Mariana Villar belong to
Italy Portugal
action filter_type
action union
action find
entity San Giovanni al Natisone
relation country
action find
entity Mariana Villar
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['San Giovanni al Natisone', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Mariana Villar', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:San_Giovanni_al_Natisone property:country ?i } UNION { resource:Mariana_Villar property:country_of_citizenship ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q7725634 Q2342494
USER
How many administrative territories did greater number of literary works or collectables originate than that administrative territory ?
(c(Q7725634)|c(Q2342494),P495,c(Q15617994))
[[{'concept': 'Q7725634'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
[[{'concept': 'literary work'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]
designation for an administrative territorial entity literary work collectable
Comparative|Count over More/Less|Mult. entity type|Clarification
Q45
SYSTEM
Did you mean Portugal ?
(c(Q7725634)|c(Q2342494),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
Did you mean Portugal ?
Portugal
[[{'concept': 'literary work'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Italy. Could you tell me the answer for that?
(c(Q7725634)|c(Q2342494),P495,c(Q15617994))
Q38
[[{'concept': 'Q7725634'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'literary work'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
4
Q142 Q145 Q30 Q34
(c(Q7725634)|c(Q2342494),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
France United Kingdom United States of America Sweden
4
[[{'concept': 'literary work'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]