Simple Question (Direct)
Simple Question
Q651258
P509
Q2057971
USER
What was the cause of death of Nobuko Yoshiya ?
(Q651258,P509,c(Q2057971))
action filter_type
action find
entity Q651258
relation P509
type Q2057971
['Q651258', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?a WHERE { resource:Q651258 property:P509 ?a . ?a rdf:type ontology:Q2057971 }
Nobuko Yoshiya
action filter_type
action find
entity Nobuko Yoshiya
relation cause of death
type health problem
['Nobuko Yoshiya', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?a WHERE { resource:Nobuko_Yoshiya property:cause_of_death ?a . ?a rdf:type ontology:health_problem }
[]
health problem
Q188874
SYSTEM
colorectal cancer
Q188874
(Q651258,P509,c(Q2057971))
action filter_type
action find
entity Q651258
relation P509
type Q2057971
The cause of death of Nobuko Yoshiya was of [ANSWER]
['Q651258', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?a WHERE { resource:Q651258 property:P509 ?a . ?a rdf:type ontology:Q2057971 }
colorectal cancer
The cause of death of Nobuko Yoshiya was of colorectal cancer
colorectal cancer
action filter_type
action find
entity Nobuko Yoshiya
relation cause of death
type health problem
['Nobuko Yoshiya', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?a WHERE { resource:Nobuko_Yoshiya property:cause_of_death ?a . ?a rdf:type ontology:health_problem }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q651258
P20
Q515
USER
Where did the demise of Nobuko Yoshiya occur ?
(Q651258,P20,c(Q515))
action filter_type
action find
entity Q651258
relation P20
type Q515
['Q651258', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?j WHERE { resource:Q651258 property:P20 ?j . ?j rdf:type ontology:Q515 }
Nobuko Yoshiya
action filter_type
action find
entity Nobuko Yoshiya
relation place of death
type city
['Nobuko Yoshiya', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?j WHERE { resource:Nobuko_Yoshiya property:place_of_death ?j . ?j rdf:type ontology:city }
[]
city
Q200267
SYSTEM
Kamakura
Q200267
(Q651258,P20,c(Q515))
action filter_type
action find
entity Q651258
relation P20
type Q515
The demise of Nobuko Yoshiya occurred in [ANSWER]
['Q651258', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?j WHERE { resource:Q651258 property:P20 ?j . ?j rdf:type ontology:Q515 }
Kamakura
The demise of Nobuko Yoshiya occurred in Kamakura
Kamakura
action filter_type
action find
entity Nobuko Yoshiya
relation place of death
type city
['Nobuko Yoshiya', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?j WHERE { resource:Nobuko_Yoshiya property:place_of_death ?j . ?j rdf:type ontology:city }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6257526 Q651258
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Nobuko Yoshiya or John Shearer ?
OR((Q651258,P27,c(Q15617994)), (Q6257526,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q651258
relation P27
action find
entity Q6257526
relation P27
type Q15617994
{'OR': [['Q651258', 'P27', {'concept': 'Q15617994'}], ['Q6257526', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q651258 property:P27 ?n } UNION { resource:Q6257526 property:P27 ?n } } . ?n rdf:type ontology:Q15617994 }
John Shearer Nobuko Yoshiya
action filter_type
action union
action find
entity Nobuko Yoshiya
relation country of citizenship
action find
entity John Shearer
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Nobuko Yoshiya', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['John Shearer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Nobuko_Yoshiya property:country_of_citizenship ?n } UNION { resource:John_Shearer property:country_of_citizenship ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q27
SYSTEM
Japan, Ireland
Q17 Q27
OR((Q651258,P27,c(Q15617994)), (Q6257526,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q651258
relation P27
action find
entity Q6257526
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Nobuko Yoshiya or John Shearer
{'OR': [['Q651258', 'P27', {'concept': 'Q15617994'}], ['Q6257526', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q651258 property:P27 ?n } UNION { resource:Q6257526 property:P27 ?n } } . ?n rdf:type ontology:Q15617994 }
Japan Ireland
Japan and Ireland are the countries of citizenship of Nobuko Yoshiya or John Shearer
Japan Ireland
action filter_type
action union
action find
entity Nobuko Yoshiya
relation country of citizenship
action find
entity John Shearer
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Nobuko Yoshiya', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['John Shearer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Nobuko_Yoshiya property:country_of_citizenship ?n } UNION { resource:John_Shearer property:country_of_citizenship ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3519933
P495
Q838948
USER
Does The Best People originate at those administrative territories ?
(Q3519933,P495,Q17) (Q3519933,P495,Q27)
action is_in
entity prev_answer
action find
entity Q3519933
relation P495
['Q3519933', 'P495', 'Q17'] ['Q3519933', 'P495', 'Q27']
ASK WHERE { resource:Q3519933 property:P495 ?v . VALUES ( ?v ) { ( resource:Q17 ) ( resource:Q27 ) } }
The Best People
action is_in
entity prev_answer
action find
entity The Best People
relation country of origin
['The Best People', 'country of origin', 'Japan'] ['The Best People', 'country of origin', 'Ireland']
ASK WHERE { resource:The_Best_People property:country_of_origin ?v . VALUES ( ?v ) { ( resource:Japan ) ( resource:Ireland ) } }
[]
work of art
SYSTEM
NO
(Q3519933,P495,Q17) (Q3519933,P495,Q27)
action is_in
entity prev_answer
action find
entity Q3519933
relation P495
[ANSWER]
['Q3519933', 'P495', 'Q17'] ['Q3519933', 'P495', 'Q27']
ASK WHERE { resource:Q3519933 property:P495 ?v . VALUES ( ?v ) { ( resource:Q17 ) ( resource:Q27 ) } }
No
action is_in
entity prev_answer
action find
entity The Best People
relation country of origin
['The Best People', 'country of origin', 'Japan'] ['The Best People', 'country of origin', 'Ireland']
ASK WHERE { resource:The_Best_People property:country_of_origin ?v . VALUES ( ?v ) { ( resource:Japan ) ( resource:Ireland ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17
P122
Q22676587
USER
Which monarchic system best describes the form of government of Japan ?
(Q17,P122,c(Q22676587))
action filter_type
action find
entity Q17
relation P122
type Q22676587
['Q17', 'P122', {'concept': 'Q22676587'}]
SELECT DISTINCT ?b WHERE { resource:Q17 property:P122 ?b . ?b rdf:type ontology:Q22676587 }
Japan
action filter_type
action find
entity Japan
relation basic form of government
type monarchic system
['Japan', 'basic form of government', {'concept': 'monarchic system'}]
SELECT DISTINCT ?b WHERE { resource:Japan property:basic_form_of_government ?b . ?b rdf:type ontology:monarchic_system }
[]
monarchic system
Q849242
SYSTEM
hereditary monarchy
Q849242
(Q17,P122,c(Q22676587))
action filter_type
action find
entity Q17
relation P122
type Q22676587
[ANSWER] best describes the form of government of Japan
['Q17', 'P122', {'concept': 'Q22676587'}]
SELECT DISTINCT ?b WHERE { resource:Q17 property:P122 ?b . ?b rdf:type ontology:Q22676587 }
hereditary monarchy
Hereditary monarchy best describes the form of government of Japan
hereditary monarchy
action filter_type
action find
entity Japan
relation basic form of government
type monarchic system
['Japan', 'basic form of government', {'concept': 'monarchic system'}]
SELECT DISTINCT ?b WHERE { resource:Japan property:basic_form_of_government ?b . ?b rdf:type ontology:monarchic_system }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q172107
Q22676587
USER
And how about Polish–Lithuanian Commonwealth?
(Q172107,P122,c(Q22676587))
action filter_type
action find
entity Q172107
relation P122
type Q22676587
['Q172107', 'P122', {'concept': 'Q22676587'}]
SELECT DISTINCT ?k WHERE { resource:Q172107 property:P122 ?k . ?k rdf:type ontology:Q22676587 }
Polish–Lithuanian Commonwealth
action filter_type
action find
entity Polish–Lithuanian Commonwealth
relation basic form of government
type monarchic system
['Polish–Lithuanian Commonwealth', 'basic form of government', {'concept': 'monarchic system'}]
SELECT DISTINCT ?k WHERE { resource:Polish–Lithuanian_Commonwealth property:basic_form_of_government ?k . ?k rdf:type ontology:monarchic_system }
[]
monarchic system
Q849242
SYSTEM
hereditary monarchy
Q849242
(Q172107,P122,c(Q22676587))
action filter_type
action find
entity Q172107
relation P122
type Q22676587
[ANSWER]
['Q172107', 'P122', {'concept': 'Q22676587'}]
SELECT DISTINCT ?k WHERE { resource:Q172107 property:P122 ?k . ?k rdf:type ontology:Q22676587 }
hereditary monarchy
hereditary monarchy
action filter_type
action find
entity Polish–Lithuanian Commonwealth
relation basic form of government
type monarchic system
['Polish–Lithuanian Commonwealth', 'basic form of government', {'concept': 'monarchic system'}]
SELECT DISTINCT ?k WHERE { resource:Polish–Lithuanian_Commonwealth property:basic_form_of_government ?k . ?k rdf:type ontology:monarchic_system }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q822
P180
Q15617994 Q3305213 Q11060274
USER
Which administrative territories are expressed in greater number of paintings and prints than Lebanon ?
(c(Q3305213)|c(Q11060274),P180,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q822
relation P180
type Q3305213
type Q11060274
[[{'concept': 'Q3305213'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?z ) WHERE { { ?f property:P180 ?m . ?m rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q11060274 } UNION { ?f property:P180 ?m . ?m rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q3305213 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { ?a property:P180 resource:Q822 . { ?a rdf:type ?r . VALUES ( ?r ) { ( ontology:Q11060274 ) ( ontology:Q3305213 ) } } } } . FILTER ( ?z > ?n ) }
Lebanon
action greater
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
action count
action filter_multi_types
action find_reverse
entity Lebanon
relation depicts
type painting
type print
[[{'concept': 'painting'}, {'concept': 'print'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?z ) WHERE { { ?f property:depicts ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:print } UNION { ?f property:depicts ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:painting } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { ?a property:depicts resource:Lebanon . { ?a rdf:type ?r . VALUES ( ?r ) { ( ontology:print ) ( ontology:painting ) } } } } . FILTER ( ?z > ?n ) }
[]
designation for an administrative territorial entity painting print
Q38 Q17 Q712
SYSTEM
Italy, Japan, Fiji
Q3883 Q47505 Q131596 Q712 Q532 Q38 Q80644 Q17 Q13320 Q772 Q82025 Q1273 Q376896 Q34876 Q80591
(c(Q3305213)|c(Q11060274),P180,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q822
relation P180
type Q3305213
type Q11060274
[ANSWERS] are expressed in greater number of paintings and prints than Lebanon
[[{'concept': 'Q3305213'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?z ) WHERE { { ?f property:P180 ?m . ?m rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q11060274 } UNION { ?f property:P180 ?m . ?m rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q3305213 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { ?a property:P180 resource:Q822 . { ?a rdf:type ?r . VALUES ( ?r ) { ( ontology:Q11060274 ) ( ontology:Q3305213 ) } } } } . FILTER ( ?z > ?n ) }
Catanzaro Dolo farm Fiji village Italy Köngen Japan Savona Drenthe horn Tuscany Grenelle province Atrani
Italy, Japan and Fiji are expressed in greater number of paintings and prints than Lebanon
Italy Japan Fiji
action greater
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
action count
action filter_multi_types
action find_reverse
entity Lebanon
relation depicts
type painting
type print
[[{'concept': 'painting'}, {'concept': 'print'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?z ) WHERE { { ?f property:depicts ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:print } UNION { ?f property:depicts ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:painting } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { ?a property:depicts resource:Lebanon . { ?a rdf:type ?r . VALUES ( ?r ) { ( ontology:print ) ( ontology:painting ) } } } } . FILTER ( ?z > ?n ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q6256
P180
Q15617994 Q3305213 Q11060274
USER
And what about country?
(c(Q3305213)|c(Q11060274),P180,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q6256
relation P180
type Q3305213
type Q11060274
[[{'concept': 'Q3305213'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?s ) WHERE { VALUES ( ?u ) { ( ontology:Q3305213 ) ( ontology:Q11060274 ) } . ?z rdf:type ?u } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:P180 resource:Q6256 . { ?r rdf:type ?o . VALUES ( ?o ) { ( ontology:Q11060274 ) ( ontology:Q3305213 ) } } } } . FILTER ( ?s > ?x ) }
country
action greater
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
action count
action filter_multi_types
action find_reverse
entity country
relation depicts
type painting
type print
[[{'concept': 'painting'}, {'concept': 'print'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?s ) WHERE { VALUES ( ?u ) { ( ontology:painting ) ( ontology:print ) } . ?z rdf:type ?u } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:depicts resource:country . { ?r rdf:type ?o . VALUES ( ?o ) { ( ontology:print ) ( ontology:painting ) } } } } . FILTER ( ?s > ?x ) }
[]
designation for an administrative territorial entity painting print
Q38 Q17 Q712
SYSTEM
Italy, Japan, Fiji
Q3883 Q47505 Q131596 Q712 Q532 Q38 Q80644 Q17 Q13320 Q772 Q82025 Q1273 Q376896 Q34876 Q80591
(c(Q3305213)|c(Q11060274),P180,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q6256
relation P180
type Q3305213
type Q11060274
[ANSWERS]
[[{'concept': 'Q3305213'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?s ) WHERE { VALUES ( ?u ) { ( ontology:Q3305213 ) ( ontology:Q11060274 ) } . ?z rdf:type ?u } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:P180 resource:Q6256 . { ?r rdf:type ?o . VALUES ( ?o ) { ( ontology:Q11060274 ) ( ontology:Q3305213 ) } } } } . FILTER ( ?s > ?x ) }
Catanzaro Dolo farm Fiji village Italy Köngen Japan Savona Drenthe horn Tuscany Grenelle province Atrani
Italy Japan Fiji
action greater
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
action count
action filter_multi_types
action find_reverse
entity country
relation depicts
type painting
type print
[[{'concept': 'painting'}, {'concept': 'print'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?s ) WHERE { VALUES ( ?u ) { ( ontology:painting ) ( ontology:print ) } . ?z rdf:type ?u } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:depicts resource:country . { ?r rdf:type ?o . VALUES ( ?o ) { ( ontology:print ) ( ontology:painting ) } } } } . FILTER ( ?s > ?x ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q200267
P19 P21
Q502895
USER
Which people were born at Kamakura and are a male ?
AND((c(Q502895),P19,Q200267), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q200267
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q200267'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?u WHERE { ?u property:P19 resource:Q200267 . ?u property:P21 resource:Q6581097 . ?u rdf:type ontology:Q502895 }
male Kamakura
action filter_type
action intersection
action find_reverse
entity Kamakura
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Kamakura'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?u WHERE { ?u property:place_of_birth resource:Kamakura . ?u property:gender resource:male . ?u rdf:type ontology:common_name }
[]
common name
Q7827736 Q17129124 Q7674270 Q11595166 Q11648755 Q11619134 Q16770240 Q11399722 Q11616667 Q3508496
SYSTEM
Some of them are Toshimitsu Izawa, Mitsuru Ōya, Tadaaki Otaka, Yukiatsu Akizawa, Yoshifumi Suzuki, Ichigō Sugawara, Masatsugu Kawai, Kisho Kagami, Kenichi Wakatabe, Kiyoshi Ijichi
Q9077462 Q11651090 Q11659944 Q12339180 Q8977012 Q17227997 Q7675907 Q3508496 Q2663030 Q11623677 Q3246155 Q17349760 Q11517001 Q11666416 Q7827736 Q2511563 Q11595166 Q18225619 Q16770240 Q11616667 Q11372984 Q11478095 Q11399722 Q1300989 Q11634528 Q11474437 Q11666879 Q11648755 Q303940 Q3273170 Q17129124 Q11462737 Q11365892 Q11425518 Q431052 Q11619134 Q7674270 Q11590692 Q5770923 Q419501
AND((c(Q502895),P19,Q200267), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q200267
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] were born at Kamakura and are a male
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q200267'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?u WHERE { ?u property:P19 resource:Q200267 . ?u property:P21 resource:Q6581097 . ?u rdf:type ontology:Q502895 }
Tetsu Yōfu Shigeo Kamata Yukio Yukimino Yosuke Imai Satoshi Kadokura Isao Ozawa Taichi Yamazaki Kiyoshi Ijichi Shigeru Nakahara Jirō Fujiyoshi Koji Nakazato Masanori Egawa Yōsuke Hattori Norichika Iimori Toshimitsu Izawa Shunji Fujimura Yukiatsu Akizawa Daiki Ito Masatsugu Kawai Kenichi Wakatabe Kōtarō Inoue Masatsugu Kawai Kisho Kagami Midori Matsuya Jōgyō Toshio Iwasaki Takeshi Yōrō Yoshifumi Suzuki Kentaro Sawada Yoshiki Fukuyama Mitsuru Ōya Akihiro Ozawa Ryū Nakamura Shin'ichirō Sakata Minamoto no Yoriie Ichigō Sugawara Tadaaki Otaka Minoru Kamiya Hiroshi Koizumi Akiyuki Nosaka
Toshimitsu Izawa, Mitsuru Ōya, Tadaaki Otaka, Yukiatsu Akizawa, Yoshifumi Suzuki, Ichigō Sugawara, Masatsugu Kawai, Kisho Kagami, Kenichi Wakatabe and Kiyoshi Ijichi were born at Kamakura and are a male
Toshimitsu Izawa Mitsuru Ōya Tadaaki Otaka Yukiatsu Akizawa Yoshifumi Suzuki Ichigō Sugawara Masatsugu Kawai Kisho Kagami Kenichi Wakatabe Kiyoshi Ijichi
action filter_type
action intersection
action find_reverse
entity Kamakura
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Kamakura'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?u WHERE { ?u property:place_of_birth resource:Kamakura . ?u property:gender resource:male . ?u rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q2342494
USER
How many collectables did atmost 4 people dub for ?
(c(Q2342494),P725,c(Q502895))
action count
action atmost
action find_tuple_counts
relation P725
type Q2342494
type Q502895
value 4
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { FILTER ( ?b <= 4 ) . { SELECT DISTINCT ?d ( COUNT ( ?y ) AS ?b ) WHERE { ?d property:P725 ?y . ?d rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q502895 } GROUP BY ?d } }
action count
action atmost
action find_tuple_counts
relation voice actor
type collectable
type common name
value 4
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { FILTER ( ?b <= 4 ) . { SELECT DISTINCT ?d ( COUNT ( ?y ) AS ?b ) WHERE { ?d property:voice_actor ?y . ?d rdf:type ontology:collectable . ?y rdf:type ontology:common_name } GROUP BY ?d } }
[]
common name collectable
SYSTEM
14
Q50035 Q483263 Q495094 Q482870 Q336056 Q1204015 Q304061 Q11272884 Q11325839 Q119534 Q184667 Q485958 Q5647726 Q2759489
(c(Q2342494),P725,c(Q502895))
action count
action atmost
action find_tuple_counts
relation P725
type Q2342494
type Q502895
value 4
[ANSWER]
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { FILTER ( ?b <= 4 ) . { SELECT DISTINCT ?d ( COUNT ( ?y ) AS ?b ) WHERE { ?d property:P725 ?y . ?d rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q502895 } GROUP BY ?d } }
Nyaruko: Crawling with Love Baka and Test Durarara!! Boku wa Tomodachi ga Sukunai The Girl Who Leapt Through Time Ōkami Kakushi Kyo Kara Maoh! Toaru Hikūshi e no Koiuta No Game No Life-mart Shakugan no Shana Kanojo ga Flag o Oraretara Ro-Kyu-Bu! Handy Manny's Motorcycle Adventure Muv-Luv
14
action count
action atmost
action find_tuple_counts
relation voice actor
type collectable
type common name
value 4
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { FILTER ( ?b <= 4 ) . { SELECT DISTINCT ?d ( COUNT ( ?y ) AS ?b ) WHERE { ?d property:voice_actor ?y . ?d rdf:type ontology:collectable . ?y rdf:type ontology:common_name } GROUP BY ?d } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1327500
P1303
Q34379 Q502895
USER
How many musical instruments are played by approximately the same number of people as electronic musical instrument ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1327500
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:P1303 ?i . ?i rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Q1327500 property:P1303 ?q . ?q rdf:type ontology:Q34379 } } . FILTER ( ?v = ?r ) }
electronic musical instrument
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity electronic musical instrument
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:instrument ?i . ?i rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:electronic_musical_instrument property:instrument ?q . ?q rdf:type ontology:musical_instrument } } . FILTER ( ?v = ?r ) }
[]
musical instrument common name
SYSTEM
60
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1327500
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:P1303 ?i . ?i rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Q1327500 property:P1303 ?q . ?q rdf:type ontology:Q34379 } } . FILTER ( ?v = ?r ) }
viola lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
60
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity electronic musical instrument
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:instrument ?i . ?i rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:electronic_musical_instrument property:instrument ?q . ?q rdf:type ontology:musical_instrument } } . FILTER ( ?v = ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q790468
P1303
Q34379 Q502895
USER
And how about baritone horn?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q790468
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:P1303 ?g . ?x rdf:type ontology:Q502895 . ?g rdf:type ontology:Q34379 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { ?n rdf:type ontology:Q34379 . resource:Q790468 property:P1303 ?n } } . FILTER ( ?a = ?c ) }
baritone horn
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity baritone horn
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:instrument ?g . ?x rdf:type ontology:common_name . ?g rdf:type ontology:musical_instrument } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { ?n rdf:type ontology:musical_instrument . resource:baritone_horn property:instrument ?n } } . FILTER ( ?a = ?c ) }
[]
musical instrument common name
SYSTEM
60
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q790468
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:P1303 ?g . ?x rdf:type ontology:Q502895 . ?g rdf:type ontology:Q34379 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { ?n rdf:type ontology:Q34379 . resource:Q790468 property:P1303 ?n } } . FILTER ( ?a = ?c ) }
viola lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
60
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity baritone horn
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:instrument ?g . ?x rdf:type ontology:common_name . ?g rdf:type ontology:musical_instrument } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { ?n rdf:type ontology:musical_instrument . resource:baritone_horn property:instrument ?n } } . FILTER ( ?a = ?c ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P417
Q1445650 Q502895 Q15617994
USER
Which administrative territories have max number of holidays or people as their patron saint ?
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action argmax
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?h ) { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?b ) WHERE { ?l rdf:type ?v . VALUES ( ?v ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } GROUP BY ?u } } . FILTER ( ?q = ?h ) . { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?q ) WHERE { { ?x rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1445650 . ?x property:P417 ?s } UNION { ?x property:P417 ?s . ?x rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q502895 } } GROUP BY ?x } }
action argmax
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?h ) { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?b ) WHERE { ?l rdf:type ?v . VALUES ( ?v ) { ( ontology:holiday ) ( ontology:common_name ) } } GROUP BY ?u } } . FILTER ( ?q = ?h ) . { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?q ) WHERE { { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:holiday . ?x property:patron_saint ?s } UNION { ?x property:patron_saint ?s . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:common_name } } GROUP BY ?x } }
[]
holiday common name designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action argmax
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
[ANSWER] have max number of holidays or people as their patron saint
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?h ) { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?b ) WHERE { ?l rdf:type ?v . VALUES ( ?v ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } GROUP BY ?u } } . FILTER ( ?q = ?h ) . { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?q ) WHERE { { ?x rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1445650 . ?x property:P417 ?s } UNION { ?x property:P417 ?s . ?x rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q502895 } } GROUP BY ?x } }
Poland
Poland have max number of holidays or people as their patron saint
Poland
action argmax
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?h ) { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?b ) WHERE { ?l rdf:type ?v . VALUES ( ?v ) { ( ontology:holiday ) ( ontology:common_name ) } } GROUP BY ?u } } . FILTER ( ?q = ?h ) . { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?q ) WHERE { { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:holiday . ?x property:patron_saint ?s } UNION { ?x property:patron_saint ?s . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:common_name } } GROUP BY ?x } }
[]