Simple Question (Direct)
Simple Question
Q8000232
P1412
Q34770
USER
Which language is spoken by Wilbur S. Jackman ?
(Q8000232,P1412,c(Q34770))
action filter_type
action find
entity Q8000232
relation P1412
type Q34770
['Q8000232', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q34770 . resource:Q8000232 property:P1412 ?f }
Wilbur S. Jackman
action filter_type
action find
entity Wilbur S. Jackman
relation languages spoken, written or signed
type language
['Wilbur S. Jackman', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:language . resource:Wilbur_S._Jackman property:languages_spoken,_written_or_signed ?f }
[]
language
Q1860
SYSTEM
English
Q1860
(Q8000232,P1412,c(Q34770))
action filter_type
action find
entity Q8000232
relation P1412
type Q34770
Language [ANSWER] is spoken by Wilbur S. Jackman
['Q8000232', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q34770 . resource:Q8000232 property:P1412 ?f }
English
Language English is spoken by Wilbur S. Jackman
English
action filter_type
action find
entity Wilbur S. Jackman
relation languages spoken, written or signed
type language
['Wilbur S. Jackman', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:language . resource:Wilbur_S._Jackman property:languages_spoken,_written_or_signed ?f }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8000232
P108
Q163740
USER
Which nonprofit organization is the employer of that person ?
(Q1860,P108,c(Q163740))
action filter_type
action find
entity Q8000232
relation P108
type Q163740
['Q1860', 'P108', {'concept': 'Q163740'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q163740 . resource:Q8000232 property:P108 ?k }
Wilbur S. Jackman
action filter_type
action find
entity Wilbur S. Jackman
relation employer
type nonprofit organization
['English', 'employer', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:nonprofit_organization . resource:Wilbur_S._Jackman property:employer ?k }
[]
nonprofit organization
Q131252
SYSTEM
University of Chicago
Q131252
(Q1860,P108,c(Q163740))
action filter_type
action find
entity Q8000232
relation P108
type Q163740
[ANSWER] is the employer of that person
['Q1860', 'P108', {'concept': 'Q163740'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q163740 . resource:Q8000232 property:P108 ?k }
University of Chicago
University of Chicago is the employer of that person
University of Chicago
action filter_type
action find
entity Wilbur S. Jackman
relation employer
type nonprofit organization
['English', 'employer', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:nonprofit_organization . resource:Wilbur_S._Jackman property:employer ?k }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8000232
P1196
Q1931388
USER
What situation did that person die in ?
(Q131252,P1196,c(Q1931388))
action filter_type
action find
entity Q8000232
relation P1196
type Q1931388
['Q131252', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?k WHERE { resource:Q8000232 property:P1196 ?k . ?k rdf:type ontology:Q1931388 }
Wilbur S. Jackman
action filter_type
action find
entity Wilbur S. Jackman
relation manner of death
type cause of death
['University of Chicago', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?k WHERE { resource:Wilbur_S._Jackman property:manner_of_death ?k . ?k rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q131252,P1196,c(Q1931388))
action filter_type
action find
entity Q8000232
relation P1196
type Q1931388
That person died in [ANSWER]
['Q131252', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?k WHERE { resource:Q8000232 property:P1196 ?k . ?k rdf:type ontology:Q1931388 }
natural causes
That person died in natural causes
natural causes
action filter_type
action find
entity Wilbur S. Jackman
relation manner of death
type cause of death
['University of Chicago', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?k WHERE { resource:Wilbur_S._Jackman property:manner_of_death ?k . ?k rdf:type ontology:cause_of_death }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P1196
Q1931388 Q502895
USER
How many causes of death did less number of people die in than that cause of death ?
(c(Q502895),P1196,c(Q1931388))
action count
action less
action find_reverse_tuple_counts
relation P1196
type Q1931388
type Q502895
action count
action filter_type
action find_reverse
entity Q3739104
relation P1196
type Q502895
[{'concept': 'Q502895'}, 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?e ) WHERE { ?i property:P1196 ?c . ?c rdf:type ontology:Q1931388 . ?i rdf:type ontology:Q502895 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:P1196 resource:Q3739104 . ?h rdf:type ontology:Q502895 } } . FILTER ( ?e < ?b ) }
action count
action less
action find_reverse_tuple_counts
relation manner of death
type cause of death
type common name
action count
action filter_type
action find_reverse
entity natural causes
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?e ) WHERE { ?i property:manner_of_death ?c . ?c rdf:type ontology:cause_of_death . ?i rdf:type ontology:common_name } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:manner_of_death resource:natural_causes . ?h rdf:type ontology:common_name } } . FILTER ( ?e < ?b ) }
[]
cause of death common name
SYSTEM
2
Q652653 Q661297
(c(Q502895),P1196,c(Q1931388))
action count
action less
action find_reverse_tuple_counts
relation P1196
type Q1931388
type Q502895
action count
action filter_type
action find_reverse
entity Q3739104
relation P1196
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?e ) WHERE { ?i property:P1196 ?c . ?c rdf:type ontology:Q1931388 . ?i rdf:type ontology:Q502895 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:P1196 resource:Q3739104 . ?h rdf:type ontology:Q502895 } } . FILTER ( ?e < ?b ) }
animal euthanasia dismemberment
2
action count
action less
action find_reverse_tuple_counts
relation manner of death
type cause of death
type common name
action count
action filter_type
action find_reverse
entity natural causes
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?e ) WHERE { ?i property:manner_of_death ?c . ?c rdf:type ontology:cause_of_death . ?i rdf:type ontology:common_name } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:manner_of_death resource:natural_causes . ?h rdf:type ontology:common_name } } . FILTER ( ?e < ?b ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P37
Q34770 Q7275 Q13220204
USER
How many languages are recognized as the official language of exactly 2 states or administrative country subdivisions ?
(c(Q7275)|c(Q13220204),P37,c(Q34770))
action count
action equal
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q7275
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
value 2
[[{'concept': 'Q7275'}, {'concept': 'Q13220204'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?o ) WHERE { ?j rdf:type ?d . VALUES ( ?d ) { ( ontology:Q7275 ) ( ontology:Q13220204 ) } } GROUP BY ?t } . FILTER ( ?o = 2 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation official language
type language
type state
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
value 2
[[{'concept': 'state'}, {'concept': 'second-level administrative country subdivision'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?o ) WHERE { ?j rdf:type ?d . VALUES ( ?d ) { ( ontology:state ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?t } . FILTER ( ?o = 2 ) }
[]
language state second-level administrative country subdivision
SYSTEM
2
Q9056 Q13211
(c(Q7275)|c(Q13220204),P37,c(Q34770))
action count
action equal
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q7275
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
value 2
[ANSWER]
[[{'concept': 'Q7275'}, {'concept': 'Q13220204'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?o ) WHERE { ?j rdf:type ?d . VALUES ( ?d ) { ( ontology:Q7275 ) ( ontology:Q13220204 ) } } GROUP BY ?t } . FILTER ( ?o = 2 ) }
Czech Ruthenian
2
action count
action equal
action union
action find_reverse_tuple_counts
relation official language
type language
type state
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
value 2
[[{'concept': 'state'}, {'concept': 'second-level administrative country subdivision'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?o ) WHERE { ?j rdf:type ?d . VALUES ( ?d ) { ( ontology:state ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?t } . FILTER ( ?o = 2 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P407
Q34770 Q82799 Q1002697
USER
Which languages are the languages of work for min number of names or periodical literatures ?
(c(Q82799)|c(Q1002697),P407,c(Q34770))
action argmin
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action find_reverse_tuple_counts
relation P407
type Q34770
type Q1002697
[[{'concept': 'Q82799'}, {'concept': 'Q1002697'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?l ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) ?v WHERE { VALUES ( ?b ) { ( ontology:Q82799 ) ( ontology:Q1002697 ) } . ?q rdf:type ?b } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) ?s WHERE { { ?w rdf:type ontology:Q82799 . ?s rdf:type ontology:Q34770 . ?w property:P407 ?s } UNION { ?w property:P407 ?s . ?s rdf:type ontology:Q34770 . ?w rdf:type ontology:Q1002697 } } GROUP BY ?s } . FILTER ( ?a = ?z ) }
action argmin
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action find_reverse_tuple_counts
relation language of work or name
type language
type periodical literature
[[{'concept': 'name'}, {'concept': 'periodical literature'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?l ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) ?v WHERE { VALUES ( ?b ) { ( ontology:name ) ( ontology:periodical_literature ) } . ?q rdf:type ?b } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) ?s WHERE { { ?w rdf:type ontology:name . ?s rdf:type ontology:language . ?w property:language_of_work_or_name ?s } UNION { ?w property:language_of_work_or_name ?s . ?s rdf:type ontology:language . ?w rdf:type ontology:periodical_literature } } GROUP BY ?s } . FILTER ( ?a = ?z ) }
[]
language name periodical literature
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 Q36790 Q447117
(c(Q82799)|c(Q1002697),P407,c(Q34770))
action argmin
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action find_reverse_tuple_counts
relation P407
type Q34770
type Q1002697
[ANSWERS] are the languages of work for min number of names or periodical literatures
[[{'concept': 'Q82799'}, {'concept': 'Q1002697'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?l ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) ?v WHERE { VALUES ( ?b ) { ( ontology:Q82799 ) ( ontology:Q1002697 ) } . ?q rdf:type ?b } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) ?s WHERE { { ?w rdf:type ontology:Q82799 . ?s rdf:type ontology:Q34770 . ?w property:P407 ?s } UNION { ?w property:P407 ?s . ?s rdf:type ontology:Q34770 . ?w rdf:type ontology:Q1002697 } } GROUP BY ?s } . FILTER ( ?a = ?z ) }
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 Sumerian Old Egyptian
Old Egyptian, Old Church Slavonic and Etruscan are the languages of work for min number of names or periodical literatures
Old Egyptian Old Church Slavonic Etruscan
action argmin
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action find_reverse_tuple_counts
relation language of work or name
type language
type periodical literature
[[{'concept': 'name'}, {'concept': 'periodical literature'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?l ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) ?v WHERE { VALUES ( ?b ) { ( ontology:name ) ( ontology:periodical_literature ) } . ?q rdf:type ?b } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) ?s WHERE { { ?w rdf:type ontology:name . ?s rdf:type ontology:language . ?w property:language_of_work_or_name ?s } UNION { ?w property:language_of_work_or_name ?s . ?s rdf:type ontology:language . ?w rdf:type ontology:periodical_literature } } GROUP BY ?s } . FILTER ( ?a = ?z ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q35499
P282
Q9779
USER
Which alphabet is used as the alphabet set for that language ?
(Q35499,P282,c(Q9779))
action filter_type
action find
entity Q35499
relation P282
type Q9779
['Q35499', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?r WHERE { resource:Q35499 property:P282 ?r . ?r 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 ?r WHERE { resource:Old_Church_Slavonic property:writing_system ?r . ?r rdf:type ontology:alphabet }
[]
alphabet
Clarification for simple ques.
Q35726
SYSTEM
Did you mean Etruscan ?
Q447117 Q35499 Q35726
(Q447117,P282,c(Q9779)) (Q35499,P282,c(Q9779)) (Q35726,P282,c(Q9779))
[ANSWER]
['Q447117', 'P282', {'concept': 'Q9779'}] ['Q35499', 'P282', {'concept': 'Q9779'}] ['Q35726', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?r WHERE { resource:Q35499 property:P282 ?r . ?r rdf:type ontology:Q9779 }
Old Egyptian Old Church Slavonic Etruscan
Did you mean Etruscan ?
Etruscan
['Old Egyptian', 'writing system', {'concept': 'alphabet'}] ['Old Church Slavonic', 'writing system', {'concept': 'alphabet'}] ['Etruscan', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?r WHERE { resource:Old_Church_Slavonic property:writing_system ?r . ?r rdf:type ontology:alphabet }
[]
Simple Question (Coreferenced)
USER
No, I meant Old Church Slavonic. Could you tell me the answer for that?
(Q35499,P282,c(Q9779))
Q35499
['Q35499', 'P282', {'concept': 'Q9779'}]
['Old Church Slavonic', 'writing system', {'concept': 'alphabet'}]
[]
Q442244
SYSTEM
Early Cyrillic alphabet
Q442244
(Q35499,P282,c(Q9779))
action filter_type
action find
entity Q35499
relation P282
type Q9779
[ANSWER] is used as the alphabet set for that language
['Q35499', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?r WHERE { resource:Q35499 property:P282 ?r . ?r rdf:type ontology:Q9779 }
Early Cyrillic alphabet
Early Cyrillic alphabet is used as the alphabet set for that language
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 ?r WHERE { resource:Old_Church_Slavonic property:writing_system ?r . ?r rdf:type ontology:alphabet }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1860
P361
Q5962346
USER
Which classification schemes are English a part of ?
(Q1860,P361,c(Q5962346))
action filter_type
action find
entity Q1860
relation P361
type Q5962346
['Q1860', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?g WHERE { resource:Q1860 property:P361 ?g . ?g rdf:type ontology:Q5962346 }
English
action filter_type
action find
entity English
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?g WHERE { resource:English property:part_of ?g . ?g rdf:type ontology:classification_scheme }
[]
classification scheme
Q1346342 Q5329170
SYSTEM
Anglic languages, Anglo-Frisian languages
Q1346342 Q5329170
(Q1860,P361,c(Q5962346))
action filter_type
action find
entity Q1860
relation P361
type Q5962346
Are [ANSWERS] are English a part of
['Q1860', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?g WHERE { resource:Q1860 property:P361 ?g . ?g rdf:type ontology:Q5962346 }
Anglic languages Anglo-Frisian languages
Are Anglic languages and Anglo-Frisian languages are English a part of
Anglic languages Anglo-Frisian languages
action filter_type
action find
entity English
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?g WHERE { resource:English property:part_of ?g . ?g rdf:type ontology:classification_scheme }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6933720
Q5962346
USER
And also tell me about Mulaha language?
(Q6933720,P361,c(Q5962346))
action filter_type
action find
entity Q6933720
relation P361
type Q5962346
['Q6933720', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?j WHERE { resource:Q6933720 property:P361 ?j . ?j rdf:type ontology:Q5962346 }
Mulaha language
action filter_type
action find
entity Mulaha language
relation part of
type classification scheme
['Mulaha language', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?j WHERE { resource:Mulaha_language property:part_of ?j . ?j rdf:type ontology:classification_scheme }
[]
classification scheme
Q34018
SYSTEM
trans–New Guinea languages
Q34018
(Q6933720,P361,c(Q5962346))
action filter_type
action find
entity Q6933720
relation P361
type Q5962346
[ANSWER]
['Q6933720', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?j WHERE { resource:Q6933720 property:P361 ?j . ?j rdf:type ontology:Q5962346 }
trans–New Guinea languages
trans–New Guinea languages
action filter_type
action find
entity Mulaha language
relation part of
type classification scheme
['Mulaha language', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?j WHERE { resource:Mulaha_language property:part_of ?j . ?j rdf:type ontology:classification_scheme }
[]