Simple Question (Direct)
Simple Question
Q8064084
P21
Q290
USER
Which sex does Zack Holmes possess ?
(Q8064084,P21,c(Q290))
action filter_type
action find
entity Q8064084
relation P21
type Q290
['Q8064084', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q8064084 property:P21 ?r . ?r rdf:type ontology:Q290 }
Zack Holmes
action filter_type
action find
entity Zack Holmes
relation gender
type sex
['Zack Holmes', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Zack_Holmes property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q8064084,P21,c(Q290))
action filter_type
action find
entity Q8064084
relation P21
type Q290
[ANSWER]
['Q8064084', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q8064084 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Zack Holmes
relation gender
type sex
['Zack Holmes', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Zack_Holmes property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8064084
P106
Q12737077
USER
What is the profession of Zack Holmes ?
(Q8064084,P106,c(Q12737077))
action filter_type
action find
entity Q8064084
relation P106
type Q12737077
['Q8064084', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q8064084 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
Zack Holmes
action filter_type
action find
entity Zack Holmes
relation occupation
type occupation
['Zack Holmes', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Zack_Holmes property:occupation ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q14089670
SYSTEM
rugby union player
Q14089670
(Q8064084,P106,c(Q12737077))
action filter_type
action find
entity Q8064084
relation P106
type Q12737077
[ANSWER]
['Q8064084', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q8064084 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
rugby union player
rugby union player
action filter_type
action find
entity Zack Holmes
relation occupation
type occupation
['Zack Holmes', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Zack_Holmes property:occupation ?o . ?o rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P748
Q701632 Q11204 Q12737077
USER
Which occupations did max number of municipal councils and legislatures appoint ?
(c(Q12737077),P748,c(Q701632)|c(Q11204))
action argmax
action union
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action find_tuple_counts
relation P748
type Q12737077
type Q11204
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q701632'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) ?d WHERE { VALUES ( ?u ) { ( ontology:Q701632 ) ( ontology:Q11204 ) } . ?n rdf:type ?u } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) ?m WHERE { { ?m property:P748 ?p . ?m rdf:type ontology:Q12737077 . ?p rdf:type ontology:Q701632 } UNION { ?m property:P748 ?p . ?p rdf:type ontology:Q11204 . ?m rdf:type ontology:Q12737077 } } GROUP BY ?m } . FILTER ( ?i = ?v ) }
action argmax
action union
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action find_tuple_counts
relation appointed by
type occupation
type legislature
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'municipal council'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) ?d WHERE { VALUES ( ?u ) { ( ontology:municipal_council ) ( ontology:legislature ) } . ?n rdf:type ?u } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) ?m WHERE { { ?m property:appointed_by ?p . ?m rdf:type ontology:occupation . ?p rdf:type ontology:municipal_council } UNION { ?m property:appointed_by ?p . ?p rdf:type ontology:legislature . ?m rdf:type ontology:occupation } } GROUP BY ?m } . FILTER ( ?i = ?v ) }
[]
municipal council legislature occupation
Q655407 Q4122271 Q26000995
SYSTEM
President of the People's Republic of China, Premier of the People's Republic of China, President of the Parliament of Catalonia
Q20748656 Q20890913 Q11793630 Q21371106 Q21013169 Q20872382 Q20872273 Q655407 Q20891385 Q21384866 Q596123 Q20194364 Q21383592 Q1043568 Q20859388 Q20867550 Q866680 Q20872296 Q26000995 Q4122271 Q20872339 Q26209358 Q20992515 Q26721218
(c(Q12737077),P748,c(Q701632)|c(Q11204))
action argmax
action union
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action find_tuple_counts
relation P748
type Q12737077
type Q11204
[ANSWERS]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q701632'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) ?d WHERE { VALUES ( ?u ) { ( ontology:Q701632 ) ( ontology:Q11204 ) } . ?n rdf:type ?u } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) ?m WHERE { { ?m property:P748 ?p . ?m rdf:type ontology:Q12737077 . ?p rdf:type ontology:Q701632 } UNION { ?m property:P748 ?p . ?p rdf:type ontology:Q11204 . ?m rdf:type ontology:Q12737077 } } GROUP BY ?m } . FILTER ( ?i = ?v ) }
municipal executive of Zoetermeer municipal executive of Eindhoven governor of national banks of Serbia and Yugoslavia municipal executive of Amersfoort municipal executive of The Hague municipal executive of Coevorden municipal executive of Boxmeer President of the People's Republic of China municipal executive of Deventer municipal executive of Rotterdam president of Bangladesh municipal executive of Amsterdam municipal executive of Haarlem Prime Minister of Vietnam municipal executive of Mierlo municipal executive of Gorinchem President of Vietnam municipal executive of Almere President of the Parliament of Catalonia Premier of the People's Republic of China municipal executive of Woerden municipal executive of Warffum municipal executive of Utrecht municipal executive of Almere
President of the People's Republic of China Premier of the People's Republic of China President of the Parliament of Catalonia
action argmax
action union
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action find_tuple_counts
relation appointed by
type occupation
type legislature
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'municipal council'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) ?d WHERE { VALUES ( ?u ) { ( ontology:municipal_council ) ( ontology:legislature ) } . ?n rdf:type ?u } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) ?m WHERE { { ?m property:appointed_by ?p . ?m rdf:type ontology:occupation . ?p rdf:type ontology:municipal_council } UNION { ?m property:appointed_by ?p . ?p rdf:type ontology:legislature . ?m rdf:type ontology:occupation } } GROUP BY ?m } . FILTER ( ?i = ?v ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q655407 Q4122271 Q26000995
P39
Q502895
USER
Who held the position of those occupations ?
(c(Q502895),P39,Q655407) (c(Q502895),P39,Q4122271) (c(Q502895),P39,Q26000995)
action filter_type
action find_reverse
entity prev_answer
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q655407'] [{'concept': 'Q502895'}, 'P39', 'Q4122271'] [{'concept': 'Q502895'}, 'P39', 'Q26000995']
SELECT DISTINCT ?x WHERE { VALUES ( ?r ) { ( resource:Q20748656 ) ( resource:Q20890913 ) ( resource:Q11793630 ) } . ?x rdf:type ontology:Q502895 . ?x property:P39 ?r }
President of the People's Republic of China Premier of the People's Republic of China President of the Parliament of Catalonia
action filter_type
action find_reverse
entity prev_answer
relation position held
type common name
[{'concept': 'common name'}, 'position held', "President of the People's Republic of China"] [{'concept': 'common name'}, 'position held', "Premier of the People's Republic of China"] [{'concept': 'common name'}, 'position held', 'President of the Parliament of Catalonia']
SELECT DISTINCT ?x WHERE { VALUES ( ?r ) { ( resource:municipal_executive_of_Zoetermeer ) ( resource:municipal_executive_of_Eindhoven ) ( resource:governor_of_national_banks_of_Serbia_and_Yugoslavia ) } . ?x rdf:type ontology:common_name . ?x property:position_held ?r }
[]
common name
Q5816 Q17132 Q15031
SYSTEM
Mao Zedong, Soong Ching-ling, Xi Jinping
Q311413 Q17132 Q377935 Q15031 Q15029 Q16988 Q968038 Q5816 Q16597 Q17410 Q18111 Q18301 Q18285 Q99829 Q41570 Q16628 Q171194 Q2681411
(c(Q502895),P39,Q655407) (c(Q502895),P39,Q4122271) (c(Q502895),P39,Q26000995)
action filter_type
action find_reverse
entity prev_answer
relation P39
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P39', 'Q655407'] [{'concept': 'Q502895'}, 'P39', 'Q4122271'] [{'concept': 'Q502895'}, 'P39', 'Q26000995']
SELECT DISTINCT ?x WHERE { VALUES ( ?r ) { ( resource:Q20748656 ) ( resource:Q20890913 ) ( resource:Q11793630 ) } . ?x rdf:type ontology:Q502895 . ?x property:P39 ?r }
Li Xiannian Soong Ching-ling Yang Shangkun Xi Jinping Hu Jintao Liu Shaoqi Dong Biwu Mao Zedong Jiang Zemin Zhou Enlai Li Keqiang Li Peng Zhu Rongji Zhao Ziyang Hua Guofeng Wen Jiabao Núria de Gispert Carme Forcadell
Mao Zedong Soong Ching-ling Xi Jinping
action filter_type
action find_reverse
entity prev_answer
relation position held
type common name
[{'concept': 'common name'}, 'position held', "President of the People's Republic of China"] [{'concept': 'common name'}, 'position held', "Premier of the People's Republic of China"] [{'concept': 'common name'}, 'position held', 'President of the Parliament of Catalonia']
SELECT DISTINCT ?x WHERE { VALUES ( ?r ) { ( resource:municipal_executive_of_Zoetermeer ) ( resource:municipal_executive_of_Eindhoven ) ( resource:governor_of_national_banks_of_Serbia_and_Yugoslavia ) } . ?x rdf:type ontology:common_name . ?x property:position_held ?r }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q5816 Q17132 Q15031
P40
Q502895
USER
Which people have those ones as a child ?
(c(Q502895),P40,Q5816) (c(Q502895),P40,Q17132) (c(Q502895),P40,Q15031)
action filter_type
action find_reverse
entity prev_answer
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q5816'] [{'concept': 'Q502895'}, 'P40', 'Q17132'] [{'concept': 'Q502895'}, 'P40', 'Q15031']
SELECT DISTINCT ?h WHERE { ?h property:P40 ?e . ?h rdf:type ontology:Q502895 . VALUES ( ?e ) { ( resource:Q311413 ) ( resource:Q17132 ) ( resource:Q377935 ) } }
Mao Zedong Soong Ching-ling Xi Jinping
action filter_type
action find_reverse
entity prev_answer
relation child
type common name
[{'concept': 'common name'}, 'child', 'Mao Zedong'] [{'concept': 'common name'}, 'child', 'Soong Ching-ling'] [{'concept': 'common name'}, 'child', 'Xi Jinping']
SELECT DISTINCT ?h WHERE { ?h property:child ?e . ?h rdf:type ontology:common_name . VALUES ( ?e ) { ( resource:Li_Xiannian ) ( resource:Soong_Ching-ling ) ( resource:Yang_Shangkun ) } }
[]
common name
Q702111 Q301282 Q4120355
SYSTEM
Charlie Soong, Xi Zhongxun, Mao Yichang
Q4120370 Q4120355 Q702111 Q4195655 Q301282 Q17499761
(c(Q502895),P40,Q5816) (c(Q502895),P40,Q17132) (c(Q502895),P40,Q15031)
action filter_type
action find_reverse
entity prev_answer
relation P40
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P40', 'Q5816'] [{'concept': 'Q502895'}, 'P40', 'Q17132'] [{'concept': 'Q502895'}, 'P40', 'Q15031']
SELECT DISTINCT ?h WHERE { ?h property:P40 ?e . ?h rdf:type ontology:Q502895 . VALUES ( ?e ) { ( resource:Q311413 ) ( resource:Q17132 ) ( resource:Q377935 ) } }
Wen Qimei Mao Yichang Charlie Soong Ni Guizhen Xi Zhongxun Qi Xin
Charlie Soong Xi Zhongxun Mao Yichang
action filter_type
action find_reverse
entity prev_answer
relation child
type common name
[{'concept': 'common name'}, 'child', 'Mao Zedong'] [{'concept': 'common name'}, 'child', 'Soong Ching-ling'] [{'concept': 'common name'}, 'child', 'Xi Jinping']
SELECT DISTINCT ?h WHERE { ?h property:child ?e . ?h rdf:type ontology:common_name . VALUES ( ?e ) { ( resource:Li_Xiannian ) ( resource:Soong_Ching-ling ) ( resource:Yang_Shangkun ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q702111 Q301282 Q4120355
P26
Q502895
USER
Who are the spouse of those ones ?
(c(Q502895),P26,Q702111) (c(Q502895),P26,Q301282) (c(Q502895),P26,Q4120355)
action filter_type
action find
entity prev_answer
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q702111'] [{'concept': 'Q502895'}, 'P26', 'Q301282'] [{'concept': 'Q502895'}, 'P26', 'Q4120355']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?g property:P26 ?x . VALUES ( ?g ) { ( resource:Q4120370 ) ( resource:Q4120355 ) ( resource:Q702111 ) } }
Charlie Soong Xi Zhongxun Mao Yichang
action filter_type
action find
entity prev_answer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Charlie Soong'] [{'concept': 'common name'}, 'spouse', 'Xi Zhongxun'] [{'concept': 'common name'}, 'spouse', 'Mao Yichang']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?g property:spouse ?x . VALUES ( ?g ) { ( resource:Wen_Qimei ) ( resource:Mao_Yichang ) ( resource:Charlie_Soong ) } }
[]
common name
Q4195655 Q17499761 Q4120370
SYSTEM
Ni Guizhen, Qi Xin, Wen Qimei
Q4195655 Q17499761 Q4120370
(c(Q502895),P26,Q702111) (c(Q502895),P26,Q301282) (c(Q502895),P26,Q4120355)
action filter_type
action find
entity prev_answer
relation P26
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P26', 'Q702111'] [{'concept': 'Q502895'}, 'P26', 'Q301282'] [{'concept': 'Q502895'}, 'P26', 'Q4120355']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?g property:P26 ?x . VALUES ( ?g ) { ( resource:Q4120370 ) ( resource:Q4120355 ) ( resource:Q702111 ) } }
Ni Guizhen Qi Xin Wen Qimei
Ni Guizhen Qi Xin Wen Qimei
action filter_type
action find
entity prev_answer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Charlie Soong'] [{'concept': 'common name'}, 'spouse', 'Xi Zhongxun'] [{'concept': 'common name'}, 'spouse', 'Mao Yichang']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?g property:spouse ?x . VALUES ( ?g ) { ( resource:Wen_Qimei ) ( resource:Mao_Yichang ) ( resource:Charlie_Soong ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q4120370
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q4120370,P27,c(Q15617994))
action filter_type
action find
entity Q4120370
relation P27
type Q15617994
['Q4120370', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q4120370 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Wen Qimei
action filter_type
action find
entity Wen Qimei
relation country of citizenship
type designation for an administrative territorial entity
['Wen Qimei', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Wen_Qimei property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q17499761
SYSTEM
Did you mean Qi Xin ?
Q4195655 Q17499761 Q4120370
(Q4195655,P27,c(Q15617994)) (Q17499761,P27,c(Q15617994)) (Q4120370,P27,c(Q15617994))
[ANSWER]
['Q4195655', 'P27', {'concept': 'Q15617994'}] ['Q17499761', 'P27', {'concept': 'Q15617994'}] ['Q4120370', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q4120370 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Ni Guizhen Qi Xin Wen Qimei
Did you mean Qi Xin ?
Qi Xin
['Ni Guizhen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Qi Xin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Wen Qimei', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Wen_Qimei property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Wen Qimei. Could you tell me the answer for that?
(Q4120370,P27,c(Q15617994))
Q4120370
['Q4120370', 'P27', {'concept': 'Q15617994'}]
['Wen Qimei', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
[]
Q148
SYSTEM
People's Republic of China
Q148
(Q4120370,P27,c(Q15617994))
action filter_type
action find
entity Q4120370
relation P27
type Q15617994
[ANSWER]
['Q4120370', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q4120370 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
People's Republic of China
People's Republic of China
action filter_type
action find
entity Wen Qimei
relation country of citizenship
type designation for an administrative territorial entity
['Wen Qimei', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Wen_Qimei property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]