Simple Question (Direct)
Simple Question
Q11659699
P734
Q82799
USER
Who is associated with Shōichi Amemiya ?
(Q11659699,P734,c(Q82799))
action filter_type
action find
entity Q11659699
relation P734
type Q82799
['Q11659699', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q11659699 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Shōichi Amemiya
action filter_type
action find
entity Shōichi Amemiya
relation family name
type name
['Shōichi Amemiya', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Shōichi_Amemiya property:family_name ?f . ?f rdf:type ontology:name }
[]
name
Q21501856
SYSTEM
Amemiya
Q21501856
(Q11659699,P734,c(Q82799))
action filter_type
action find
entity Q11659699
relation P734
type Q82799
Is [ANSWER] is associated with Shōichi [ANSWER]
['Q11659699', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q11659699 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Amemiya
Is Amemiya is associated with Shōichi Amemiya
Amemiya
action filter_type
action find
entity Shōichi Amemiya
relation family name
type name
['Shōichi Amemiya', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Shōichi_Amemiya property:family_name ?f . ?f rdf:type ontology:name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q82799
USER
How many languages are atmost 480 names in ?
(c(Q82799),P407,c(Q34770))
action count
action atmost
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 480
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?n ) WHERE { ?v property:P407 ?o . ?o rdf:type ontology:Q34770 . ?v rdf:type ontology:Q82799 } GROUP BY ?o } . FILTER ( ?n <= 480 ) }
action count
action atmost
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 480
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?n ) WHERE { ?v property:language_of_work_or_name ?o . ?o rdf:type ontology:language . ?v rdf:type ontology:name } GROUP BY ?o } . FILTER ( ?n <= 480 ) }
[]
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 atmost
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 480
[ANSWER]
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?n ) WHERE { ?v property:P407 ?o . ?o rdf:type ontology:Q34770 . ?v rdf:type ontology:Q82799 } GROUP BY ?o } . FILTER ( ?n <= 480 ) }
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 atmost
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 480
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?n ) WHERE { ?v property:language_of_work_or_name ?o . ?o rdf:type ontology:language . ?v rdf:type ontology:name } GROUP BY ?o } . FILTER ( ?n <= 480 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q11257270 Q11659699
P106
Q12737077
USER
Which occupations are the job of Shōichi Amemiya or Kōhei Azano ?
OR((Q11659699,P106,c(Q12737077)), (Q11257270,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q11659699
relation P106
action find
entity Q11257270
relation P106
type Q12737077
{'OR': [['Q11659699', 'P106', {'concept': 'Q12737077'}], ['Q11257270', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?a WHERE { { ?v property:P106 ?a . VALUES ( ?v ) { ( resource:Q11659699 ) ( resource:Q11257270 ) } } . ?a rdf:type ontology:Q12737077 }
Kōhei Azano Shōichi Amemiya
action filter_type
action union
action find
entity Shōichi Amemiya
relation occupation
action find
entity Kōhei Azano
relation occupation
type occupation
{'OR': [['Shōichi Amemiya', 'occupation', {'concept': 'occupation'}], ['Kōhei Azano', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?a WHERE { { ?v property:occupation ?a . VALUES ( ?v ) { ( resource:Shōichi_Amemiya ) ( resource:Kōhei_Azano ) } } . ?a rdf:type ontology:occupation }
[]
occupation
Q201788 Q1238570 Q6625963
SYSTEM
historian, political scientist, novelist
Q201788 Q1238570 Q6625963
OR((Q11659699,P106,c(Q12737077)), (Q11257270,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q11659699
relation P106
action find
entity Q11257270
relation P106
type Q12737077
The [ANSWERS] are the job of Shōichi Amemiya or Kōhei Azano
{'OR': [['Q11659699', 'P106', {'concept': 'Q12737077'}], ['Q11257270', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?a WHERE { { ?v property:P106 ?a . VALUES ( ?v ) { ( resource:Q11659699 ) ( resource:Q11257270 ) } } . ?a rdf:type ontology:Q12737077 }
historian political scientist novelist
The historian, political scientist and novelist are the job of Shōichi Amemiya or Kōhei Azano
historian political scientist novelist
action filter_type
action union
action find
entity Shōichi Amemiya
relation occupation
action find
entity Kōhei Azano
relation occupation
type occupation
{'OR': [['Shōichi Amemiya', 'occupation', {'concept': 'occupation'}], ['Kōhei Azano', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?a WHERE { { ?v property:occupation ?a . VALUES ( ?v ) { ( resource:Shōichi_Amemiya ) ( resource:Kōhei_Azano ) } } . ?a rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11659699
P69
Q3918
USER
Which university is the alma mater of Shōichi Amemiya ?
(Q11659699,P69,c(Q3918))
action filter_type
action find
entity Q11659699
relation P69
type Q3918
['Q11659699', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q3918 . resource:Q11659699 property:P69 ?s }
Shōichi Amemiya
action filter_type
action find
entity Shōichi Amemiya
relation educated at
type university
['Shōichi Amemiya', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:university . resource:Shōichi_Amemiya property:educated_at ?s }
[]
university
Q7842
SYSTEM
University of Tokyo
Q7842
(Q11659699,P69,c(Q3918))
action filter_type
action find
entity Q11659699
relation P69
type Q3918
[ANSWER] is the alma mater of Shōichi Amemiya
['Q11659699', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q3918 . resource:Q11659699 property:P69 ?s }
University of Tokyo
University of Tokyo is the alma mater of Shōichi Amemiya
University of Tokyo
action filter_type
action find
entity Shōichi Amemiya
relation educated at
type university
['Shōichi Amemiya', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:university . resource:Shōichi_Amemiya property:educated_at ?s }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6395238
Q3918
USER
And how about Keston Sutherland?
(Q6395238,P69,c(Q3918))
action filter_type
action find
entity Q6395238
relation P69
type Q3918
['Q6395238', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?s WHERE { resource:Q6395238 property:P69 ?s . ?s rdf:type ontology:Q3918 }
Keston Sutherland
action filter_type
action find
entity Keston Sutherland
relation educated at
type university
['Keston Sutherland', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?s WHERE { resource:Keston_Sutherland property:educated_at ?s . ?s rdf:type ontology:university }
[]
university
Q35794
SYSTEM
University of Cambridge
Q35794
(Q6395238,P69,c(Q3918))
action filter_type
action find
entity Q6395238
relation P69
type Q3918
[ANSWER]
['Q6395238', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?s WHERE { resource:Q6395238 property:P69 ?s . ?s rdf:type ontology:Q3918 }
University of Cambridge
University of Cambridge
action filter_type
action find
entity Keston Sutherland
relation educated at
type university
['Keston Sutherland', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?s WHERE { resource:Keston_Sutherland property:educated_at ?s . ?s rdf:type ontology:university }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q35794 Q628932 Q145
P17
Q15617994
USER
Is that university present in Freienhagen and United Kingdom ?
(Q35794,P17,Q628932) (Q35794,P17,Q145)
action is_in
entity Q35794
action intersection
action find_reverse
entity Q628932
relation P17
action find_reverse
entity Q145
relation P17
['Q35794', 'P17', 'Q628932'] ['Q35794', 'P17', 'Q145']
ASK WHERE { resource:Q35794 property:P17 resource:Q628932 . resource:Q35794 property:P17 resource:Q145 }
University of Cambridge Freienhagen United Kingdom
action is_in
entity University of Cambridge
action intersection
action find_reverse
entity Freienhagen
relation country
action find_reverse
entity United Kingdom
relation country
['University of Cambridge', 'country', 'Freienhagen'] ['University of Cambridge', 'country', 'United Kingdom']
ASK WHERE { resource:University_of_Cambridge property:country resource:Freienhagen . resource:University_of_Cambridge property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q35794,P17,Q628932) (Q35794,P17,Q145)
action is_in
entity Q35794
action intersection
action find_reverse
entity Q628932
relation P17
action find_reverse
entity Q145
relation P17
[ANSWER]
['Q35794', 'P17', 'Q628932'] ['Q35794', 'P17', 'Q145']
ASK WHERE { resource:Q35794 property:P17 resource:Q628932 . resource:Q35794 property:P17 resource:Q145 }
NO and YES respectively
action is_in
entity University of Cambridge
action intersection
action find_reverse
entity Freienhagen
relation country
action find_reverse
entity United Kingdom
relation country
['University of Cambridge', 'country', 'Freienhagen'] ['University of Cambridge', 'country', 'United Kingdom']
ASK WHERE { resource:University_of_Cambridge property:country resource:Freienhagen . resource:University_of_Cambridge property:country resource:United_Kingdom }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q6625963 Q593644
P106
Q502895
USER
How many people have a job as novelist and chemist ?
(c(Q502895),P106,Q6625963) (c(Q502895),P106,Q593644)
action count
action intersection
action filter_type
action find_reverse
entity Q6625963
relation P106
type Q502895
action filter_type
action find_reverse
entity Q593644
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q6625963'] [{'concept': 'Q502895'}, 'P106', 'Q593644']
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { ?j property:P106 resource:Q593644 . ?j rdf:type ontology:Q502895 . ?j property:P106 resource:Q6625963 . ?j rdf:type ontology:Q502895 }
novelist chemist
action count
action intersection
action filter_type
action find_reverse
entity novelist
relation occupation
type common name
action filter_type
action find_reverse
entity chemist
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'novelist'] [{'concept': 'common name'}, 'occupation', 'chemist']
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { ?j property:occupation resource:chemist . ?j rdf:type ontology:common_name . ?j property:occupation resource:novelist . ?j rdf:type ontology:common_name }
[]
common name
SYSTEM
5
Q153670 Q2063290 Q905323 Q509844 Q4078723
(c(Q502895),P106,Q6625963) (c(Q502895),P106,Q593644)
action count
action intersection
action filter_type
action find_reverse
entity Q6625963
relation P106
type Q502895
action filter_type
action find_reverse
entity Q593644
relation P106
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P106', 'Q6625963'] [{'concept': 'Q502895'}, 'P106', 'Q593644']
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { ?j property:P106 resource:Q593644 . ?j rdf:type ontology:Q502895 . ?j property:P106 resource:Q6625963 . ?j rdf:type ontology:Q502895 }
Primo Levi Paul Zindel Richard Weiner Richard Lerner Mikhail Baru
5
action count
action intersection
action filter_type
action find_reverse
entity novelist
relation occupation
type common name
action filter_type
action find_reverse
entity chemist
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'novelist'] [{'concept': 'common name'}, 'occupation', 'chemist']
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { ?j property:occupation resource:chemist . ?j rdf:type ontology:common_name . ?j property:occupation resource:novelist . ?j rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11659699
P21
Q290
USER
What is the sex of Shōichi Amemiya ?
(Q11659699,P21,c(Q290))
action filter_type
action find
entity Q11659699
relation P21
type Q290
['Q11659699', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q11659699 property:P21 ?g . ?g rdf:type ontology:Q290 }
Shōichi Amemiya
action filter_type
action find
entity Shōichi Amemiya
relation gender
type sex
['Shōichi Amemiya', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Shōichi_Amemiya property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q11659699,P21,c(Q290))
action filter_type
action find
entity Q11659699
relation P21
type Q290
The sex of Shōichi Amemiya is the [ANSWER]
['Q11659699', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q11659699 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
The sex of Shōichi Amemiya is the male
male
action filter_type
action find
entity Shōichi Amemiya
relation gender
type sex
['Shōichi Amemiya', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Shōichi_Amemiya property:gender ?g . ?g rdf:type ontology:sex }
[]