Simple Question (Direct)
Simple Question
Q5243840
P27
Q15617994
USER
Which administrative territory is DeAngelo Smith an inhabitant of ?
(Q5243840,P27,c(Q15617994))
action filter_type
action find
entity Q5243840
relation P27
type Q15617994
['Q5243840', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . resource:Q5243840 property:P27 ?b }
DeAngelo Smith
action filter_type
action find
entity DeAngelo Smith
relation country of citizenship
type designation for an administrative territorial entity
['DeAngelo Smith', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:DeAngelo_Smith property:country_of_citizenship ?b }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q5243840,P27,c(Q15617994))
action filter_type
action find
entity Q5243840
relation P27
type Q15617994
[ANSWER] is DeAngelo Smith an inhabitant of
['Q5243840', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . resource:Q5243840 property:P27 ?b }
United States of America
United States of America is DeAngelo Smith an inhabitant of
United States of America
action filter_type
action find
entity DeAngelo Smith
relation country of citizenship
type designation for an administrative territorial entity
['DeAngelo Smith', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:DeAngelo_Smith property:country_of_citizenship ?b }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5243840
P21
Q290
USER
Which sex does DeAngelo Smith possess ?
(Q5243840,P21,c(Q290))
action filter_type
action find
entity Q5243840
relation P21
type Q290
['Q5243840', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q5243840 property:P21 ?g . ?g rdf:type ontology:Q290 }
DeAngelo Smith
action filter_type
action find
entity DeAngelo Smith
relation gender
type sex
['DeAngelo Smith', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:DeAngelo_Smith property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5243840,P21,c(Q290))
action filter_type
action find
entity Q5243840
relation P21
type Q290
DeAngelo Smith possesses a [ANSWER]
['Q5243840', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q5243840 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
DeAngelo Smith possesses a male
male
action filter_type
action find
entity DeAngelo Smith
relation gender
type sex
['DeAngelo Smith', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:DeAngelo_Smith property:gender ?g . ?g rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5243840
P734
Q82799
USER
Who has the surname DeAngelo Smith ?
(Q5243840,P734,c(Q82799))
action filter_type
action find
entity Q5243840
relation P734
type Q82799
['Q5243840', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q82799 . resource:Q5243840 property:P734 ?y }
DeAngelo Smith
action filter_type
action find
entity DeAngelo Smith
relation family name
type name
['DeAngelo Smith', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:name . resource:DeAngelo_Smith property:family_name ?y }
[]
name
Q1158446
SYSTEM
Smith
Q1158446
(Q5243840,P734,c(Q82799))
action filter_type
action find
entity Q5243840
relation P734
type Q82799
Lo [ANSWER] has the surname DeAngelo [ANSWER]
['Q5243840', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q82799 . resource:Q5243840 property:P734 ?y }
Smith
Lo Smith has the surname DeAngelo Smith
Smith
action filter_type
action find
entity DeAngelo Smith
relation family name
type name
['DeAngelo Smith', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:name . resource:DeAngelo_Smith property:family_name ?y }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11518968
Q82799
USER
And also tell me about Takeshi Kimura?
(Q11518968,P734,c(Q82799))
action filter_type
action find
entity Q11518968
relation P734
type Q82799
['Q11518968', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q11518968 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Takeshi Kimura
action filter_type
action find
entity Takeshi Kimura
relation family name
type name
['Takeshi Kimura', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Takeshi_Kimura property:family_name ?f . ?f rdf:type ontology:name }
[]
name
Q20978130
SYSTEM
Kimura
Q20978130
(Q11518968,P734,c(Q82799))
action filter_type
action find
entity Q11518968
relation P734
type Q82799
[ANSWER]
['Q11518968', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q11518968 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Kimura
Kimura
action filter_type
action find
entity Takeshi Kimura
relation family name
type name
['Takeshi Kimura', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Takeshi_Kimura property:family_name ?f . ?f rdf:type ontology:name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q11518968 Q51802
P734
Q82799
USER
How many names are associated with the name Takeshi Kimura or Han Solo ?
(Q11518968,P734,c(Q82799)) (Q51802,P734,c(Q82799))
action count
action union
action filter_type
action find
entity Q11518968
relation P734
type Q82799
action filter_type
action find
entity Q51802
relation P734
type Q82799
['Q11518968', 'P734', {'concept': 'Q82799'}] ['Q51802', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { ?g rdf:type ontology:Q82799 . resource:Q11518968 property:P734 ?g } UNION { resource:Q51802 property:P734 ?g . ?g rdf:type ontology:Q82799 } }
Takeshi Kimura Han Solo
action count
action union
action filter_type
action find
entity Takeshi Kimura
relation family name
type name
action filter_type
action find
entity Han Solo
relation family name
type name
['Takeshi Kimura', 'family name', {'concept': 'name'}] ['Han Solo', 'family name', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { ?g rdf:type ontology:name . resource:Takeshi_Kimura property:family_name ?g } UNION { resource:Han_Solo property:family_name ?g . ?g rdf:type ontology:name } }
[]
name
SYSTEM
2
Q20978130 Q21448978
(Q11518968,P734,c(Q82799)) (Q51802,P734,c(Q82799))
action count
action union
action filter_type
action find
entity Q11518968
relation P734
type Q82799
action filter_type
action find
entity Q51802
relation P734
type Q82799
[ANSWER]
['Q11518968', 'P734', {'concept': 'Q82799'}] ['Q51802', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { ?g rdf:type ontology:Q82799 . resource:Q11518968 property:P734 ?g } UNION { resource:Q51802 property:P734 ?g . ?g rdf:type ontology:Q82799 } }
Kimura Solo
2
action count
action union
action filter_type
action find
entity Takeshi Kimura
relation family name
type name
action filter_type
action find
entity Han Solo
relation family name
type name
['Takeshi Kimura', 'family name', {'concept': 'name'}] ['Han Solo', 'family name', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { ?g rdf:type ontology:name . resource:Takeshi_Kimura property:family_name ?g } UNION { resource:Han_Solo property:family_name ?g . ?g rdf:type ontology:name } }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q338967
Q82799
USER
And how about Paavo Johansson?
(Q338967,P734,c(Q82799))
action filter_type
action find
entity Q338967
relation P734
type Q82799
['Q338967', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { resource:Q338967 property:P734 ?g . ?g rdf:type ontology:Q82799 }
Paavo Johansson
action filter_type
action find
entity Paavo Johansson
relation family name
type name
['Paavo Johansson', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { resource:Paavo_Johansson property:family_name ?g . ?g rdf:type ontology:name }
[]
name
Q1699018
SYSTEM
Johansson
Q1699018
(Q338967,P734,c(Q82799))
action filter_type
action find
entity Q338967
relation P734
type Q82799
[ANSWER]
['Q338967', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { resource:Q338967 property:P734 ?g . ?g rdf:type ontology:Q82799 }
Johansson
Johansson
action filter_type
action find
entity Paavo Johansson
relation family name
type name
['Paavo Johansson', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { resource:Paavo_Johansson property:family_name ?g . ?g rdf:type ontology:name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q27403
P407
Q34770 Q82799
USER
How many languages are the languages of work for approximately the same number of names as Galatian ?
(c(Q82799),P407,c(Q34770))
action count
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find
entity Q27403
relation P407
type Q34770
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?x ) WHERE { ?u rdf:type ontology:Q34770 . ?l rdf:type ontology:Q82799 . ?l property:P407 ?u } GROUP BY ?u } . FILTER ( ?x = ?w ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { resource:Q27403 property:P407 ?v . ?v rdf:type ontology:Q34770 } } }
Galatian
action count
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find
entity Galatian
relation language of work or name
type language
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?x ) WHERE { ?u rdf:type ontology:language . ?l rdf:type ontology:name . ?l property:language_of_work_or_name ?u } GROUP BY ?u } . FILTER ( ?x = ?w ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { resource:Galatian property:language_of_work_or_name ?v . ?v rdf:type ontology:language } } }
[]
language name
SYSTEM
28
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799),P407,c(Q34770))
action count
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find
entity Q27403
relation P407
type Q34770
[ANSWER]
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?x ) WHERE { ?u rdf:type ontology:Q34770 . ?l rdf:type ontology:Q82799 . ?l property:P407 ?u } GROUP BY ?u } . FILTER ( ?x = ?w ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { resource:Q27403 property:P407 ?v . ?v rdf:type ontology:Q34770 } } }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
28
action count
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find
entity Galatian
relation language of work or name
type language
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?x ) WHERE { ?u rdf:type ontology:language . ?l rdf:type ontology:name . ?l property:language_of_work_or_name ?u } GROUP BY ?u } . FILTER ( ?x = ?w ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { resource:Galatian property:language_of_work_or_name ?v . ?v rdf:type ontology:language } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q447117
P407
Q34770 Q82799
USER
And what about Old Egyptian?
(c(Q82799),P407,c(Q34770))
action count
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find
entity Q447117
relation P407
type Q34770
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?s ) WHERE { ?c property:P407 ?a . ?a rdf:type ontology:Q34770 . ?c rdf:type ontology:Q82799 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { resource:Q447117 property:P407 ?o . ?o rdf:type ontology:Q34770 } } . FILTER ( ?s = ?p ) }
Old Egyptian
action count
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find
entity Old Egyptian
relation language of work or name
type language
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?s ) WHERE { ?c property:language_of_work_or_name ?a . ?a rdf:type ontology:language . ?c rdf:type ontology:name } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { resource:Old_Egyptian property:language_of_work_or_name ?o . ?o rdf:type ontology:language } } . FILTER ( ?s = ?p ) }
[]
language name
SYSTEM
28
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799),P407,c(Q34770))
action count
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find
entity Q447117
relation P407
type Q34770
[ANSWER]
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?s ) WHERE { ?c property:P407 ?a . ?a rdf:type ontology:Q34770 . ?c rdf:type ontology:Q82799 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { resource:Q447117 property:P407 ?o . ?o rdf:type ontology:Q34770 } } . FILTER ( ?s = ?p ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
28
action count
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find
entity Old Egyptian
relation language of work or name
type language
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?s ) WHERE { ?c property:language_of_work_or_name ?a . ?a rdf:type ontology:language . ?c rdf:type ontology:name } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { resource:Old_Egyptian property:language_of_work_or_name ?o . ?o rdf:type ontology:language } } . FILTER ( ?s = ?p ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17495456
P170
Q502895
USER
Which person is the creater of Réjane ?
(Q17495456,P170,c(Q502895))
action filter_type
action find
entity Q17495456
relation P170
type Q502895
['Q17495456', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q17495456 property:P170 ?n . ?n rdf:type ontology:Q502895 }
Réjane
action filter_type
action find
entity Réjane
relation creator
type common name
['Réjane', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Réjane property:creator ?n . ?n rdf:type ontology:common_name }
[]
common name
Q1915302
SYSTEM
Leonetto Cappiello
Q1915302
(Q17495456,P170,c(Q502895))
action filter_type
action find
entity Q17495456
relation P170
type Q502895
The creater of Réjane is [ANSWER]
['Q17495456', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q17495456 property:P170 ?n . ?n rdf:type ontology:Q502895 }
Leonetto Cappiello
The creater of Réjane is Leonetto Cappiello
Leonetto Cappiello
action filter_type
action find
entity Réjane
relation creator
type common name
['Réjane', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Réjane property:creator ?n . ?n rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1915302 Q24250838
P170
Q386724
USER
Was Women's safety and health issues at work developed by that person ?
(Q24250838,P170,Q1915302)
action is_in
entity Q24250838
action find
entity Q1915302
relation P170
['Q24250838', 'P170', 'Q1915302']
ASK WHERE { resource:Q1915302 property:P170 resource:Q24250838 }
Leonetto Cappiello Women's safety and health issues at work
action is_in
entity Women's safety and health issues at work
action find
entity Leonetto Cappiello
relation creator
["Women's safety and health issues at work", 'creator', 'Leonetto Cappiello']
ASK WHERE { resource:Leonetto_Cappiello property:creator resource:Women's_safety_and_health_issues_at_work }
[]
work
SYSTEM
NO
(Q24250838,P170,Q1915302)
action is_in
entity Q24250838
action find
entity Q1915302
relation P170
[ANSWER]
['Q24250838', 'P170', 'Q1915302']
ASK WHERE { resource:Q1915302 property:P170 resource:Q24250838 }
No
action is_in
entity Women's safety and health issues at work
action find
entity Leonetto Cappiello
relation creator
["Women's safety and health issues at work", 'creator', 'Leonetto Cappiello']
ASK WHERE { resource:Leonetto_Cappiello property:creator resource:Women's_safety_and_health_issues_at_work }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2755854 Q1158446
P1412 P407
Q34770
USER
Which languages are the languages of work for Smith or can Alfonso Gatto understand ?
OR((Q1158446,P407,c(Q34770)), (Q2755854,P1412,c(Q34770)))
action filter_type
action union
action find
entity Q1158446
relation P407
action find
entity Q2755854
relation P1412
type Q34770
{'OR': [['Q1158446', 'P407', {'concept': 'Q34770'}], ['Q2755854', 'P1412', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q1158446 property:P407 ?i } UNION { resource:Q2755854 property:P1412 ?i } } . ?i rdf:type ontology:Q34770 }
Alfonso Gatto Smith
action filter_type
action union
action find
entity Smith
relation language of work or name
action find
entity Alfonso Gatto
relation languages spoken, written or signed
type language
{'OR': [['Smith', 'language of work or name', {'concept': 'language'}], ['Alfonso Gatto', 'languages spoken, written or signed', {'concept': 'language'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Smith property:language_of_work_or_name ?i } UNION { resource:Alfonso_Gatto property:languages_spoken,_written_or_signed ?i } } . ?i rdf:type ontology:language }
[]
language
Q652 Q1860
SYSTEM
Italian, English
Q652 Q1860
OR((Q1158446,P407,c(Q34770)), (Q2755854,P1412,c(Q34770)))
action filter_type
action union
action find
entity Q1158446
relation P407
action find
entity Q2755854
relation P1412
type Q34770
[ANSWERS] are the languages of work for Smith or can Alfonso Gatto understand
{'OR': [['Q1158446', 'P407', {'concept': 'Q34770'}], ['Q2755854', 'P1412', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q1158446 property:P407 ?i } UNION { resource:Q2755854 property:P1412 ?i } } . ?i rdf:type ontology:Q34770 }
Italian English
Italian and English are the languages of work for Smith or can Alfonso Gatto understand
Italian English
action filter_type
action union
action find
entity Smith
relation language of work or name
action find
entity Alfonso Gatto
relation languages spoken, written or signed
type language
{'OR': [['Smith', 'language of work or name', {'concept': 'language'}], ['Alfonso Gatto', 'languages spoken, written or signed', {'concept': 'language'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Smith property:language_of_work_or_name ?i } UNION { resource:Alfonso_Gatto property:languages_spoken,_written_or_signed ?i } } . ?i rdf:type ontology:language }
[]